just playing with tangled

github: track slow tests in CI builds

Some of our builds have been timing out, and one angle I want to look at
is whether any tests are hanging. Nextest can help us keep track of slow
tests in CI where the underlying hosts will have significantly higher
load. In general this should also help keep our tests healthy, IMO.

I don't see any reason why any existing test should take over 20
seconds, but it should at least help control for really slow runners
that have huge latency spikes. we can start there and see how it goes
in practice.

Signed-off-by: Austin Seipp <aseipp@pobox.com>

Changed files
+5 -1
.config
.github
workflows
+3
.config/nextest.toml
··· 1 + [profile.ci] 2 + slow-timeout = { period = "5s", terminate-after = 20 } 3 + fail-fast = false
+1 -1
.github/workflows/build.yml
··· 88 88 run: cargo build --workspace --all-targets --verbose ${{ matrix.cargo_flags }} 89 89 - name: Test 90 90 run: | 91 - cargo nextest run --workspace --all-targets --verbose ${{ matrix.cargo_flags }} 91 + cargo nextest run --workspace --profile ci --all-targets --verbose ${{ matrix.cargo_flags }} 92 92 env: 93 93 RUST_BACKTRACE: 1 94 94 CARGO_TERM_COLOR: always
+1
flake.nix
··· 97 97 buildFeatures = ["packaging"]; 98 98 cargoBuildFlags = ["--bin" "jj"]; # don't build and install the fake editors 99 99 useNextest = true; 100 + cargoTestFlags = ["--profile" "ci"]; 100 101 src = filterSrc ./. [ 101 102 ".*\\.nix$" 102 103 "^.jj/"