Skip to content

[CI] ci: cache CK submodule checkout - #7385

Merged
zufayu merged 4 commits into
mainfrom
ci/cache-ck-submodule
Nov 9, 2026
Merged

zufayu merged 4 commits into
mainfrom
ci/cache-ck-submodule

Conversation

@gyohuangxin

Copy link
Copy Markdown
Member

Summary

  • add a CK submodule cache keyed by the pinned composable_kernel submodule SHA
  • reuse the restored CK checkout in standard and multi-GPU test jobs before falling back to submodule fetch
  • keep scheduled runs on the existing remote develop CK update path

Validation

  • parsed .github/workflows/aiter-test.yaml with PyYAML
  • ran git diff --check

@gyohuangxin
gyohuangxin requested review from a team and a balanced review from Copilot November 3, 2026 08:57
@github-actions github-actions Bot changed the title ci: cache CK submodule checkout [CI] ci: cache CK submodule checkout Nov 3, 2026
@github-actions github-actions Bot added the CI label Nov 3, 2026
@aiter-bot

aiter-bot commented Nov 3, 2026 •

Copy link
Copy Markdown

NOT READY FOR HUMAN REVIEW

PR Self-Review

Revision 8882e5c1b83f · 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 — missing ### Reviewed revision in the PR description
  • FAIL — missing ### Behavior and intent in the PR description
  • FAIL — missing ### Validation and unverified scope in the PR description
  • FAIL — missing ### PR-specific question in the PR description
  • FAIL — missing ### Changed op tests in the PR description
  • FAIL — Reviewed revision must contain at least the first 7 characters of the current head SHA
  • FAIL — Behavior and intent has no substantive answer
  • FAIL — Validation and unverified scope has no substantive answer
  • FAIL — PR-specific question has no substantive answer

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

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

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

Extended tests (opt-in via labels):

Label Tests
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 gfx1201 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 7385 --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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Cache restores can leave stale CK sources in reused checkouts, causing JIT builds to use files outside the pinned commit; cleanup is needed before both restore paths.

1 open issue
What changed in this PR

This PR caches the composable_kernel (CK) submodule checkout to reduce repeated fetches in Aiter’s standard and multi-GPU CI test jobs.

Changes:

  • Restore and save CK caches keyed by operating system and the pinned submodule SHA.
  • Reuse validated cached checkouts, falling back to fetching CK when needed.
  • Preserve scheduled runs’ remote develop updates and include CK restore failures in existing network diagnostics.
File Description
.github/​workflows/​aiter-test.yaml Adds CK caching and fallback logic to standard and multi-GPU test jobs.

Review effort: Balanced

Comment thread .github/workflows/aiter-test.yaml Resolved
Copilot AI balanced review requested due to automatic review settings November 3, 2026 09:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Only YAML and whitespace checks are reported; the cache-hit, cache-miss, and scheduled paths still need validation on standard and multi-GPU GitHub Actions runners.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@zufayu
zufayu self-requested a review November 4, 2026 01:31
@zufayu zufayu self-assigned this Nov 4, 2026
@zufayu

zufayu commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Two things worth addressing before this lands — the overall design is sound (exact SHA-pinned key, validation before trusting the restore, continue-on-error fallback to the old behavior):

1. A corrupt cache entry never heals. If the restore hits but validation fails (cat-file -e rejects the SHA — partial/corrupt cache), the sync step falls back to a full fetch, but the save step is skipped because its condition is cache-hit != 'true'. So that SHA's bad cache entry stays forever: every subsequent run restores it, fails validation, and pays the full fetch again, until LRU evicts it. Correctness is preserved (the validation catches it) — it's just a permanent slow path. Easy fix: have the sync step write an output in the fetch branch (e.g. echo "fetched=true" >> "$GITHUB_OUTPUT") and gate the save on that instead of cache-hit.

2. The new path has never executed in CI. The Aiter Test run on this PR is action_required (workflow change needs approval), so everything green so far is actionlint + style checks — the save→restore→validate round trip has run zero times. Before merging it'd be worth approving one run and checking the actual behavior: the "Using restored CK submodule cache" / "CK submodule cache miss; fetching" branches, and the saved cache entry size (the cache carries both the worktree and .git/modules, one entry per SHA — worth confirming the footprint against the 10GB repo cache budget).

Copilot AI balanced review requested due to automatic review settings November 4, 2026 08:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The cache-reuse checks can accept a partially restored checkout and skip the fetch fallback, leaving required CK headers missing in both affected workflow branches.

1 open issue

Review effort: Balanced

Comment thread .github/workflows/aiter-test.yaml Resolved
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 4, 2026 12:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The fast path lacks cache-restore outcome and nonempty cache-hit guards, allowing a partially restored CK checkout to bypass the clean-fetch fallback and reach multi-GPU tests.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@zufayu
zufayu merged commit beff4ee into main Nov 9, 2026
@zufayu
zufayu deleted the ci/cache-ck-submodule branch November 9, 2026 08:25
ruanjm pushed a commit that referenced this pull request Nov 10, 2026
* ci: cache CK submodule checkout

* ci: clear CK checkout before cache restore

* ci: let CK cache heal after invalid restores

* Enhance submodule sync condition in workflow

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

---------

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
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.

4 participants