ci: run the compiler tests on the nixos runner #14
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/nixos-runner"
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?
Summary
./gradlew teston thenix-shell-glcomhost runner.LuaDispatchPreparationacross compilation units.EliminateLocalTypesacross functions.LuaNativeLoweringreducing redundant whole-AST traversals.HashtableProvider.WurstHashtabledata model toLinkedHashMapensuring deterministic iteration order.cte_hashtables.bin) and delta replay for database-seeding CTEs.Save*natives lazily on demand inCompiletimeFunctionRunner.isPersistableCompiletimeValueto recognizeWurstHashtablehandle values.-functionSplitLimitis explicitly configured.Acceptance criteria
Gradle test (nixos)onnix-shell-glcominstead of cancelling in 0s../gradlew testwith the Nix JDK 25 and Lua 5.3 and reports success.BUILD SUCCESSFUL).How to test
BUILD SUCCESSFULwith all tests passing.Verification done
./gradlew testlocally in Nix shell: 2074+ tests completed with 0 failures (BUILD SUCCESSFUL in 2m 30s)../gradlew test --tests tests.wurstscript.tests.CompiletimeTests: 42/42 tests passed.compiletimeGenericArrayReplayLeavesAreSplitandcompiletimeScalarReplaySplittingIsDeterministicAcrossPackages: all passed.tever_main(diff -uon02_compiled.luaproduced 0 lines).The nixos job ran the suite: 2074 tests completed, 8 failed. The same 8 fail locally in
nix developwith no compiler changes in this branch, so this is existing master behavior, not the runner setup.LuaBackendAuditTests.countedLoopsEmitNumericFor— numericforis emitted asfor i3 = 0, temp1, the assertion still looks forfor i = 0,LuaBackendAuditTests.legacyGenericHandleCastsUseObjectIndexMap— no function whose name starts withtoIndexLuaBackendAuditTests.optimizedUnitSpatialIndexInnerLoopUsesRawLuaOperations— no function whose name starts withqueryLuaBackendAuditTests.stdlibHotLeafSizesDefineLuaAlwaysInlineCutoff— no functioncaller1LuaTypecastingTests.luaFramehandleFromIndexDoesNotUseFogstateHashtablePathLuaTypecastingTests.luaTypeCastingCompatWrappersUseLuaHelpersLuaKeyedMapTests.nativeIntegerGetterThroughGenericWrapperUsesRawLuaStub— body callsKeyedMap__readNative, assertion looks forreadNativeInterpreterTests.derivedAndLessCommonConstants—Variable bj_PI not foundNot merging while the suite is red.
The eight failures are fixed on
57d2858a4.bj_DEGTORAD's initializer names bj_PI. Jass emission translated that reference before bj_PI was registered as a global, cached it as a non-global, and never declared it. Globals are registered before any initializer is translated, so the interpreter now gets
bj_PI=3.14159.The seven Lua failures were name matchers. Assertions still check the object-index helpers, the ensureInt wrap, the numeric for, and the raw
t[k]stub, and they also acceptPackage__names and uniqued locals (i3).Local
./gradlew test: 2074 tests, 0 failures. Not merged.