Skip to content

[OSDC] Enable linux-docs on OSDC pull - #179994

Closed
huydhn wants to merge 22 commits into
gh/huydhn/27/basefrom
gh/huydhn/27/head
Closed

huydhn wants to merge 22 commits into
gh/huydhn/27/basefrom
gh/huydhn/27/head

Conversation

@huydhn

@huydhn huydhn commented Apr 10, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Add OSDC (ARC) runner support to _docs.yml following the same pattern as
_linux-build.yml: a build-docs-osdc job with a matrix for cpp/python doc
types, running directly in the container image instead of docker-in-docker.
The EC2 path is preserved and gated on !inputs.use-arc.

Authored with Claude.

[ghstack-poisoned]
@huydhn
huydhn requested a review from a team as a code owner April 10, 2026 19:21
@pytorch-bot

pytorch-bot Bot commented Apr 10, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

⏳ No Failures, 63 Pending

As of commit 627e11c with merge base 7f47535 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Apr 10, 2026
huydhn added a commit that referenced this pull request Apr 10, 2026
Add OSDC (ARC) runner support to _docs.yml following the same pattern as
_linux-build.yml: a build-docs-osdc job with a matrix for cpp/python doc
types, running directly in the container image instead of docker-in-docker.
The EC2 path is preserved and gated on !inputs.use-arc.

Authored with Claude.


ghstack-source-id: 017a28a
Pull-Request: #179994
[ghstack-poisoned]
huydhn added a commit that referenced this pull request Apr 10, 2026
Add OSDC (ARC) runner support to _docs.yml following the same pattern as
_linux-build.yml: a build-docs-osdc job with a matrix for cpp/python doc
types, running directly in the container image instead of docker-in-docker.
The EC2 path is preserved and gated on !inputs.use-arc.

Authored with Claude.


ghstack-source-id: fee4510
Pull-Request: #179994
[ghstack-poisoned]
huydhn added 4 commits April 10, 2026 13:10
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
huydhn added 10 commits April 11, 2026 02:40
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@huydhn

huydhn commented Apr 12, 2026

Copy link
Copy Markdown
Contributor Author

[ghstack-poisoned]
@malfet

malfet commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator

@claude why does it creates a skipped "pull / linux-docs / build-docs-${{ matrix.docs_type }}-${{ inputs.push }" job?

@claude

claude Bot commented Apr 14, 2026 •

Copy link
Copy Markdown

Claude finished @malfet's task in 35s —— View job


  • Read the workflow files to understand the job structure
  • Identify why the matrix expression isn't expanded in the skipped job name
  • Post explanation

Answer

The skipped job with the unexpanded name build-docs-${{ matrix.docs_type }}-${{ inputs.push }} comes from the _docs.yml reusable workflow having two mutually exclusive jobs gated on the use-arc input:

  1. build-docs (.github/workflows/_docs.yml:76) — runs when !inputs.use-arc (the EC2 path)
  2. build-docs-osdc (.github/workflows/_docs.yml:270) — runs when inputs.use-arc (the ARC/OSDC path)

Both jobs use the same name: template:

name: build-docs-${{ matrix.docs_type }}-${{ inputs.push }}

When use-arc is true, the build-docs job's if condition evaluates to false, so it gets skipped. When a GitHub Actions job is skipped due to its if condition, the matrix is never expanded — GitHub never evaluates the strategy.matrix for that job. Since the matrix isn't expanded, ${{ matrix.docs_type }} has no value to substitute, so the job name appears in the UI with the raw expression literal.

This is standard GitHub Actions behavior: skipped jobs display their name: template with unexpanded matrix variables because matrix expansion happens after the if condition is evaluated. The same thing would happen in reverse on EC2 runs — the build-docs-osdc job would show up as skipped with the unexpanded template name.

It's cosmetic only and doesn't affect functionality.


BoyuanFeng pushed a commit that referenced this pull request Apr 15, 2026
Add OSDC (ARC) runner support to _docs.yml following the same pattern as
_linux-build.yml: a build-docs-osdc job with a matrix for cpp/python doc
types, running directly in the container image instead of docker-in-docker.
The EC2 path is preserved and gated on !inputs.use-arc.

Authored with Claude.
Pull Request resolved: #179994
Approved by: https://github.com/atalman, https://github.com/malfet
BoyuanFeng pushed a commit that referenced this pull request Apr 15, 2026
The `check_public_api_test_fails` function in test.sh uses
`echo "${test_output}" | grep -q` to verify that the canary module was
detected. Under `-o pipefail` (set by the GHA shell), this is a race
condition: `grep -q` exits immediately on first match, but `echo` may
still be writing the large test output (~hundreds of lines of import
tracebacks), receiving SIGPIPE (exit 141). With `pipefail`, the pipeline
returns 141 instead of grep's 0, so the script incorrectly concludes the
canary wasn't found.

Replace the pipe with a here-string (`grep -q ... <<< "$var"`), which
passes content via a temporary file rather than a pipe, eliminating the
SIGPIPE race entirely.

Fixes flaky failures like:
https://github.com/pytorch/pytorch/actions/runs/24216395495/job/70700891103

### Testing

https://github.com/pytorch/pytorch/actions/runs/24262053518/job/70850088090?pr=179999

Authored with Claude.
Pull Request resolved: #179999
Approved by: https://github.com/malfet
ghstack dependencies: #179994
BoyuanFeng pushed a commit that referenced this pull request Apr 15, 2026
BoyuanFeng pushed a commit that referenced this pull request Apr 15, 2026
BoyuanFeng pushed a commit that referenced this pull request Apr 15, 2026
Add OSDC (ARC) runner support to _docs.yml following the same pattern as
_linux-build.yml: a build-docs-osdc job with a matrix for cpp/python doc
types, running directly in the container image instead of docker-in-docker.
The EC2 path is preserved and gated on !inputs.use-arc.

Authored with Claude.
Pull Request resolved: #179994
Approved by: https://github.com/atalman, https://github.com/malfet
pytorchmergebot pushed a commit that referenced this pull request Apr 15, 2026
The `check_public_api_test_fails` function in test.sh uses
`echo "${test_output}" | grep -q` to verify that the canary module was
detected. Under `-o pipefail` (set by the GHA shell), this is a race
condition: `grep -q` exits immediately on first match, but `echo` may
still be writing the large test output (~hundreds of lines of import
tracebacks), receiving SIGPIPE (exit 141). With `pipefail`, the pipeline
returns 141 instead of grep's 0, so the script incorrectly concludes the
canary wasn't found.

Replace the pipe with a here-string (`grep -q ... <<< "$var"`), which
passes content via a temporary file rather than a pipe, eliminating the
SIGPIPE race entirely.

Fixes flaky failures like:
https://github.com/pytorch/pytorch/actions/runs/24216395495/job/70700891103

### Testing

https://github.com/pytorch/pytorch/actions/runs/24262053518/job/70850088090?pr=179999

Authored with Claude.
Pull Request resolved: #179999
Approved by: https://github.com/malfet
ghstack dependencies: #179994
pytorchmergebot added a commit to scotts/pytorch that referenced this pull request Apr 15, 2026
pytorchmergebot added a commit to scotts/pytorch that referenced this pull request Apr 15, 2026
@github-actions
github-actions Bot deleted the gh/huydhn/27/head branch May 15, 2026 02:27
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
Add OSDC (ARC) runner support to _docs.yml following the same pattern as
_linux-build.yml: a build-docs-osdc job with a matrix for cpp/python doc
types, running directly in the container image instead of docker-in-docker.
The EC2 path is preserved and gated on !inputs.use-arc.

Authored with Claude.
Pull Request resolved: pytorch#179994
Approved by: https://github.com/atalman, https://github.com/malfet
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
Add OSDC (ARC) runner support to _docs.yml following the same pattern as
_linux-build.yml: a build-docs-osdc job with a matrix for cpp/python doc
types, running directly in the container image instead of docker-in-docker.
The EC2 path is preserved and gated on !inputs.use-arc.

Authored with Claude.
Pull Request resolved: pytorch#179994
Approved by: https://github.com/atalman, https://github.com/malfet
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
The `check_public_api_test_fails` function in test.sh uses
`echo "${test_output}" | grep -q` to verify that the canary module was
detected. Under `-o pipefail` (set by the GHA shell), this is a race
condition: `grep -q` exits immediately on first match, but `echo` may
still be writing the large test output (~hundreds of lines of import
tracebacks), receiving SIGPIPE (exit 141). With `pipefail`, the pipeline
returns 141 instead of grep's 0, so the script incorrectly concludes the
canary wasn't found.

Replace the pipe with a here-string (`grep -q ... <<< "$var"`), which
passes content via a temporary file rather than a pipe, eliminating the
SIGPIPE race entirely.

Fixes flaky failures like:
https://github.com/pytorch/pytorch/actions/runs/24216395495/job/70700891103

### Testing

https://github.com/pytorch/pytorch/actions/runs/24262053518/job/70850088090?pr=179999

Authored with Claude.
Pull Request resolved: pytorch#179999
Approved by: https://github.com/malfet
ghstack dependencies: pytorch#179994
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
Add OSDC (ARC) runner support to _docs.yml following the same pattern as
_linux-build.yml: a build-docs-osdc job with a matrix for cpp/python doc
types, running directly in the container image instead of docker-in-docker.
The EC2 path is preserved and gated on !inputs.use-arc.

Authored with Claude.
Pull Request resolved: pytorch#179994
Approved by: https://github.com/atalman, https://github.com/malfet
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
The `check_public_api_test_fails` function in test.sh uses
`echo "${test_output}" | grep -q` to verify that the canary module was
detected. Under `-o pipefail` (set by the GHA shell), this is a race
condition: `grep -q` exits immediately on first match, but `echo` may
still be writing the large test output (~hundreds of lines of import
tracebacks), receiving SIGPIPE (exit 141). With `pipefail`, the pipeline
returns 141 instead of grep's 0, so the script incorrectly concludes the
canary wasn't found.

Replace the pipe with a here-string (`grep -q ... <<< "$var"`), which
passes content via a temporary file rather than a pipe, eliminating the
SIGPIPE race entirely.

Fixes flaky failures like:
https://github.com/pytorch/pytorch/actions/runs/24216395495/job/70700891103

### Testing

https://github.com/pytorch/pytorch/actions/runs/24262053518/job/70850088090?pr=179999

Authored with Claude.
Pull Request resolved: pytorch#179999
Approved by: https://github.com/malfet
ghstack dependencies: pytorch#179994
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
Add OSDC (ARC) runner support to _docs.yml following the same pattern as
_linux-build.yml: a build-docs-osdc job with a matrix for cpp/python doc
types, running directly in the container image instead of docker-in-docker.
The EC2 path is preserved and gated on !inputs.use-arc.

Authored with Claude.
Pull Request resolved: pytorch#179994
Approved by: https://github.com/atalman, https://github.com/malfet
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
Add OSDC (ARC) runner support to _docs.yml following the same pattern as
_linux-build.yml: a build-docs-osdc job with a matrix for cpp/python doc
types, running directly in the container image instead of docker-in-docker.
The EC2 path is preserved and gated on !inputs.use-arc.

Authored with Claude.
Pull Request resolved: pytorch#179994
Approved by: https://github.com/atalman, https://github.com/malfet
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
The `check_public_api_test_fails` function in test.sh uses
`echo "${test_output}" | grep -q` to verify that the canary module was
detected. Under `-o pipefail` (set by the GHA shell), this is a race
condition: `grep -q` exits immediately on first match, but `echo` may
still be writing the large test output (~hundreds of lines of import
tracebacks), receiving SIGPIPE (exit 141). With `pipefail`, the pipeline
returns 141 instead of grep's 0, so the script incorrectly concludes the
canary wasn't found.

Replace the pipe with a here-string (`grep -q ... <<< "$var"`), which
passes content via a temporary file rather than a pipe, eliminating the
SIGPIPE race entirely.

Fixes flaky failures like:
https://github.com/pytorch/pytorch/actions/runs/24216395495/job/70700891103

### Testing

https://github.com/pytorch/pytorch/actions/runs/24262053518/job/70850088090?pr=179999

Authored with Claude.
Pull Request resolved: pytorch#179999
Approved by: https://github.com/malfet
ghstack dependencies: pytorch#179994
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
Add OSDC (ARC) runner support to _docs.yml following the same pattern as
_linux-build.yml: a build-docs-osdc job with a matrix for cpp/python doc
types, running directly in the container image instead of docker-in-docker.
The EC2 path is preserved and gated on !inputs.use-arc.

Authored with Claude.
Pull Request resolved: pytorch#179994
Approved by: https://github.com/atalman, https://github.com/malfet
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
The `check_public_api_test_fails` function in test.sh uses
`echo "${test_output}" | grep -q` to verify that the canary module was
detected. Under `-o pipefail` (set by the GHA shell), this is a race
condition: `grep -q` exits immediately on first match, but `echo` may
still be writing the large test output (~hundreds of lines of import
tracebacks), receiving SIGPIPE (exit 141). With `pipefail`, the pipeline
returns 141 instead of grep's 0, so the script incorrectly concludes the
canary wasn't found.

Replace the pipe with a here-string (`grep -q ... <<< "$var"`), which
passes content via a temporary file rather than a pipe, eliminating the
SIGPIPE race entirely.

Fixes flaky failures like:
https://github.com/pytorch/pytorch/actions/runs/24216395495/job/70700891103

### Testing

https://github.com/pytorch/pytorch/actions/runs/24262053518/job/70850088090?pr=179999

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

Labels

Merged no-runner-experiments Bypass Meta/LF runner determinator Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants