Skip to content

merge queue: checking #1880 + #1881 + #1882 together on master (5670901), stacked on #1879 - #2142

Closed
mergify[bot] wants to merge 8 commits into
masterfrom
mergify/merge-queue/555d40d2d0
Closed

mergify[bot] wants to merge 8 commits into
masterfrom
mergify/merge-queue/555d40d2d0

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 peachy-escargot-4mrcad of the changes queue, to test #1880, #1881 and #1882 before they merge into master. Pushing to this branch or closing this pull request removes them from the queue.

What this draft tests

Mergify checks that #1880, #1881 and #1882 still pass CI once combined with everything queued ahead of them. CI runs on this draft's code, built in this order:

  1. master at 5670901
  2. the pull request queued ahead of this batch, listed below, which brings the tip to 5a24932
  3. #1880 + #1881 + #1882, the pull requests of this batch, tested together as one tip

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 #1880, #1881 and #1882 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 #1880 + #1881 + #1882. 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: 5a24932662770164175d62dfdd9f19506bbbe513
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 1880
    scopes:
      - core
  - number: 1881
    scopes:
      - core
  - number: 1882
    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#1881 [⛓️ fix(sv)!: give reports the time they are issued at #1881]
  • 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
    a1104551e6234aa1bd15a03659c86c44["peachy-escargot-4mrcad<br/>#1880 + #1881 + #1882<br/>scopes: core"]
    835e66d1a78c4d3a9cdd2ab5160b5ce1["emotional-pistou-con6zx<br/>#2141<br/>scopes: core"]
    a1104551e6234aa1bd15a03659c86c44 --> 835e66d1a78c4d3a9cdd2ab5160b5ce1
    style a1104551e6234aa1bd15a03659c86c44 fill:#6366f1,color:#fff
Loading

tignear and others added 8 commits October 26, 2026 18:56
Implement sampled values for static variables using copies captured before advancing to a later timestamp (IEEE 1800-2023 16.5.1 and 16.9.3). Initialize from declarations, preserve automatic variables, and copy strided arrays through their layouts. Same-timestamp host resumptions and writes retain the Preponed baseline; untimed Simulator calls each form a slot.

Resolve sampled select operands before hoisting nested calls, including calls with side effects. Cover timed host-only writes, repeated run_until calls, bounded runs, step, advance_to, and report watching. Verify that the compiled scheduler actually executes in the regression.

The runtime schema gains sample_shadows; native image version is 42. Combinational $sampled and handle operands remain unsupported in this stack member.

Validation:
- sv_sampled: 35 passed across interpreter, native, actual Cranelift and WASM.
- Celox/runtime unit tests: 309 passed.
- Time, stop, state-file, runtime API, clock and image consumers: 110 passed, 2 ignored.
- Formatting and affected-crate Clippy with -D warnings.

Change-Id: I764da6c419a54df2ca88f784d797f22e5c8520eb
…cesses

Implement $past, $rose, $fell, $stable and $changed using per-process sampled histories and an inferred clock. Initialize history from declared/default values, support constant history depth and gated ticks, and compare four-state values using case equality where required.

Reject history operands whose semantics cannot yet be represented. NativeProgramInstance rejects images requiring sampled/history slot boundaries; Simulator and Simulation retain the metadata and initialization copies. Rebase that check onto the current native image API and bump the image container to version 43.

Preserve nested sampled operands both during call discovery and when lowering select indices; resolve their histories before evaluation. Support numeric stability/change comparisons for real and shortreal, including signed zero and nested sampled expressions.

Validation on this stack member: sv_past, sv_sampled and native_simulation_image across interpreter, native, actual Cranelift and WASM, 96 passed; frontend unit tests, 7 passed; formatting and affected-crate Clippy with -D warnings. Both newly added regressions failed on all four backends before the fixes.

Change-Id: I8980d66c6a630a5297ed41429c982e3b02a62f9b
Store the issuing simulation time in severity report records, so draining several slots together preserves each report's original time. Keep timestamp arguments out of formatted messages and combinational sensitivity. RuntimeEventSite gains timestamp_arg; the native image container version is 44.

Settle pending combinational reports before leaving their time, including when no event is scheduled. A $finish or $fatal during that settle runs final procedures and leaves the simulation at its termination time. Propagate terminal halts through the host boundary, preserve the original fatal diagnostic, and allow a $stop in a final procedure to suspend and resume without advancing time.

Regression coverage exercises run_until, step, advance_to and bounded runs, with and without later clocks/report watching, across interpreter, native, Cranelift and WASM. The new regressions reproduced missing termination/finalization before the review fix.

Validation: report, VCD, stop/resume and deferred-assertion integration tests (181 passed); celox/runtime unit tests (308 passed); formatting and affected-crate all-targets Clippy with -D warnings.

Change-Id: I865a9dced4edb57838192ef0ed22fc22618d835a
Sample static locals and permit $sampled in combinational logic, while retaining the process's ordinary sensitivity. Infer the history clock in asynchronous-reset processes and called subroutines, including omitted-argument defaults. Reject nested sampled history and gates depending on unsupported subroutine arguments explicitly.

For multi-event processes, advance history on every four-state edge in IEEE 1800-2023 Table 9-2. Compare the clock's least significant bit with case equality so 0-to-X/Z rising edges and 1-to-X/Z falling edges count too. The regression covers all ten positive/negative transitions on all four backends and failed before the fix.

The documented limitation remains: a clock that returns to its pre-slot level within the same slot cannot yet be distinguished from another triggering event by the history guard.

The regression registrations explicitly select build_cranelift; the default build() method selects native. Optional backends are feature-gated.

Validation:
- Sampled/history/deferred-assertion and native-image regressions: 187 passed.
- SV analyzer/frontend, simulator and runtime units: 1,142 passed, 3 ignored.
- Common SV timing suite including fork/process control: 1,057 passed; final procedures: 18 passed.
- Affected-crate all-targets Clippy with -D warnings and formatting.
- Debug NAPI build and timing/cascaded-clock/runtime-event JS integration: 9 passed.

Change-Id: I964607db06fbe5e75728e0b7f4cfd935c303e332
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