Repository navigation
perf(ci): speed up station-host unit tests and shard live E2E suites - #10463
Merged
Merged
Conversation
CommaBot
force-pushed
the
perf/station-host-ci-headroom
branch
from
December 6, 2026 01:07
75520ac to
eab6750
Compare
…uites Wrap unbatched disk-SQLite schema DDL and seed loops in sql_db::Db::tx across 9 pion/station-host unit test files (no assertions or test sizes changed), move the 3 live E2E suites and rig_tunnel.mjs/peers.mjs from station-host into parallel station-host-e2e shards (live and peers) with identical trigger conditions and pass/skip/fail checks, overlap native acquisition with pnpm install, and overlap host.tap CLI tests with Phase 3 ELF smoke tests in station-host. Co-authored-by: zuozijian <26162189+zuozijian@users.noreply.github.com>
CommaBot
force-pushed
the
perf/station-host-ci-headroom
branch
from
December 6, 2026 01:16
eab6750 to
c616754
Compare
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.
Summary
Gives the Linux
station-hostjob in.github/workflows/pion-station-main.ymlcomfortable headroom under its unchangedtimeout-minutes: 3budget (zero coverage or assertion loss):Batch unbatched disk-SQLite DDL and seed loops in
pion/station-hostunit tests (sql_db::Db::tx):fsync()s forcore_schema_ddl()(~50 statements) and 33–300 row seed loops on disk-backed SQLite databases.db.tx(...)across 9 test files (waiting_timers_test.pion,active_awake_autoarchive_parity_test.pion,runner_runtime_station_parity_test.pion,connects_releases_test.pion,warm_handover_test.pion,profiles_residual_test.pion,logins_parity_test.pion,mesh_dir_test.pion,passwords_test.pion) without changing any test assertion, coverage, or data size.pionc test --json):pion/station-hostworkspace (1,306 tests, 0 failures): 86.59 s → 46.16 s (-40.43 s, -46.7%)host_sessions(723 tests): 44.43 s → 12.15 s (-32.28 s, -72.7%)host_mesh(193 tests): 7.60 s → 1.35 s (-6.25 s, -82.2%)host_passwords(4 tests): 2.91 s → 1.05 s (-1.86 s, -63.9%)runtime-sessions-page-bounded4,915 ms → 117 ms (-97.6%),autoarchive parity7,345 ms → 2,064 ms (-71.9%),active-jobs-upgrade3,849 ms → 912 ms (-76.3%),mesh directory (forged)3,494 ms → 287 ms (-91.8%),prepare_session_chat_scope2,467 ms → 317 ms (-87.1%).Shard the 3 live E2E suites out of
station-hostintostation-host-e2e (live)and overlap setup/CLI tests:station-hostandstation-host-e2elive in the same workflow (pion-station-main.yml) with identicalon.push.paths,needs: [wait-shell], andif:conditions, so every push/PR that runsstation-hostalso runsstation-host-e2e (live).live-accounts-handover.test.ts,live-p5-3.test.ts, andr2-regressions.test.ts(~50 s) into a newliveshard instation-host-e2ewhile keeping exact TAP assertions (# fail 0,# pass 25,# skipped 1).station-host's native acquisition (acquire-shell-station.sh,acquire-pipeline-natives.sh) andpnpm --dir station install --frozen-lockfile --prefer-offlineinto one parallel step (matchingstation-host-e2e), and overlappedpeers.mjs+rig_tunnel.mjswith thehost.tapCLI/lifecycle suite.pion/station-host/AGENTS.mdto reflect fourstation-host-e2eshards.Verification
pionc fmt --check pion/station-host— passpionc check --json pion/station-host— passpionc test --json pion/station-host— 1,306/1,306 passed, 0 failed (46.16 s)python3 scripts/ci-timeouts.py— pass (timeout-minutes: 3unchanged)node --test test/g3-gate-plan.test.ts— 4/4 passedsh scripts/undone.sh origin/main HEAD— passsh scripts/check.sh push origin/main..HEAD— all checks passedModel: Gemini 4 Neon. Test frameworks:
pionc test,node --test,scripts/check.sh,scripts/ci-timeouts.py.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.