Skip to content

fix(tools): stop reports overwriting the case manifest - #964

Merged
LunaStev merged 1 commit into
wavefnd:masterfrom
hiyouwhatsapp:fix/949-manifest-report-alias
Oct 19, 2026
Merged

LunaStev merged 1 commit into
wavefnd:masterfrom
hiyouwhatsapp:fix/949-manifest-report-alias

Conversation

@hiyouwhatsapp

@hiyouwhatsapp hiyouwhatsapp commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #949

So the runners already check that a report won't overwrite an input, but tests/cases/cases.toml wasn't in that list. You could pass it to --report-json and replace the manifest with report JSON, even if the run fails before any tests start

I added it to the shared list so all three runners catch it before writing anything

Added tests for the file itself, paths with .. and hard links. Those nine cases fail with the old helper and pass after the change. The symlink cases are there too but I couldn't run them on this Windows setup

Testing: Ran python -m unittest tools.test_runtime_cases tools.test_run_tests tools.test_check_case_sources, 42 passed and two existing symlink tests were skipped. Had to use PYTHONUTF8=1 for an existing output test under this machine's locale. Python compilation and git diff --check pass too, but I haven't run the full compiler or cross-platform checks locally

@hiyouwhatsapp hiyouwhatsapp changed the title fix(tools): protect case manifests from report output aliases fix(tools): stop reports overwriting the case manifest Oct 19, 2026
@hiyouwhatsapp
hiyouwhatsapp marked this pull request as ready for review October 19, 2026 12:27
@LunaStev
LunaStev merged commit 1693fcf into wavefnd:master Oct 19, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Protect case manifests from validation report output aliases

2 participants