Skip to content

ci(pion-station): wire sharded black-box HTTP suites into pion-station-main - #10508

Merged
CommaBot merged 1 commit into
mainfrom
ci/wire-blackbox-http-shards
Dec 6, 2026
Merged

CommaBot merged 1 commit into
mainfrom
ci/wire-blackbox-http-shards

Conversation

@CommaBot

@CommaBot CommaBot commented Dec 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Wires pion/station-host/tests/run-node-http-blackbox.mjs (all 41 suites / 77 tests of pion/station-host/tests/e2e/blackbox-http-*.test.ts) into .github/workflows/pion-station-main.yml as two sharded jobs (blackbox-0 and blackbox-1) under station-host-e2e.

Changes

  1. pion/station-host/tests/run-node-http-blackbox.mjs:
    • Deterministic --shard <i>/<n> slicing (idx % total === index over sorted blackbox-http-*.test.ts).
    • Bounded parallel execution via --concurrency <k> (default 4).
    • Real-time per-suite output as each suite completes (PASS/FAIL/TIMEOUT ...), with full TAP tail (up to last 120 lines) printed on failure.
    • SUITE_TIMEOUT_MS = 90_000 with detached POSIX process-group teardown (SIGTERM -> SIGKILL), plus SIGINT/SIGTERM handlers that terminate all active child process groups before exiting.
    • Strict exit enforcement: non-zero on 0 matched suites, any failure, skip, cancellation, timeout, or passed < suites.
  2. .github/workflows/pion-station-main.yml & pion/station-main/scripts/ci_plan_pion_station_main.py:
    • Added blackbox-0 (0/2, suites: 21, pass: 34) and blackbox-1 (1/2, suites: 20, pass: 43) to station-host-e2e matrix (reusing station-host-engines CAS seed, timeout-minutes: 3, live tee, exact Summary: count lock).
    • Added maintenance comment above blackbox-0 documenting shard count recomputation.
    • No changes to pipeline.yml, .pion production sources, or test_coverage_*.json ledgers.
  3. Test reliability fixes (test-only, 0 .pion changes):
    • Added { timeout: 5000 } to all DatabaseSync connections across all 41 blackbox-http-*.test.ts suites (including newly merged blackbox-http-agents-door.test.ts lines 82/140/168).
    • blackbox-http-events.test.ts: aligned fresh GET /events assertion with member_events.pion (initial stream emits made + cursor id; ?since= reconnect emits overview).
    • blackbox-http-compress.test.ts: stripped live volatile disk (statvfs freeBytes) and apiProviders before deepEqual, while still asserting typeof disk.freeBytes === "number".
    • blackbox-http-local-status.test.ts: replaced fixed frame index watch.nextLine(1) with waiting for the first busy === 1 frame, then asserting the immediately following frame is busy === 0 (no duplicate busy === 1 frame).

Verification (R3 @ 016168a1e6, rebased on origin/main 2d6921d431)

  • blackbox-http-local-status.test.ts stress test (--concurrency 4, 3 rounds): 3/3 pass.
  • --shard 0/2 --concurrency 4: Summary: 34 passed, 0 failed, 0 skipped across 21 suite(s) (shard 0/2 of 41, concurrency=4, 21903ms).
  • --shard 1/2 --concurrency 4: Summary: 43 passed, 0 failed, 0 skipped across 20 suite(s) (shard 1/2 of 41, concurrency=4, 26101ms).
  • python3 pion/station-main/scripts/test_ci_plan_pion_station_main.py: 18/18 OK.
  • python3 scripts/ci-timeouts.py: OK.
  • node --experimental-strip-types --test station/test/w10-0-station-pion-guards.test.ts: pass.
  • sh scripts/check.sh push origin/main..HEAD: all checks pass.

@CommaBot
CommaBot force-pushed the ci/wire-blackbox-http-shards branch from f9e2748 to 1cc8dd3 Compare December 6, 2026 04:22
@CommaBot
CommaBot force-pushed the ci/wire-blackbox-http-shards branch from 1cc8dd3 to 016168a Compare December 6, 2026 04:42
@CommaBot
CommaBot enabled auto-merge (squash) December 6, 2026 04:48
@CommaBot
CommaBot merged commit 16319c2 into main Dec 6, 2026
124 checks passed
@CommaBot
CommaBot deleted the ci/wire-blackbox-http-shards branch December 6, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants