Repository navigation
merge queue: checking #2116 on master (9bfcbf6), stacked on #2112 - #2123
Closed
mergify[bot] wants to merge 4 commits into
Closed
mergify[bot] wants to merge 4 commits into
mergify[bot] wants to merge 4 commits into
Conversation
SystemVerilog fork blocks were rejected. Lower fork/join, join_any and join_none into child entry points of stackless process kernels and schedule dynamic activations, starting children when their parent blocks or terminates. Give each activation private control, temporary and random state while sharing automatic lexical cells with its children. Preserve local lifetimes, nested and repeated forks, event waits, queued NBA captures, heap roots, checkpoint restoration and native image roundtrips. Terminate pending children on program $exit and preserve $stop/$finish behavior. Document current restrictions. Layout-independent state files reject dynamic activations explicitly; checkpoint/restore is supported. Follow-up work is tracked in #2111. Validation: - CI run 40278499596 executes 3,300 official mode runs: 12 fail-to-pass improvements, no regressions. Accept only these measured fork/block expectation rows (six cases in both state modes). - 16 shared cases pass in 96 backend configurations, including native/parallel/image roundtrip, Cranelift/parallel and WASM with a four-state regression. - Seven API tests pass, covering Interpreter, differential scheduling, checkpoints, stop/finish and program exit. The exit regression fails before the fix. - 946 library, 379 consumer, 961 timing and 18 final-procedure tests pass; existing ignores retained. Focused program revalidation passes 49 tests, and the parameter-override diagnostic regression passes. - Debug NAPI build and 28 JS boundary tests pass. Formatting, diff checks and affected-crate Clippy pass. - Icarus 13.0: 8 pass, 5 unsupported automatic-lifetime compilation errors, 3 internal aborts on detached automatic tasks. - Verilator 5.052: 14 pass, one unsupported four-state case, one NBA mismatch caused by a shared pending index/flag across coroutine activations. Expectations remain unchanged; full release-driver conformance is left to CI. BREAKING CHANGE: Process frame metadata and dynamic activation state extend the runtime/schema interfaces; native image format advances to version 40. Change-Id: I30dae837f9b9116374981790de83472a4e3a2313
Forked processes could run concurrently but their caller could not wait for all outstanding children or cancel them. Implement wait fork across all live immediate children, including earlier forks and task calls. Implement disable fork across every descendant, including descendants of completed parents, while preserving the caller and its siblings. Remove cancelled activations from pending starts, waits, ready/inactive/reactive queues and scheduled wakeups before reusing their IDs. Preserve checkpoint replay of joins and cancellation. Function calls retain their caller's process identity for disable fork; wait fork remains forbidden in functions. Handle frameless processes and zero-time final procedures safely. Update obsolete rejection tests and document the supported behavior. Accept exactly four measured official fail-to-pass verdicts for wait_fork and disable_fork in two/four-state modes. These upstream cases exercise elaboration; portable cases exercise execution. Partially addresses #2111. State-file serialization, compound automatic-local event expressions, deferred assertions and join_none exceptions remain separate work. Validation: - P2 review follow-up: retain the kernel during wait-condition evaluation, restore the full predicate resume point after a false reevaluation, and propagate wait fork/fork through task classification. Four new cases fail in all 24 configurations before the fix and pass afterward. - Follow-up validation: 1,057 timing tests, affected frontend unit tests, runtime consumers, Clippy, debug NAPI and 28 JS tests pass. The final explicit-argument reevaluation case also passes all six backend configurations. - External follow-up: Verilator passes three of four new cases, but waits on a cached function result instead of reevaluating the effectful predicate in the fourth (expected q=1, observed q=0). Icarus passes both event-driven task cases; a no-argument wait function hits its Empty NexusSet internal error and the explicit-argument cancellation case leaves the child alive (q=99). - Twelve portable cases pass in 72 configurations across Native/parallel/image, Cranelift/parallel and WASM, including four-state behavior. - Four API tests cover Interpreter/native differential checkpoint replay, cancellation and ID reuse, final no-op behavior and frameless process wakeups. The frameless regression panics before the fix and passes afterward. - Existing fork API seven, library 946 and consumer 343 tests pass. Timing has 1,032 passing tests; the sole stale unsupported-feature expectation was updated and its focused rerun passes. - Formatting, affected-crate Clippy, debug NAPI build and 28 JS boundary tests pass. - Official pinned runner verifies both affected cases in both modes using the debug driver; full release conformance remains in CI. - Verilator 5.052 passes all eleven two-state cases; four-state is unsupported. Icarus 13.0 passes ten cases but fails to cancel descendants of completed parents and children from a function call. Expectations follow IEEE 1800-2023 9.6.1, 9.6.3 and 13.4 and are corroborated by Verilator. BREAKING CHANGE: ProcessStatus and procedural IR gain process-control variants; native image format advances to version 41. Change-Id: I9f0dd3b8a7a23a655d9b8a76f9a8a545ec1a4a22
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.
Note
This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch premier-pontlveque-5uk1da of the
changesqueue, to test #2116 before it merges intomaster. Pushing to this branch or closing this pull request removes #2116 from the queue.What this draft tests
Mergify checks that #2116 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:
masterat9bfcbf62048432The check is speculative: it assumes the pull requests ahead will merge, so it starts without waiting for them.
🎉 Where it stands: checks passed
CI passed on this draft.
Follow the
changesqueue in the dashboardWhat happens next
masterand closes this draft.Tip
A red check is not necessarily caused by this batch. These checks run on a tip that also carries the commits of the pull request ahead, so a failure here can come from it as much as from #2116. See only this batch's changes.
Queued ahead of this batch
This pull request entered the queue before this batch and is not part of it.
Metadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationdepends-on = celox-sim/celox#2112[⛓️ feat(sv)!: execute fork branches as dynamic process activations #2112]master]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-success = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-success = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-skipped = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-success = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-skipped = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleRequired conditions to stay in the queue
-conflict-draft-head ~= ^(integration/|renovate/veryl-crates$|upgrade/veryl-|release-please--branches--master--components--celox$|master$)-head ~= ^renovate/-label = release:holddepends-on = celox-sim/celox#2112[⛓️ feat(sv)!: execute fork branches as dynamic process activations #2112]base ~= ^(master|develop)$base ~= ^stack/body ~= (?m)^Depends-On:head != release-please--branches--master--components--celoxlabel = merge-readymaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-success = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-skipped = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-success = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-skipped = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-success = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleQueue graph
The diagram is not laid out in queue order, so a node's position says nothing about when it merges.
graph LR da1c4dab452148a681d40fe6d2a56664["premier-pontlveque-5uk1da<br/>#2116<br/>scopes: core"] 5ebf147f63da40658afb1f0db40e212f["impressed-thym-wsdwz5<br/>#2122<br/>scopes: core"] da1c4dab452148a681d40fe6d2a56664 --> 5ebf147f63da40658afb1f0db40e212f style da1c4dab452148a681d40fe6d2a56664 fill:#6366f1,color:#fff