Repository navigation
perf(test): parallelize protected runtime readiness - #11642
Conversation
Signed-off-by: Charan Jagwani <[email protected]>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe test fixture now performs per-test cleanup through ChangesRuntime readiness test updates
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Refactor Suggested reviewers: Merge Risk: ⚪ Minimal · up to This test-only change preserves isolated fixture state while reducing runtime, with no merge-blocking risk indicated. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit aa92afc in the TypeScript / code-coverage/cliThe overall line coverage in commit aa92afc in the Show a line coverage summary of the most impacted files.
Updated |
<!-- markdownlint-disable MD041 --> ## Outcome A successful CLI shard retry now replaces that shard's failed report instead of leaving both artifacts for the coverage merge to choose from. This prevents stale failed results from turning a successful retry into another failed rollup; production behavior is unchanged. ## Reason PR #11642 exposed the gap: shard 6 passed on retry, but the merge job selected its earlier failed artifact on two consecutive rollup attempts. Rerunning the rollup could not recover because both same-name artifacts remained attached to the workflow run. ## Changes - Set the existing CLI shard upload to overwrite its same-name artifact on reruns. - Protect that retry contract in the PR workflow test. - Register the exact workflow assertion as a compatibility boundary in the source-shape budget. ## Verification - `npx --no-install vitest run --project integration test/automation/pull-requests/pr-workflow-contract.test.ts` — 45/45 passed. - `npm run source-shape:check` — passed with no unbudgeted source-shape tests. - `npm --prefix nemoclaw run build` — passed. - Normal pre-commit hooks — passed, including YAML validation, repository checks, secret scanning, source-shape budget, and growth guardrails. - Normal pre-push hooks — passed, including publication validation and CLI TypeScript. - Hosted CI — all 12 CLI shards, coverage merge, static checks, type checks, audits, and security scans passed. - GitHub commit verification — `6f698307fae4b9b97210cf837c999618ec92c56e` is Verified. - Diff inspection — no secrets, API keys, or credentials. - Documentation impact review — no user-facing docs or changelog update is needed. ## Review notes Sensitive workflow path: `.github/actions/ci-cli-coverage-shard/action.yaml`. The exact three-file diff at `6f698307fae4b9b97210cf837c999618ec92c56e` received contributor self-review and a documentation-impact review; no maintainer pre-publication review exists. Ready for independent workflow review. --- Signed-off-by: Charan Jagwani <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Failed pull-request workflow reruns now replace outdated CLI shard reports instead of retaining conflicting artifacts. * CLI coverage results are stored under the correct shard-specific report name, improving reliability when workflows are rerun. * **Tests** * Added automated coverage to verify that refreshed shard reports overwrite existing reports as expected. * Updated workflow compatibility checks to cover replacement of stale reports after failed-job reruns. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Charan Jagwani <[email protected]> Signed-off-by: Julie Yaunches <[email protected]> Co-authored-by: Julie Yaunches <[email protected]>
Outcome
The protected managed-image readiness support suite drops from 18.55s to 12.48s test time (33% faster) while preserving all 34 cases. This changes test execution only; production behavior is unchanged.
Reason
Every command case already owns a private temporary root, command directory, environment, progress tracker, and artifact sink, but module-global teardown forced the suite to run serially.
Changes
Verification
--sequence.seed=11642) — 34/34 passed.NODE_OPTIONS=--max-old-space-size=8192 npm run check:diff— passed.aa92afc539af8f2f85a058e77ea1f3c0d8fd1d12is Verified.Review notes
Ready for independent review. No production files are changed.
Signed-off-by: Charan Jagwani [email protected]