Skip to content

ci: run PR-changed example/model files on sim and a2a3#334

Merged
zhangqi-chen merged 1 commit into
hw-native-sys:mainfrom
zhangqi-chen:ci/test-changed-model-files
May 20, 2026
Merged

ci: run PR-changed example/model files on sim and a2a3#334
zhangqi-chen merged 1 commit into
hw-native-sys:mainfrom
zhangqi-chen:ci/test-changed-model-files

Conversation

@zhangqi-chen
Copy link
Copy Markdown
Collaborator

Summary

  • Add a detect-changes job that lists the runnable examples//models/ files a PR changed — filtered to files with a __main__ entrypoint, excluding drafts and deleted files.
  • Gate the sim (a2a3sim/a5sim) and a2a3 jobs on detect-changes: a PR touching no runnable file skips them entirely.
  • On a PR, sim/a2a3 now run only the changed files instead of the full examples/ suite, so models/ files — previously untested on PRs and only covered by the scheduled daily_ci — get exercised on a2a3 and the simulators.
  • Push to main and manual dispatch keep running the full examples/ suite (unchanged behavior); daily_ci still provides full model coverage on main.

Related Issues

N/A

Add a detect-changes job that lists the runnable example/model files
changed by a PR (filtered to those with a __main__ entrypoint), and gate
the sim and a2a3 jobs on it. On a PR these jobs now run only the changed
files instead of the full examples suite, so model files — previously
untested on PRs and only covered by the scheduled daily_ci — get exercised
on a2a3 and the simulators. Push to main and manual dispatch keep running
the full examples suite.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 20, 2026

Warning

Rate limit exceeded

@zhangqi-chen has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 18 minutes and 23 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ 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.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 05e9874b-d0a7-41c9-8f8f-b80296a1ff3b

📥 Commits

Reviewing files that changed from the base of the PR and between 2b8a22e and bc9362e.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

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

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

@zhangqi-chen zhangqi-chen merged commit f0d8ce8 into hw-native-sys:main May 20, 2026
6 checks passed
@zhangqi-chen zhangqi-chen deleted the ci/test-changed-model-files branch May 20, 2026 08:01
zhangqi-chen added a commit to zhangqi-chen/pypto-lib that referenced this pull request May 20, 2026
The a2a3 job runs inside a container whose default shell is dash, which
cannot parse the bash-array logic (failed=(), ${#failed[@]}) added in
 hw-native-sys#334. Pin shell: bash on both the sim and a2a3 run steps so the script
parses consistently regardless of the runner's default shell.
zhangqi-chen added a commit that referenced this pull request May 20, 2026
## Summary
- Delete `.github/daily_ci_cases.tsv`, which referenced model files
(`qwen3_14b_decode.py`, `qwen3_14b_decode_full.py`) renamed/split in
#319 and was therefore stale
- Remove the TSV-reading "extras" logic from both jobs in
`daily_ci.yml`; daily CI now watches only the default no-arg invocation
of every model file
- Fix the `a2a3` job failing on push-to-main: pin `shell: bash` on the
sim and a2a3 run steps. The container's default shell is dash, which
cannot parse the `failed=()` / `${#failed[@]}` bash-array logic added in
#334. The bug was masked on #334's own PR because no example/model `.py`
files changed, so the device jobs were skipped.

## Related Issues
N/A
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