Repository navigation
merge queue: checking #2149 on master (6ebb74e) - #2155
Closed
mergify[bot] wants to merge 2 commits into
Closed
mergify[bot] wants to merge 2 commits into
mergify[bot] wants to merge 2 commits into
Conversation
## 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
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 fit-fourme-5xx606 of the
changesqueue, to test #2149 before it merges intomaster. 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:masterat6ebb74e🎉 Where it stands: checks passed
CI passed on this draft.
Follow the
changesqueue in the dashboardWhat happens next
masterand closes this draft.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#2148[⛓️ feat(runtime)!: store dynamic containers in the simulator heap #2148]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#2148[⛓️ feat(runtime)!: store dynamic containers in the simulator heap #2148]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 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