Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use run_id instead of sha for docker tag #688

Merged
merged 3 commits into from
Jun 7, 2024
Merged

Conversation

jonb377
Copy link
Collaborator

@jonb377 jonb377 commented Jun 5, 2024

There have been collisions between the scheduled UnitTests execution and those triggered by merge to main.

This change replaces the github SHA with the run_id to ensure a distinct image tag across executions.

Example scheduled execution failure: https://github.com/google/maxtext/actions/runs/9387491342/job/25850532082

Due to a concurrent execution from merge: https://github.com/google/maxtext/actions/runs/9387152549/job/25849389719

Context on run_id from https://docs.github.com/en/actions/learn-github-actions/contexts#github-context:

github.run_id string A unique number for each workflow run within a repository. This number does not change if you re-run the workflow run.

Copy link
Collaborator

@gobbleturk gobbleturk left a comment

Choose a reason for hiding this comment

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

Thank you for finding this and explaining it!

@copybara-service copybara-service bot merged commit 3e34b16 into main Jun 7, 2024
13 checks passed
@copybara-service copybara-service bot deleted the jonbolin/gha branch June 7, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants