Skip to content

ci: drop PR integration step and Node 20, add coverage and audit reports - #103

Merged
Hiksang merged 5 commits into
mainfrom
ci/cleanup-coverage
Nov 15, 2026
Merged

Hiksang merged 5 commits into
mainfrom
ci/cleanup-coverage

Conversation

@Hiksang

@Hiksang Hiksang commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

CI cleanup and coverage reporting. No source change, no new package (@vitest/coverage-v8 was already a devDependency).

  • PR CI no longer runs pnpm test:integration. That step called live mainnet public endpoints on every PR with continue-on-error, so its result was ignored. The nightly conformance workflow covers live checks. CONTRIBUTING.md and docs/TESTING.md are updated to match.
  • Node 20 leaves the test matrix (EOL 2026-04-30). CI tests Node 22 and 24.
  • Coverage report: new pnpm test:coverage (v8, unit suite). On Node 24, CI prints the totals into the job summary. No threshold is enforced.
  • Audit report: a non-blocking pnpm audit --prod step on Node 24.

Before merging — please read

  • Branch protection on main requires the checks Build & Test (20) and Build & 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 to Build & Test (22) / Build & Test (24) in the repository settings. If Node 20 should stay tested, drop commit 9e09810 instead.
  • engines is unchanged (^20 || ^22 || ^24; packages/perp-ws >=20). After this PR, Node 20 is declared as supported but not tested. Narrowing engines is an owner decision and is not made here.
  • The coverage step runs the unit suite a second time on Node 24, so that job takes longer (the local coverage run took 396 s on a busy machine).

Coverage today (for reference)

Metric Value
Lines 66.17%
Statements 64.26%
Functions 72.92%
Branches 56.73%

Lowest money-path modules by lines: bot/strategies/spot-perp-executor.ts 0%, exchanges/arcus/spot.ts 0%, exchanges/spot-result.ts 5.6%, exchanges/arcus/spot-router.ts 12.7%, spot-perp-arb-strategy.ts 26.9%, aster-spot.ts 35%, funds-onchain.ts 41.7%, bridge-engine.ts 46%, funds.ts 49%.

Checklist

  • pnpm test:coverage passes (334 files / 7259 tests; the same unit suite as pnpm test)
  • tsc --noEmit and typecheck:test pass
  • No secrets, API keys, or private keys included
  • Breaking change? No (CI only)

Testing standard (docs/TESTING.md §7)

  • No test or fixture change

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)

  • Pinning GitHub Actions to commit SHAs, and Dependabot for github-actions + npm (minor / patch grouped): both recommended as a follow-up.
  • fileParallelism: false stays: 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

Hiksang and others added 3 commits November 13, 2026 13:37
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>
Hiksang and others added 2 commits November 15, 2026 18:40
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>
@Hiksang
Hiksang merged commit ba4c19a into main Nov 15, 2026
4 checks passed
@Hiksang
Hiksang deleted the ci/cleanup-coverage branch November 15, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant