Skip to content

[Doc] Note CI test allowlist and codegen-cache gotcha in CLAUDE.md#230

Merged
YWHyuk merged 1 commit into
developfrom
docs/ci-test-allowlist
May 22, 2026
Merged

[Doc] Note CI test allowlist and codegen-cache gotcha in CLAUDE.md#230
YWHyuk merged 1 commit into
developfrom
docs/ci-test-allowlist

Conversation

@YWHyuk
Copy link
Copy Markdown
Collaborator

@YWHyuk YWHyuk commented May 22, 2026

Summary

  • Running tests section: clarifies that .github/workflows/pytorchsim_test.yml is an explicit allowlist of tests/*.py files (~40 jobs, one Docker container per test), not a glob-discovered set. Calls out that tests/test_gqa.py, tests/test_gqa_decode.py, and tests/test_eager.py exist in the repo but are not in CI, so local validation is the only safety net for them.
  • Gotchas section: adds a bullet on the codegen cache. After editing anything that affects emitted MLIR or wrapper code, the next torch.compile will replay the previously cached compile from $TORCHSIM_DUMP_PATH/<hash>/ (and the Inductor compile cache at $TORCHSIM_DUMP_PATH/.torchinductor, pinned there by extension_config.py:139). Wipe $TORCHSIM_DUMP_PATH between iterations or the fix will silently not take.

Motivation: both are gotchas that bit me during recent work; documenting once so the next contributor does not re-discover them.

🤖 Generated with Claude Code

The Running tests section now states that .github/workflows/pytorchsim_test.yml
runs an explicit allowlist of tests/*.py (one Docker job per test, ~40 total),
not a glob-discovered set, and calls out that test_gqa.py, test_gqa_decode.py,
and test_eager.py exist in the repo but are not in CI.

The Gotchas section adds a bullet explaining that codegen iteration
requires wiping $TORCHSIM_DUMP_PATH between runs -- Inductor's compile
cache and the per-source-hash MLIR/wrapper dirs both live under it and
will silently replay the previous (possibly broken) compile otherwise.

This prevents two common mistakes: assuming new tests/*.py files are
automatically gated on PR, and assuming a fresh re-run will pick up a
codegen fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@YWHyuk YWHyuk force-pushed the docs/ci-test-allowlist branch from 8aa80a8 to 4ece129 Compare May 22, 2026 11:51
@YWHyuk YWHyuk changed the title [Doc] Note CI test allowlist in CLAUDE.md [Doc] Note CI test allowlist and codegen-cache gotcha in CLAUDE.md May 22, 2026
@YWHyuk YWHyuk merged commit 6144af6 into develop May 22, 2026
2 checks passed
@YWHyuk YWHyuk deleted the docs/ci-test-allowlist branch May 22, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant