Skip to content

merge queue: checking #2149 on master (6ebb74e) - #2155

Closed
mergify[bot] wants to merge 2 commits into
masterfrom
mergify/merge-queue/e1fdd1edcb
Closed

mergify[bot] wants to merge 2 commits into
masterfrom
mergify/merge-queue/e1fdd1edcb

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 fit-fourme-5xx606 of the changes queue, to test #2149 before it merges into master. Pushing to this branch or closing this pull request removes #2149 from the queue.

What this draft tests

Mergify checks that #2149 still passes CI on top of master. CI runs on this draft's code, built in this order:

  1. master at 6ebb74e
  2. #2149, the pull request of this batch

🎉 Where it stands: checks passed

CI passed on this draft.

Follow the changes queue in the dashboard

What happens next

  • Mergify merges #2149 into master and closes this draft.
Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: 6ebb74ea8ea34f9aca37ef85afae697fd457a1ac
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 2149
    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#2148 [⛓️ feat(runtime)!: store dynamic containers in the simulator heap #2148]
  • 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
    e99149bddf5a498d8f27b4154b199d3c["fit-fourme-5xx606<br/>#2149<br/>scopes: core"]
    59c2e37f4c6c44eb84ab777aa005c2c9["habitual-beaufort-nlhi26<br/>#2146<br/>scopes: core"]
    e99149bddf5a498d8f27b4154b199d3c --> 59c2e37f4c6c44eb84ab777aa005c2c9
    style e99149bddf5a498d8f27b4154b199d3c fill:#6366f1,color:#fff
Loading

tignear and others added 2 commits October 26, 2026 22:11
## Summary

SystemVerilog declarations such as `int values[]`, `int queue[$]` and
`int lookup[string]` now bind to runtime container values. Preserve `new[]`
operands in declaration initializers and lower element accesses, value copies,
queue methods, associative traversal, equality and foreach through the heap ABI.
Track the receiver and traversal output as process writes, preserve X/Z, and keep
string and object elements reachable during collection and checkpoint restore.

The initial subset is one-dimensional containers with packed elements up to
64 bits, strings or class handles, and integral/string associative keys. The
reference guide documents unsupported forms. Shared cases cover ordinary and
bounded queues, resize/copy/default behavior, signed and string keys, string-key
foreach, invalid indices, equality and unchanged-value event waits. Celox API
tests cover serialized checkpoints and negative allocation sizes.

## Validation

- `cargo test --locked -p celox --features systemverilog,cranelift,wasm-runtime --test systemverilog`: 5,516 passed, 20 existing ignores.
- `cargo test --locked -p celox --features systemverilog,cranelift,wasm-runtime --test systemverilog containers::`: 88 passed, including 10 new nested-argument regressions.
- `cargo test --locked -p celox-sv-analyzer -p celox-sv-syntax -p celox-frontend-sv --lib`: 829 analyzer, 131 syntax and 7 frontend tests passed.
- Clippy passed for the affected frontend, syntax, analyzer, Celox and shared-suite crates with all targets and native/Cranelift/WASM features.
- NAPI rebuilt successfully; its 34 unit tests and 435 JavaScript tests passed.
- `cargo fmt --all -- --check` and `git diff --check` passed.

External verification was run with `verify-sv-verilator`, `verify-sv-icarus`
and `verify-sv-xezim` using focused `containers::` filters. The pinned xezim is
0.11.3 (flake revision `058f2bba58648452e5799d17572356ebcae7d163`). Reproduce its
16-case run with:

```sh
nix develop .#xezim -c cargo run --locked -p celox-test-suite --features xezim --bin verify-sv-xezim -- --filter containers::
```

These independent checks are not fully passing:

| Tool | Passed | Compile errors | Mismatches | Unsupported four-state cases |
| --- | ---: | ---: | ---: | ---: |
| Verilator 5.052 | 7 | 4 | 2 | 3 |
| Icarus 13.0 | 3 | 12 | 1 | 0 |
| xezim 0.11.3 | 6 | 0 | 10 | 0 |

xezim compiles all 16 cases. It independently passes signed and string
associative-key traversal, integer/string foreach, string elements across GC,
and unchanged-value event waits. The remaining assertion differences are:

| Case in `containers::` | Expected | xezim |
| --- | ---: | ---: |
| `dynamic_resize_and_copy` | `0xff` | `0xef` |
| `queue_methods` | `0xff` | `0xdf` |
| `declaration_initializers_and_locals` | `1` | `0` |
| `four_state_elements_and_indices` | `0xff` | `0xcf` |
| `bounded_queue_and_equality` | `0xff` | `0xcc` |
| `four_state_container_equality` | `0xf` | `0xd` |
| `object_elements_keep_handle_semantics` | `0xf` | `0x7` |
| `runtime_queries_and_traversal_conversion` | `0xff` | `0xd7` |
| `queue_argument_side_effects` | `0xff` | `0x38` |
| `queue_argument_four_state` | `1` | `0` |

Standalone diagnostic probes observe retained out-of-range stores, untruncated
bounded-queue assignment, zero/default mismatches for four-state missing entries,
logical array equality returning 0 with X/Z operands, `first(byte_index)` returning
1 after truncation, and `$dimensions` returning 2 for a dynamic array of class
handles. Queue-append and declaration-initializer results vary with hierarchy or
instrumentation and remain unresolved comparisons. Expectations were checked
against IEEE 1800-2023 7.4.5/Table 7-1, 7.5.1, 7.9.8, 7.10.1/7.10.5,
11.2.2/11.4.5 and 20.7.

The runtime-query fixture uses `bit [31:0]` elements so its zero-default
assertions describe a two-state type; its assertions were preserved. The revised
case passes Celox's backend matrix, while both Verilator and Icarus still reject
its narrowed traversal call or other unsupported syntax.

Verilator differs on signed associative-key traversal/foreach and rejects or
fails to generate C++ for queue `$+1`, mixed-bound queue equality, aggregate
event expressions and narrowed traversal outputs. Icarus lacks the required
associative-array support and has other compile failures; unchanged-value event
waits also differ. Four-state cases remain enabled in Celox's backend matrix.
The external-comparison failures require review before this stack is merge-ready;
no retained verification JSON or exclusion manifests were refreshed.

## P2 review correction

Evaluate container indices and element arguments before reading the receiver's
immutable heap handle and deriving the append position. For example,
`q = {1, 2}; q.push_back(q.pop_front());` now leaves `{2, 1}` and preserves
the inner mutation. The same ordering applies to front insertion, indexed
insert/delete and indexed reads. IEEE 1800-2023 7.10.2 and 13.5 describe the
queue operations and input argument passing; the tests do not depend on an
ordering between multiple side-effecting arguments.

Two portable regression cases cover integer, bounded, string and four-state
queues. All 10 backend registrations failed before the fix and pass afterward;
the complete focused container matrix passes 88 tests. Frontend unit tests,
affected-crate Clippy, formatting, the NAPI rebuild and 435 JS tests also pass.
Icarus passes both new cases; Verilator passes the ordinary case and its adapter
cannot execute the four-state case. xezim compiles both but differs on both.
An isolated xezim probe produces `{2, 2, 1}` after the nested push/pop example,
and also retains an extra element for front/insert and string variants.
External totals above combine the previously validated 14 cases with these two
new cases. Existing external discrepancies remain unresolved.

## sv-tests expectation review

Update exactly 22 retained `fail -> pass` verdicts for the new container support:
nine associative-array cases, dynamic-array `new[]` and the queue declaration
case, each in both state modes. Review the pinned upstream sources and official
logs from CI run 40323383639: eight cases execute and pass simulation assertions;
three cases pass elaboration only. Document those coverage boundaries in the
conformance README. The byte-key traversal case already truncates its key at
insertion and correctly returns 1 for its equally wide output.

Reconcile all 3,300 artifact verdicts with the updated expectations and official
runner logs: no remaining differences and no passing-case regression. The pinned
revision is unchanged; 1,201 cases pass in 2state and 1,212 in 4state. The five
runner aggregation/schema tests and `git diff --check` pass. This expectation-only
follow-up reuses the reviewed CI execution evidence; it does not rerun the full
upstream corpus locally or change simulator code, external-comparison exclusions
or retained verification JSON.

BREAKING CHANGE: the public analyzer `ObjectOp` enum gains a `Container` variant;
consumers with exhaustive matches must handle it.

Change-Id: I864df12b30e1b7154418b3017341c898742f997d
@mergify mergify Bot closed this Oct 26, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/e1fdd1edcb branch October 26, 2026 14:24
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