Skip to content

Flake audit pass across all test suites #65

Description

@Sootopolis

What

Tracking issue: do a periodic audit of every `sbt test` suite for flake risks. Look for the usual culprits:

  • Wall-clock dependencies (`Instant.now()` / `System.currentTimeMillis` in production code that tests exercise — use `Clock.instant`, run under `TestClock`).
  • `provideShared` against a DB schema without `@@ TestAspect.sequential` when tests poll shared rows or share scheduler state.
  • Real-clock `ZIO.sleep` / busy-waits without an explicit `@@ TestAspect.withLiveClock`.
  • Cross-suite stdout/stderr or logger contention (e.g. `ProgressDisplay` writes from sibling suites).
  • Tests that depend on iteration order of `Set` / `Map`.
  • PK-collision-prone same-microsecond inserts.

Why

Several individual flakes already tracked:

  • Flaky TestProgressBar under full-suite load #64 — TestProgressBar (single occurrence so far)
  • `memory/project_flaky_job_scheduler_test.md` — parallel-DB-shared-state race
  • `memory/project_flaky_recruitment_explore_test.md` — interrupted-recruit timing (resolved)
  • `memory/project_flaky_client_timing_test.md` — wall-clock dependency (largely resolved)

A coordinated pass while these are fresh would catch the next class of flake before it bites in CI.

Out of scope

Not blocking on any specific issue. Pick up when there's a quiet window or a related refactor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreTooling, deps, config, build, cleanup

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions