Skip to content

Wait for Go's checksum database to see new tags before the smoke test… - #103

Closed
itvi-1234 wants to merge 2 commits into
runtimeconditions:mainfrom
itvi-1234:go-smoke-retry
Closed

itvi-1234 wants to merge 2 commits into
runtimeconditions:mainfrom
itvi-1234:go-smoke-retry

Conversation

@itvi-1234

Copy link
Copy Markdown
Member

Wait for Go's checksum database to see new tags before the smoke test fails

Twice a Go publish pushed its tags and then failed the smoke test, although the release itself was fine. go get asked sum.golang.org for the new version seconds after the push. The checksum database asked GitHub before GitHub served the tag, answered "unknown revision" or 404, and cached that answer for about 30 minutes. Both times the module showed up later without any change.

After pushing new tags, promote waits a minute before the smoke test asks for them.
The smoke test tries go get again every 2 minutes, for up to about 40 minutes, when Go says the version is not found or the revision is unknown. Any other failure still stops it at once.
The publish job's timeout goes from 15 to 60 minutes to fit those retries.

… fails

Twice a Go publish pushed its tags and then failed the smoke test, although
the release was fine: go get asked sum.golang.org for the new version seconds
after the push, the checksum database asked GitHub before GitHub served the
tag, answered "unknown revision" or 404, and cached that answer for about 30
minutes. Both times the module showed up later without any change.

After pushing new tags, promote now waits a minute before the smoke test asks
for them. The smoke test tries go get again every 2 minutes, for up to about
40 minutes, when Go says the version is not found or the revision is unknown;
any other failure still stops it at once. The publish job's timeout goes from
15 to 60 minutes to fit those retries.
@itvi-1234
itvi-1234 marked this pull request as draft December 1, 2026 17:06
Retrying go get for up to 40 minutes kept the job running for a problem that
the wait after the tag push already avoids in most cases. The smoke test runs
once again, the publish job's timeout is back to 15 minutes, and if Go's
checksum database still has not seen a new tag, the workflow can be run again
later: it reuses the tags and only repeats the smoke test.

@colinjlacy colinjlacy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coolsville

@itvi-1234 itvi-1234 closed this Dec 2, 2026
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