Skip to content

ci: gate example and GPU tests on changes to their own runner and cache action#1891

Open
arham766 wants to merge 1 commit into
NVIDIA:mainfrom
arham766:ci-example-gate-runner
Open

ci: gate example and GPU tests on changes to their own runner and cache action#1891
arham766 wants to merge 1 commit into
NVIDIA:mainfrom
arham766:ci-example-gate-runner

Conversation

@arham766

@arham766 arham766 commented Jul 2, 2026

Copy link
Copy Markdown

What does this PR do?

Type of change: Bug fix

Adds .github/workflows/_example_tests_runner.yml and .github/actions/cache-extensions/** to the example_tests pr-gate files: list, and cache-extensions/** to the gpu_tests gate. Every example-test job executes through the reusable runner (which is taken from the PR's ref), so a PR changing only the runner previously merged with all example-test jobs skipped — observed on PR #1651, whose example-tests run shows pr-gate success with torch/trtllm-pr/megatron/onnx all skipped. Gating on the workflow's own machinery matches the existing intent (the gate already lists example_tests.yml itself).

Usage

N/A — CI workflow configuration change.

Testing

YAML validated; the change is additive to the gate lists only. The observed-failure evidence is PR #1651's run history (linked in #1890).

Before your PR is "Ready for review"

  • Is this change backward compatible?: ✅
  • If you copied code from any other sources or added a new PIP dependency, did you follow guidance in CONTRIBUTING.md: N/A
  • Did you write any new necessary tests?: N/A (workflow config; validated as described above)
  • Did you update Changelog?: N/A (CI-only change)
  • Did you get Claude approval on this PR?: N/A (external contributor; cannot trigger /claude review)

Additional Information

Part of #1890 (item 1).

Summary by CodeRabbit

  • Chores
    • Expanded automated test-triggering rules to cover additional workflow and action changes.
    • Updated gating for example and GPU test runs so more relevant changes are validated automatically.

…he action

The example_tests pr-gate does not list _example_tests_runner.yml (the
reusable workflow that runs every example-test job) or the
cache-extensions composite action it uses, so a PR changing only those
files skips the very jobs it rewires and merges green (e.g. PR NVIDIA#1651:
pr-gate passed, torch/trtllm-pr/megatron/onnx all skipped). Same for
cache-extensions in gpu_tests.yml, which uses the action in its runner
step. Reusable workflows run from the PR ref, so gating on them is the
intended self-testing behavior already applied to example_tests.yml
itself.

Signed-off-by: arham766 <arhamislam766@yahoo.com>
@arham766 arham766 requested a review from a team as a code owner July 2, 2026 21:27
@arham766 arham766 requested a review from kevalmorabia97 July 2, 2026 21:27
@copy-pr-bot

copy-pr-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3aa16f89-9426-40dd-90f1-ae6a954ad50d

📥 Commits

Reviewing files that changed from the base of the PR and between 4b9225b and 380417d.

📒 Files selected for processing (2)
  • .github/workflows/example_tests.yml
  • .github/workflows/gpu_tests.yml

📝 Walkthrough

Walkthrough

This PR extends the pr-gate workflow's file path triggers in two GitHub Actions workflow files, adding .github/actions/cache-extensions/** to both, and additionally .github/workflows/_example_tests_runner.yml to the example tests workflow.

Changes

pr-gate File Path Updates

Layer / File(s) Summary
Extend pr-gate trigger paths
.github/workflows/example_tests.yml, .github/workflows/gpu_tests.yml
Added .github/actions/cache-extensions/** to both workflows' pr-gate with.files list, and also added .github/workflows/_example_tests_runner.yml to the example tests workflow, broadening the paths that trigger these test jobs.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the CI gating changes for example and GPU tests and mentions the runner and cache action paths added.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Security Anti-Patterns ✅ Passed No banned security patterns were added in modelopt/examples Python changes; trust_remote_code stays caller-configurable, and the new requirements are permissive.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

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