Skip to content

Create "docker pull" pre-submit test #2919

Open

Description

@fweikert

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.

Activity

  1. ted-xie commented on Oct 6, 2026

    @ted-xie
    Contributor

    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:

    1. This is an arm platform
      1. Maybe this can be gleaned from the "queue=arm64" property under agents.
    2. This is a rockylinux8-releaser image
      1. This needs to be inferred from the image name
    3. 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.
  2. added a commit that references this issue on Oct 28, 2026
  3. added and removed on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions