Repository navigation
tests: collect PublishTest staging regression in direct runs (TEST-1130) - #8745
Closed
morodirule wants to merge 1 commit into
Closed
morodirule wants to merge 1 commit into
morodirule wants to merge 1 commit into
Conversation
Add PublishTest to tests/test_shader_link_check.py before the __main__ guard so python3 -I direct runs collect it: a failed os.replace must leave no staging temp file and must keep the existing report, plus a success-path publish case. The failed replace is simulated with a mocked os.replace so the Windows read-only-destination path is covered on every platform. AI-assisted.
Grimkeh
reviewed
Nov 23, 2026
Grimkeh
left a comment
There was a problem hiding this comment.
Independent Linux CPU review (810460fd)
What changed: collect PublishTest staging regression in direct runs (TEST-1130).
Checked: test_shader_link_check 52 OK.
Looks correct; no game files.
Author
|
Yielding to @Spacecer2's earlier claim on TEST-1130 (19:16:41Z vs mine 19:20:08Z) per the coordinator's overlap note. My verification stands: +PublishTest (2 tests) before the main guard, 52/52 on direct/discover/pytest runners, negative control fails exactly the new test. Branch morodirule/Leonida:test1130-publish is yours to cherry-pick or close over. No game files. AI-assisted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Collects TEST-1130. tools/shader_link_check.py already stages reports via temp file + os.replace with finally-cleanup (the #4516 behavior), but nothing covered a failed replace, and the earlier draft sat after the main guard on a stale tree so direct runs never collected it.
This adds PublishTest before the main guard: a failed os.replace (mocked, simulating the Windows read-only destination on every platform) must leave no staging temp file and must keep the existing report, plus a success-path publish case.
Verified on Arch Linux, Python 3.14.10, CPU only: 52/52 OK on all three runners (direct python3 -I, unittest discover, pytest) — up from 50, so the new tests are collected everywhere. Negative control: removing the finally-cleanup from write_report fails exactly the new regression test (failures=1); restored, green again. Related suites green (file_mode 5/5, rtti_scan 30/30). No game files. AI-assisted.