Skip to content

Run the CLI exit test on Windows: keep PATH in its cleared environment - #1500

Merged
ualtinok merged 2 commits into
mainfrom
fix/ort-exit-test-windows-path
Nov 23, 2026
Merged

ualtinok merged 2 commits into
mainfrom
fix/ort-exit-test-windows-path

Conversation

@aft-alfonso

@aft-alfonso aft-alfonso Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The 0.67.1 release branch failed one test on Windows: cli_ort_exit_test::warmup_exit_waits_for_a_fill_inside_model_creation ("aft exited with exit code: 1 before the fill entered model creation").

Cause, seen on a Windows build server: the test clears the child's whole environment, including PATH. AFT then can't find git, logs "AFT could not tell which repository this folder belongs to; it tries again shortly" every 250 ms, and the meaning-search fill never starts. Restoring only SystemRoot didn't help.

Fix (test only): keep PATH, and SystemRoot on Windows, in the cleared environment. An early exit now also prints aft's stderr, so the next failure says why.

Verified: the test passes on a Windows build server and on Linux with this change.

Refs #1495.


Summary by cubic

Fixes the Windows-only failure of cli_ort_exit_test::warmup_exit_waits_for_a_fill_inside_model_creation: the test cleared the child's entire environment, so AFT couldn't find git, never detected the repository, and the fill never started.

  • The child environment now keeps PATH (and SystemRoot on Windows) so AFT can run git and reach model creation.
  • When the child exits early, the panic message now includes aft's stderr so the next failure says why.
  • Adds a test-only search-quality fixture descriptor for the gate to record.

Refs #1495.

Written for commit 4373967. Summary will update on new commits.

View guided diff Turn on auto-fix

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; the previous fixture-name issue is fixed.

Summary

This test-only PR keeps PATH and available SystemRoot values when clearing the child’s environment.

  • The CLI exit test reaches model creation and shows stderr on early exits.

Reviews (2) · Last reviewed commit: "Name the search-quality fixture the gate..." · Reviewed by Greptile

With every variable cleared, AFT on Windows cannot find git, so it never
decides whether the test folder is a repository and the meaning-search fill
never starts. An early exit now also prints aft's stderr.

Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
@ualtinok
ualtinok merged commit 12233fc into main Nov 23, 2026
84 of 89 checks passed
@ualtinok
ualtinok deleted the fix/ort-exit-test-windows-path branch November 23, 2026 18:57
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