Run the CLI exit test on Windows: keep PATH in its cleared environment
Merged
AF
44m ago
+24+24+01234567890123456789-2-2-0123456789
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.
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.