Skip to content

merge queue: checking #2116 on master (9bfcbf6), stacked on #2112 - #2123

Closed
mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/7874999268
Closed

mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/7874999268

Conversation

@mergify

@mergify mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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 changes queue, to test #2116 before it merges into master. 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:

  1. master at 9bfcbf6
  2. the pull request queued ahead of this batch, listed below, which brings the tip to 2048432
  3. #2116, the pull request of this batch

The 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 changes queue in the dashboard

What happens next

  • Once the pull requests ahead have merged, Mergify merges #2116 into master and closes this draft.
  • If a pull request ahead fails or leaves the queue without merging, this batch is requeued and checked again on a new draft: these checks assumed it would merge.

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 ci
---
all_scopes: false
checking_base_sha: 204843232f7d642c7ca0762143730b65b402562d
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 2116
    scopes:
      - core
scopes:
  - core
...
1 scope
  • core
Required conditions of queue rule changes for merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#2112 [⛓️ feat(sv)!: execute fork branches as dynamic process activations #2112]
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • 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)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
Required conditions to stay in the queue
Queue 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
Loading

tignear and others added 4 commits October 26, 2026 16:06
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
@mergify mergify Bot closed this Oct 26, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/7874999268 branch October 26, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant