Repository navigation
Run every executing test on Lua on master CI (-PallBackends) - #1511
Conversation
-PallBackends makes every executing test which does not run Lua itself also run the Lua target after its Jass runs; -PallBackends=full adds a Lua run with -inline -localOptimizations. A test which cannot hold on Lua says why with luaExempt(LuaExemption.X), whose reasons each name their record; under the flag its Lua run must fail, so a stale exemption fails the run. Without the flag an exempt test runs no Lua, as testLua(false) did, which is now rejected. The 28 testLua(false) opt-outs and the executing tests which failed on Lua without one are now 32 exemptions; four stale opt-outs run Lua. The two Lua defects found on the way are in BACKLOG.md. Master CI passes the flag on its Linux and Windows jobs, whose Lua is 5.3; pull requests are unchanged.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a2c28a98f1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…failure luaExempt now takes the Lua failure the test expects, and its reason checks the kind: a program outcome without a Lua error for real equality, double reals, object bookkeeping and interpreter mocks, a translation error for class and method type parameters, the named native for a missing one. A Lua run which fails otherwise fails the test, showing the expected and the actual failure; before, any failure satisfied the exemption. LuaExemptionTests covers it.
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Implements the BACKLOG item "Run every executing test on Lua on master CI (
-PallBackends)". On 2026-10-20, forcing Lua after the Jass runs of every executing test that did not opt in found the generic-static,wurstKeyOfand Reflection-native defects, two more fixed since (#1502, #1504) and natives missing from the test runtime (#1503). Until now an executing test ran the emitted Lua only if it opted in, so Lua-only miscompiles went unnoticed.Design
-PallBackendspasseswurst.test.allBackends=luato the test JVMs;-PallBackends=fullpassesfull; any other value stops the build.WurstScriptTest: in that mode an executing test that does not run Lua itself also runstranslateAndTestLuaafter its Jass runs;fulladds a second Lua run with-inline -localOptimizations..luaExempt(LuaExemption.X);testLua(false)is rejected. Without the flag an exempt test does not run Lua, as before. With it, an exempt test still runs Lua and must fail there, so a stale exemption fails the run.REAL_EQUALITY_TOLERANCE(AGENTS.md §7),CLASS_AND_METHOD_TYPE_PARAMS(§9),TEST_LUA_COMPUTES_IN_DOUBLE(docs/WC3_RUNTIME.md "Numbers"),ONE_OBJECT_ID_SPACE(docs/WC3_RUNTIME.md "Objects and memory"),INTERPRETER_MOCK_ONLY,MISSING_TEST_NATIVE(the failure must name the native),KNOWN_LUA_DEFECT(must cite a BACKLOG.md item by its exact bold title; checked in every run, so deleting the item without removing the exemption fails even on PR CI).-PallBackends(both use Lua 5.3, on which the exemptions were established). macOS takes Homebrew's unpinned Lua and runs one fork, so it is left out. PR CI and the CI matrix are unchanged.Exemptions (28)
MISSING_TEST_NATIVE13,KNOWN_LUA_DEFECT9,REAL_EQUALITY_TOLERANCE3,CLASS_AND_METHOD_TYPE_PARAMS1,TEST_LUA_COMPUTES_IN_DOUBLE1,ONE_OBJECT_ID_SPACE1. FourtestLua(false)were stale and now run Lua; two sat onexpectedExceptionstests, where the interpreter throws before any Lua run, and were dropped. SomeKNOWN_LUA_DEFECTexemptions cover defects fixed by open PRs (#1507, #1508, #1509): whichever of those lands after this one removes them, and the stale check enforces it.Evidence
-PallBackends(the 28 exempt tests fail on Lua as required) and without the flag.-PallBackends=fullalso passed before the merge; the inlined run found nothing new.PR CI does not run the flag, so this PR's CI checks only that nothing changed without it; the first master push exercises
-PallBackendson Linux and Windows. Run locally on Windows; Linux CI and macOS are unverified for the flag.BACKLOG.md: the item is narrowed to what is left (the 13 missing test natives, and
executeTests(), which still has no Lua path).