Repository navigation
Run the CLI exit test on Windows: keep PATH in its cleared environment - #1500
Merged
Merged
Conversation
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>
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.
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 onlySystemRootdidn't help.Fix (test only): keep
PATH, andSystemRooton 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.PATH(andSystemRooton Windows) so AFT can run git and reach model creation.Refs #1495.
Written for commit 4373967. Summary will update on new commits.


Confidence Score: 5/5
The PR appears safe to merge; the previous fixture-name issue is fixed.Summary
This test-only PR keeps
PATHand availableSystemRootvalues when clearing the child’s environment.Reviews (2) · Last reviewed commit: "Name the search-quality fixture the gate..." · Reviewed by Greptile