Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

test(windows): retry a failed non-ASCII case with a fresh cache

Martin Vogelb1526d26e77b
diff --git a/tests/windows/test_non_ascii_path.py b/tests/windows/test_non_ascii_path.py
index 89de42b57..a34547f82 100644
--- a/tests/windows/test_non_ascii_path.py
+++ b/tests/windows/test_non_ascii_path.py
@@ -361,6 +361,20 @@ def main():
# diagnosis instead of swallowing it.
if got.get("error"):
print(" %s error: %s" % (key, got["error"]))
+ # Discriminate order-dependence from path-dependence: the same
+ # repo, fresh cache, immediately again. A passing retry means
+ # the previous case's daemon interfered; a failing retry means
+ # the path itself is the trigger.
+ retry = index_and_count(binary, repo,
+ os.path.join(work, "c2_" + key))
+ print(" %s retry: nodes=%s error=%s" % (
+ key, retry.get("nodes"), retry.get("error", "")[:200] or None))
+ if (not retry.get("error")
+ and retry.get("nodes") == base["nodes"]
+ and retry.get("edges") == base["edges"]
+ and retry.get("definition_nodes") == base["definition_nodes"]):
+ print(" %s retry matched baseline -- order-dependent, "
+ "not path-dependent" % key)
failures.append(key)
finally:
shutil.rmtree(work, ignore_errors=True)