Skip to content

merge queue: checking #1440 on master (7529e0d), stacked on #1402 - #1473

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

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

Conversation

@mergify

@mergify mergify Bot commented Oct 18, 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 naval-choucroute-251azg of the changes queue, to test #1440 before it merges into master. Pushing to this branch or closing this pull request removes #1440 from the queue.

What this draft tests

Mergify checks that #1440 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:

  1. master at 7529e0d
  2. the pull request queued ahead of this batch, listed below, which brings the tip to 44eb3ad
  3. #1440, the pull request of this batch

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 #1440 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 #1440. 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: 44eb3ad202708480f22efb50434d39cacc2769c5
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 1440
    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-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
    ef86bc3f51904ee5b58807c3f32f8d3e["naval-choucroute-251azg<br/>#1440<br/>scopes: core"]
    2da9286590224cfa9d932768cf4f8055["true-pate-mgvyou<br/>#1469<br/>scopes: core"]
    ef86bc3f51904ee5b58807c3f32f8d3e --> 2da9286590224cfa9d932768cf4f8055
    style ef86bc3f51904ee5b58807c3f32f8d3e fill:#6366f1,color:#fff
Loading

tignear and others added 5 commits October 18, 2026 09:22
$stop in a process kernel suspends the simulation (IEEE 1800-2023 20.2):
the process returns with the new Stop status, the scheduler settles
combinational logic, saves the round in progress and returns with
is_stopped() set. The next step continues that round after the $stop,
so edges made before it still trigger their domains. Checkpoints and
state files are refused while suspended. Outside a kernel, $stop is
reported as RuntimeEvent::Stop, as $finish is reported as Finish. Batch
hosts end the run at it.

$exit is ignored: Celox has no program blocks, and 24.7 ignores a call
from outside one.

BREAKING CHANGE: RuntimeEvent, RuntimeEventKind, ProcessStatus, Halt and
CheckpointError gain a Stop/Stopped variant.

Change-Id: Ia7467b814439b7542423436ce48b87e1a2d0597f
…t differ from the module's

Closes #1206.

A generate block that imports a type or subroutine under a name the module
binds to another declaration was rejected, because types, constant functions
and subroutine metadata were looked up module-wide by the plain name. This
gives the generate scope its own view of those tables instead.

- `Scope` and `Item` record the names the block's imports bind
  (`imports`, filled by `bind_import`). `BlockImports` keeps the ones an
  inner declaration has not hidden again, and derives from them:
  - the type aliases the block sees: a name the blocks declare or import
    hides the module's type of that name, and an imported `t` denotes
    `p::t`'s type;
  - the installed constant-function table, with `f` aliased to `p::f`,
    or hidden when the block's `f` is no constant function (a DPI-C
    import). Calls in the bodies of the functions it hides are renamed
    to the outer binding, so a module function still calls the `f` it
    was declared with.
- The elaborator evaluates a block's declarations, conditions and nested
  blocks with that view, and resolves a generate condition's call to the
  qualified declaration ahead of a module function of the same name.
- `Item::dimensions` carries the block's type aliases (casts, `$bits(t)`),
  next to the function, formal-name and shape aliases it already had.
  The signal, process, instance, function and subroutine collectors use
  the item's type aliases and install its constant functions.
- The two "imports as another declaration than its module" rejections are
  removed.
- `resolve_imports` also records a block import of the declaration the
  module sees when a block around it imports another declaration or
  declares the name, so the inner block no longer inherits the outer
  binding. This was already wrong for values since #1184.
- As a result, a generate-local declaration such as `localparam T` now
  also hides a module typedef `T`, so `T n;` under it is rejected instead
  of taking the outer type (IEEE 1800-2023 23.9).

Validation:

- `cargo fmt --all -- --check`
- `cargo clippy -p celox-sv-analyzer -p celox-frontend-sv -p celox --all-targets --features celox/systemverilog,celox/sv-dpi --no-deps`
- `cargo test -p celox-sv-analyzer -p celox-frontend-sv`
- `cargo test -p celox --features systemverilog,sv-dpi` (11465 passed, 0 failed)

New regressions: `generate_block_imports_bind_their_own_subroutines`,
`generate_block_imports_bind_their_own_types`,
`nested_generate_block_imports_restore_the_module_binding` and
`generate_block_declarations_hide_outer_types` in `sv_packages.rs`, and
`generate_block_imports_bind_their_own_dpi_formals` and
`generate_block_dpi_imports_hide_outer_constant_functions` in `sv_dpi.rs`.
Every case also uses the name outside the block, so the block-local binding
is taken rather than the module-wide alias for names only blocks use.

Unrelated defects found while testing are filed as #1435, #1436, #1437,
#1438 and #1461.

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