Repository navigation
ci: drop PR integration step and Node 20, add coverage and audit reports - #103
Merged
Merged
Conversation
It ran pnpm test:integration (live mainnet reads, some needing keys) on every PR across the Node matrix with continue-on-error, so the result was ignored. The nightly conformance workflow covers the same ground. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
engines is intentionally unchanged; narrowing it is a user-facing decision for the owner. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Adds a v8 coverage config and test:coverage script, a coverage summary step on Node 24 only (no threshold), and a non-blocking pnpm audit --prod. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
4 of 5 tasks
CHANGELOG: both sides kept; the Node 20 matrix note is dropped from this branch's entry because main now carries the Node 20 support change (#105). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
CI cleanup and coverage reporting. No source change, no new package (
@vitest/coverage-v8was already a devDependency).pnpm test:integration. That step called live mainnet public endpoints on every PR withcontinue-on-error, so its result was ignored. The nightly conformance workflow covers live checks.CONTRIBUTING.mdanddocs/TESTING.mdare updated to match.pnpm test:coverage(v8, unit suite). On Node 24, CI prints the totals into the job summary. No threshold is enforced.pnpm audit --prodstep on Node 24.Before merging — please read
mainrequires the checksBuild & Test (20)andBuild & Test (22). This PR removes the Node 20 job, so that required check will never report and this PR (and every later PR) cannot merge until the owner changes the required checks toBuild & Test (22)/Build & Test (24)in the repository settings. If Node 20 should stay tested, drop commit9e09810instead.enginesis unchanged (^20 || ^22 || ^24;packages/perp-ws>=20). After this PR, Node 20 is declared as supported but not tested. Narrowingenginesis an owner decision and is not made here.Coverage today (for reference)
Lowest money-path modules by lines:
bot/strategies/spot-perp-executor.ts0%,exchanges/arcus/spot.ts0%,exchanges/spot-result.ts5.6%,exchanges/arcus/spot-router.ts12.7%,spot-perp-arb-strategy.ts26.9%,aster-spot.ts35%,funds-onchain.ts41.7%,bridge-engine.ts46%,funds.ts49%.Checklist
pnpm test:coveragepasses (334 files / 7259 tests; the same unit suite aspnpm test)tsc --noEmitandtypecheck:testpassTesting standard (docs/TESTING.md §7)
The workflow YAML was only parsed locally; this PR's own CI run is its first real execution. Not independently reviewed.
Live ↔ Unit Test Cross-Validation
Not applicable.
Not done here (assessed only)
github-actions+ npm (minor / patch grouped): both recommended as a follow-up.fileParallelism: falsestays: shared global state (for example/tmp/perp-cli-cache) has not been ruled out.Merge note
CHANGELOG.md[Unreleased]conflicts with the other open PRs (keep both sides). After #102 merges, the audit step reports 5 advisories instead of 18.🤖 Generated with Claude Code