Repository navigation
merge queue: checking #2134 on master (d0eff4d), stacked on #2148 - #2151
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
On Unix, celox run accepts SIGUSR1 by default and saves a resumable CLI system checkpoint at the next complete simulation boundary while continuing execution. Use --no-checkpoint-on-signal to opt out, --save-state-dir for the destination, and --restore-checkpoint to resume a trusted artifact with the same design and options. The CLI composes core execution bytes with its file-effect handler, source waveform controls and accumulated assertion/error outcome. Handler state remains outside the core checkpoint. Restore targets defer initialization so declaration effects do not truncate previously delivered files. If stepped without restore, pending startup initializes sampled copies and history defaults after declarations (IEEE 1800-2023 16.5.1); restoring completed startup preserves saved samples, and a previously reported failure stays failed after resume. Pending scheduled saves, cycle counts and edge baselines are restored as CLI state, so consumed saves are not replayed. The restored schedule is authoritative; output directory and signal registration are local invocation options. The file handler keeps a disk-backed working view keyed by normalized path. Temporary contents reopen only during operations, bounding OS descriptor use even after many files have been closed or restored. Different paths, including hard links to the same host file, have independent views; callers coordinate aliases. Active output streams retain their original host handle until close, preserving writes across rename/unlink without inferring aliases. Restored streams reconnect to their recorded paths lazily; subsequent writes publish the restored branch without retracting previously delivered output during restore. Write-only append retains its unreadable prefix externally without requiring read permission. Standard streams, pipes and devices remain live external channels. Source-driven waveform recording resumes into a unique <original-name>.resume-<id>.vcd segment beside the original trace. Each segment preserves selected signals and dump controls, begins at the restored time, and has a fresh per-file byte-limit budget. Rust hosts can separately capture SourceWaveformState and choose their new output destination. Original traces are not overwritten. The signal handler only sets an atomic flag. Saves use checksummed containers and no-clobber publication; repeated pending signals coalesce. Save failures report to stderr without terminating the run. Validation: 284 Rust regressions passed (CLI, core checkpoint, declaration startup, sampled values, history and VCD), plus 24 NAPI/JS checkpoint/timing tests with a rebuilt addon. Coverage includes separate-process resume on interpreter, native, tiered, Cranelift and WASM; delayed-startup sampling and saved-sample preservation; scheduled saves across high/low clock phases; rename/unlink output behavior; 128 closed files with descriptor limit 64; waveform controls. Formatting and affected-crate clippy passed. BREAKING CHANGE: SimulatorOptions gains defer_initialization. Explicit options literals must initialize it or use ..Default::default(). The default preserves eager timed initialization. Change-Id: I262b57df801bf7309e6858f55dc52f84440851f8
## Summary Add immutable, interned heap values for dynamic arrays, bounded and unbounded queues, and associative arrays. The heap helper supports resizing, element updates, queue operations, ordered traversal and four-state equality. Collection follows string and object elements, and checkpoints preserve container state. Intern completed updates so writing equal contents preserves handles and does not wake value-change event waits. Reject negative array sizes through runtime fault reporting. The SystemVerilog binding is the next member of this stack. ## Validation Validated this commit independently, without the frontend changes: - `cargo test --locked -p celox-heap -p celox-runtime -p celox --features celox/systemverilog,celox/cranelift,celox/wasm-runtime --lib`: 23 heap, 78 runtime and 231 Celox tests passed. - `cargo clippy --locked -p celox-heap -p celox-runtime -p celox --features celox/systemverilog,celox/cranelift,celox/wasm-runtime --lib`: passed. - `cargo fmt --all -- --check` and `git diff --check`: passed. BREAKING CHANGE: native image containers advance to version 45 and serialized core checkpoints to version 2. Regenerate artifacts produced by older versions. Change-Id: I21a75c9528004c0625b60f4263521c2e783f984e
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 plausible-flan-sbp82z of the
changesqueue, to test #2134 before it merges intomaster. Pushing to this branch or closing this pull request removes #2134 from the queue.What this draft tests
Mergify checks that #2134 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:
masteratd0eff4dd9b0386The 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 #2134. 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 validationmaster]: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:holdbase ~= ^(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 title