Skip to content

Make the publication test archives deterministic - #36

Merged
colinjlacy merged 1 commit into
runtimeconditions:mainfrom
itvi-1234:fix-flaky-publish-test
Nov 12, 2026
Merged

colinjlacy merged 1 commit into
runtimeconditions:mainfrom
itvi-1234:fix-flaky-publish-test

Conversation

@itvi-1234

Copy link
Copy Markdown
Member

make_assets built the test zips with ZipFile.writestr(name, data), which stamps each entry with the current time at two second resolution. The test test_unchanged_module_tag_is_reusable_after_unrelated_commits builds the assets twice around a commit, so when the builds fell into different two second windows the archives differed and promote failed with "existing release asset differs". The test failed at random, which failed the Test publication helpers step of the Publish Go bindings workflow, and the same test runs in Tests and Generate.

Write the entries with a fixed timestamp, as the orchestrator's deterministic zips do. Forcing the two builds more than two seconds apart failed before this change and passes after it.

make_assets built the test zips with ZipFile.writestr(name, data), which stamps
each entry with the current time at two second resolution. The test
test_unchanged_module_tag_is_reusable_after_unrelated_commits builds the assets
twice around a commit, so when the builds fell into different two second
windows the archives differed and promote failed with "existing release asset
differs". The test failed at random, which failed the Test publication helpers
step of the Publish Go bindings workflow, and the same test runs in Tests and
Generate.

Write the entries with a fixed timestamp, as the orchestrator's deterministic
zips do. Forcing the two builds more than two seconds apart failed before this
change and passes after it.
@colinjlacy
colinjlacy merged commit 5ed041e into runtimeconditions:main Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants