Skip to content

[CI] FFM Triton: fall back to main when the suite source ref is gone - #7930

Merged
gyohuangxin merged 1 commit into
mainfrom
fix/ffm-triton-test-ref-fallback
Nov 13, 2026
Merged

gyohuangxin merged 1 commit into
mainfrom
fix/ffm-triton-test-ref-fallback

Conversation

@zufayu

@zufayu zufayu commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

What

Load reduced FFM Triton test suite fetched refs/heads/${FFM_TEST_SOURCE_REF} with no fallback. The dedicated branch shared/reduced_tests_for_FFM_CI was 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:

  • Missing ref degrades which suite runs, never whether one runs
  • Selection logged with the resolved commit (provenance)
  • Existing empty-suite guard unchanged
  • workflow_dispatch test_ref input keeps the same default and now documents the fallback
  • If the dedicated branch is ever restored, it is picked back up automatically (first-match wins)

PR 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-triton died 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_load on the workflow → OK; actionlint -oneline → rc=0 clean
  • End-to-end simulation of the new step script against the real origin (local clone, same env vars): missing ref warns once → falls back to main → 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:

  • Live run of the actual workflow (needs the ci:gfx1250-ffm-triton label 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_tests from main (heavier). Evidence: simulation shows 164 files load, and the echo line FFM 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 runner timeout-minutes: 7200 still bounds the full suite.

Changed op tests

None

🤖 Generated with Claude Code

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]>
@zufayu
zufayu requested a review from a team November 13, 2026 09:39
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter standard tests on MI35X
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:mi300x Run Aiter standard tests on MI300X in PRs; main branch always runs them
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the Radeon R9700 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 7930 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

Reviews:
A reviewer is usually assigned within one working day after the PR is ready for review (see Code Review Process). If nobody has responded for about a week, mention the area contact listed in CONTACTS.md. Want to help review? See REVIEWERS.md.

@github-actions github-actions Bot added the CI label Nov 13, 2026
@aiter-bot

Copy link
Copy Markdown

WAITING ON AUTHOR

PR Self-Review

Revision 21b271c60ce2 · mode shadow

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

  1. What behavior does this PR change, and why is the existing behavior insufficient?
  2. What did you validate, and what remains unverified? Include commands, hardware/configuration and results.
  3. What permissions and untrusted-input boundary does this CI change have, and can fork PR code or text reach a privileged execution path?
  4. For every changed op_tests/ file, what behavior does it cover and why is it not redundant? Write None if no op test changed.

Edit the PR Self-Review section in the PR description. Include the current revision SHA; this comment refreshes automatically.

Missing or invalid answers

  • FAIL — Reviewed revision must contain at least the first 7 characters of the current head SHA

Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.

@zufayu
zufayu requested a review from gyohuangxin November 13, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants