Repository navigation
ci: run TS and Rust test jobs on Blacksmith runners - #12969
Conversation
|
Warning Review limit reached
Next review available in: 1 minute Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughCI workflows switch Ubuntu and Windows jobs to pinned Blacksmith runners, define explicit Windows shards, and update Bencher platform handling. Stale-pin tests now control manifest timestamps to deterministically exercise incremental resolution. ChangesCI runner migration
Stale-pin test determinism
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
PR Summary by QodoCI: Move TS/Rust test jobs to Blacksmith runners and fix Bencher OS slugs
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Confidence Score: 5/5This is a CI-only change with no impact on published packages or application logic. The runner label substitutions and the Bencher slug-mapping fix are all consistent and correct. All three workflow files are updated cohesively: runner labels are swapped to Blacksmith, the Bencher testbed slug derivation in test.yml is generalized via glob patterns to handle any runner label format, and the Rust CI correctly uses matrix.os_label instead of the full runner label string. macOS is correctly left on macos-latest. No logic errors or regressions are present. No files require special attention. All changes are consistent and internally correct. Reviews (2): Last reviewed commit: "ci: run TS and Rust test jobs on Blacksm..." | Re-trigger Greptile |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/test.yml (1)
279-279: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueArtifact name uses full Blacksmith runner label, unlike Rust CI.
The TS CI artifact name at line 279 uses
${{ inputs.platform }}(e.g.,blacksmith-8vcpu-ubuntu-2404), whilepacquet-ci.ymlline 210 switched to${{ matrix.os_label }}(e.g.,ubuntu) for cleaner names. The Bencher metadata inside both artifacts uses the correct short slug, so downstream Bencher processing is unaffected. Consider deriving a short slug for the artifact name for consistency, though this is non-blocking.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/test.yml at line 279, Update the TypeScript CI artifact name in the workflow step using the `name` expression to use the short platform/OS slug, matching the `matrix.os_label` convention in Rust CI, instead of the full `${{ inputs.platform }}` Blacksmith runner label; preserve the existing node and test-chunk components.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/workflows/test.yml:
- Line 279: Update the TypeScript CI artifact name in the workflow step using
the `name` expression to use the short platform/OS slug, matching the
`matrix.os_label` convention in Rust CI, instead of the full `${{
inputs.platform }}` Blacksmith runner label; preserve the existing node and
test-chunk components.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: dd057c2b-0ddc-4393-b3b6-0f3b858893fc
📒 Files selected for processing (3)
.github/workflows/ci.yml.github/workflows/pacquet-ci.yml.github/workflows/test.yml
Code Review by Qodo
Context used✅ Compliance rules (platform):
18 rules 1. Cache key too coarse
|
PR Code Suggestions ✨Warning
Explore these optional code suggestions:
|
|||||||||
|
Code review by qodo was updated up to the latest commit 97696f3 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
Move the unit and e2e test jobs that were still on GitHub-hosted runners onto Blacksmith 8vcpu runners, matching the Blacksmith runners the lint/detect/ancillary jobs already use. - TS CI (ci.yml): test-smoke and the test/test-windows matrices now pass blacksmith-8vcpu-ubuntu-2404 / blacksmith-8vcpu-windows-2022 into the reusable test.yml. - Rust CI (pacquet-ci.yml): the test matrix ubuntu/windows legs move to the same Blacksmith labels. The macOS leg stays on macos-latest because Blacksmith offers no macOS runners. The Bencher upload workflow validates testbed names against strict ubuntu/windows/macos regexes, and both test workflows derived that slug by stripping "-latest" from the runner label, which no longer works for Blacksmith labels. test.yml now maps *ubuntu*/*windows* labels to the bare slug, and the Rust test job derives the slug (and its artifact name) from matrix.os_label instead.
The three stale_pin_dedupe tests each run two back-to-back installs, rewriting package.json between them, and assert the second install re-resolves the bumped version. pnpm and pacquet both gate their incremental-install fast path on a manifest's mtime being newer than the previous install (optimistic_repeat_install). The two installs run a few hundred milliseconds apart, so on a filesystem whose mtime granularity is coarser than that gap the rewritten manifest lands in the same mtime tick as the first install, the edit is not seen as newer, re-resolution is skipped, and the lockfile keeps the stale version. This surfaced on CI runners whose filesystem has second-granularity mtimes: the tests pass on ext4-backed runners and local dev but fail deterministically there. It is not a pacquet-vs-pnpm divergence — the mtime fast path behaves the same in both stacks, and forcing the second manifest's mtime equal to the lockfile's reproduces the failure locally regardless of which baseline (wall clock or lockfile mtime) the gate uses. Model the intended scenario explicitly: push the rewritten manifest's mtime well past the lockfile's so the second install reads it as a genuine later edit, matching what a user editing the manifest at a later time would produce. The assertions still exercise the real stale-pin-refresh behavior.
There was a problem hiding this comment.
zkochan has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
|
Code review by qodo was updated up to the latest commit de70242 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
Blacksmith's Windows runners run Windows Server 2025; the valid labels are blacksmith-<N>vcpu-windows-2025. The windows-2022 label matches no runner, so the Windows test legs would queue forever. Point them at the windows-2025 label instead.
There was a problem hiding this comment.
zkochan has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
|
Code review by qodo was updated up to the latest commit ca08258 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
The two build-pnpr legs compile the pnpr binaries the TS test jobs consume; they gate those tests but were still on GitHub-hosted runners. Move them onto the same Blacksmith 8vcpu labels as the test jobs (ubuntu-2404 / windows-2025). build-pnpr.yml keys its disk-cleanup gate, cache, and artifact name off `runner.os`, which is unaffected by the label change.
There was a problem hiding this comment.
zkochan has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
|
Code review by qodo was updated up to the latest commit 085a71c |
PR Code Suggestions ✨Warning
No code suggestions found for the PR.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12969 +/- ##
==========================================
+ Coverage 85.26% 85.54% +0.28%
==========================================
Files 486 494 +8
Lines 77280 78828 +1548
==========================================
+ Hits 65890 67432 +1542
- Misses 11390 11396 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Micro-Benchmark ResultsLinux |
Summary
Moves the unit and e2e test jobs of both CI workflows onto Blacksmith runners. The lint/detect/ancillary jobs already ran on Blacksmith (
blacksmith-4vcpu-ubuntu-2404); only the test jobs were still on GitHub-hosted runners.ci.yml):test-smokeand thetest/test-windowsmatrices now passblacksmith-8vcpu-ubuntu-2404/blacksmith-8vcpu-windows-2022into the reusabletest.yml.pacquet-ci.yml): thetestmatrix ubuntu/windows legs move to the same Blacksmith labels. The macOS leg stays onmacos-latest— Blacksmith offers no macOS runners.The Bencher upload workflow validates testbed names against strict
ubuntu|windows|macosregexes, and both test workflows derived that slug by stripping-latestfrom the runner label — which no longer works for Blacksmith labels. Fixed by mapping*ubuntu*/*windows*labels to the bare slug intest.yml, and deriving the slug (and artifact name) frommatrix.os_labelin the Rust test job.Bundled test fix:
stale_pin_dedupecoarse-mtime robustnessMigrating the Rust
testjob to Blacksmith surfaced a deterministic failure in the threestale_pin_dedupetests. Each runs two back-to-back installs, rewritingpackage.jsonbetween them, and asserts the second install re-resolves the bumped version. pnpm and pacquet both gate their incremental-install fast path (optimistic_repeat_install) on a manifest's mtime being newer than the previous install. The two installs run a few hundred ms apart, so on Blacksmith's coarse-granularity (≥1s) filesystem the rewritten manifest lands in the same mtime tick as the first install — the edit isn't seen as newer, re-resolution is skipped, and the lockfile keeps the stale version.This is not a pacquet-vs-pnpm divergence (the fast path behaves the same in both stacks; forcing the second manifest's mtime equal to the lockfile's reproduces it locally regardless of baseline). The fix pushes the rewritten manifest's mtime past the lockfile's so the install reads a genuine later edit. It's bundled here rather than in a separate PR because the failure only reproduces on Blacksmith, so it can only be validated in this PR's CI.
Note
Requires Blacksmith Windows runners to be enabled for the org — otherwise the Windows legs will sit queued. macOS is untouched.
Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting. (CI config touches both stacks; the test fix is Rust-only test robustness — production fast path unchanged and already matches pnpm.)Written by an agent (Claude Code, claude-opus-4-8).
Summary by CodeRabbit