The manual pipeline now runs on a py3.11 image. Three hardcoded
python3.10 references in the shared workflows would break or silently
degrade under it:
- _build.yml: ci/build.sh --python=3.10 fails outright (no python3.10
binary in the py3.11 image); add a pyver step deriving the version
from the image's python3, also used for the upstream job-name labels.
- _test-collect.yml / _test-category.yml: LD_LIBRARY_PATH pointed at
/opt/conda/envs/py_3.10/lib (libstdc++ CXXABI_1.3.15 fix, 1b25c5f780),
which silently misses on py3.11 images; derive it from sys.prefix.
py3.10 callers (receive-trigger, coverage) resolve to the exact same
values as before, so their behavior is unchanged.
Auto-blocked from https://github.com/Ascend/pytorch/actions/runs/37971009158
torch_npu@4f8b463cff69, pytorch@db96b863ba
- new entries: 3 (status: {"failed": 3}); already present: 0
- blocked via pr-skip-list-blocker on user request, no root-cause analysis
- remove these entries when the underlying failures are fixed
note: added 3 test_foreach.py entries auto-blocked from run 37971009158 (PR 200375, torch_npu@4f8b463cff69): failed/error/timeout cases blocked by user request without root-cause analysis; remove when fixed
channels_last/channels_last_3d is a torch_npu adaptation-layer limitation
(TensorFactories.cpp hardcodes Contiguous-only), not a dtype-support gap,
so it belongs in disabled_testcases.json instead. category set to
"cann not supported"; reason/issue (5318) carried over unchanged.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Merged-batch workers share one pytest process across cases. When an
aclnn operator fails fatally (e.g. MirrorPad/TopKV2 tiling failure on
boundary inputs), the NPU task queue enters CAN_EXIT and all subsequent
operators become silent no-ops returning garbage — the poisoning case
itself often still reports PASSED.
Add a pytest plugin that probes process health (torch.ones(4).sum()
verifiable computation) around every case:
- teardown probe failure -> the case that just finished is recorded as
suspected poisoner (nodeid printed to batch log + JSONL marker in
report_dir)
- setup probe failure -> recorded as victim (poisoned before it started)
Diagnostics only, never aborts the batch. Mirrors the proven probe from
run_npu_test_shard.py::_check_npu_poisoned. Disable with NPU_CANARY=0.
The 236 (run 37776908513) and 114 (run 37867666937) removed cases were
victims of in-process NPU poisoning (MirrorPad/TopKV2 tiling failures),
not deterministic failures. Restore them for re-validation.
Manual build-and-test run 37867666937 executed 67,098 of the 67,100
listed cases: 66,984 passed, 114 failed. Remove the 114 failing cases
from the passed-case list:
- test_ops.py: 113 failed (vector core / aicore exceptions 507035/507015
in the 09:45-09:49 device error window, out-of-bounds index reads,
numeric mismatches — see issue #5303 for the root-cause investigation)
- test_modules.py: 1 failed (GRU save/load tolerance 7.2e-05 vs 1e-05)
Most of these pass under the low-execution-density nightly runner
(110/114), pointing at merged-batch load-induced device exceptions
tracked in issue #5303; they can be re-added once the root cause is
fixed. List shrinks 67,100 -> 66,986.
Auto-blocked from https://github.com/Ascend/pytorch/actions/runs/37867422877
torch_npu@0e0d5f3b149e, pytorch@dfa47f7cd1
- new entries: 6 (status: {"failed": 6}); already present: 0
- blocked via pr-skip-list-blocker on user request, no root-cause analysis
- remove these entries when the underlying failures are fixed
note: added 6 test_meta.py entries auto-blocked from run 37867422877 (PR 194890, torch_npu@0e0d5f3b149e): failed/error/timeout cases blocked by user request without root-cause analysis; remove when fixed
Manual build-and-test run 37776908513 executed 67,334 of the 67,336
listed cases: 67,098 passed, 136 failed, 100 error. Remove the 236
non-passing cases from the passed-case list so they stop being
collected:
- test_ops.py: 136 failed (RunOpApiV2 NPU function errors, ACL stream
synchronize 507035, numeric mismatches, LocalScalarDense failures)
- test_foreach.py: 100 error — one batch aborted by a SIGSEGV crash
(merged-batch rule marks the whole 100-case batch as error); at most
one of these is the actual crasher, the rest can be re-added after
the root cause is fixed
List shrinks 67,336 -> 67,100. Pushing this file triggers a manual
run that validates the updated case set.
Manual build-and-test now collects via nightly-style full scan:
nightly_test_categories.yml drives 3-pass classification (files > paths >
others) and the per-category workers/runner labels flow into the shard
matrix automatically. Collected cases are intersected with
privateuse1_npu_passed_testcases.json (67,336 historically passed
nodeids) via the existing collect_all_cases.py --case-whitelist
mechanism; the skip list is dropped — a failing case is handled by
removing its nodeid from the passed list.
Shard thresholds become configurable inputs (regular 100000 /
distributed 1000 defaults preserve PR-flow behavior); manual passes the
nightly values 50000/3000. The push trigger path filter now watches the
passed-case list instead of the PR skip list, matching what this
pipeline actually consumes.
PR-gated, nightly and coverage flows are untouched: they pass none of
the new inputs, and collect_all_cases.py / run_npu_test_shard.py /
_test-category.yml / _test-report.yml are unchanged.
Add run_npu_test_shard_batch.py: one pytest.main() call per same-file
batch (max 100 cases) with a batch-level junit XML, so module collection
(test_meta.py instantiates 34k+ items) happens once per batch instead of
once per case (~10x faster on collection-bound shards).
Simplified on purpose for the whitelisted manual pipeline: no NPU
poisoner checks, no worker restarts, no per-case XML recovery. A crashed
or hung batch (idle watchdog: no output for timeout+120s) marks all its
cases as error; per-case pytest-timeout (signal method) marks a single
slow case failed and keeps the rest of the batch.
Wire it through _test.yml/_test-category.yml with a batch_execution
input (default false) so PR-gated and nightly flows keep the per-case
runner untouched; pytorch_ci_trigger_manual.yml opts in with true.
Add .github/config/pr_skip_list.jsonl to the push path filter of the
manual pipeline trigger. Skip-list changes alter case collection and
batch boundaries, so each update (e.g. newly blocked poisoner entries)
should be validated by a full build+test run instead of waiting for the
next PR-triggered run. Other routine ci-test pushes still never start
the multi-hour pipeline.
Root-cause block: these 8 cases PASSED but their async device-side kernel
failures (TopK f64 AICPU errcode 21008, STFT c128 AICPU, MirrorPad tiling
errno 561103, PadV3 edge AICore) poison the worker context; the error
surfaces in the next case of the same 100-case batch (first-unreported
rule), which then gets wrongly failure-blocked by the auto-blocker.
Blocking victims (update_note_21) does not prevent recurrence - it only
shifts batch boundaries and reassigns the victim each run (proven: run
37504481922's 10 victims were blocked yet run 37713861976 produced 8 new
victims from these same poisoners). Blocking the poisoners removes the
poisoning events themselves.
Residual risk: build drift may expose sibling dtype variants as new
poisoners - add incrementally if new pad/topk/stft-family victims appear.
Remove these 8 poisoners together with the update_note_21 victims after
CANN/torch_npu fix the 4 kernel defects. Systemic fix: harness-side
per-case synchronize would attribute async failures to the submitting
case so the auto-blocker blocks poisoners, not victims.
Push events work from any branch, unlike workflow_dispatch which needs
the file on the default branch. The trigger fires only when this
workflow file itself changes on ci-test, so routine skip-list pushes
never start multi-hour runs; inputs fallbacks cover the push path where
inputs.* are empty (pytorch@main + torch-npu@master).
Manual workflow_dispatch entry that builds the latest pytorch/pytorch@main
and Ascend/pytorch@master and runs the same build/test flow as
receive-trigger.yml (reusable workflows pinned to @ci-test), with
report_to_upstream=false so every cross-repo-ci-relay-callback step is
skipped. Dedicated concurrency group keeps it fully isolated from the
PR-triggered pipeline; no existing file is modified.
Auto-blocked from https://github.com/Ascend/pytorch/actions/runs/37712698624
torch_npu@7d81b286b63f, pytorch@302f29e957
- new entries: 8 (status: {"failed": 8}); already present: 0
- blocked via pr-skip-list-blocker on user request, no root-cause analysis
- remove these entries when the underlying failures are fixed
note: added 8 test_meta.py entries auto-blocked from run 37712698624 (PR 199688, torch_npu@7d81b286b63f): failed/error/timeout cases blocked by user request without root-cause analysis; remove when fixed
Auto-blocked from https://github.com/Ascend/pytorch/actions/runs/37504481922
torch_npu@9cd8d1f1483f, pytorch@1cde7ea6b2
- new entries: 10 (status: {"failed": 10}); already present: 0
- blocked via pr-skip-list-blocker on user request, no root-cause analysis
- remove these entries when the underlying failures are fixed
note: added 10 test_meta.py entries auto-blocked from run 37504481922 (PR 199934, torch_npu@9cd8d1f1483f): failed/error/timeout cases blocked by user request without root-cause analysis; remove when fixed
Auto-blocked from https://github.com/Ascend/pytorch/actions/runs/37496443680
torch_npu@9cd8d1f1483f, pytorch@c48952721c
- new entries: 1 (status: {"failed": 1}); already present: 10
- blocked via pr-skip-list-blocker on user request, no root-cause analysis
- remove these entries when the underlying failures are fixed
note: added 1 test_meta.py entries auto-blocked from run 37496443680 (PR 196753, torch_npu@9cd8d1f1483f): failed/error/timeout cases blocked by user request without root-cause analysis; remove when fixed
Auto-blocked from https://github.com/Ascend/pytorch/actions/runs/37493262066
torch_npu@9cd8d1f1483f, pytorch@deb2dea5c5
- new entries: 11 (status: {"failed": 11}); already present: 0
- blocked via pr-skip-list-blocker on user request, no root-cause analysis
- remove these entries when the underlying failures are fixed
note: added 11 test_meta.py entries auto-blocked from run 37493262066 (PR 199846, torch_npu@9cd8d1f1483f): failed/error/timeout cases blocked by user request without root-cause analysis; remove when fixed
Auto-blocked from https://github.com/Ascend/pytorch/actions/runs/37256415508
torch_npu@9cd8d1f1483f, pytorch@fc695b3ea1
- new entries: 1 (status: {"error": 1}); already present: 52
- blocked via pr-skip-list-blocker on user request, no root-cause analysis
- remove these entries when the underlying failures are fixed
note: added 1 test_foreach.py entries auto-blocked from run 37256415508 (PR 199673, torch_npu@9cd8d1f1483f): failed/error/timeout cases blocked by user request without root-cause analysis; remove when fixed
Auto-blocked from https://github.com/Ascend/pytorch/actions/runs/37410862959
torch_npu@9cd8d1f1483f, pytorch@4da75ea4bf
- new entries: 12 (status: {"failed": 12}); already present: 0
- blocked via pr-skip-list-blocker on user request, no root-cause analysis
- remove these entries when the underlying failures are fixed
note: added 12 test_meta.py entries auto-blocked from run 37410862959 (PR 196058, torch_npu@9cd8d1f1483f): failed/error/timeout cases blocked by user request without root-cause analysis; remove when fixed
Auto-blocked from https://github.com/Ascend/pytorch/actions/runs/37404721827
torch_npu@9cd8d1f1483f, pytorch@4ea41f67cf
- new entries: 13 (status: {"failed": 13}); already present: 0
- blocked via pr-skip-list-blocker on user request, no root-cause analysis
- remove these entries when the underlying failures are fixed
note: added 13 test_meta.py entries auto-blocked from run 37404721827 (PR 199728, torch_npu@9cd8d1f1483f): failed/error/timeout cases blocked by user request without root-cause analysis; remove when fixed
Auto-blocked from https://github.com/Ascend/pytorch/actions/runs/37390850581
torch_npu@9cd8d1f1483f, pytorch@2dc676a67d
- new entries: 16 (status: {"failed": 16}); already present: 0
- blocked via pr-skip-list-blocker on user request, no root-cause analysis
- remove these entries when the underlying failures are fixed
note: added 16 test_meta.py entries auto-blocked from run 37390850581 (PR 196349, torch_npu@9cd8d1f1483f): failed/error/timeout cases blocked by user request without root-cause analysis; remove when fixed
Auto-blocked from https://github.com/Ascend/pytorch/actions/runs/37346805032
torch_npu@9cd8d1f1483f, pytorch@e4df54e4c1
- new entries: 24 (status: {"failed": 24}); already present: 0
- blocked via pr-skip-list-blocker on user request, no root-cause analysis
- remove these entries when the underlying failures are fixed
note: added 24 test_meta.py entries auto-blocked from run 37346805032 (PR 199598, torch_npu@9cd8d1f1483f): failed/error/timeout cases blocked by user request without root-cause analysis; remove when fixed
Source run: https://github.com/Ascend/pytorch/actions/runs/37256415508 (PR 199673,
torch_npu@9cd8d1f148, pytorch@fc695b3ea1, 2026-10-05)
Residual flaky variants of the run-37240999067 exposure (commit fad1f279d5):
the 5954-entry skip list took effect in this run (collected total 56974 -> 51020).
These 52 are random-draw dtype variants of the same NPU-gap families
(put/pad_reflect/pad_replicate/rad2deg/stft/sub/topk/_safe_softmax), tripped by
randomized sample-input generation: aclnnRandperm (put indices), aclnnInplaceUniform,
aclnnInplaceRandom, aclnnInplaceCopy, real-impl aclnnReflectionPad2d (float64/complex64).
Regression excluded: tested PR 199673 is MPS-inductor-only (mps.py +
test_torchinductor.py); torch_npu unchanged. Variant sets flap between runs:
put showed 8/9 different variants on the 10-04 runs vs 17 today; 6 of these 52
failed in adjacent run 37240557540, 0 in target run 37240999067; same-op
dispatch variant passed while non-dispatch failed on identical sample input.
Not blocked: tensor-1 foreach_trunc invalid_grads SIGSEGV - known issue 5231
CANN-side crash family, victim cases stay unblocked per policy (update_note_10).
Source run: https://github.com/Ascend/pytorch/actions/runs/37240999067 (PR 198604,
torch_npu@9cd8d1f148, pytorch@e70172a0c8, 2026-10-04)
Error profile (all pre-existing NPU gaps, 0 timeout / 0 crash):
- 4593 'Original OpInfo is broken': real impl hits aclnn dtype gaps
(e.g. aclnnInplaceAcos DT_COMPLEX128 not in support list)
- 228 index_fill_ NPU function error (aclnnInplaceIndexFill DT_DOUBLE)
- 348 UInt16/UInt32/UInt64 not supported
- 246 svd_npu only supported Float
- 122 meta disagrees with real impl (dtype/shape)
- 66 Unexpected success (CUDA-centric meta expected-failure lists)
Root cause: upstream pytorch PR #192749 (dingsheng758, commit a240a14bad, still
open) added hw_classification=GENERIC to test/test_meta.py, newly exposing ~40k
TestMetaPRIVATEUSE1 cases in PR CI collection starting run 37235705748
(2026-10-04 21:20). Same exposure pattern as the 804 test_foreach.py entries
added for upstream PR #195452.
Regression excluded: adjacent valid run 37240557540 (PR 199448, same torch_npu
9cd8d1f148) failed 5955 cases with 5946/5954 nodeid overlap; only ~17
put/stft/quantile dtype variants flaky between runs. Tested PR 198604 and
torch_npu are not the cause.
Remove when NPU closes these dtype/op gaps or PR #192749 changes scope.
- read coverage/pytorch@latest and coverage/covstub/torch directly instead of
probing legacy layouts, and fail loudly when they are missing
- pass coverage-dir so a missing map is rebuilt from the coverage dir
- warn when the release carries no test_case_map.json
- drop the unused id-token permission from the caller
- drop the flatten step: v1.0.2 scans the nested test tree and yields real
test paths, while the encoded covdata-set names were never decoded
- gate the map build on the promoted coverage.xml and on per-test data
- remove the legacy OBS layout cleanup and the stale comments
- read latest/release.tar.gz instead of the pointer.json + releases/<run_id> pair
- fail on a non-200 labels response instead of treating it as not-merged
- bump the selector to lb-actions/precision-test@v1.0.2 (repo: pytorch) and
drop the local flatten / map-build steps that the action now covers
- report a failed selector separately from zero recommendations
- drop pointer.json and releases/<run_id>/ so one atomic PUT at latest/
always exposes a complete release and removes the deletion race
- backfill the merge job from the previous latest/release.tar.gz
- bump the map builder to lb-actions/precision-test@v1.0.2 (repo: pytorch)
Pure rename of nightly_all.yml to nightly-a3.yml; the workflow
content is unchanged. The push-trigger paths entry is updated to the
new filename so the self-trigger on ci-test keeps working (it still
referenced the old nightly_all.yml path).
The test_foreach worker SIGSEGV forensics work is done: the harness
(sigsegv_stress.py) and its push-triggered repro workflow served the
root-cause investigation of issue 5231 and are no longer needed.
run_npu_test_shard.py is kept untouched — it is shared by the real CI
test workflows, and the harness only invoked its generic --worker
mode. The test_foreach SIGSEGV entries in the PR skip list also stay:
they protect PR CI from the known crashes.
The obsutil download from obs-community.obs.cn-north-1 intermittently
fails on GitHub-hosted runners with "Temporary failure in name
resolution": cross-border DNS lookups of the cn-north-1 domain time
out during CN peak hours (~1% of runs, clustered in bursts), and
wget --tries does not retry DNS failures, so one bad lookup fails the
whole pipeline.
Cache the installed obsutil tree in the Actions cache service, which
is served near the GitHub-hosted runners, so the common path never
resolves the cn-north-1 domain at all. The key carries the current
quarter, so the cached "current" obsutil refreshes at the cost of one
cross-border download per quarter. On cache hit the download step is
skipped; the download path clears the install dir first so a stale
restored tree cannot break the symlink glob.
Applied to both _build.yml (PR CI) and _nightly_build.yml.
clamp_min/clamp_max/maximum/minimum invalid_grads variants dispatch to
aclnnForeachMaximumList/aclnnForeachMinimumList (op-plugin delegates
_foreach_clamp_min -> _foreach_maximum), correlated with batch-worker
SIGSEGV. E1 ablation proved removing clamp_min eliminates valgrind errors
and crashes; the other 3 share the same aclnn endpoints but were outside
the E1 window. All 4 blocked together because collection-time filtering
shifts batch boundaries. Remove after CANN-side fix.
- carry the picked case list in coverage_test_whitelist.yml (case_whitelist, 67336 nodeids)
next to the file-to-category mapping
- collect_all_cases.py: add --case-whitelist to restrict the collected files and nodeids
- add the coverage-only _pytorch_coverage_collect.yml and use it from _pytorch_coverage.yml,
leaving the shared _test-collect.yml untouched
- lower the regular shard threshold to 10000 for more parallel coverage jobs
- rebuild the job summary from the artifact and move it after the publish step