Repository navigation
Conversation
|
Second check on Windows with Python 3.12 at 5754abc. All 27 dashboard tests passed. In a separate synthetic checkout, the parent missed all four expected rewrites when the root contained spaces. This head passed the unquoted, quoted, mixed-case/slash, and checkout-root-only cases. Both revisions produced the same expected results for the plain checkout, the relative path, and the outside path. AI-assisted. |
|
Tested 5754abc on Windows, CPython 3.14.7, CPU only (no GPU, no game files).
One case stays. A checkout path with a space is still partly visible when plain text follows it. Run this script from the repository root: import sys, tempfile
from pathlib import Path
from unittest.mock import patch
sys.path.insert(0, "tools")
import progress_dashboard as pd
with tempfile.TemporaryDirectory() as d:
root = Path(d) / "Test Checkout"
root.mkdir()
with patch.object(pd, "ROOT", str(root)):
print(pd.scrub(f"Checkout {root} is ready"))Actual result: The merge base gives the same result. A path in quotation marks gives the correct result at this head. AI-assisted. |
|
Follow-up at The new assertion failed on AI-assisted. |
|
Re-checked AI-assisted. |
|
Thanks @shdann. I reproduced the unquoted checkout directory followed by prose on All 27 dashboard tests passed on Windows in both the normal worktree and a worktree whose actual path contains spaces. AI-assisted. |
|
Tested de16453 merged with main d974c88 on Linux (WSL2) Python 3.12.16 and native Windows Python 3.13.1: pass tests/test_progress_dashboard.py: 27 tests OK on both OSes. |
|
Scope: the extension applies to paths starting with the known checkout prefix. An immediately adjacent, unquoted relative path token can look like the end of a sibling name, so that ambiguous form is redacted together. A connector such as Windows 11 / Python 3.14.7: 27/27 dashboard tests passed. The new case leaks the synthetic basename on AI-assisted. |
|
Reviewed and tested
AI-assisted (Claude Code). |
|
Reviewed 66bbad1 (CPU, Linux, Python 3.13): 1 issue
No game files. |
|
Tested on Windows with a checkout path that has spaces in it. This PR fixes the paths inside the checkout. Four leaks from main remain for paths outside it, and #4522 fixes those too (details below). Windows 11 Pro (26200), CPython 3.14.7,
Inputs (the same on every tree) and what each tree printed:
The four cases #4010 still gets wrong are the same on main: a path outside the checkout whose folder has a space (or an apostrophe) keeps everything after the space, file name included. A work folder like #4010, #4522 and #4295 (UNC paths) conflict with each other, two at a time, in AI-assisted (Claude Code). I read the diffs and ran the tests myself on the machine above. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BUILD-1129 was claimed in #3918. Thanks to @Chezzizoo for the report.
Change
The progress dashboard now matches the known checkout prefix before scanning for generic absolute paths. A path inside a checkout whose directory contains spaces keeps its repository-relative form. The existing containment check still decides whether a match can be shown.
Validation
aa2988ccand passed with the fix. It covers quoted and unquoted paths, mixed Windows case and slash styles, and the checkout directory itself.python -I tests/test_progress_dashboard.pypassed all 27 tests both in a regular worktree and in a worktree whose real path contains spaces.py_compileandgit diff --checkpassed. The tests use synthetic inputs.AI-assisted.
Coordination
The updated #4522 combines these checkout cases with broader path handling. Its current head passed all six checkout-prefix comparisons against this PR on Windows. The review records one remaining quoted-path case and proposes a single merge through #4522 once addressed. Combined review