Skip to content

chore(tests): loosen workspace-mounts perf ceiling to catastrophe-only#358

Merged
pofallon merged 1 commit into
mainfrom
chore/perf-test-catastrophe-ceiling
Jul 24, 2026
Merged

chore(tests): loosen workspace-mounts perf ceiling to catastrophe-only#358
pofallon merged 1 commit into
mainfrom
chore/perf-test-catastrophe-ceiling

Conversation

@pofallon

Copy link
Copy Markdown
Contributor

Summary

Hardens the flaky wall-clock assertions in workspace_mounts.rs's performance_tests (finding #2 from a flaky-test sweep).

These tests asserted a 200ms average wall-clock ceiling over the workspace-discovery + mount-rendering hot path. Two of them (test_workspace_discovery_performance, test_combined_workspace_and_mount_performance) do real filesystem canonicalization / git-root detection, which can spike under nextest's parallel load — worst on Windows' locking filesystem — making a precise wall-clock bound a flaky-fail risk on the fast lane.

Change

  • Keep the functional per-iteration assertions (.is_ok()/.is_some()) — they still guard correctness on every run.
  • Raise the shared ceiling from 200ms → 5s: a deliberately generous "catastrophe/hang" gate that can only trip on a genuine hang or an order-of-magnitude regression, never on ordinary CI jitter.
  • Documented the rationale on the constant.

Testing

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • All 4 perf tests pass.

🤖 Generated with Claude Code

The `performance_tests` in workspace_mounts.rs asserted a 200ms average
wall-clock ceiling over the workspace-discovery + mount-rendering hot path.
Two of them do real filesystem canonicalization / git-root detection, which
can spike under nextest's parallel load (worst on Windows' locking FS), making
the precise bound a flaky-fail risk on the fast lane.

Keep the functional per-iteration assertions (they still guard correctness on
every run) but raise the bound to a deliberately generous 5s so it can only
trip on a genuine hang or an order-of-magnitude regression, never on ordinary
CI jitter. Documented the rationale on the constant.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019vhr7Tcf8ybvSZSE1owqBT
@github-actions github-actions Bot added the chore Chore & maintenance label Jul 24, 2026
@pofallon
pofallon merged commit 1fbc6d3 into main Jul 24, 2026
14 checks passed
@pofallon
pofallon deleted the chore/perf-test-catastrophe-ceiling branch July 24, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Chore & maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant