Skip to content

Commit 591155d

Browse files
committed
test(windows): probe the failing case through the CLI, which prints diagnostics
The retry with a fresh cache fails identically, so this is path-dependent, not order-dependent — the daemon-lifetime theory is dead. The MCP result compresses the pipeline's own diagnostics into one hint string; the documented CLI entrypoint prints them. Third fresh cache, same repo, output verbatim. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent b1526d2 commit 591155d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎tests/windows/test_non_ascii_path.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,20 @@ def main():
375375
and retry.get("definition_nodes") == base["definition_nodes"]):
376376
print(" %s retry matched baseline -- order-dependent, "
377377
"not path-dependent" % key)
378+
else:
379+
# The MCP result hides the pipeline's own diagnostics; the
380+
# CLI entrypoint prints them. Same repo, third fresh cache.
381+
cli_env = os.environ.copy()
382+
cli_env["CBM_CACHE_DIR"] = os.path.join(work, "c3_" + key)
383+
cli = subprocess.run(
384+
[binary, "cli", "index_repository",
385+
json.dumps({"repo_path": repo})],
386+
capture_output=True, timeout=180, env=cli_env)
387+
cli_out = (cli.stdout or b"").decode("utf-8", "replace")
388+
cli_err = (cli.stderr or b"").decode("utf-8", "replace")
389+
print(" %s cli probe rc=%s\n stdout: %s\n"
390+
" stderr: %s" % (key, cli.returncode,
391+
cli_out[-900:], cli_err[-900:]))
378392
failures.append(key)
379393
finally:
380394
shutil.rmtree(work, ignore_errors=True)

0 commit comments

Comments
 (0)