Scripts: replace coverage baselines atomically #2645
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2645
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2645"
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?
@luckyteagirl on GitHub · 2026-11-26 04:54 UTC · original
luckyteagirl:codex/coverage-atomic-baseline→main· +72 −3 · 2 files · 1 commits · openThe coverage gate opens the existing baseline for writing, which truncates it before the new JSON is written. An interrupted write can leave later comparisons without a readable baseline. Write the report to a temporary file beside the baseline and replace the destination after the write succeeds.
What is in it
Tested
b49be183, coverage gate tests ran with 9 passed, 1 failed, 0 skipped. The update incorrectly returned success despite the injected replacement failure.python -B -m unittest discover -s scripts -p 'test_*.py'ran on Windows with 26 passed, 0 failed, 1 skipped (the POSIX mode test).Regression run
Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.