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

Merged
AF
44m ago
+24-2

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.

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