Skip to content

Conversation

@zhiyuan1i
Copy link
Collaborator

@zhiyuan1i zhiyuan1i commented Jun 20, 2025

Summary by CodeRabbit

  • New Features
    • Test workflows now separate model-related tests into dedicated jobs, allowing more focused and efficient test runs.
  • Chores
    • Upgraded the version of the changed-files detection tool in all test and lint workflows.
    • Renamed test jobs for clarity across all GPU-specific workflows.
  • Refactor
    • Improved test discovery to allow selective inclusion or exclusion of model-related tests based on environment settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 20, 2025

Warning

Rate limit exceeded

@zhiyuan1i has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 9 minutes and 43 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 4e40cb7 and 8b3e727.

📒 Files selected for processing (6)
  • .github/workflows/intel-a770.yml (3 hunks)
  • .github/workflows/lint.yaml (1 hunks)
  • .github/workflows/nvidia-4090.yml (4 hunks)
  • .github/workflows/nvidia-a100.yml (4 hunks)
  • .github/workflows/nvidia-h100.yml (4 hunks)
  • scripts/find_dependent_tests.py (2 hunks)

Walkthrough

The GitHub Actions workflows for various GPU runners were updated to split tests into two jobs: one for operational tests excluding models, and another for model-specific tests. The tj-actions/changed-files action was upgraded, and the find_dependent_tests.py script now filters test files based on a new TEST_SCOPE environment variable, allowing selective test execution.

Changes

Files/Paths Change Summary
.github/workflows/intel-a770.yml, .github/workflows/lint.yaml Renamed test job to test-ops; updated tj-actions/changed-files from v46.0.3 to v46.0.5; set TEST_SCOPE where used
.github/workflows/nvidia-4090.yml, .github/workflows/nvidia-a100.yml,
.github/workflows/nvidia-h100.yml
Renamed test job to test-ops; added new test-models job for model-only tests; updated changed-files action; set TEST_SCOPE for test selection
scripts/find_dependent_tests.py Added TEST_SCOPE env var to filter tests: "MODELS_ONLY", "EXCLUDE_MODELS", or all; logic applied in constructor

Sequence Diagram(s)

sequenceDiagram
    participant GitHub Actions
    participant test-ops job
    participant test-models job
    participant find_dependent_tests.py

    GitHub Actions->>test-ops job: Start (on PR/tag)
    test-ops job->>find_dependent_tests.py: Run with TEST_SCOPE=EXCLUDE_MODELS
    find_dependent_tests.py-->>test-ops job: Return non-model test files
    test-ops job->>test-ops job: Run pytest on selected tests

    GitHub Actions->>test-models job: Start (after test-ops)
    test-models job->>find_dependent_tests.py: Run with TEST_SCOPE=MODELS_ONLY
    find_dependent_tests.py-->>test-models job: Return model test files
    test-models job->>test-models job: Run pytest on selected tests
Loading

Possibly related PRs

Suggested reviewers

  • yzhangcs

Poem

In the warren where workflows hop,
We split our tests—no need to stop!
Models leap in their own new lane,
While ops and others do the same.
With TEST_SCOPE set, we bound ahead,
🐇 CI’s garden, neatly spread!
—A rabbit with a YAML pen

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Post Copyable Unit Tests in Comment
  • Commit Unit Tests in branch ci-pipeline

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

♻️ Duplicate comments (1)
.github/workflows/nvidia-4090.yml (1)

125-125: Static analysis warning about custom runner labels.

Same actionlint warning as in nvidia-h100 workflow for self-hosted runner labels.

Refer to the previous comment about configuring actionlint for custom runner labels.

🧹 Nitpick comments (5)
.github/workflows/intel-a770.yml (1)

59-59: Consider adding a test-models job for consistency.

While the TEST_SCOPE=EXCLUDE_MODELS addition is correct, this workflow lacks the test-models job that other GPU workflows (nvidia-h100, nvidia-4090) have. This creates inconsistency in test coverage across different environments.

Consider adding a test-models job similar to other GPU workflows to ensure model tests are executed on Intel hardware as well.

.github/workflows/nvidia-a100.yml (4)

59-61: Optimize test discovery invocation
Consider defining TEST_SCOPE as a job-level env or quoting ${{ steps.changed-files.outputs.all_changed_files }} to guard against paths with whitespace.


62-75: Use explicit Python setup and cache dependencies
Rather than relying on the runner’s default Python interpreter and reinstalling packages on every run, use actions/setup-python@v4 to pin a Python version and actions/cache to cache ~/.cache/pip. This will improve build stability and speed.


126-126: Unknown self-hosted runner label
runs-on: 'nvidia-a100' isn’t a standard GitHub-hosted label. If this is a custom self-hosted runner, add nvidia-a100 to your Actionlint configuration to silence label warnings.


124-229: DRY up duplicated jobs
The new test-models job duplicates nearly all steps from test except for the TEST_SCOPE argument. Extract the common sequence (checkout, skip logic, change detection, env/bootstrap, GPU check, pytest invocations) into a reusable workflow or composite action to reduce maintenance overhead.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 173e58d and 4e40cb7.

📒 Files selected for processing (7)
  • .github/workflows/intel-a770.yml (3 hunks)
  • .github/workflows/lint.yaml (1 hunks)
  • .github/workflows/nvidia-4090.yml (3 hunks)
  • .github/workflows/nvidia-a100.yml (2 hunks)
  • .github/workflows/nvidia-h100.yml (3 hunks)
  • fla/ops/rwkv7/fused_k_update.py (1 hunks)
  • scripts/find_dependent_tests.py (2 hunks)
🧰 Additional context used
🪛 GitHub Actions: lint
fla/ops/rwkv7/fused_k_update.py

[error] 11-11: flake8: E302 expected 2 blank lines, found 1

🪛 actionlint (1.7.7)
.github/workflows/nvidia-h100.yml

126-126: label "nvidia-h100" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

.github/workflows/nvidia-4090.yml

125-125: label "nvidia-4090" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

.github/workflows/nvidia-a100.yml

126-126: label "nvidia-a100" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: test-models
🔇 Additional comments (15)
.github/workflows/lint.yaml (1)

30-30: Bump tj-actions/changed-files to v46.0.5 for consistency
This update aligns with other GPU workflows and ensures consistent changed-file detection. No issues spotted.

scripts/find_dependent_tests.py (2)

2-2: LGTM: Clean import addition for environment variable support.

The os import is correctly added to support the new TEST_SCOPE environment variable functionality.


45-58: LGTM: Well-implemented test scoping logic.

The test filtering implementation correctly handles all three scopes:

  • MODELS_ONLY: Includes only tests under tests/models/
  • EXCLUDE_MODELS: Excludes model tests but includes all others
  • ALL: Default behavior (all tests)

The path logic using models_test_dir not in p.parents for exclusion is correct and efficient.

.github/workflows/intel-a770.yml (2)

18-18: LGTM: Job renamed to reflect test scope.

The job name change from test to test-ops clearly indicates this job now handles non-model tests.


49-49: LGTM: Action version updated.

Updated to the newer version of tj-actions/changed-files for consistency across workflows.

.github/workflows/nvidia-h100.yml (6)

18-18: LGTM: Clear job naming for test scoping.

The job rename to test-ops clearly indicates this handles non-model tests.


49-49: LGTM: Action version updated for consistency.

Updated to the same version as other workflows.


59-61: LGTM: Proper test scoping implementation.

The TEST_SCOPE=EXCLUDE_MODELS correctly filters out model tests for this job.


62-76: LGTM: Comprehensive Python environment setup.

The setup includes proper dependency management with uv, specific versions, and necessary packages like flash-attn and causal-conv1d.


124-166: LGTM: Well-structured test-models job.

The new job properly handles model-specific tests with TEST_SCOPE=MODELS_ONLY and maintains consistency with the test-ops job structure.


126-126: Address static analysis warning about custom runner labels.

The actionlint warning about unknown runner label nvidia-h100 is expected for self-hosted runners.

To suppress this warning, consider adding an actionlint.yaml config file at the repository root:

self-hosted-runner:
  labels:
    - nvidia-h100
    - nvidia-4090
    - nvidia-a100
    - intel-a770
How to configure actionlint for self-hosted GitHub Actions runners with custom labels?
.github/workflows/nvidia-4090.yml (3)

49-49: LGTM: Action version updated for consistency.

Updated to match other workflows.


59-59: LGTM: Proper test scoping for existing test job.

The addition of TEST_SCOPE=EXCLUDE_MODELS correctly excludes model tests from the main test job.


123-165: LGTM: Consistent test-models job implementation.

The new job structure is consistent with the nvidia-h100 workflow, ensuring maintainability across GPU environments.

.github/workflows/nvidia-a100.yml (1)

49-49: Verify action version bump
Ensure tj-actions/[email protected] is available and compatible across all GPU workflows.

@zhiyuan1i zhiyuan1i force-pushed the ci-pipeline branch 2 times, most recently from 360043c to 8b3e727 Compare June 20, 2025 10:54
@zhiyuan1i zhiyuan1i merged commit 2510900 into main Jun 20, 2025
5 checks passed
@zhiyuan1i zhiyuan1i deleted the ci-pipeline branch June 20, 2025 10:55
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