Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/build_release_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def build_release_assets(repository, ref, output_dir):
f"--output={archive_path}",
commit,
],
# Git records local wall time in ZIP headers, even for a fixed commit.
env={**os.environ, "TZ": "UTC0"},
check=True,
)
validate_members(archive_members(archive_path), prefix)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_release_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def test_release_builder_creates_reproducible_scoped_archives(tmp_path):
_create_fixture_repository(repository)

outputs = []
for directory_name in ("dist-one", "dist-two"):
for directory_name, timezone in (("dist-one", "UTC0"), ("dist-two", "UTC-8")):
if outputs:
time.sleep(2)
output_dir = tmp_path / directory_name
Expand All @@ -162,6 +162,7 @@ def test_release_builder_creates_reproducible_scoped_archives(tmp_path):
"--output-dir",
str(output_dir),
],
env={**os.environ, "TZ": timezone},
check=True,
)
outputs.append(output_dir)
Expand Down