progress_dashboard: hide a whole drive path that contains spaces (DASH-SCRUB-SPACES) #1274

Merged
TheGeogeo merged 3 commits from upstream-pr/1274 into main 2026-11-29 08:14:30 +00:00
TheGeogeo commented 2026-11-24 21:10:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-24T21:10:10Z.


Claimed in the coordination issue as: DASH-SCRUB-SPACES — https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144496629

What and why

scrub() in tools/progress_dashboard.py replaces absolute paths outside the repository, file name included, before a line of output reaches the dashboard page. A Windows path that contains a space was only replaced up to the space: cannot read D:\My work\shaders\<name>.fssm became cannot read <path> work\shaders\<name>.fssm, so a carved shader's name stayed in the text. test_progress_dashboard.py showed it by failing when the temp folder has a space in its name.

  • An unquoted drive path now goes on over spaces while a later part still has its separator, but only after a part with no dot or punctuation (a folder name). The text after a file name stays, slashes included: D:\work\a.txt is not a folder is still <path> is not a folder, and D:/work/a.txt and tests/test_x.py failed is <path> and tests/test_x.py failed.
  • The other Windows separator also continues an unquoted path (D:/My work\fixtures\a.txt, D:\My work/stubs/a.spv), under the same rule, so D:\work\a.txt is 3/4 done keeps its prose.
  • A quoted drive path ends at its closing quote, so a file name with spaces is covered there too.

Limits: an unquoted path whose last part has a space (D:\My work\my file.txt) keeps the text after that last space, and so does a bare C:\Users\First Last. Text with a separator after a part with no dot or punctuation is replaced with the path (D:\work has 3/4 files). A folder name that has a dot right before a space (D:\My.data dir\x.fssm, D:\work\v1.2 build\x.fssm) ends the path, with either separator after it. POSIX paths are unchanged.

Tested

Head 09ce9de4 (the same-separator rule above, added after review), Windows 11, Python 3.12.4: python -I tests/test_progress_dashboard.py 52 OK. The three new same-separator subtests fail on db3f77d4.

Head db3f77d4, rebased on main e18b59a5, same patch as f36f661e (git range-diff); it merges cleanly with main 747809e7. Windows 11, Python 3.12.4:

  • python -I -B tests/test_progress_dashboard.py: 52 OK. With this test on the tool of main e48ff037, it has 11 failures, all in test_drive_paths_with_spaces_lose_their_whole_name.
  • tests/test_docs_cli_flags.py, tests/test_text_write_line_endings.py, tests/test_ctest_registration.py, tests/test_ci_registration.py and tests/test_docs_links.py: OK.
  • tests/test_tool_stdout_encoding.py fails in test_every_main_block_reconfigures_stdout, as on main e18b59a5 alone (three tools this change does not touch).
  • compileall, git diff --check and python -I scripts/check_no_game_data.py on the two files: clean.

Earlier head, on Windows 11, Python 3.12.4, on main at 6261ca91 (f36f661e):

  • python -I -B tests/test_progress_dashboard.py — 52 OK, and also with TEMP set to folders whose names have a space, accents, or both. With the new test and the tool from before this pull request, the new test has 11 failures (10 subtests and the Windows sibling case). The four mixed-separator cases fail on 7c001c7f.
  • The drive-path cases also pass with os.name patched to posix.
  • Merges with main 4a50cafc (52 OK), #1256 (c81b2daf, 59 OK), #625 (3c2ad30d, 57 OK) and #1001 (e98b345c, 52 OK) are clean.
  • test_tool_stdout_encoding.py, test_text_write_line_endings.py, test_docs_links.py, test_docs_cli_flags.py, compileall, git diff --check and the no-game-data check passed.

GPUs tested: n/a (CPU-only synthetic tests).

AI-assisted: yes (Claude Code).

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5480388715 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1274). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-24T21:10:10Z. --- Claimed in the coordination issue as: DASH-SCRUB-SPACES — https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144496629 ### What and why `scrub()` in `tools/progress_dashboard.py` replaces absolute paths outside the repository, file name included, before a line of output reaches the dashboard page. A Windows path that contains a space was only replaced up to the space: `cannot read D:\My work\shaders\<name>.fssm` became `cannot read <path> work\shaders\<name>.fssm`, so a carved shader's name stayed in the text. `test_progress_dashboard.py` showed it by failing when the temp folder has a space in its name. - An unquoted drive path now goes on over spaces while a later part still has its separator, but only after a part with no dot or punctuation (a folder name). The text after a file name stays, slashes included: `D:\work\a.txt is not a folder` is still `<path> is not a folder`, and `D:/work/a.txt and tests/test_x.py failed` is `<path> and tests/test_x.py failed`. - The other Windows separator also continues an unquoted path (`D:/My work\fixtures\a.txt`, `D:\My work/stubs/a.spv`), under the same rule, so `D:\work\a.txt is 3/4 done` keeps its prose. - A quoted drive path ends at its closing quote, so a file name with spaces is covered there too. Limits: an unquoted path whose last part has a space (`D:\My work\my file.txt`) keeps the text after that last space, and so does a bare `C:\Users\First Last`. Text with a separator after a part with no dot or punctuation is replaced with the path (`D:\work has 3/4 files`). A folder name that has a dot right before a space (`D:\My.data dir\x.fssm`, `D:\work\v1.2 build\x.fssm`) ends the path, with either separator after it. POSIX paths are unchanged. ### Tested Head `09ce9de4` (the same-separator rule above, added after review), Windows 11, Python 3.12.4: `python -I tests/test_progress_dashboard.py` 52 OK. The three new same-separator subtests fail on `db3f77d4`. Head `db3f77d4`, rebased on `main` `e18b59a5`, same patch as `f36f661e` (`git range-diff`); it merges cleanly with `main` `747809e7`. Windows 11, Python 3.12.4: - `python -I -B tests/test_progress_dashboard.py`: 52 OK. With this test on the tool of `main` `e48ff037`, it has 11 failures, all in `test_drive_paths_with_spaces_lose_their_whole_name`. - `tests/test_docs_cli_flags.py`, `tests/test_text_write_line_endings.py`, `tests/test_ctest_registration.py`, `tests/test_ci_registration.py` and `tests/test_docs_links.py`: OK. - `tests/test_tool_stdout_encoding.py` fails in `test_every_main_block_reconfigures_stdout`, as on `main` `e18b59a5` alone (three tools this change does not touch). - `compileall`, `git diff --check` and `python -I scripts/check_no_game_data.py` on the two files: clean. Earlier head, on Windows 11, Python 3.12.4, on `main` at `6261ca91` (`f36f661e`): - `python -I -B tests/test_progress_dashboard.py` — 52 OK, and also with `TEMP` set to folders whose names have a space, accents, or both. With the new test and the tool from before this pull request, the new test has 11 failures (10 subtests and the Windows sibling case). The four mixed-separator cases fail on `7c001c7f`. - The drive-path cases also pass with `os.name` patched to `posix`. - Merges with `main` `4a50cafc` (52 OK), #1256 (`c81b2daf`, 59 OK), #625 (`3c2ad30d`, 57 OK) and #1001 (`e98b345c`, 52 OK) are clean. - `test_tool_stdout_encoding.py`, `test_text_write_line_endings.py`, `test_docs_links.py`, `test_docs_cli_flags.py`, `compileall`, `git diff --check` and the no-game-data check passed. GPUs tested: n/a (CPU-only synthetic tests). AI-assisted: yes (Claude Code). ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption.
DeadlyChirp commented 2026-11-24 21:36:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-11-24T21:36:31Z.


On Windows, the filename still appears in the dashboard when the drive prefix uses a forward slash and the rest of the path comes from os.path.join. I reproduced this on 7c001c7 with Python 3.12.10. From the repo root, run the following in Python:

import os, runpy
scrub = runpy.run_path("tools/progress_dashboard.py")["scrub"]
p = os.path.join("D:/My work", "fixtures", "example.txt")
print(scrub("cannot read " + p))
print(scrub("cannot read " + os.path.normpath(p)))

The first call prints cannot read <path> work\fixtures\example.txt. The second prints the expected cannot read <path>. Both strings name the same external path, and the filename contains no spaces. The unquoted drive pattern picks a separator at the drive prefix and requires that same separator after the space. Could the continuation accept either Windows separator? The first call would make a regression test without touching the filesystem.

AI-assisted review, verified locally with synthetic paths.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7145154839 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1274#issuecomment-7145154839). Originally posted by [DeadlyChirp](https://github.com/DeadlyChirp) on 2026-11-24T21:36:31Z. --- On Windows, the filename still appears in the dashboard when the drive prefix uses a forward slash and the rest of the path comes from os.path.join. I reproduced this on 7c001c7 with Python 3.12.10. From the repo root, run the following in Python: ```python import os, runpy scrub = runpy.run_path("tools/progress_dashboard.py")["scrub"] p = os.path.join("D:/My work", "fixtures", "example.txt") print(scrub("cannot read " + p)) print(scrub("cannot read " + os.path.normpath(p))) ``` The first call prints `cannot read <path> work\fixtures\example.txt`. The second prints the expected `cannot read <path>`. Both strings name the same external path, and the filename contains no spaces. The unquoted drive pattern picks a separator at the drive prefix and requires that same separator after the space. Could the continuation accept either Windows separator? The first call would make a regression test without touching the filesystem. AI-assisted review, verified locally with synthetic paths.
TheGeogeo commented 2026-11-24 21:49:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-24T21:49:50Z.


Thanks, reproduced on Windows 11, Python 3.12.4, and fixed in f36f661e. The reverse case (D:\My work/stubs/<name>, the shape vk_pipeline_check.cpp builds) leaked the same way, so it is covered too.

  • The continuation now accepts either separator. The other separator continues the path only after a part with no dot or punctuation, so D:\work\a.txt, then tests/test_x.py failed and D:\work\a.txt is 3/4 done keep their prose.
  • Your first call is in the test, with the reverse form and two longer mixes. The four new path cases fail on 7c001c7f and pass now.
  • tests/test_progress_dashboard.py 52 OK, also with TEMP in folders with a space, accents, or both. Merged with main 4a50cafc, #1256, #625 and #1001: clean, 52, 59, 57 and 52 OK. test_tool_stdout_encoding.py, test_text_write_line_endings.py, test_docs_links.py, test_docs_cli_flags.py, the no-game-data check and git diff --check pass.
  • Limits: a folder name with a dot right before a space still ends the path when the separator changes, and a word with a slash after an extensionless path is replaced with it. Both are in the description.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7145444470 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1274#issuecomment-7145444470). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-24T21:49:50Z. --- Thanks, reproduced on Windows 11, Python 3.12.4, and fixed in `f36f661e`. The reverse case (`D:\My work/stubs/<name>`, the shape `vk_pipeline_check.cpp` builds) leaked the same way, so it is covered too. - The continuation now accepts either separator. The other separator continues the path only after a part with no dot or punctuation, so `D:\work\a.txt, then tests/test_x.py failed` and `D:\work\a.txt is 3/4 done` keep their prose. - Your first call is in the test, with the reverse form and two longer mixes. The four new path cases fail on `7c001c7f` and pass now. - `tests/test_progress_dashboard.py` 52 OK, also with `TEMP` in folders with a space, accents, or both. Merged with `main` `4a50cafc`, #1256, #625 and #1001: clean, 52, 59, 57 and 52 OK. `test_tool_stdout_encoding.py`, `test_text_write_line_endings.py`, `test_docs_links.py`, `test_docs_cli_flags.py`, the no-game-data check and `git diff --check` pass. - Limits: a folder name with a dot right before a space still ends the path when the separator changes, and a word with a slash after an extensionless path is replaced with it. Both are in the description. AI-assisted: yes (Claude Code).
TheGeogeo commented 2026-11-25 19:50:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-25T19:50:28Z.


Rebased from f36f661e to db3f77d4 on main e18b59a5, same patch (git range-diff): the two commits are unchanged. The old base was why test_ctest_registration.py failed in this pull request's CI (vk_host_region_import_test.cpp:341); it passes on the new base. The mixed-separator case reported by DeadlyChirp is still fixed by the second commit (f36f661e, now db3f77d4).

Windows 11, Python 3.12.4: test_progress_dashboard.py 52, test_ctest_registration.py 5, test_ci_registration.py 16 and test_docs_links.py 16 pass, test_docs_cli_flags.py and test_text_write_line_endings.py too. Not from this change: test_tool_stdout_encoding.py, test_bink_names.py, test_opus_tags.py and test_world_names.py fail on main alone as well, and the two cs_dpp_cmp.asm cases of the old CI run are unchanged on main (not run here: no llvm-mc).

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7172834295 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1274#issuecomment-7172834295). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-25T19:50:28Z. --- Rebased from `f36f661e` to `db3f77d4` on `main` `e18b59a5`, same patch (`git range-diff`): the two commits are unchanged. The old base was why `test_ctest_registration.py` failed in this pull request's CI (`vk_host_region_import_test.cpp:341`); it passes on the new base. The mixed-separator case reported by DeadlyChirp is still fixed by the second commit (`f36f661e`, now `db3f77d4`). Windows 11, Python 3.12.4: `test_progress_dashboard.py` 52, `test_ctest_registration.py` 5, `test_ci_registration.py` 16 and `test_docs_links.py` 16 pass, `test_docs_cli_flags.py` and `test_text_write_line_endings.py` too. Not from this change: `test_tool_stdout_encoding.py`, `test_bink_names.py`, `test_opus_tags.py` and `test_world_names.py` fail on `main` alone as well, and the two `cs_dpp_cmp.asm` cases of the old CI run are unchanged on `main` (not run here: no `llvm-mc`). AI-assisted: yes (Claude Code)
OreoFR commented 2026-11-27 19:42:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-27T19:42:24Z.


Merge test and review, taken from the pool PRs MoonEyes had not checked yet. Main ec91d695c merged without conflict; the PR's test files run with the pins of tests/requirements.txt on Windows 11, Python 3.12 (venv). AI-assisted (Claude Code, Claude Opus 5.5).

  • Tests: with the PR 52 passed; the same test files against main: 11 failed. The fix is shown.
  • One problem (minor, READ IN CODE + reproduced): on Windows, scrub('D:/work/a.txt and tests/test_x.py failed') gives '<path> failed': the drive-path pattern (tools/progress_dashboard.py ~153, the more part) runs on over later prose that has the same separator, so and tests/test_x.py is lost. It redacts too much, never too little, so nothing leaks, but the message goes. The tests only cover backslash paths; a forward-slash case like this one would catch it.
  • No catastrophic backtracking found: the worst inputs we built grow roughly quadratically (28 KB in 1.5 s). limit is applied after the regex has run on the whole line, so bounding the input first would cap that.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7226790557 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1274#issuecomment-7226790557). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-27T19:42:24Z. --- Merge test and review, taken from the pool PRs MoonEyes had not checked yet. Main ec91d695c merged without conflict; the PR's test files run with the pins of `tests/requirements.txt` on Windows 11, Python 3.12 (venv). AI-assisted (Claude Code, Claude Opus 5.5). - **Tests:** with the PR 52 passed; the same test files against main: 11 failed. The fix is shown. - **One problem (minor, READ IN CODE + reproduced):** on Windows, `scrub('D:/work/a.txt and tests/test_x.py failed')` gives `'<path> failed'`: the drive-path pattern (`tools/progress_dashboard.py` ~153, the `more` part) runs on over later prose that has the same separator, so `and tests/test_x.py` is lost. It redacts too much, never too little, so nothing leaks, but the message goes. The tests only cover backslash paths; a forward-slash case like this one would catch it. - No catastrophic backtracking found: the worst inputs we built grow roughly quadratically (28 KB in 1.5 s). `limit` is applied after the regex has run on the whole line, so bounding the input first would cap that.
TheGeogeo commented 2026-11-28 15:52:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-28T15:52:12Z.


Thanks for the review. I fixed the same-separator case in 09ce9de45.

An unquoted drive path went on over a space whenever a later word had the same separator. So D:/work/a.txt and tests/test_x.py failed became <path> failed. Now the same separator continues a path only after a part with no dot or punctuation, which is the rule the other separator already used. So that line gives <path> and tests/test_x.py failed, and D:/work/a.txt is 3/4 done keeps is 3/4 done. D:/My work/shaders/x.fssm is still hidden whole. The trade-off is a folder name with a dot right before a space (D:\work\v1.2 build\x.fssm): it now ends the path, as it did on main. I updated the limits in the description.

New subtests: the forward-slash line from your review, its backslash form, D:/work/a.txt is 3/4 done, and D:/My work/Python 3.12 x/<name> (a dot inside the words still continues the path).

I did not bound the input length here. I timed it on Windows: the slow inputs take the same time on main. For example, D:/ followed by 8,000 a/ parts (16 KB) takes about 2.9 s on both, and 4,000 parts take about 0.9 s. So the quadratic growth comes from the patterns that were already there, and bounding it is a separate change.

Tested on Windows 11 with Python 3.12.4:

  • PR head db3f77d45: python -I tests/test_progress_dashboard.py gave 52 OK. With the new subtests, 3 of them fail ('<path> failed' != '<path> and tests/test_x.py failed' and the like).
  • New head 09ce9de45: 52 OK.
  • Trial merge with main c1ecf04ed (clean): test_progress_dashboard.py ran 54 tests with 1 failure, test_default_repo_is_the_one_the_readme_clones. It fails the same way on main alone (53 tests, 1 failure). test_text_write_line_endings.py 3 OK, test_docs_links.py 17 OK, test_docs_cli_flags.py 4 OK.
  • scripts/check_no_game_data.py and git diff --check are clean.

AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7241798248 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1274#issuecomment-7241798248). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-28T15:52:12Z. --- Thanks for the review. I fixed the same-separator case in `09ce9de45`. An unquoted drive path went on over a space whenever a later word had the same separator. So `D:/work/a.txt and tests/test_x.py failed` became `<path> failed`. Now the same separator continues a path only after a part with no dot or punctuation, which is the rule the other separator already used. So that line gives `<path> and tests/test_x.py failed`, and `D:/work/a.txt is 3/4 done` keeps `is 3/4 done`. `D:/My work/shaders/x.fssm` is still hidden whole. The trade-off is a folder name with a dot right before a space (`D:\work\v1.2 build\x.fssm`): it now ends the path, as it did on `main`. I updated the limits in the description. New subtests: the forward-slash line from your review, its backslash form, `D:/work/a.txt is 3/4 done`, and `D:/My work/Python 3.12 x/<name>` (a dot inside the words still continues the path). I did not bound the input length here. I timed it on Windows: the slow inputs take the same time on `main`. For example, `D:/` followed by 8,000 `a/` parts (16 KB) takes about 2.9 s on both, and 4,000 parts take about 0.9 s. So the quadratic growth comes from the patterns that were already there, and bounding it is a separate change. Tested on Windows 11 with Python 3.12.4: - PR head `db3f77d45`: `python -I tests/test_progress_dashboard.py` gave 52 OK. With the new subtests, 3 of them fail (`'<path> failed' != '<path> and tests/test_x.py failed'` and the like). - New head `09ce9de45`: 52 OK. - Trial merge with `main` `c1ecf04ed` (clean): `test_progress_dashboard.py` ran 54 tests with 1 failure, `test_default_repo_is_the_one_the_readme_clones`. It fails the same way on `main` alone (53 tests, 1 failure). `test_text_write_line_endings.py` 3 OK, `test_docs_links.py` 17 OK, `test_docs_cli_flags.py` 4 OK. - `scripts/check_no_game_data.py` and `git diff --check` are clean. AI-assisted: yes
TheGeogeo commented 2026-11-28 22:10:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-28T22:10:21Z.


Author-side check (I opened this PR, so an independent test counts more): 09ce9de45 merged (no commit) with main aa918e5d9, Python 3.12.4, Windows 11, CPU only.

  • Green: python -I tests/test_progress_dashboard.py: 54 tests, 1 failure, test_default_repo_is_the_one_the_readme_clones. It fails the same way on plain main (the README no longer clones ubiquitarianism/leonida), so it is unrelated.
  • Red: with tools/progress_dashboard.py back to main, test_drive_paths_with_spaces_lose_their_whole_name fails on 12 of its lines (e.g. D:\My work\shaders\SENTINEL_...fssm).
  • Merges cleanly together with #1256 and #625. With all three, 66 tests run, with only the same main failure.
  • check_no_game_data.py is clean.
  • Note, not a blocker: the new drive-path pattern grows about quadratically on one long line of mixed separators ("D:/" + "ab cd\\" * n): 45 ms at 1.5 KB, 0.7 s at 12 KB, against 2 ms on main. Log lines are far shorter.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246546633 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1274#issuecomment-7246546633). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-28T22:10:21Z. --- Author-side check (I opened this PR, so an independent test counts more): `09ce9de45` merged (no commit) with `main` `aa918e5d9`, Python 3.12.4, Windows 11, CPU only. - Green: `python -I tests/test_progress_dashboard.py`: 54 tests, 1 failure, `test_default_repo_is_the_one_the_readme_clones`. It fails the same way on plain `main` (the README no longer clones `ubiquitarianism/leonida`), so it is unrelated. - Red: with `tools/progress_dashboard.py` back to `main`, `test_drive_paths_with_spaces_lose_their_whole_name` fails on 12 of its lines (e.g. `D:\My work\shaders\SENTINEL_...fssm`). - Merges cleanly together with #1256 and #625. With all three, 66 tests run, with only the same `main` failure. - `check_no_game_data.py` is clean. - Note, not a blocker: the new drive-path pattern grows about quadratically on one long line of mixed separators (`"D:/" + "ab cd\\" * n`): 45 ms at 1.5 KB, 0.7 s at 12 KB, against 2 ms on `main`. Log lines are far shorter. AI-assisted (Claude Code).
zmasi commented 2026-11-29 00:43:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T00:43:59Z.


Independent verification on Windows 11 (10.0.26200, x64) with 09ce9de45a merged onto origin/main (e66c65b950, 0 merge conflicts), tested under both Python 3.12.10 and Python 3.14.5 (CPU-only synthetic tests, no game data):

  • Red (origin/main tools/progress_dashboard.py + merged tests/test_progress_dashboard.py):
    • python -I tests/test_progress_dashboard.py: Ran 66 tests, FAILED (failures=13) on both Python 3.12.10 and Python 3.14.5 (12 drive-path space cases in test_drive_paths_with_spaces_lose_their_whole_name, plus origin/main's unrelated test_default_repo_is_the_one_the_readme_clones baseline mismatch after README.md's git clone command update).
  • Green (09ce9de45a merged onto origin/main):
    • python -I tests/test_progress_dashboard.py: all 12 failures in test_drive_paths_with_spaces_lose_their_whole_name pass (65/66 pass; only the same unrelated origin/main test_default_repo_is_the_one_the_readme_clones failure remains) on Python 3.12.10 (4.92 s) and Python 3.14.5 (4.77 s).
    • Re-running python -I -B tests/test_progress_dashboard.py with TEMP and TMP pointed at a directory containing both spaces and non-ASCII characters also passes all Scrub tests cleanly (4.77 s), including mixed-separator paths, quoted paths with spaces in the filename, and same-separator trailing prose (D:/work/a.txt and tests/test_x.py failed -> <path> and tests/test_x.py failed).
  • Hygiene: git diff --check, python -I -m compileall -q, python -I scripts/check_no_game_data.py, python -I tests/test_ci_registration.py (18/18), and python -I tests/test_text_write_line_endings.py (3/3) all exited 0.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248313608 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1274#issuecomment-7248313608). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T00:43:59Z. --- Independent verification on Windows 11 (`10.0.26200`, x64) with `09ce9de45a` merged onto `origin/main` (`e66c65b950`, `0` merge conflicts), tested under both `Python 3.12.10` and `Python 3.14.5` (CPU-only synthetic tests, no game data): - **Red (`origin/main` `tools/progress_dashboard.py` + merged `tests/test_progress_dashboard.py`)**: - `python -I tests/test_progress_dashboard.py`: `Ran 66 tests`, `FAILED (failures=13)` on both `Python 3.12.10` and `Python 3.14.5` (`12` drive-path space cases in `test_drive_paths_with_spaces_lose_their_whole_name`, plus `origin/main`'s unrelated `test_default_repo_is_the_one_the_readme_clones` baseline mismatch after `README.md`'s `git clone` command update). - **Green (`09ce9de45a` merged onto `origin/main`)**: - `python -I tests/test_progress_dashboard.py`: all `12` failures in `test_drive_paths_with_spaces_lose_their_whole_name` pass (`65/66` pass; only the same unrelated `origin/main` `test_default_repo_is_the_one_the_readme_clones` failure remains) on `Python 3.12.10` (`4.92 s`) and `Python 3.14.5` (`4.77 s`). - Re-running `python -I -B tests/test_progress_dashboard.py` with `TEMP` and `TMP` pointed at a directory containing both spaces and non-ASCII characters also passes all `Scrub` tests cleanly (`4.77 s`), including mixed-separator paths, quoted paths with spaces in the filename, and same-separator trailing prose (`D:/work/a.txt and tests/test_x.py failed` -> `<path> and tests/test_x.py failed`). - **Hygiene**: `git diff --check`, `python -I -m compileall -q`, `python -I scripts/check_no_game_data.py`, `python -I tests/test_ci_registration.py` (`18/18`), and `python -I tests/test_text_write_line_endings.py` (`3/3`) all exited `0`. AI-assisted.
enlight3d commented 2026-11-29 00:44:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T00:44:56Z.


RUN for #1274 (progress_dashboard: hide a whole drive path that contains spaces, DASH-SCRUB-SPACES)

Kind: Python (tools/progress_dashboard.py + tests/test_progress_dashboard.py). Tester: second machine, not the author.

Heads

  • PR head: 09ce9de45a (merge base e18b59a5b7)
  • origin/main: 48bae6cade
  • merged tree: origin/main + git merge --no-edit --no-ff pr-1274 (clean, no conflict), local only

Commands (repo root, one process per file)
python -I tests/test_progress_dashboard.py
python -m compileall -q tools/progress_dashboard.py tests/test_progress_dashboard.py
python -I tests/test_progress_dashboard_ci.py ; python -I tests/test_ci_registration.py

RED (tools/progress_dashboard.py reverted to the merge base, tests kept)

  • tests/test_progress_dashboard.py: Ran 52, FAILED (failures=12), all 12 subtests of test_drive_paths_with_spaces_lose_their_whole_name. Behavioural red (no new API, the test file imports and runs).

GREEN at PR head

  • test_progress_dashboard.py: Ran 52, OK. compileall exit 0.

GREEN merged into current main

  • test_progress_dashboard.py: Ran 66 (65 on plain main + the PR's new test), 1 failure: test_default_repo_is_the_one_the_readme_clones (README.md has no "git clone --recursive https://github.com/<DEFAULT_REPO>" line for the repo name in tools/progress_dashboard.py). The same single failure happens on plain origin/main (Ran 65), so it is pre-existing and unrelated to the PR. Everything else passes, including the PR's test.
  • test_progress_dashboard_ci.py: Ran 21, OK. test_ci_registration.py: Ran 18, OK.

Machine: Windows 11 Pro, RTX 3090 24 GB, NVIDIA 621.40, Python 3.13.12 (uv build).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248324266 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1274#issuecomment-7248324266). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T00:44:56Z. --- RUN for #1274 (progress_dashboard: hide a whole drive path that contains spaces, DASH-SCRUB-SPACES) Kind: Python (tools/progress_dashboard.py + tests/test_progress_dashboard.py). Tester: second machine, not the author. Heads - PR head: 09ce9de45a50bc5e54d3d9244ea03363ebe68a4a (merge base e18b59a5b77a8400f66b71b5f12d713bb12c63e0) - origin/main: 48bae6cade49aea69f63eb8871572dcd6931cd4b - merged tree: origin/main + git merge --no-edit --no-ff pr-1274 (clean, no conflict), local only Commands (repo root, one process per file) python -I tests/test_progress_dashboard.py python -m compileall -q tools/progress_dashboard.py tests/test_progress_dashboard.py python -I tests/test_progress_dashboard_ci.py ; python -I tests/test_ci_registration.py RED (tools/progress_dashboard.py reverted to the merge base, tests kept) - tests/test_progress_dashboard.py: Ran 52, FAILED (failures=12), all 12 subtests of test_drive_paths_with_spaces_lose_their_whole_name. Behavioural red (no new API, the test file imports and runs). GREEN at PR head - test_progress_dashboard.py: Ran 52, OK. compileall exit 0. GREEN merged into current main - test_progress_dashboard.py: Ran 66 (65 on plain main + the PR's new test), 1 failure: test_default_repo_is_the_one_the_readme_clones (README.md has no "git clone --recursive https://github.com/<DEFAULT_REPO>" line for the repo name in tools/progress_dashboard.py). The same single failure happens on plain origin/main (Ran 65), so it is pre-existing and unrelated to the PR. Everything else passes, including the PR's test. - test_progress_dashboard_ci.py: Ran 21, OK. test_ci_registration.py: Ran 18, OK. Machine: Windows 11 Pro, RTX 3090 24 GB, NVIDIA 621.40, Python 3.13.12 (uv build).
OreoFR commented 2026-11-29 02:33:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T02:33:59Z.

Review: APPROVED


Approve. The same-separator over-redaction I reported is fixed: D:/work/a.txt and tests/test_x.py failed now gives <path> and tests/test_x.py failed, and a subtest covers it.

Checked on origin/main 791899f65 + PR (clean merge), Windows 11, Python 3.12.10:

  • python -I tests/test_progress_dashboard.py: 66 tests, 1 failure, test_default_repo_is_the_one_the_readme_clones. It also fails on plain main.
  • I compared 18 synthetic lines against main's scrub. Mixed separators, Program Files (x86), lowercase drives, quoted names with spaces and ;-joined paths all come out fully hidden. No line hides less than on main.
  • What still shows (the end of a file name that has a space, a folder name with a dot before a space) matches the limits listed in the description and was already visible on main.

Non-blocking: on mixed separators the new pattern is quadratic. "D:/" + "ab cd\\" * 4000 (24 KB) takes 1.7 s, against about 0 s on main. Only one log line is scrubbed, so this is unlikely to matter in practice. Truncating the line before the regex (for example to 4 * limit) would bound it later.

Review by OreoFR's agent (AI-assisted, Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6101090337 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1274#pullrequestreview-6101090337). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T02:33:59Z. **Review:** APPROVED --- **Approve.** The same-separator over-redaction I reported is fixed: `D:/work/a.txt and tests/test_x.py failed` now gives `<path> and tests/test_x.py failed`, and a subtest covers it. Checked on origin/main 791899f65 + PR (clean merge), Windows 11, Python 3.12.10: - `python -I tests/test_progress_dashboard.py`: 66 tests, 1 failure, `test_default_repo_is_the_one_the_readme_clones`. It also fails on plain `main`. - I compared 18 synthetic lines against `main`'s `scrub`. Mixed separators, `Program Files (x86)`, lowercase drives, quoted names with spaces and `;`-joined paths all come out fully hidden. No line hides less than on `main`. - What still shows (the end of a file name that has a space, a folder name with a dot before a space) matches the limits listed in the description and was already visible on `main`. Non-blocking: on mixed separators the new pattern is quadratic. `"D:/" + "ab cd\\" * 4000` (24 KB) takes 1.7 s, against about 0 s on `main`. Only one log line is scrubbed, so this is unlikely to matter in practice. Truncating the line before the regex (for example to `4 * limit`) would bound it later. Review by OreoFR's agent (AI-assisted, Claude Code, Claude Opus 5.5).
MoonEyes commented 2026-11-29 08:14:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T08:14:32Z.


Merged after OreoFR's check (check: red/green on main + this PR) and a re-check here: no conflict with main 3aee82301, same head as checked, not frozen, no-game-data green.

AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7252977423 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1274#issuecomment-7252977423). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T08:14:32Z. --- Merged after **OreoFR**'s check ([check](): red/green on `main` + this PR) and a re-check here: no conflict with `main` 3aee82301, same head as checked, not frozen, `no-game-data` green. _AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes._
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1274
No description provided.