-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
add check for forge images #15007
add check for forge images #15007
Conversation
⏱️ 1h 16m total CI duration on this PR
|
c3d6ca7
to
96a93a3
Compare
96a93a3
to
1ef2b66
Compare
echo "✅ $image_name image found for tag: $tag" >> $GITHUB_STEP_SUMMARY | ||
else | ||
echo "${output_prefix}_EXISTS=false" >> $GITHUB_OUTPUT | ||
echo "⚠️ No $image_name image found for tag: $tag. The latest available image will be used instead." >> $GITHUB_STEP_SUMMARY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it easy to print which image will be used if latest? Also, where will this be posted on a PR job?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's code around getting the latest image in forge.py that I didn't want to duplicate here. This is mostly to prompt users to use the CICD: build-images
label when running Forge tests against their PR. Users can still see the actual images being used by checking the workflow logs
The output shows up in the workflow summary https://github.com/aptos-labs/aptos-core/actions/runs/11410691190
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be we should think about unifying these logic in a future PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think the logic to determine the images belongs in GHA. We should pull out the image tags to inputs/outputs to make the Forge runs reproducible. Right now if we rerun the workflow, it could result in different images being used
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Description
Indicate which image is being used by Forge in the workflow summary. The current behavior of falling back to the latest image can be misleading
How Has This Been Tested?
https://github.com/aptos-labs/aptos-core/actions/runs/11410691190
https://github.com/aptos-labs/aptos-core/actions/runs/11410692772
Key Areas to Review
Type of Change
Which Components or Systems Does This Change Impact?
Checklist