mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:45:54 +01:00
[PR #2346] REPLACE-RETRY-LOCK-VIOLATION-AND-SECONDS-VALIDATION #2349
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#2349
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/2346
Author: @kirigayakazima
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:fix/replace-retry-lock-and-bounds📝 Commits (1)
8d0c278REPLACE-RETRY-LOCK-VIOLATION-AND-SECONDS-VALIDATION📊 Changes
2 files changed (+105 additions, -3 deletions)
View changed files
➕
tests/test_replace_retry_bounds.py(+98 -0)📝
tools/replace_retry.py(+7 -3)📄 Description
Claimed in the coordination issue as: REPLACE-RETRY-LOCK-VIOLATION-AND-SECONDS-VALIDATION (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7194632590)
What and why
ERROR_LOCK_VIOLATION(33) alongside5and32in_TRANSIENT_WINERRORSintools/replace_retry.pyso transient byte-range lock conflicts retry cleanly instead of failing immediately.secondsup front inreplace()so booleans, non-numeric values, negative numbers,NaN, and infinities raiseValueErrorbefore callingos.replaceor entering the retry loop (avoiding silent no-sleep returns or infiniteNaNdeadline loops).tests/test_replace_retry_bounds.py.Tested
python -I tests/test_replace_retry_bounds.py -v: 3 passed, 0 failed (detachedupstream/mainbaseline with only the new test file fails: 6 failures, 2 errors across subtests).python -I tests/test_replace_retry.py -v: 10 passed, 0 failed.python -I tests/test_ci_registration.py: 16 passed.python -I tests/test_text_write_line_endings.py: 3 passed.python -I scripts/check_no_game_data.py,python -I -m compileall -q tools/replace_retry.py tests/test_replace_retry_bounds.py, andgit diff --cached --check: passed.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.