Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/189444
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 100144e with merge base 5869005 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This failure isnt related |
|
@pytorchmergebot merge -i |
Merge startedYour change will be merged while ignoring the following 1 checks: trunk / linux-jammy-rocm-py3.10-mi350 / test (inductor, 1, 2, linux.rocm.gpu.gfx950.1) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: Command Details for Dev Infra teamRaised by workflow job |
…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 merge -i |
Merge startedYour change will be merged while ignoring the following 0 checks: Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
#189444 bumped the git cat-file timeout in merge_base_with_main() from 5s to 60s. That defeats the design introduced in #189419, which deliberately keeps a short 5s timeout and catches subprocess.TimeoutExpired to fall back to the slower git fetch: a timeout is the signal that the object is not present in the partial clone, not something to wait out. Bumping to 60s just makes every cold call block and masks that condition. Restore the 5s timeout so the graceful fallback triggers promptly as intended. Test Plan: lintrunner on _stable_shim_utils.py passes. The STABLE_SHIM_VERSION / GENERATED_SHIMS_VERSION linters continue to resolve the merge base via the try/except fallback on partial-clone CI checkouts. Authored with Claude. Pull Request resolved: #189946 Approved by: https://github.com/janeyx99
…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
…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
…torch#189946) pytorch#189444 bumped the git cat-file timeout in merge_base_with_main() from 5s to 60s. That defeats the design introduced in pytorch#189419, which deliberately keeps a short 5s timeout and catches subprocess.TimeoutExpired to fall back to the slower git fetch: a timeout is the signal that the object is not present in the partial clone, not something to wait out. Bumping to 60s just makes every cold call block and masks that condition. Restore the 5s timeout so the graceful fallback triggers promptly as intended. Test Plan: lintrunner on _stable_shim_utils.py passes. The STABLE_SHIM_VERSION / GENERATED_SHIMS_VERSION linters continue to resolve the merge base via the try/except fallback on partial-clone CI checkouts. Authored with Claude. Pull Request resolved: pytorch#189946 Approved by: https://github.com/janeyx99
…y fetch (#191228) The STABLE_SHIM_VERSION linter intermittently fails in CI with `subprocess.TimeoutExpired` on `git diff <merge_base>..HEAD -- shim.h`, reported as an internal linter bug. Root cause: CI checks out a blobless partial clone (`--filter=blob:none`, added in #172544; see .github/actions/checkout-pytorch/action.yml). The 5s diff timeout predates that (added with the linter in #166995) and was correct then -- the diff was purely local. `merge_base_with_main()` fetches the merge-base *commit* ahead of time, but the blobless filter deliberately omits file contents even for explicitly fetched commits, so the merge-base blob of the linted file is never local. When `git diff` needs it, git triggers an on-demand lazy fetch in the middle of the command -- an uncontrolled network round-trip that races the 5s timeout under the network contention of lintrunner running adapters concurrently. This is the same partial-clone symptom #189419 already fixed for the sibling `git cat-file` probe in `merge_base_with_main()`, which was simply never applied to the `git diff`/`git show` paths. #189419 established the design: keep a short timeout as a fast "is it local?" probe and, on absence, fall back to an explicit, controlled `git fetch`. #189444 tried to instead bump the probe timeout to wait the lazy fetch out; #189946 reverted that, on the grounds that a timeout is the signal that the object is not present, not something to wait out. So bumping the diff timeout (or wrapping the diff in the retrying fetch helper to wait it out) would repeat the already-reverted mistake. Fix: apply #189419's design to the missing blob. `ensure_diff_blob_local()` resolves the blob OID offline (trees are present under blob:none) and, only if it is missing locally, fetches that single object through the existing retrying network helper; the diff/show then runs entirely from local objects with a short, honest timeout. `GIT_NO_LAZY_FETCH=1` guards the resolution and presence checks so they cannot themselves trigger a fetch -- a deterministic improvement over the cat-file probe's timeout race. In a full clone the blob is already present and this is a no-op with no network access. The generated-shims linter's prior 60s `git show` workaround is replaced by the same prefetch + 5s timeout. Test Plan: Verified locally in a full clone that the helper is a no-op and the git command stays local and fast: ``` python tools/linter/adapters/stable_shim_version_linter.py \ torch/csrc/inductor/aoti_torch/c/shim.h ``` End-to-end validation on a blobless partial clone still needs to run (the sandbox has no network); it must confirm the single-blob `git fetch --no-write-fetch-head origin <oid>` succeeds against GitHub's promisor endpoint. If the explicit single-object fetch is rejected there, the fallback is to trigger git's native lazy fetch through the same retry wrapper (e.g. `git cat-file -p <oid>`). Authored-with: Claude (AI assistant) Pull Request resolved: #191228 Approved by: https://github.com/albanD, https://github.com/Skylion007, https://github.com/janeyx99
…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
…torch#189946) pytorch#189444 bumped the git cat-file timeout in merge_base_with_main() from 5s to 60s. That defeats the design introduced in pytorch#189419, which deliberately keeps a short 5s timeout and catches subprocess.TimeoutExpired to fall back to the slower git fetch: a timeout is the signal that the object is not present in the partial clone, not something to wait out. Bumping to 60s just makes every cold call block and masks that condition. Restore the 5s timeout so the graceful fallback triggers promptly as intended. Test Plan: lintrunner on _stable_shim_utils.py passes. The STABLE_SHIM_VERSION / GENERATED_SHIMS_VERSION linters continue to resolve the merge base via the try/except fallback on partial-clone CI checkouts. Authored with Claude. Pull Request resolved: pytorch#189946 Approved by: https://github.com/janeyx99
…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
…torch#189946) pytorch#189444 bumped the git cat-file timeout in merge_base_with_main() from 5s to 60s. That defeats the design introduced in pytorch#189419, which deliberately keeps a short 5s timeout and catches subprocess.TimeoutExpired to fall back to the slower git fetch: a timeout is the signal that the object is not present in the partial clone, not something to wait out. Bumping to 60s just makes every cold call block and masks that condition. Restore the 5s timeout so the graceful fallback triggers promptly as intended. Test Plan: lintrunner on _stable_shim_utils.py passes. The STABLE_SHIM_VERSION / GENERATED_SHIMS_VERSION linters continue to resolve the merge base via the try/except fallback on partial-clone CI checkouts. Authored with Claude. Pull Request resolved: pytorch#189946 Approved by: https://github.com/janeyx99
…y fetch (pytorch#191228) The STABLE_SHIM_VERSION linter intermittently fails in CI with `subprocess.TimeoutExpired` on `git diff <merge_base>..HEAD -- shim.h`, reported as an internal linter bug. Root cause: CI checks out a blobless partial clone (`--filter=blob:none`, added in pytorch#172544; see .github/actions/checkout-pytorch/action.yml). The 5s diff timeout predates that (added with the linter in pytorch#166995) and was correct then -- the diff was purely local. `merge_base_with_main()` fetches the merge-base *commit* ahead of time, but the blobless filter deliberately omits file contents even for explicitly fetched commits, so the merge-base blob of the linted file is never local. When `git diff` needs it, git triggers an on-demand lazy fetch in the middle of the command -- an uncontrolled network round-trip that races the 5s timeout under the network contention of lintrunner running adapters concurrently. This is the same partial-clone symptom pytorch#189419 already fixed for the sibling `git cat-file` probe in `merge_base_with_main()`, which was simply never applied to the `git diff`/`git show` paths. pytorch#189419 established the design: keep a short timeout as a fast "is it local?" probe and, on absence, fall back to an explicit, controlled `git fetch`. pytorch#189444 tried to instead bump the probe timeout to wait the lazy fetch out; pytorch#189946 reverted that, on the grounds that a timeout is the signal that the object is not present, not something to wait out. So bumping the diff timeout (or wrapping the diff in the retrying fetch helper to wait it out) would repeat the already-reverted mistake. Fix: apply pytorch#189419's design to the missing blob. `ensure_diff_blob_local()` resolves the blob OID offline (trees are present under blob:none) and, only if it is missing locally, fetches that single object through the existing retrying network helper; the diff/show then runs entirely from local objects with a short, honest timeout. `GIT_NO_LAZY_FETCH=1` guards the resolution and presence checks so they cannot themselves trigger a fetch -- a deterministic improvement over the cat-file probe's timeout race. In a full clone the blob is already present and this is a no-op with no network access. The generated-shims linter's prior 60s `git show` workaround is replaced by the same prefetch + 5s timeout. Test Plan: Verified locally in a full clone that the helper is a no-op and the git command stays local and fast: ``` python tools/linter/adapters/stable_shim_version_linter.py \ torch/csrc/inductor/aoti_torch/c/shim.h ``` End-to-end validation on a blobless partial clone still needs to run (the sandbox has no network); it must confirm the single-blob `git fetch --no-write-fetch-head origin <oid>` succeeds against GitHub's promisor endpoint. If the explicit single-object fetch is rejected there, the fallback is to trigger git's native lazy fetch through the same retry wrapper (e.g. `git cat-file -p <oid>`). Authored-with: Claude (AI assistant) Pull Request resolved: pytorch#191228 Approved by: https://github.com/albanD, https://github.com/Skylion007, https://github.com/janeyx99
…y fetch (pytorch#191228) The STABLE_SHIM_VERSION linter intermittently fails in CI with `subprocess.TimeoutExpired` on `git diff <merge_base>..HEAD -- shim.h`, reported as an internal linter bug. Root cause: CI checks out a blobless partial clone (`--filter=blob:none`, added in pytorch#172544; see .github/actions/checkout-pytorch/action.yml). The 5s diff timeout predates that (added with the linter in pytorch#166995) and was correct then -- the diff was purely local. `merge_base_with_main()` fetches the merge-base *commit* ahead of time, but the blobless filter deliberately omits file contents even for explicitly fetched commits, so the merge-base blob of the linted file is never local. When `git diff` needs it, git triggers an on-demand lazy fetch in the middle of the command -- an uncontrolled network round-trip that races the 5s timeout under the network contention of lintrunner running adapters concurrently. This is the same partial-clone symptom pytorch#189419 already fixed for the sibling `git cat-file` probe in `merge_base_with_main()`, which was simply never applied to the `git diff`/`git show` paths. pytorch#189419 established the design: keep a short timeout as a fast "is it local?" probe and, on absence, fall back to an explicit, controlled `git fetch`. pytorch#189444 tried to instead bump the probe timeout to wait the lazy fetch out; pytorch#189946 reverted that, on the grounds that a timeout is the signal that the object is not present, not something to wait out. So bumping the diff timeout (or wrapping the diff in the retrying fetch helper to wait it out) would repeat the already-reverted mistake. Fix: apply pytorch#189419's design to the missing blob. `ensure_diff_blob_local()` resolves the blob OID offline (trees are present under blob:none) and, only if it is missing locally, fetches that single object through the existing retrying network helper; the diff/show then runs entirely from local objects with a short, honest timeout. `GIT_NO_LAZY_FETCH=1` guards the resolution and presence checks so they cannot themselves trigger a fetch -- a deterministic improvement over the cat-file probe's timeout race. In a full clone the blob is already present and this is a no-op with no network access. The generated-shims linter's prior 60s `git show` workaround is replaced by the same prefetch + 5s timeout. Test Plan: Verified locally in a full clone that the helper is a no-op and the git command stays local and fast: ``` python tools/linter/adapters/stable_shim_version_linter.py \ torch/csrc/inductor/aoti_torch/c/shim.h ``` End-to-end validation on a blobless partial clone still needs to run (the sandbox has no network); it must confirm the single-blob `git fetch --no-write-fetch-head origin <oid>` succeeds against GitHub's promisor endpoint. If the explicit single-object fetch is rejected there, the fallback is to trigger git's native lazy fetch through the same retry wrapper (e.g. `git cat-file -p <oid>`). Authored-with: Claude (AI assistant) Pull Request resolved: pytorch#191228 Approved by: https://github.com/albanD, https://github.com/Skylion007, https://github.com/janeyx99
Stack from ghstack (oldest at bottom):
The STABLE_SHIM_VERSION and GENERATED_SHIMS_VERSION linters call
merge_base_with_main(), which runs
git cat-file -e <main_sha>^{commit}with a5s 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-allon unrelated PRs (e.g. #189292). It isgreen 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.pypasses; the shim linters continue to resolve the merge-base normally.
Authored with Claude.