Skip to content

Move the remaining speed-dependent tests to the daily timing run - #37

Merged
MHohlios merged 1 commit into
mainfrom
wiffletree/move-remaining-speed-dependent-tests-to-the-dail
Nov 4, 2026
Merged

MHohlios merged 1 commit into
mainfrom
wiffletree/move-remaining-speed-dependent-tests-to-the-dail

Conversation

@MHohlios

@MHohlios MHohlios commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Summary

a_pathological_pattern_runs_in_linear_time failed main's CI on Windows at f46f85f (run). It's a CPU-time ratio test that #33 left in PR CI to move if it ever flaked. The release workflow runs CI first, so a flake like this would stop a release. This moves it, and the few tests like it, to the daily timing run with the timing_ convention from docs/ci.md. Linear: VYT-261.

Changes

  • Split (the behaviour half stays on PRs):
    • matcher.rs: a_pathological_pattern_matches_nothing_on_a_near_miss on PRs; timing_a_pathological_pattern_runs_in_linear_time daily.
    • session.rs: a_session_quit_during_a_merge_waits_for_it_to_land on PRs, through a quit_during_a_merge() helper; timing_a_session_quit_during_a_merge_waits_for_it_to_land keeps the 2 s bound daily.
  • Moved whole (the time limit is the behaviour under test), in tests/luau_hooks.rs:
    • timing_a_hook_with_slow_ticks_is_stopped_by_the_time_limit
    • timing_one_jump_past_the_time_limit_isnt_an_overrun
    • timing_time_off_the_cpu_isnt_charged_to_a_hook (was time_a_hook_spends_off_the_cpu_isnt_charged)
  • The generous hang guards (registry/tests.rs 10 s, sync/tests.rs 20 s) stay on PRs.

Checks

cargo fmt --check, clippy (--release --locked -D warnings), cargo test --workspace --no-fail-fast --locked and -- --ignored timing_ all pass.

Follow-ups

  • PR CI no longer tests the CPU-time limit's overrun path; add a deterministic test with a tiny time limit (crates/mudling-core/tests/luau_hooks.rs:268).
  • The PR half of the quit-during-merge test no longer checks the waiting; assert the quit is still pending before the merge is released (crates/mudling-core/src/session.rs:1052).

Reviewed with Wiffletree: 1 full review and 0 re-checks, 1 round (Tests, Claude, Style)

The pathological-pattern ratio test, the hook time-limit tests and the
session quit bound now carry the timing_ prefix and run daily. The matcher
and session tests keep their behaviour checks in pull request CI.
@MHohlios
MHohlios merged commit 6fc7cb1 into main Nov 4, 2026
4 of 5 checks passed
@MHohlios
MHohlios deleted the wiffletree/move-remaining-speed-dependent-tests-to-the-dail branch November 4, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant