Skip to content

test: run the suite in under 2 minutes #2

Done

Description

@realRaghavGupta

Why

pnpm check takes about 5½ minutes because every test runs runcoder end to end, one at a time, and waits on real timers. The end-to-end style stays (it has caught real bugs); the waiting and the queueing can go, so CI on three systems and local runs give an answer in under 2 minutes.

Where the time goes:

  • all test files share one local port (18435) and one fake Google server, so --test-concurrency=1 runs them one by one;
  • the "model lost" path retries 3 times, 5 seconds apart, and idle, time-limit and download-timeout tests wait out minute-based timers;
  • the Qwen Code file (about 1½ minutes) starts real Qwen Code several times.

Acceptance criteria

  • Each test file gets its own port and its own fake Google server, and the files run in parallel
  • The keep-alive retry gap and the idle, time-limit and download timers can be shortened by a test-only setting, as RUNCODER_TICK already is; defaults for users unchanged
  • No test is removed or weakened: the same 37 tests (or more) assert the same things
  • pnpm check finishes in under 2 minutes on macOS, and CI passes on ubuntu, macos and windows
  • No port or process is left behind after a run (port 18435 and the new ports free)

Files likely touched

tests/helpers.mjs, tests/*.test.mjs, tests/fake/gcloud.mjs, scripts/check.mjs, package.json (test script), src/session.mjs and src/config.mjs (test-only timer settings)

Risk class

normal

Activity

  1. added
    agent-ready
    on Dec 2, 2026
  2. lyra-setkernel commented on Dec 2, 2026

    @lyra-setkernel
    Contributor

    Opened #4.

  3. setkernel-ops commented on Dec 2, 2026

    @setkernel-ops

    #4 merged and closed this issue; its description doesn't mark these 5 items met, so they stay unticked:

    • Each test file gets its own port and its own fake Google server, and the files run in parallel
    • The keep-alive retry gap and the idle, time-limit and download timers can be shortened by a test-only setting, as RUNCODER_TICK already is; defaults for users unchanged
    • No test is removed or weakened: the same 37 tests (or more) assert the same things
    • pnpm check finishes in under 2 minutes on macOS, and CI passes on ubuntu, macos and windows
    • No port or process is left behind after a run (port 18435 and the new ports free)
      (board-sync, hq#1238)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agent-ready

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions