Repository navigation
[CI] FFM Triton: fall back to main when the suite source ref is gone - #7930
Conversation
The Load reduced FFM Triton test suite step fetched
refs/heads/${FFM_TEST_SOURCE_REF} with no fallback. The dedicated branch
shared/reduced_tests_for_FFM_CI was deleted, so every shard died before
GPU tests with "couldnt find remote ref ..." — the workflow has never
run green since.
Resolve the suite source with an explicit chain — requested/dedicated
ref, then main — so a deleted ref degrades WHICH suite runs, not WHETHER
one runs. Selection is logged with resolved commit for provenance;
the empty-suite guard is unchanged.
Simulated against origin today: the missing ref warns once and falls
back to main, loading 164 triton test files; the 5 shards then reach
GPU tests. actionlint clean.
Co-Authored-By: Claude Code <[email protected]>
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
WAITING ON AUTHORPR Self-ReviewRevision Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision. Questions to answer in the PR description
Edit the Missing or invalid answers
Shadow mode reports what would block but keeps the status successful. Set |
What
Load reduced FFM Triton test suitefetchedrefs/heads/${FFM_TEST_SOURCE_REF}with no fallback. The dedicated branchshared/reduced_tests_for_FFM_CIwas deleted from origin, so every labeled FFM run dies before GPU tests (fatal: couldn't find remote ref, exit 128, 5/5 shards, ~17s) — this workflow has never run green since it landed.Fix
Resolve the suite source with an explicit fallback chain — the requested/dedicated ref first, then
main:workflow_dispatch test_refinput keeps the same default and now documents the fallbackPR Self-Review
Reviewed revision
21b271c (fix/ffm-triton-test-ref-fallback, head at the time of answering)
Behavior and intent
Behavior change: only the suite-source resolution step; everything downstream (docker login, image pull, sharded pytest) untouched. Existing behavior insufficient because a hard-missing external dependency made the whole workflow hard-red — 5 shards × several PRs labeled
ci:gfx1250-ffm-tritondied pre-GPU with no recovery path and no signal that the test itself was broken versus its provisioning.Validation and unverified scope
Validated:
python3 yaml.safe_loadon the workflow → OK;actionlint -oneline→ rc=0 cleanmain→Loaded 164 FFM Triton test files from main/op_tests/triton_tests→ would proceed to GPU tests. Old script path reproduced the original failure in the same harness before this change.Unverified:
ci:gfx1250-ffm-tritonlabel or a dispatch). The shard-reaches-GPU check is exactly that first green run after merge.PR-specific question
Most important boundary introduced: which tests FFM shards run is now a decision made by availability, not by intent — when the dedicated reduced branch is absent, shards run the full
op_tests/triton_testsfrom main (heavier). Evidence: simulation shows 164 files load, and the echo lineFFM test source: <ref> @ <commit>makes any silent suite swap observable in the log. Residual risk is bounded: if the reduced suite mattered for time budget, the runnertimeout-minutes: 7200still bounds the full suite.Changed op tests
None
🤖 Generated with Claude Code