Repository navigation
Run 21 executing tests on Lua too, backlog the Lua-only findings - #1501
Merged
Merged
Conversation
Every executing test was forced onto Lua once: these 21 said testLua(false) but pass there on both plain and inlined Lua, so they now run Lua after their Jass runs. The failures that remain open (a generic static dropped when only an inner class reads it, a direct wurstKeyOf call, the type-id natives) and the proposal to run every executing test on Lua on master CI go to BACKLOG.md.
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. |
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.
Tests that execute a program run on the interpreter, Jass and pjass, but on Lua only when they opt in with
testLua(true). To see what that hides, every executing test that does not opt in was forced throughtranslateAndTestLuaafter its Jass runs, once with its own flags and once with-inline -localOptimizations(a local harness change, not part of this PR).Survey numbers
Measured on
f0149618c(master with #1498), Windows, bundled Lua 5.3. The same 42 failures appeared on55b3714f2before #1498.testLua(true))-inline -localOptimizationsGenericsTests.implicitConversions2)Of the 42 failures:
CreateUnit13,GetRandomInt3,SetPlayerState2,BlzBitOr,SquareRoot,GetHandleId,CreateDestructable,SetPlayerTechMaxAllowed,R2SW)==tolerance; class plus method type parameters, AGENTS.md §9)S2I)The defects: compile-time objects get new ids on Lua (
CompiletimeTests.testCompiletimeObjectIdMigration*) and an old-generic tuple passed straight back skips itstoIndex(GenericsTests.implicitConversions2), both fixed in their own PRs; a generic static dropped when only a static inner class reads it (GenericsWithTypeclassesTests.genericClassWithStaticInnerClass,genericModuleThistypeSmall) and a directwurstKeyOfcall answering 0 (KeyedTableTests.intKeyIsIdentity,classInstanceKeyIsStable), which stay open here. 48 tests saidtestLua(false); 27 of them fail on Lua, 21 pass.The two Lua variants cost about 300 s of test time each over the whole suite.
Changes
testLua(false)was stale now run Lua after their Jass runs (testLua(true).luaOnly(false)):ClassesTests.recyling,recyling2,recyling_random,thisHandling;ClosureTests.testDispatch;GenericsTests.genericForIn,genericForFrom,implicitConversions,implicitConversions3,implicitConversions5,normalFoldlInfer; eightInterpreterTests;SimpleStatementTests.testForIn,testForFrom.wurstKeyOf, the type-id natives) and a proposal to run every executing test on Lua on master CI (-PallBackends), with exemptions that name a documented reason and fail when they go stale.Testing
ClassesTests,ClosureTests,GenericsTests,InterpreterTests,SimpleStatementTests: 351 tests, all passing, none skipped, on Windows with the bundled Lua 5.3. Linux CI useslua5.3; macOS (brewlua, version unchecked) is unverified.