Skip to content

Fix dead ExecuTorch XNNPACK doc link in mobile_optimizer - #189292

Closed
frgossen wants to merge 1 commit into
gh/frgossen/185/basefrom
gh/frgossen/185/head
Closed

frgossen wants to merge 1 commit into
gh/frgossen/185/basefrom
gh/frgossen/185/head

Conversation

@frgossen

@frgossen frgossen commented Jul 8, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

The nightly Link checks / lint-urls / lint job fails on a genuine 404:
the XNNPACK backend doc referenced from mobile_optimizer.md was renamed
by ExecuTorch from native-delegates-executorch-xnnpack-delegate.html
(now 404) to backends-xnnpack.html (200). Point the link at the new
URL. The sibling Vulkan link still resolves (200) and is left unchanged.

Test Plan:
Reproduced the linter's check for the old and new URLs:

$ curl -k -gsL -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" \
    https://pytorch.org/executorch/stable/native-delegates-executorch-xnnpack-delegate.html
404
$ curl -k -gsL -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" \
    https://pytorch.org/executorch/stable/backends-xnnpack.html
200

Authored with Claude.

[ghstack-poisoned]
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Jul 8, 2026
@pytorch-bot

pytorch-bot Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

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

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

@frgossen
frgossen requested a review from aorenste July 8, 2026 19:21
@frgossen

frgossen commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jul 8, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

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

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 1 mandatory check(s) failed. The first few are:

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

Failing merge rule: Core Maintainers

@cyyever

cyyever commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

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

frgossen added a commit that referenced this pull request Jul 13, 2026
…ilures

The STABLE_SHIM_VERSION and GENERATED_SHIMS_VERSION linters call
merge_base_with_main(), which runs `git cat-file -e <main_sha>^{commit}` with a
5s timeout to check whether the current main tip is present locally before
falling back to a full `git fetch`.

In CI's partial clone, that cat-file on a commit not yet local does not return
instantly -- it triggers an on-demand lazy fetch from the promisor remote, i.e.
network I/O. Under normal CI network variance that occasionally exceeds 5s, so
the probe raises subprocess.TimeoutExpired and the linter crashes with
"Failed to get git diff information ... cat-file ... timed out after 5 seconds",
reddening `Lint / lintrunner-noclang-all` on unrelated PRs (e.g. #189292). It is
green on trunk, so it is a transient flake, not a real lint error.

Bump the cat-file timeout from 5s to 60s (matching the ls-remote timeout in the
same function) so the lazy fetch has room to complete. A single-commit lazy
fetch taking longer than 60s would be pathological.

Test Plan:
Lint-only change. `lintrunner tools/linter/adapters/_stable_shim_utils.py`
passes; the shim linters continue to resolve the merge-base normally.

Authored with Claude.


ghstack-source-id: 35feebd
Pull-Request: #189444
pytorchmergebot pushed a commit that referenced this pull request Jul 13, 2026
…ilures (#189444)

The STABLE_SHIM_VERSION and GENERATED_SHIMS_VERSION linters call
merge_base_with_main(), which runs `git cat-file -e <main_sha>^{commit}` with a
5s timeout to check whether the current main tip is present locally before
falling back to a full `git fetch`.

In CI's partial clone, that cat-file on a commit not yet local does not return
instantly -- it triggers an on-demand lazy fetch from the promisor remote, i.e.
network I/O. Under normal CI network variance that occasionally exceeds 5s, so
the probe raises subprocess.TimeoutExpired and the linter crashes with
"Failed to get git diff information ... cat-file ... timed out after 5 seconds",
reddening `Lint / lintrunner-noclang-all` on unrelated PRs (e.g. #189292). It is
green on trunk, so it is a transient flake, not a real lint error.

Bump the cat-file timeout from 5s to 60s (matching the ls-remote timeout in the
same function) so the lazy fetch has room to complete. A single-commit lazy
fetch taking longer than 60s would be pathological.

Test Plan:
Lint-only change. `lintrunner tools/linter/adapters/_stable_shim_utils.py`
passes; the shim linters continue to resolve the merge-base normally.

Authored with Claude.
Pull Request resolved: #189444
Approved by: https://github.com/zou3519
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
)

The nightly `Link checks / lint-urls / lint` job fails on a genuine 404:
the XNNPACK backend doc referenced from mobile_optimizer.md was renamed
by ExecuTorch from `native-delegates-executorch-xnnpack-delegate.html`
(now 404) to `backends-xnnpack.html` (200). Point the link at the new
URL. The sibling Vulkan link still resolves (200) and is left unchanged.

Test Plan:
Reproduced the linter's check for the old and new URLs:

```
$ curl -k -gsL -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" \
    https://pytorch.org/executorch/stable/native-delegates-executorch-xnnpack-delegate.html
404
$ curl -k -gsL -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" \
    https://pytorch.org/executorch/stable/backends-xnnpack.html
200
```

Authored with Claude.
Pull Request resolved: pytorch#189292
Approved by: https://github.com/aorenste
vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
…ilures (pytorch#189444)

The STABLE_SHIM_VERSION and GENERATED_SHIMS_VERSION linters call
merge_base_with_main(), which runs `git cat-file -e <main_sha>^{commit}` with a
5s timeout to check whether the current main tip is present locally before
falling back to a full `git fetch`.

In CI's partial clone, that cat-file on a commit not yet local does not return
instantly -- it triggers an on-demand lazy fetch from the promisor remote, i.e.
network I/O. Under normal CI network variance that occasionally exceeds 5s, so
the probe raises subprocess.TimeoutExpired and the linter crashes with
"Failed to get git diff information ... cat-file ... timed out after 5 seconds",
reddening `Lint / lintrunner-noclang-all` on unrelated PRs (e.g. pytorch#189292). It is
green on trunk, so it is a transient flake, not a real lint error.

Bump the cat-file timeout from 5s to 60s (matching the ls-remote timeout in the
same function) so the lazy fetch has room to complete. A single-commit lazy
fetch taking longer than 60s would be pathological.

Test Plan:
Lint-only change. `lintrunner tools/linter/adapters/_stable_shim_utils.py`
passes; the shim linters continue to resolve the merge-base normally.

Authored with Claude.
Pull Request resolved: pytorch#189444
Approved by: https://github.com/zou3519
DamJanusz pushed a commit to DamJanusz/pytorch that referenced this pull request Jul 21, 2026
)

The nightly `Link checks / lint-urls / lint` job fails on a genuine 404:
the XNNPACK backend doc referenced from mobile_optimizer.md was renamed
by ExecuTorch from `native-delegates-executorch-xnnpack-delegate.html`
(now 404) to `backends-xnnpack.html` (200). Point the link at the new
URL. The sibling Vulkan link still resolves (200) and is left unchanged.

Test Plan:
Reproduced the linter's check for the old and new URLs:

```
$ curl -k -gsL -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" \
    https://pytorch.org/executorch/stable/native-delegates-executorch-xnnpack-delegate.html
404
$ curl -k -gsL -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" \
    https://pytorch.org/executorch/stable/backends-xnnpack.html
200
```

Authored with Claude.
Pull Request resolved: pytorch#189292
Approved by: https://github.com/aorenste
DamJanusz pushed a commit to DamJanusz/pytorch that referenced this pull request Jul 21, 2026
…ilures (pytorch#189444)

The STABLE_SHIM_VERSION and GENERATED_SHIMS_VERSION linters call
merge_base_with_main(), which runs `git cat-file -e <main_sha>^{commit}` with a
5s timeout to check whether the current main tip is present locally before
falling back to a full `git fetch`.

In CI's partial clone, that cat-file on a commit not yet local does not return
instantly -- it triggers an on-demand lazy fetch from the promisor remote, i.e.
network I/O. Under normal CI network variance that occasionally exceeds 5s, so
the probe raises subprocess.TimeoutExpired and the linter crashes with
"Failed to get git diff information ... cat-file ... timed out after 5 seconds",
reddening `Lint / lintrunner-noclang-all` on unrelated PRs (e.g. pytorch#189292). It is
green on trunk, so it is a transient flake, not a real lint error.

Bump the cat-file timeout from 5s to 60s (matching the ls-remote timeout in the
same function) so the lazy fetch has room to complete. A single-commit lazy
fetch taking longer than 60s would be pathological.

Test Plan:
Lint-only change. `lintrunner tools/linter/adapters/_stable_shim_utils.py`
passes; the shim linters continue to resolve the merge-base normally.

Authored with Claude.
Pull Request resolved: pytorch#189444
Approved by: https://github.com/zou3519
youlituao pushed a commit to youlituao/pytorch that referenced this pull request Jul 28, 2026
)

The nightly `Link checks / lint-urls / lint` job fails on a genuine 404:
the XNNPACK backend doc referenced from mobile_optimizer.md was renamed
by ExecuTorch from `native-delegates-executorch-xnnpack-delegate.html`
(now 404) to `backends-xnnpack.html` (200). Point the link at the new
URL. The sibling Vulkan link still resolves (200) and is left unchanged.

Test Plan:
Reproduced the linter's check for the old and new URLs:

```
$ curl -k -gsL -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" \
    https://pytorch.org/executorch/stable/native-delegates-executorch-xnnpack-delegate.html
404
$ curl -k -gsL -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" \
    https://pytorch.org/executorch/stable/backends-xnnpack.html
200
```

Authored with Claude.
Pull Request resolved: pytorch#189292
Approved by: https://github.com/aorenste
youlituao pushed a commit to youlituao/pytorch that referenced this pull request Jul 28, 2026
…ilures (pytorch#189444)

The STABLE_SHIM_VERSION and GENERATED_SHIMS_VERSION linters call
merge_base_with_main(), which runs `git cat-file -e <main_sha>^{commit}` with a
5s timeout to check whether the current main tip is present locally before
falling back to a full `git fetch`.

In CI's partial clone, that cat-file on a commit not yet local does not return
instantly -- it triggers an on-demand lazy fetch from the promisor remote, i.e.
network I/O. Under normal CI network variance that occasionally exceeds 5s, so
the probe raises subprocess.TimeoutExpired and the linter crashes with
"Failed to get git diff information ... cat-file ... timed out after 5 seconds",
reddening `Lint / lintrunner-noclang-all` on unrelated PRs (e.g. pytorch#189292). It is
green on trunk, so it is a transient flake, not a real lint error.

Bump the cat-file timeout from 5s to 60s (matching the ls-remote timeout in the
same function) so the lazy fetch has room to complete. A single-commit lazy
fetch taking longer than 60s would be pathological.

Test Plan:
Lint-only change. `lintrunner tools/linter/adapters/_stable_shim_utils.py`
passes; the shim linters continue to resolve the merge-base normally.

Authored with Claude.
Pull Request resolved: pytorch#189444
Approved by: https://github.com/zou3519
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
)

The nightly `Link checks / lint-urls / lint` job fails on a genuine 404:
the XNNPACK backend doc referenced from mobile_optimizer.md was renamed
by ExecuTorch from `native-delegates-executorch-xnnpack-delegate.html`
(now 404) to `backends-xnnpack.html` (200). Point the link at the new
URL. The sibling Vulkan link still resolves (200) and is left unchanged.

Test Plan:
Reproduced the linter's check for the old and new URLs:

```
$ curl -k -gsL -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" \
    https://pytorch.org/executorch/stable/native-delegates-executorch-xnnpack-delegate.html
404
$ curl -k -gsL -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0" \
    https://pytorch.org/executorch/stable/backends-xnnpack.html
200
```

Authored with Claude.
Pull Request resolved: pytorch#189292
Approved by: https://github.com/aorenste
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…ilures (pytorch#189444)

The STABLE_SHIM_VERSION and GENERATED_SHIMS_VERSION linters call
merge_base_with_main(), which runs `git cat-file -e <main_sha>^{commit}` with a
5s timeout to check whether the current main tip is present locally before
falling back to a full `git fetch`.

In CI's partial clone, that cat-file on a commit not yet local does not return
instantly -- it triggers an on-demand lazy fetch from the promisor remote, i.e.
network I/O. Under normal CI network variance that occasionally exceeds 5s, so
the probe raises subprocess.TimeoutExpired and the linter crashes with
"Failed to get git diff information ... cat-file ... timed out after 5 seconds",
reddening `Lint / lintrunner-noclang-all` on unrelated PRs (e.g. pytorch#189292). It is
green on trunk, so it is a transient flake, not a real lint error.

Bump the cat-file timeout from 5s to 60s (matching the ls-remote timeout in the
same function) so the lazy fetch has room to complete. A single-commit lazy
fetch taking longer than 60s would be pathological.

Test Plan:
Lint-only change. `lintrunner tools/linter/adapters/_stable_shim_utils.py`
passes; the shim linters continue to resolve the merge-base normally.

Authored with Claude.
Pull Request resolved: pytorch#189444
Approved by: https://github.com/zou3519
@github-actions
github-actions Bot deleted the gh/frgossen/185/head branch August 9, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants