mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1847] scripts/carve_all.ps1: validate dirs, filter -File and publish coverage.json atomically #1860
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1860
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1847
Author: @kirigayakazima
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/carve-all-safety📝 Commits (1)
3520583scripts/carve_all.ps1: validate dirs, filter -File and publish coverage.json atomically📊 Changes
2 files changed (+72 additions, -4 deletions)
View changed files
📝
scripts/carve_all.ps1(+22 -4)📝
tests/test_carve_all_paths.py(+50 -0)📄 Description
Claimed in the coordination issue as: CARVE-ALL-FILE-FILTER-EMPTY-AND-ATOMIC-COVERAGE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7163140447)
What and why
-Gameas a directory (Test-Path -LiteralPath $Game -PathType Container) and ensure-Outis not an existing file before creating$outFullvia[System.IO.Directory]::CreateDirectory(...)(literal path safe with[ ]characters).-FiletoGet-ChildItem -LiteralPath $Game -Recurse -File -Filter *.rpfso directories named*.rpfare skipped rather than passed totools/rpf9_carve.py."[]"JSON when no.rpfarchives are found, writecoverage.jsonatomically via.coverage.<pid>.<guid>.tmpUTF-8 no-BOM staging +Move-Item -LiteralPath ... -Force+finallycleanup, and skipFormat-Tablewhen$rows.Count -eq 0.scripts/carve_all.ps1and add PowerShell 5.1 regression tests intests/test_carve_all_paths.py.Tested
python -I tests/test_carve_all_paths.py -v(live Windows PowerShell 5.1) ->Ran 11 tests in 11.463s,OK.python -I tests/test_carve_all_brackets.py -v->Ran 1 test in 0.461s,OK.upstream/main(98c2f777) baseline worktree with updatedtests/test_carve_all_paths.py->Ran 11 tests in 11.603s,FAILED (failures=2, errors=1).scripts/carve_all.ps1->PS1_CRLF=81 PS1_LF_ONLY=0.python -I tests/test_ci_registration.py->Ran 16 tests in 5.282s,OK.python -I tests/test_text_write_line_endings.py->Ran 3 tests in 12.773s,OK.python -I scripts/check_no_game_data.py scripts/carve_all.ps1 tests/test_carve_all_paths.py,python -I -m compileall -q tests/test_carve_all_paths.py, andgit diff --check-> exit0.GPUs tested: n/a (Windows PowerShell 5.1 + stdlib Python tests on Windows 11 x64)
AI-assisted: yes
Checklist
needs rebase).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.