Skip to content

[CI][ARC] Propagate ci-docker-hash to calculate-docker-image calls - #182843

Closed
malfet wants to merge 6 commits into
gh/malfet/886/basefrom
gh/malfet/886/head
Closed

malfet wants to merge 6 commits into
gh/malfet/886/basefrom
gh/malfet/886/head

Conversation

@malfet

@malfet malfet commented May 7, 2026 •

Copy link
Copy Markdown
Collaborator

Stack from ghstack (oldest at bottom):

This allows the test-infra's calculate-docker-image action to validate pre-computed hash instead of recalculating it in each job

Though, weird side effects of OSDCs decision to rely on public ghcr.io mirrors makes it impossible to modify and test docker image from PR, because push to ghcr happens only after change is in trunk

[ghstack-poisoned]
@malfet
malfet requested a review from a team as a code owner May 7, 2026 16:38
@pytorch-bot

pytorch-bot Bot commented May 7, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/182843

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 19 Pending

As of commit 68800c2 with merge base f19e56d (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

[ghstack-poisoned]
malfet added a commit that referenced this pull request May 7, 2026
This allows the test-infra's calculate-docker-image action to validate pre-computed hash instead of recalculating it in each job

ghstack-source-id: 4e9479a
Pull-Request: #182843
[ghstack-poisoned]
malfet added a commit that referenced this pull request May 7, 2026
This allows the test-infra's calculate-docker-image action to validate
pre-computed hash instead of recalculating it in each job.

Also wires the hash into the OSDC (ARC) path of _linux-build.yml so the
container image and the workflow's docker-image output use the hashed
tag (ci-image:<env>-<hash>) instead of the bare ci-image:<env> (which
docker resolves as :latest). When ci-docker-hash is unset the OSDC path
falls back to its previous unversioned image.

Adds get-label-type to the needs: of linux-jammy-py3-clang18-executorch-test
in trunk.yml, which referenced needs.get-label-type.outputs.ci-docker-hash
without listing it as a dependency (caught by actionlint).

ghstack-source-id: 9f6b0bf
Pull-Request: #182843
[ghstack-poisoned]
malfet added a commit that referenced this pull request May 7, 2026
This allows the test-infra's calculate-docker-image action to validate
pre-computed hash instead of recalculating it in each job.

Also wires the hash into the OSDC (ARC) path of _linux-build.yml so the
container image and the workflow's docker-image output use the hashed
tag (ci-image:<env>-<hash>) instead of the bare ci-image:<env> (which
docker resolves as :latest). When ci-docker-hash is unset the OSDC path
falls back to its previous unversioned image.

Adds get-label-type to the needs: of linux-jammy-py3-clang18-executorch-test
in trunk.yml, which referenced needs.get-label-type.outputs.ci-docker-hash
without listing it as a dependency (caught by actionlint).

ghstack-source-id: 6784ffe
Pull-Request: #182843

@huydhn huydhn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@huydhn

huydhn commented May 8, 2026

Copy link
Copy Markdown
Contributor

Could you stack a PR changing .ci/docker to test that the wait applies correctly? pytorch/ci-infra#540 has been deployed

[ghstack-poisoned]
[ghstack-poisoned]
@malfet malfet changed the title [CI] Propagate ci-docker-hash to calculate-docker-image calls [CI][ARC] Propagate ci-docker-hash to calculate-docker-image calls May 8, 2026
@malfet malfet added the ciflow/trunk Trigger trunk jobs on your pull request label May 8, 2026
@malfet

malfet commented May 8, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge -f "Lint + pull are green"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request May 13, 2026
After #182843, pull.yml and trunk.yml already pass ci-docker-hash from get-label-type into _linux-build.yml so the OSDC docker image tag resolves to ghcr.io/pytorch/<name>-<hash>. The other OSDC-migrated workflows were missing this input and would pull the unhashed ghcr.io tag instead. Add ci-docker-hash to every _linux-build.yml call in the remaining migrated workflows for parity.

Authored by Claude.
Pull Request resolved: #183492
Approved by: https://github.com/jeanschmidt, https://github.com/malfet
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request May 13, 2026
…ytorch#182843)

This allows the test-infra's calculate-docker-image action to validate pre-computed hash instead of recalculating it in each job

Though, weird side effects of OSDCs decision to rely on public ghcr.io mirrors makes it impossible to modify and test docker image from PR, because push to ghcr happens only after change is in trunk
Pull Request resolved: pytorch#182843
Approved by: https://github.com/huydhn
Alokksinha00 pushed a commit to Alokksinha00/pytorch that referenced this pull request May 15, 2026
…ytorch#182843)

This allows the test-infra's calculate-docker-image action to validate pre-computed hash instead of recalculating it in each job

Though, weird side effects of OSDCs decision to rely on public ghcr.io mirrors makes it impossible to modify and test docker image from PR, because push to ghcr happens only after change is in trunk
Pull Request resolved: pytorch#182843
Approved by: https://github.com/huydhn
Alokksinha00 pushed a commit to Alokksinha00/pytorch that referenced this pull request May 15, 2026
…3492)

