ci(main): align Vitest gates with PR workflow#4982
Conversation
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
|
Warning Review limit reached
More reviews will be available in 5 minutes and 26 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the 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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: None Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
|
E2E Scenario Advisor RecommendationRequired scenario E2E: None Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
PR Review AdvisorFindings: 1 needs attention, 4 worth checking, 0 nice ideas Review findings🛠️ Needs attention
🔎 Worth checking
🌱 Nice ideas
Consider writing more tests for
This is an automated advisory review. A human maintainer must make the final merge decision. |
## Summary Address the PR Review Advisor follow-up from #4982 by keeping PR-required CI gates reusable while loading their composite action definitions from the trusted base SHA. This preserves the shared Vitest/static-check configuration from main without letting future pull requests rewrite the required gate implementation under the same job names. ## Related Issue Follow-up to #4982 and refs #4892. ## Changes - Checkout `.github/actions/ci-*` from `github.event.pull_request.base.sha` into `.trusted-ci-actions` before PR-required gate jobs invoke shared composite actions. - Keep `main` workflow gates on the normal repo-local shared actions while PR gates use the trusted checkout path. - Validate CLI coverage shard inputs as positive integers before shell/path use, pass them through quoted environment variables, and skip shard artifact upload when validation fails. - Pin the hadolint binary checksum inside the static-checks composite action instead of fetching the checksum from the release origin during CI. - Expand workflow contract tests for the trusted PR action boundary, shard input validation, and pinned hadolint checksum. ## Type of Change - [x] Code change (feature, bug fix, or refactor) - [ ] Code change with doc updates - [ ] Doc only (prose changes, no code sample modifications) - [ ] Doc only (includes code sample changes) ## Verification - [x] `npx prek run --all-files` passes - [x] `npm test` passes - [x] Tests added or updated for new or changed behavior - [x] No secrets, API keys, or credentials committed - [ ] Docs updated for user-facing behavior changes - [ ] `npm run docs` builds without warnings (doc changes only) - [ ] Doc pages follow the [style guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md) (doc changes only) - [ ] New doc pages include SPDX header and frontmatter (new pages only) --- Signed-off-by: Carlos Villela <cvillela@nvidia.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Enhanced CI workflow validation with stricter input checks for shard parameters. * Implemented binary checksum verification for build tools to improve security. * Optimized CI action execution by using trusted actions from the base commit, improving workflow reliability and consistency. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Summary
Bring main-branch CI closer to the PR Vitest gate by reusing shared local CI actions for static checks, build/typecheck, sharded CLI coverage, merged CLI coverage, and plugin coverage. The main workflow now runs the same parallel Vitest shape as PRs before handing off to sandbox image and E2E checks.
Related Issue
Refs #4892 and follows #4977.
Changes
checksbehavior.main.yamlfrom the legacy monolithic checks job into the same static/build/CLI-shard/CLI-merge/plugin/Ollama proxy gate shape used by PRs.Type of Change
Verification
npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Signed-off-by: Carlos Villela cvillela@nvidia.com