Skip to content

fix(ci): 'Run TUI library tests (Linux only)' 600s budget is consumed by the cold jcode-tui test-binary compile #197

Closed

Description

@KooshaPari

Problem

The Run TUI library tests (Linux only) step in the Build & Test (${{ matrix.os }}) job of .github/workflows/ci.yml carries a 600s budget:

python3 .github/scripts/run_with_timeout.py 600 \
  "$(rustup which cargo)" test --target ${{ matrix.target }} \
  -p jcode-tui --lib -- --test-threads=1 \

On a cold cargo cache that budget is spent almost entirely on compiling the jcode-tui lib-test binary, not on running the suite. The step's own comment already states the suite "costs ~30s once the target is already built above".

Observed failure

CI job 121349210430 (runner desk-kcode-1, PR #183 branch fix/ci-cold-cache-build-green, 2026-10-26):

  • step 12 Run TUI library tests (Linux only) started 03:07:39
  • killed at 03:17:55 -> ##[error]Process completed with exit code 124.
  • the log shows the budget consumed by Compiling chrono, Compiling reqwest, Compiling jcode-message-types, ... before the serial test run was reached

Because the step must compile the test binary before it can run any test, the effective time available for the ~30s serial suite (1977 tests, --test-threads=1) was effectively zero.

Fix

Raise only this step's budget from 600 to 1800 seconds. 1800s covers the one-time cold compile plus the serial suite. No other run_with_timeout.py value, no timeout-minutes, no rust-cache configuration, and no test command/flag is changed.

This follows the same fix pattern already applied in PR #183, which raised the Compile library and binary tests step from 900 to 3300 seconds and the job timeout-minutes from 120 to 240 for exactly this reason (cold compiles exceed the step budgets). The job is already at 240 minutes, so no job-level change is needed here.

Note

This is based on PR #183's branch (fix/ci-cold-cache-build-green). PR #183 must land first.

Activity

  1. added
    kilo-triaged
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kilo-triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions