TEST-SHADER-LINK-PUBLISH: add PublishTest to tests/test_shader_link_check.py #1194
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1194"
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?
Imported from ubiquitarianism/leonida. Originally posted by muhammadumairmustafa on 2026-11-24T19:57:54Z.
Claimed in the coordination issue as: TEST-SHADER-LINK-PUBLISH (in #14)
What and why
Adds
PublishTesttotests/test_shader_link_check.pyso direct runs of the test file exercisewrite_reportJSON publishing and temporary file cleanup whenos.replacefails, using synthetic data only.Tested
Ran
python -I tests/test_shader_link_check.pylocally on Windows (CPU-only, synthetic data only, no game files): 51 tests run, OK.What and why
Regression coverage to lock in existing
write_reportbehavior onmain(not a fix for a currently failing bug).Adds
PublishTesttotests/test_shader_link_check.pyso direct runs of the test file verifywrite_reportatomic JSON publishing and temporary file cleanup whenos.replacefails, using synthetic data only.AI-assisted: yes
Checklist
Imported from ubiquitarianism/leonida. Originally posted by Deedlyy on 2026-11-24T20:08:13Z.
Recommendation: [MERGE]
Reasoning: Adds a
PublishTesttotests/test_shader_link_check.pycovering JSON report publishing and temp-file cleanup whenos.replacefails. Test-only, synthetic data; 51 tests pass per the author. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict withmain. Merge once the queued checks are green.Impact level: 1/10
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T23:44:58Z.
Hi @muhammadumairmustafa, thanks for these tests. I merged this pull request onto current
mainlocally and ran them: they pass, and they also pass on plainmain. The "Is it mergeable?" list in CONTRIBUTING.md asks for "A new test that fails onmainand passes with the pull request", so as it stands this one doesn't show a bug thatmainstill has. If one of these cases did fail before a fix that has since landed, could you say which commit, or add a case that still fails onmain? If the tests are meant to lock in behaviourmainalready has, please say so in the description and a maintainer can decide.AI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by muhammadumairmustafa on 2026-11-28T17:43:57Z.
Thanks for checking this, @MoonEyes! Yes —
PublishTestis meant to lock in existingwrite_reportJSON-publishing and temp-file cleanup behavior onmainrather than fix an active failure. I've updated the PR description to state that clearly and resolved the merge conflict withmain.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T19:27:01Z.
Red/green: No red test; this tests-only PR adds PublishTest, which passes on main and with the PR (54 tests OK natively on Windows, PAS-DE-ROUGE on GitHub Actions Linux).
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
7daa4a4a5in GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:47:17Z.
Verified by OreoFR
4a54aedcb+ PR head534c159bc(tested at534c159bc, head is now844b2834f)python -I tests/test_shader_link_check.pyAI-assisted (Claude Code, Claude Opus 5.5).