Skip to content

land: windows-configure-checkpoint-tests - #505

Merged
github-merge-queue[bot] merged 2 commits into
mainfrom
land/windows-configure-checkpoint-tests
Oct 18, 2026
Merged

github-merge-queue[bot] merged 2 commits into
mainfrom
land/windows-configure-checkpoint-tests

Conversation

@aft-alfonso

@aft-alfonso aft-alfonso Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Accepted agent delivery; branch-keyed search descriptor included.


Summary by cubic

Fixes two Windows-flaky tests in crates/aft and adds a benchmark slice descriptor for this branch; no production behavior changes.

  • The configure cancellation test no longer expects configure to reach a stubbed git probe within a deadline; the stub holds its first attempt in flight until the test releases it, and the assertion is now exact (no further attempts after cancel) instead of allowing one raced attempt.
  • The checkpoint rollback test no longer writes its fixture to the system temp directory, which intermittently refused access on Windows, and its blocking path is now the parent directory created by the first restore, so the write fails and the rollback actually runs instead of being rejected up front.

Written for commit 9d68b18. Summary will update on new commits.

View guided diff Turn on auto-fix

RetriggerView in GreptileConfidence Score: 5/5

This PR appears safe to merge; no actionable issues were found.

Summary

This PR makes Windows-sensitive tests less dependent on temporary files and machine speed.

  • Checkpoint tests build entries in memory and reach rollback failures.
  • Configure cancellation tests hold the first probe until cancellation is signaled.

No actionable issues were found. Tests were not run.

Reviews (1) · Last reviewed commit: "release notes and search-quality descrip..." · Reviewed by Greptile

ualtinok and others added 2 commits October 18, 2026 01:14
…checkpoint dir rollback)

configure_cancellation_stops_the_git_probe_retry_ladder failed on Windows CI
with "stubbed git probe did not start": the test gave configure a 2 s
wall-clock budget to reach the stubbed git probe, and everything configure
does first (real git spawns, storage setup) can exceed that on a loaded
runner. The stub now holds its first attempt in flight until the test
releases it, and the test waits for the probe to start or for configure to
finish without reaching it (120 s hang guard only). Because the cancel now
lands while attempt 1 is known to be held, the cancellation assertion is
tightened from "at most one more attempt" to "no further attempt".

checkpoint_restore_failure_removes_created_parent_dirs failed on Windows CI
inside its fixture: tempfile::NamedTempFile::new() in the runner's shared
TEMP returned "Access is denied" (os error 5) before any checkpoint code
ran. The checkpoint_file helper now builds the entry in memory. Reading the
test also showed it never reached the rollback: its blocking path was a
pre-existing directory, which the pre-restore snapshot refuses before
anything is written, so a no-op rollback_created_dirs left it green. The
failing second path is now the directory the first restore creates, so the
write really happens and really fails, and the rollback must remove the
created parents. The old "pre-existing blocking directory remains" check
is replaced by asserting the pre-existing parent directory remains, since
there is no pre-existing blocking directory any more.

Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
…ckpoint-tests

Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
@ualtinok
ualtinok added this pull request to the merge queue Oct 17, 2026
@github-merge-queue
github-merge-queue Bot merged commit 144f846 into main Oct 18, 2026
49 checks passed
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