Repository navigation
test!: migrate test suites to LSpec (Bool-based, lazy, bounded-parallel) - #702
Open
arthurpaulino wants to merge 1 commit into
Open
arthurpaulino wants to merge 1 commit into
arthurpaulino wants to merge 1 commit into
Conversation
… bounded-parallel) Port PR #699 (LSpec v3 migration) onto jcb/ixcc (3fee672) and pin LSpec to its merged main commit (b12338b60c87cc2d2dfeeeaa16d859100ec038c8). ### Summary of Changes 1. **LSpec v3 dependency & generator migration** - Pin LSpec in lakefile.lean / lake-manifest.json to main (b12338b6). - Configure `moreLeanArgs := #["-Dcompiler.extract_closed=false"]` on `lean_lib Tests` in lakefile.lean so pure test expressions inside `def ... : LSpec.Spec` declarations are not hoisted into module initializers. - Migrate Tests/Gen/{Basic,Claim,Ix,Ixon,IxonSyntax}.lean from SlimCheck / SampleableExt to LSpec.Prop (pure SplitMix64 Gen, Sampleable, Shrinkable, FormatValue), preserving jcb/ixcc's CompilePolicy / CompileClaim generators. - Update Tests/ProofHelpers.lean (checkOk, checkErr, checkErrAny returning LSpec.Spec). 2. **Lazy Bool-based suites & jcb/ixcc-specific suite migrations** - Migrate all test modules across Tests/ from TestSeq / individualIO / checkIO / lspecIO to LSpec.Spec (it / itBool / prop / propWith / AssertM / lspecMain), preserving all jcb/ixcc updates (IxCK renames, CompileClaim wire vectors, ClaimPolicy Mode 2 / theorem statements, MultiStarkVerifier admissibility & decoder-parity suites, ResourceModes finding/recursive-type suites, SourceContract v5 mode API). - Migrate jcb/ixcc-only suites to LSpec v3: - Tests/Ix/CircuitMeta.lean - Tests/Ix/Compile/Equations.lean - Tests/Ix/Compile/WordEquations.lean 3. **Bounded-thread parallel runner, thread-safety & CI** - Add -j N / --threads N support to Tests/Registry.lean using LSpec.runTree's shared bounded WorkerPool. - Add Ix.withImportLock in Ix/Common.lean (used by Ix/Meta.lean and Ix/RoleBinding/Compile.lean) to serialize Lean's process-global enableInitializersExecution + importModules / searchPathRef across worker threads. - Update .github/workflows/ci.yml to run primary IxTests with `-j 16`. ### Verification - `lake build --wfail IxTests ixon-primitives ixon-tests IxVMTests IxManualTests ffi-tests source-contract-tests formal-package-tests kernel-source-ingress`: passed (zero warnings). - `IxTests --list`: 7.5s startup (zero import-time test execution). - `IxTests -j 16`: 61/61 primary suites passed (149.7s wall). - `ffi-tests`, `source-contract-tests` (69/69), `ixon-primitives`, `ixon-tests`, `kernel-source-ingress`, `Scripts/CheckCiFilters.lean`: all passed. - `formal-package-tests multistark-verifier`: 172/172 passed. - `IxVMTests`: `ixvm-tagn` (783/783) and `ixvm-exploits` (8/8 + 137/137) passed; `ixvm-eval` LSpec v3 oracles (23/23) and all 106 claim verdicts passed (pre-existing jcb/ixcc FFT pin drift untouched).
arthurpaulino
force-pushed
the
ap/ixcc-lspec-migration
branch
from
December 3, 2026 11:07
5a0c846 to
083e751
Compare
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.
Port PR #699 (LSpec v3 migration) onto jcb/ixcc (3fee672) and pin LSpec to its merged main commit (b12338b60c87cc2d2dfeeeaa16d859100ec038c8).
Summary of Changes
LSpec v3 dependency & generator migration
moreLeanArgs := #["-Dcompiler.extract_closed=false"]onlean_lib Testsin lakefile.lean so pure test expressions insidedef ... : LSpec.Specdeclarations are not hoisted into module initializers.Lazy Bool-based suites & jcb/ixcc-specific suite migrations
Bounded-thread parallel runner, thread-safety & CI
-j 16.Verification
lake build --wfail IxTests ixon-primitives ixon-tests IxVMTests IxManualTests ffi-tests source-contract-tests formal-package-tests kernel-source-ingress: passed (zero warnings).IxTests --list: 7.5s startup (zero import-time test execution).IxTests -j 16: 61/61 primary suites passed (149.7s wall).ffi-tests,source-contract-tests(69/69),ixon-primitives,ixon-tests,kernel-source-ingress,Scripts/CheckCiFilters.lean: all passed.formal-package-tests multistark-verifier: 172/172 passed.IxVMTests:ixvm-tagn(783/783) andixvm-exploits(8/8 + 137/137) passed;ixvm-evalLSpec v3 oracles (23/23) and all 106 claim verdicts passed (pre-existing jcb/ixcc FFT pin drift untouched).