After pytorch#182843, pull.yml and trunk.yml already pass ci-docker-hash from get-label-type into _linux-build.yml so the OSDC docker image tag resolves to ghcr.io/pytorch/<name>-<hash>. The other OSDC-migrated workflows were missing this input and would pull the unhashed ghcr.io tag instead. Add ci-docker-hash to every _linux-build.yml call in the remaining migrated workflows for parity.

Authored by Claude.
Pull Request resolved: pytorch#183492
Approved by: https://github.com/jeanschmidt, https://github.com/malfet
@github-actions
github-actions Bot deleted the gh/malfet/886/head branch June 8, 2026 02:29
aperson30 pushed a commit to aperson30/pytorch that referenced this pull request Jun 20, 2026
…ytorch#182843)

This allows the test-infra's calculate-docker-image action to validate pre-computed hash instead of recalculating it in each job

Though, weird side effects of OSDCs decision to rely on public ghcr.io mirrors makes it impossible to modify and test docker image from PR, because push to ghcr happens only after change is in trunk
Pull Request resolved: pytorch#182843
Approved by: https://github.com/huydhn
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
…ytorch#182843)

This allows the test-infra's calculate-docker-image action to validate pre-computed hash instead of recalculating it in each job

Though, weird side effects of OSDCs decision to rely on public ghcr.io mirrors makes it impossible to modify and test docker image from PR, because push to ghcr happens only after change is in trunk
Pull Request resolved: pytorch#182843
Approved by: https://github.com/huydhn
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
…3492)

After pytorch#182843, pull.yml and trunk.yml already pass ci-docker-hash from get-label-type into _linux-build.yml so the OSDC docker image tag resolves to ghcr.io/pytorch/<name>-<hash>. The other OSDC-migrated workflows were missing this input and would pull the unhashed ghcr.io tag instead. Add ci-docker-hash to every _linux-build.yml call in the remaining migrated workflows for parity.

Authored by Claude.
Pull Request resolved: pytorch#183492
Approved by: https://github.com/jeanschmidt, https://github.com/malfet
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…ytorch#182843)

This allows the test-infra's calculate-docker-image action to validate pre-computed hash instead of recalculating it in each job

Though, weird side effects of OSDCs decision to rely on public ghcr.io mirrors makes it impossible to modify and test docker image from PR, because push to ghcr happens only after change is in trunk
Pull Request resolved: pytorch#182843
Approved by: https://github.com/huydhn
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…3492)

After pytorch#182843, pull.yml and trunk.yml already pass ci-docker-hash from get-label-type into _linux-build.yml so the OSDC docker image tag resolves to ghcr.io/pytorch/<name>-<hash>. The other OSDC-migrated workflows were missing this input and would pull the unhashed ghcr.io tag instead. Add ci-docker-hash to every _linux-build.yml call in the remaining migrated workflows for parity.

Authored by Claude.
Pull Request resolved: pytorch#183492
Approved by: https://github.com/jeanschmidt, https://github.com/malfet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor-pallas ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants