Skip to content

merge queue: checking #1916 + #1875 together on master (8b3372b) - #1928

Closed
mergify[bot] wants to merge 5 commits into
masterfrom
mergify/merge-queue/d13ebea6c4
Closed

mergify[bot] wants to merge 5 commits into
masterfrom
mergify/merge-queue/d13ebea6c4

Conversation

@mergify

@mergify mergify Bot commented Oct 24, 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 suitable-tome-k2numv of the changes queue, to test #1916 and #1875 before they merge into master.

What this draft tests

Mergify checks that #1916 and #1875 still pass CI on top of master. CI runs on this draft's code, built in this order:

  1. master at 8b3372b
  2. #1916 + #1875, the pull requests of this batch, tested together as one tip

🕵️ Where it stands: failed, splitting the batch

The checks of this draft failed. Mergify splits this batch to find which pull request is responsible.

Follow the changes queue in the dashboard

What happens next

  • Mergify checks smaller batches of #1916 and #1875 until it finds which pull request is responsible.
Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: 8b3372bbe3a137e30b4f12469e7d31b48772a6eb
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 1916
    scopes:
      - core
  - number: 1875
    scopes:
      - core
scopes:
  - core
...
1 scope
  • core
Required conditions of queue rule changes for merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
    • check-success = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
    • check-success = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
    • check-success = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
    • check-success = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
    • check-success = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
    • check-success = @github-actions/Conventional Commit title
Required conditions to stay in the queue

tignear and others added 5 commits October 25, 2026 02:01
Change-Id: Ie43192fc57f87e17226b84ab5779211d3b4245f7
IEEE 1800-2023 20.10 has every severity task report its severity, the file and line of the call, the scope that issued it and the simulation time. Celox lost most of this:
- `$info`, `$warning` and `$error` all became `RuntimeEvent::AssertContinue`, so the severity was gone;
- events carried no location and no scope;
- the `celox` command failed a run on `$warning` and `$info`.

This is the first part of SVA stage 1 (#89). Deferred assertions and concurrent assertions will report through the same record.

**`RuntimeEvent::Report`.** It replaces `AssertContinue` and `AssertFatal`. A `Report` has:
- `severity`: `Info`, `Warning`, `Error` or `Fatal`;
- `message`: the formatted bytes, as before;
- `scope`: from the drain context, else the scope of the site;
- `location`: the file and line as `` `__FILE__ `` and `` `__LINE__ `` give them, so `` `line `` directives apply;
- `assertion`: for a report from an action block of an immediate assertion, its statement label (which names it in its scope, 16.3), `assert`/`assume`/`cover`, and whether the pass or the fail action issued it. The default `$error` of an `assert` or `assume` without a fail action has the location of the assertion. Severity tasks in subroutines the action block calls are not attributed;
- `time`: the time of the drain context. The VPI host drains at each callback, so its times are exact. A later change stamps events at the end of their time slot for every host.

`Report::render` formats a report as `Error: file:line: message`, then the time and the scope. The VPI host and the `celox` command print reports this way.

**Design metadata.** `RuntimeEventKind::Report(Severity)` replaces `AssertContinue` and `AssertFatal`. Veryl's `$assert` is a fatal report and `$assert_continue` an error. `RuntimeEventSite` has `location` and `assertion` (serde default: none). The SV analyzer records the logical file and line in `SourceSpan` and attributes severity tasks to their assertion in `Stmt::SystemTask::assertion`. A task of a nested assertion keeps the attribution of the inner one. The native image container version is 35.

**Failures.**
- The `celox` command fails a run only on `$error` and `$fatal`.
- The Veryl native testbench and the SV suite harness count only errors and fatal reports as failures. They print info and warning reports like `$display`.
- `$fatal` still ends the simulation with an error.
- lydite's proof backend (`lydite/conformance/veryl-proof`) accepts reports below `Fatal` where it accepted `AssertContinue`, and still fails closed on fatal ones.

- New `crates/celox/tests/sv_reports.rs` on the interpreter, cranelift, native and wasm backends:
  - `$info`, `$warning` and `$error` give their severity, message, line and scope;
  - action blocks of a labeled `assert` (with a `$warning` fail action and with the default `$error`), a labeled `cover` and an unlabeled `assume` name their assertion and outcome;
  - an `always_comb` report keeps its location;
  - a `` `line `` directive sets the file and line;
  - a failing assertion in the action block of another reports the inner one;
  - plus a unit test of `Report::render`.
- New lydite unit test `test_events.test_only_nonfatal_runtime_events_are_observed`: `Display`, `Write` and reports up to `Error` are observed, and `Fatal`, `Finish` and `Stop` fail closed. The `bridge` job's veryl-proof gate rejected `flip_flop::test_ff_assert_message_output_argument_is_eager` without it.
- New `celox` command test: a run fails on `$error` but not on `$info` or `$warning`, and each is printed with its severity and location.
- Existing tests that compare drained events now compare them without the report context, which they do not check. Their messages and severities are unchanged.
- `cargo nextest run` with CI's features (`celox/systemverilog,celox-test-suite/verilator,celox-test-suite/icarus`):
  - celox and celox-vpi: 13,548 passed;
  - celox-frontend-{core,sv,veryl}, celox-sv-analyzer, celox-runtime, celox-design, celox-slt, celox-test-suite and celox-napi: 1,294 passed.
- sv-tests conformance (`conformance/sv-tests/run.py`): unchanged from `expected.tsv`.
- `cargo clippy --workspace --all-targets` with CI's features and `-D warnings`; clippy of `celox` without default features; `cargo fmt --check`.

- `celox::RuntimeEvent::AssertContinue` and `AssertFatal` are replaced by `RuntimeEvent::Report(Report)`.
- `celox_design::RuntimeEventKind::AssertContinue` and `AssertFatal` are replaced by `RuntimeEventKind::Report(Severity)`.
- `celox_design::RuntimeEventSite` has the new fields `location` and `assertion`.
- `celox_sv_analyzer::ir::SourceSpan` has the new fields `logical_path` and `line`, and `Stmt::SystemTask` has `assertion`.
- The `celox` command no longer fails a run on `$info` or `$warning`, and prints reports with their severity and location.

Change-Id: I4abb3cc497c11a31008ec8429fedaf365b4689a1
Change-Id: I4b6427df26ee17c68a606e4b9c68d3424f866390
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