You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating Docker SHAs can easily go wrong since they don't have any meaning to humans (latest example). We should implement a presubmit test that pulls all relevant images and makes sure that the match the corresponding platform.
I think constructing a high-efficacy static test (i.e. reading off all the hashes specified in each config file and checking that it does the right thing) will be pretty complicated, but doable. The test would need to have contextual knowledge of what each has is, and what the platform specified in a config should be mapped to. For instance,
Maybe this can be gleaned from the "queue=arm64" property under agents.
This is a rockylinux8-releaser image
This needs to be inferred from the image name
The hexadecimal hash needs to satisfy both conditions, and it has to be the most recent one.
Those are all knowable, but a little tricky to extract in a test.
I think we can come up with some heuristics to simplify the test, such as:
The only places where both x86 and arm images are specified are in yml pipeline configs and bazelci.py
Therefore the main complication can be specialized to those files. For TF files, (for now) we only use x86 images, so we can just validate that the hashes map correctly to x86 + the specified image family.
Activity
ted-xie commentedon Oct 6, 2026
I think constructing a high-efficacy static test (i.e. reading off all the hashes specified in each config file and checking that it does the right thing) will be pretty complicated, but doable. The test would need to have contextual knowledge of what each has is, and what the platform specified in a config should be mapped to. For instance,
https://github.com/bazelbuild/continuous-integration/blob/master/pipelines/java_tools-binaries.yml#L33-L43
In this blob, the test needs to know:
agents.Those are all knowable, but a little tricky to extract in a test.
I think we can come up with some heuristics to simplify the test, such as:
Add more platforms to smoke test (#2972)