Skip to content

merge queue: checking #1391 on master (c96fc06) - #1433

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

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

Conversation

@mergify

@mergify mergify Bot commented Oct 17, 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 bright-cerise-3k8tc0 of the changes queue, to test #1391 before it merges into master. Pushing to this branch or closing this pull request removes #1391 from the queue.

What this draft tests

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

  1. master at c96fc06
  2. #1391, 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 #1391 into master and closes this draft.
Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: c96fc06547c0838fd2a7a9d2bb8594ac1b7103b7
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 1391
    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
    e5fc24a8ebc4486bb610160d6969e238["bright-cerise-3k8tc0<br/>#1391<br/>scopes: core"]
    64b63c9132cb4c108dda762a2c3a3122["minimal-painseigle-spsazt<br/>#1431<br/>scopes: core"]
    e5fc24a8ebc4486bb610160d6969e238 --> 64b63c9132cb4c108dda762a2c3a3122
    style e5fc24a8ebc4486bb610160d6969e238 fill:#6366f1,color:#fff
Loading

tignear and others added 18 commits October 18, 2026 06:28
Simulator::edge, posedge, negedge, active_edge, inactive_edge, cycle and
the coincident edges move an event signal's level and run every domain
sensitive to the transition, as a timed step does: the event's own domain
on its active edge, gated clocks judged from the pre-edge state, gates the
commit moves and state-derived cascades. tick keeps its behaviour: the
active edge without moving the signal.

Change-Id: I21a0510f1955ce1a3f9f047c9f55c4f1344b3e81
An edge that moves an event signal without running a domain marked
combinational logic stale, so a cycle's falling edge forced a full settle
before the next rising edge even when only flip-flops see the clock.
Report such moves as Stored when combinational logic does not read the
signal and keep the pending state as it was, in the simulator, the N-API
handle (which now takes the caller's dirty flag) and the WASM edge runner.
An edge of an event without derived domains now moves the signal and runs
the event's domain through tick itself. The bench binary's generic edge
path ran the same flip-flop kernel about 1.8 times slower per cycle than
tick did, with equal instruction counts; going through tick keeps cycle
within a few percent of tick and records tick timing diagnostics for
edges too.
CI builds the N-API addon for wasm32-wasip1-threads; the dev shell's
toolchain only had wasm32-unknown-unknown, so the same build could not run
locally. With the target and WASI SDK clang as CC_wasm32_wasip1_threads,
the CI napi-wasm job runs as is.
The wasm32 handle listed only events with flip-flops of their own, so a
clock that only drives a gated clock was no event in the browser and its
edges never reached the gated domain. Events, their kernels and the edge
plans now follow the native event order (celox::event_addresses), and
kernels are found through the canonical event.
The runner has no other imports, so browser hosts that instantiate the
kernels themselves can use it without the addon loader. cachedEdgeKernels
holds the kernel lookup both hosts need, and the runner and bridge accept
events without a kernel of their own.
…unner

The playground's simulators now expose posedge, negedge, activeEdge,
inactiveEdge, cycle and edges, and their ticks and timed steps fire
derived and gated clocks as the native simulator does: the worker passes
the edge plans and split-phase kernels, and the runtime moved from main.ts
into playground-simulator.ts around the package's WASM edge runner. Monaco
now gets every declaration file of the package, so the new methods and
subpaths resolve in testbenches.
… $finish

Since the timed runtime wakes processes on host writes (#1361), an edge's
move of its clock signal is such a write: it now goes through the host
watch, as IOContext writes do, so waits and counters a timed simulation
keeps see it. The edge runtime takes the write as a callback (SignalWrite;
set_level for hosts that observe nothing). Edges on a simulation a
$finish froze change nothing, and a $finish during an edge is left to
the host, as a tick does.

Change-Id: If100c01610ac1c9d5169c0e64d37f7cc62b08390
After the rebase onto the process-waking runtime, a cycle on the plain
overhead bench cost 1.75 ticks with the same instructions as before: loads
of host tables in the edge path right after the flip-flop kernel waited
behind the kernel's stores (4 KiB aliasing; which loads alias depends on
the heap layout). cycle() now reads everything before the domain runs,
then stores the inactive level, and an inactive edge of a known-polarity
event stores its level without reading it first, as it can run nothing.
cycle is 1.09 ticks again on the bench.

Change-Id: I672bb62499cbecdc7fce913ad48ff7d08053a637
@mergify mergify Bot closed this Oct 17, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/2ad6f90801 branch October 17, 2026 23:00
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