ci: run CodeSpeed benchmarks on Nx agents#7763
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
|
View your CI Pipeline Execution ↗ for commit aa05c84
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
Bundle Size Benchmarks
Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better. |
There was a problem hiding this comment.
Important
At least one additional CI pipeline execution has run since the conclusion below was written and it may no longer be applicable.
Nx Cloud has identified a possible root cause for your failed CI:
We traced all 6 failures to a missing OS capability on the linux-medium-js agents: codspeed-memtrack requires the ability to raise rlimit, which the agent environment does not permit. This is a pre-existing infrastructure constraint — the PR code is correct, but the target agent type cannot support CodeSpeed's memory tracking mode. Resolving this requires an agent type with elevated OS capabilities or coordination with the CodeSpeed/infra team.
No code changes were suggested for this issue.
Trigger a rerun:
🔔 Heads up, your workspace has pending recommendations ↗ to auto-apply fixes for similar failures.
🎓 Learn more about Self-Healing CI on nx.dev
Summary
test:codspeed:*targets for client-nav, SSR, memory client, and memory server benchmarks, backed by ascripts/nx/run-codspeed-benchmark.mjsCLI wrapper.Impact
codspeed run -- pnpm nx ...scheduler call.test:codspeed:*targets tolinux-medium-jsagents withparallelism: 1to limit same-agent CPU and memory pollution.id-token: writeand forwards the GitHub OIDC request env vars plus CodeSpeed-required GitHub CI metadata to Nx Agents. The wrapper synthesizes a minimalGITHUB_EVENT_PATHpayload on agents because GitHub’s event JSON file is not present there.codspeed-memtrackcannot increase rlimit on the current Nx Agent environment.Testing
node --check scripts/nx/run-codspeed-benchmark.mjspackage.jsonfiles with Node.git diff --check.github/workflows/pr.ymlwith Ruby YAML after each auth/scope change.Failed to increase rlimit.CI=1 NX_DAEMON=false pnpm nx show project @benchmarks/client-nav --json, but local validation is blocked before Nx starts because the bundled pnpm is 11.7.0 and the repo now requires pnpm >=11.9.0.