Weekly test health: enforced check needs triage

Abierto
#3,464 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
bun, github-actions, typescript
Área
devtools, testing

Línea de trabajo

Start with docs/TESTING_INTERNALS.md#flake-ledger and reproduce the reported flake with bun test test/session-update-autostash.test.ts under load; the report says to fix the race at its source and never increase timeouts or add retries. The duration seed also needs 46 missing files, but refreshing it requires UBICLOUD_API_KEY and a CI-mirrored VM, so coordinate with a maintainer before attempting that work. Done means the flaky file no longer exceeds the 5% threshold and the free-test duration seed is current.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

S3

Run: https://github.com/garrytan/gstack/actions/runs/40304808079

test:health

test:health garrytan/gstack, last 7 day(s), 2026-10-26T10:07:09.321Z
Cost per merged PR: $8.13 (96 merged PRs, $780.53 recorded)
- PR full-fallback rate: 31.0% (13/42 runs)
    rule: share of evals.yml pull_request runs whose paid-plan manifest has prCoverage.mode = full-fallback (a label, not spend: dependents runs select about as much)
    pr: 21
    full-fallback: 13
    dependents: 8
- Selected gate cases and judges per PR run: 54.6 gate cases, 12.7 judges per run (42 runs)
    rule: mean length of prCoverage.e2e (gate cases) and prCoverage.judges in the paid-plan manifests of evals.yml pull_request runs, overall and per mode
    dependents: 108.0 gate cases, 24.0 judges (8 runs)
    full-fallback: 108.0 gate cases, 24.0 judges (13 runs)
    pr: 1.2 gate cases, 1.4 judges (21 runs)
- Known cost per PR run: $2.97 per run (263 runs; 1933 executed trial(s) with unknown cost)
    rule: mean over non-cancelled evals.yml pull_request runs of executed trial cost_usd with a known cost (a run with no trial records counts $0), overall and per manifest mode; unknown-cost trials (PTY) are counted, not priced
    dependents: $41.36 (8 runs)
    full-fallback: $34.44 (13 runs)
    no manifest: $0.00 (222 runs)
    pr: $0.10 (20 runs)
- Exercised-path map shadow (not active): $-246.17 predicted saving/week (a lower bound: known cost excludes the 39% of observed case runs with unknown cost (PTY)); 1.0 activation miss(es)/week, 0 flaky drop(s) not counted (42 runs)
    rule: over evals.yml pull_request runs whose paid-plan manifest carries prCoverage.shadow: the predicted saving (map per-case known cost of dropped minus added cases; a lower bound, since known cost excludes PTY trials with unknown cost) and shadow drops of red cases (more executed failed than passed trials in the run, on a case the shadow would drop). A drop counts toward the D3 activation bar as a miss unless the case passed in a later run of the same branch at the same head SHA, which marks it a flaky drop. Scaled to 7 days; docs/TESTING_INTERNALS.md#exercised-path-map
    shadow miss: 39313931713:qa-only-no-fix
- Reused PR trial records: 0 of 4535 trial records
    rule: trial-outcomes records with execution = reused across non-cancelled PR runs
- Recorded PR-lane spend: $780.53 recorded
    rule: sum of executed trial cost_usd in PR runs; per merged PR = / PRs merged in the window; per validated revision = / distinct head SHAs with a success or failure verdict
    per merged PR: $8.13 (96 merged)
    per validated revision: $3.16 (247 revisions)
- Cancelled slice-minutes per week: 2 min/week (39 cancelled run(s))
    rule: wall minutes of eval-slices jobs in cancelled evals.yml PR runs, scaled to 7 days
- PR lane push-to-verdict: p50 10.1 min, p95 67.7 min (247 runs)
    rule: created_at to updated_at of evals.yml pull_request runs that reached success or failure (includes queue and the readiness wait)
- Periodic census reliability (CEO-06/22): 3.50 expected failed trials/run (14/804 over 4 run(s)); P(red) 92.0% in force, 94.4% single-trial
    rule: trailing 4 main censuses with trial outcomes (scheduled runs and main dispatches): expected failed trials per run, raw trial failure rate per kind and class, and P(lane red) from pooled per-case rates under the recorded panels vs single-trial aggregation (every failure treated as nondeterminism: upper bounds for known-good inputs)
    kind behavior: 7/297 failed (2.4%)
    kind rule: 7/407 failed (1.7%)
    kind judge: 0/100 failed (0.0%)
    class assertion: 12
    class contract: 1
    class timeout: 1
- Gate census reliability (CEO-06/22): 1.25 expected failed trials/run (5/486 over 4 run(s)); P(red) 69.3% in force, 69.3% single-trial
    rule: trailing 4 main censuses with trial outcomes (scheduled runs and main dispatches): expected failed trials per run, raw trial failure rate per kind and class, and P(lane red) from pooled per-case rates under the recorded panels vs single-trial aggregation (every failure treated as nondeterminism: upper bounds for known-good inputs)
    kind rule: 5/486 failed (1.0%)
    class assertion: 4
    class contract: 1
- INFRA re-dispatches (ENG-10): 0 of 4 census(es) re-dispatched; longest paid slice job 7.3 min
    rule: trailing 4 main census runs whose redispatch job succeeded; longest paid slice job wall in the same runs
- Quarantine evidence (DX-12): 0 of 241 blocking case(s) have enough evidence; 241 insufficient evidence (not the same as healthy)
    rule: blocking cases with >= 10 qualifying v3 trials on their current series, over the last 10 main census runs
- Free-suite flaky-pass rate: 17.9% (17/95 main runs since 2026-10-19 needed the retry pass; 2 file(s))
    rule: share of main free-tests runs (success or failure) with at least one flaky-pass ledger entry; per-file rate = runs with that file / runs
    test/session-update-autostash.test.ts: 16/95 runs (16.8%) FAIL > 5%
    test/capy-captain-flow.test.ts: 1/95 runs (1.1%)
- Free-suite and Windows wall: free-tests 5.0 min (94 runs); windows-free-tests (successful PR runs) 10.7 min (233 runs)
    rule: p50 of run_started_at to updated_at for successful main runs of free-tests.yml and successful pull_request runs of windows-free-tests.yml (its workflow_dispatch duration recordings excluded)
- Free-suite serial time: 3641 s over 1287 files
    rule: sum of scripts/free-test-durations.json (the committed seed)
- Net complexity (CEO-32, reported, no target): HEAD: 108100 lines, 58 package scripts (pass --complexity-base <ref> for the delta)
    rule: lines under scripts, test/helpers, .github/workflows and package.json script count, HEAD vs --complexity-base
Enforced checks:
- [FAIL] Free-suite flaky files (W7a): test/session-update-autostash.test.ts: flaky in 16/95 main runs (16.8% > 5%)
    fix: Fix the race at source (docs/TESTING_INTERNALS.md#flake-ledger); never raise the timeout or add a retry. Reproduce with `bun test <file>` under load.
- [FAIL] Free test files missing from the duration seed (CEO-10): stale seed: 46 unseeded file(s) > 5: browse/test/busy-active-tab.test.ts, browse/test/command-timeout-report.test.ts, browse/test/terminal-agent-bun-exe.test.ts, ios-qa/daemon/test/session-cache.test.ts, test/approval-record.test.ts, test/bun-config-shell-bins.test.ts, test/bun-dotenv-isolation.test.ts, test/bun-entry-isolation.test.ts, test/bun-isolation-launch.test.ts, test/captain-brief.test.ts, +36 more
    fix: Refresh the seed with UBICLOUD_API_KEY set: `bun run test:ubicloud --record-durations` times every free file on a CI-mirrored VM and copies scripts/free-test-durations.json back into this checkout; commit it (docs/TESTING_INTERNALS.md#free-suite-duration-seed). Without UBICLOUD_API_KEY, leave the refresh to a maintainer: a 4-core laptop or sandbox recording skips or slows browser and display tests, so it is not accepted.
Lenguaje dominante
TypeScript
Estrellas
143k
Forks
21k
Merge medio
5 h 25 min
PR fusionados (30 d)
791

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de garrytan/gstack

Todos los issues de garrytan/gstack

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.