TEST-SHADER-LINK-PUBLISH: add PublishTest to tests/test_shader_link_check.py #1194

Merged
muhammadumairmustafa merged 2 commits from upstream-pr/1194 into main 2026-11-28 19:27:04 +00:00
muhammadumairmustafa commented 2026-11-24 19:57:54 +00:00 (Migrated from github.com)

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 PublishTest to tests/test_shader_link_check.py so direct runs of the test file exercise write_report JSON publishing and temporary file cleanup when os.replace fails, using synthetic data only.

Tested

Ran python -I tests/test_shader_link_check.py locally on Windows (CPU-only, synthetic data only, no game files): 51 tests run, OK.

What and why

Regression coverage to lock in existing write_report behavior on main (not a fix for a currently failing bug).

Adds PublishTest to tests/test_shader_link_check.py so direct runs of the test file verify write_report atomic JSON publishing and temporary file cleanup when os.replace fails, using synthetic data only.

AI-assisted: yes

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5479338552 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1194). Originally posted by [muhammadumairmustafa](https://github.com/muhammadumairmustafa) on 2026-11-24T19:57:54Z. --- Claimed in the coordination issue as: TEST-SHADER-LINK-PUBLISH (in #14) ### What and why Adds `PublishTest` to `tests/test_shader_link_check.py` so direct runs of the test file exercise `write_report` JSON publishing and temporary file cleanup when `os.replace` fails, using synthetic data only. ### Tested Ran `python -I tests/test_shader_link_check.py` locally on Windows (CPU-only, synthetic data only, no game files): 51 tests run, OK. ### What and why Regression coverage to lock in existing `write_report` behavior on `main` (not a fix for a currently failing bug). Adds `PublishTest` to `tests/test_shader_link_check.py` so direct runs of the test file verify `write_report` atomic JSON publishing and temporary file cleanup when `os.replace` fails, using synthetic data only. AI-assisted: yes ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
Deedlyy commented 2026-11-24 20:08:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Deedlyy on 2026-11-24T20:08:13Z.


Recommendation: [MERGE]

Reasoning: Adds a PublishTest to tests/test_shader_link_check.py covering JSON report publishing and temp-file cleanup when os.replace fails. 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 with main. Merge once the queued checks are green.

Impact level: 1/10

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7143091766 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1194#issuecomment-7143091766). Originally posted by [Deedlyy](https://github.com/Deedlyy) on 2026-11-24T20:08:13Z. --- **Recommendation:** [MERGE] **Reasoning:** Adds a `PublishTest` to `tests/test_shader_link_check.py` covering JSON report publishing and temp-file cleanup when `os.replace` fails. 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 with `main`. Merge once the queued checks are green. **Impact level:** 1/10
MoonEyes commented 2026-11-27 23:44:58 +00:00 (Migrated from github.com)

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 main locally and ran them: they pass, and they also pass on plain main. The "Is it mergeable?" list in CONTRIBUTING.md asks for "A new test that fails on main and passes with the pull request", so as it stands this one doesn't show a bug that main still 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 on main? If the tests are meant to lock in behaviour main already has, please say so in the description and a maintainer can decide.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7230378876 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1194#issuecomment-7230378876). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T23:44:58Z. --- Hi @muhammadumairmustafa, thanks for these tests. I merged this pull request onto current `main` locally and ran them: they pass, and they also pass on plain `main`. The "Is it mergeable?" list in CONTRIBUTING.md asks for "A new test that fails on `main` and passes with the pull request", so as it stands this one doesn't show a bug that `main` still 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 on `main`? If the tests are meant to lock in behaviour `main` already has, please say so in the description and a maintainer can decide. AI-assisted (Claude Code, Claude Opus 5.5).
muhammadumairmustafa commented 2026-11-28 17:43:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by muhammadumairmustafa on 2026-11-28T17:43:57Z.


Hi @muhammadumairmustafa, thanks for these tests. I merged this pull request onto current main locally and ran them: they pass, and they also pass on plain main. The "Is it mergeable?" list in CONTRIBUTING.md asks for "A new test that fails on main and passes with the pull request", so as it stands this one doesn't show a bug that main still 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 on main? If the tests are meant to lock in behaviour main already has, please say so in the description and a maintainer can decide.

AI-assisted (Claude Code, Claude Opus 5.5).

Thanks for checking this, @MoonEyes! Yes — PublishTest is meant to lock in existing write_report JSON-publishing and temp-file cleanup behavior on main rather than fix an active failure. I've updated the PR description to state that clearly and resolved the merge conflict with main.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243242965 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1194#issuecomment-7243242965). Originally posted by [muhammadumairmustafa](https://github.com/muhammadumairmustafa) on 2026-11-28T17:43:57Z. --- > Hi [@muhammadumairmustafa](https://github.com/muhammadumairmustafa), thanks for these tests. I merged this pull request onto current `main` locally and ran them: they pass, and they also pass on plain `main`. The "Is it mergeable?" list in CONTRIBUTING.md asks for "A new test that fails on `main` and passes with the pull request", so as it stands this one doesn't show a bug that `main` still 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 on `main`? If the tests are meant to lock in behaviour `main` already has, please say so in the description and a maintainer can decide. > > AI-assisted (Claude Code, Claude Opus 5.5). Thanks for checking this, @MoonEyes! Yes — `PublishTest` is meant to lock in existing `write_report` JSON-publishing and temp-file cleanup behavior on `main` rather than fix an active failure. I've updated the PR description to state that clearly and resolved the merge conflict with `main`.
MoonEyes commented 2026-11-28 19:27:01 +00:00 (Migrated from github.com)

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 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7244552579 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1194#issuecomment-7244552579). Originally posted by [MoonEyes](https://github.com/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 7daa4a4a5 in GitHub Actions: no new failure. AI-assisted (Claude Code, Claude Opus 5.5)
OreoFR commented 2026-11-28 21:47:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:47:17Z.


Verified by OreoFR

  • Base: main 4a54aedcb + PR head 534c159bc (tested at 534c159bc, head is now 844b2834f)
  • Test: python -I tests/test_shader_link_check.py
  • Red on main: 52 OK
  • Green with the PR: 52 OK
  • Verdict: NO RED (test-only PR, covers behaviour already on main)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246272321 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1194#issuecomment-7246272321). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:47:17Z. --- **Verified by OreoFR** - Base: main `4a54aedcb` + PR head `534c159bc` (tested at `534c159bc`, head is now `844b2834f`) - Test: `python -I tests/test_shader_link_check.py` - Red on main: 52 OK - Green with the PR: 52 OK - Verdict: NO RED (test-only PR, covers behaviour already on main) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1194
No description provided.