Repository navigation
CI: no timing in any automatic run; profile only on demand - #40
Merged
MHohlios merged 8 commits intoNov 4, 2026
Merged
Conversation
added 8 commits
November 3, 2026 15:36
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.
…ng-in-any-automatic-run-profile-only-o
daily.yml becomes profile.yml ("Profile"), started only by hand, on any
branch: the replay benchmark, the comparison and the timing_ tests. CI on
pull requests, main and a release runs no benchmark and no timing test.
Tests that depended on the machine's speed or on thread scheduling:
- A credential helper started as `sh` with PATH set, so Rust forked it,
and until its exec the child held every repo owner lock the process had
open; a sync opening a repo then found it busy. It now runs /bin/sh,
which starts by posix_spawn.
- The registry FIFO test ordered its two writes with a 300 ms sleep; the
second now waits until the first reader has let go.
- Two vault tests read the state right after a 50 ms timeout, racing the
vault's thread; they now wait for the lock on the state watch.
- The export test could see the exports end before its first write; the
exports now go on until a write has finished.
- Polling and read guards of 1 to 5 seconds are now 60-second hang guards.
Ignore reasons now read "timing: runs in the profile".
…ng-in-any-automatic-run-profile-only-o # Conflicts: # crates/mudling-core/src/plugin/matcher.rs # crates/mudling-core/src/session.rs # crates/mudling-core/tests/luau_hooks.rs
…ng-in-any-automatic-run-profile-only-o
…waits and CI jobs The refused-repo test slept 300 ms between sync_now and quit; the sync thread takes commands in order, so it now waits for the thread to end under the 60 s quit guard instead. The vault tests' waits for a lock end in a 60 s hang guard, and every CI job has a timeout-minutes. docs/ci.md says what the release gate checks and what hang guards a test may use, and the credential helper comment says where posix_spawn closes the fork window and where it only shrinks it.
push_to_a_stuck_disk slept three flush intervals so the writer thread would be stuck on the disk before the pushes. The test disk now says when a write begins, and the test waits for that under a 60 s guard.
…n the profile argon2_never_stalls_the_callers_thread asserted more than five heartbeats during Argon2, which depends on the scheduler. The automatic run now checks that the vault's work runs on its own thread at the full Argon2 cost, and the heartbeat count moves to a timing_ test. Wrap the README's long line.
MHohlios
deleted the
wiffletree/ci-no-timing-in-any-automatic-run-profile-only-o
branch
November 4, 2026 11:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR checks and releases kept failing on tests that depend on how fast GitHub's runners are, or on how threads get scheduled. Nothing automatic now runs a timing test or the benchmark: they run only in an on-demand Profile workflow. Every remaining test was swept so it waits on a real signal rather than on time. Linear: VYT-264.
Changes
daily.ymlis nowprofile.yml, named "Profile", withworkflow_dispatchonly, and it runs on any branch. It keeps the replay benchmark, the comparison (against the last Profile run on main, or else the latestv*tag) and thetiming_tests. Run it from Actions → Profile → Run workflow, or locally on a quiet machine withcargo test --workspace -- --ignored timing_.timeout-minutes(lint 30, build 60, iOS 60)./bin/shrather thansh. With a bare name and PATH set, Rust forks instead of using posix_spawn, and until exec the child held every open file, including other repos' owner locks. On macOS this closes the window; on Linux glibc still copies the file table briefly, so the window only shrinks. Players won't notice the change.registry::what_loads_is_the_copy_that_was_hashed: waits for the first FIFO reader to let go instead of sleeping 300 ms (unix-onlylibcdev-dependency).logs::writerstuck-disk test: waits for the writer's first write to begin instead of sleeping.sync::refused_repo_leaves_the_vault_alone: relies on in-order commands and the quit's full pass instead of a 300 ms sleep.repoexport test: exports until a write has landed.timing_argon2_never_stalls_the_callers_thread.reopen()retries for up to 60 s.Checks
cargo fmt --check, clippy (--release --locked -D warnings) andactionlintpass.cargo test --workspace --no-fail-fast --lockedpassed 5 times in a row under 24 CPU burners on 12 cores, with a second full test run going in parallel: 1,793 passed and 0 failed each time. The tester repeated that independently.Follow-ups
crates/mudling-core/src/git/credentials.rs:207).Reviewed with Wiffletree: 1 full review and 3 re-checks, 4 rounds (Tests, Claude, Style)