Repository navigation
feat(diagnostics)!: configure compilation diagnostic levels - #1573
Conversation
tignear
force-pushed
the
stack/tignear/feat/diagnostic-policy/configure-compilation-diagnostic-levels--5c15ee49
branch
from
October 19, 2026 19:20
cf7c588 to
39dd239
Compare
Contributor
Author
Revision history
|
tignear
marked this pull request as ready for review
October 19, 2026 19:27
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
Merge Queue Status
Waiting for
All conditions
|
tignear
force-pushed
the
stack/tignear/feat/native-testbench-cli/support-celox-toml-projects-sv-file-lists--620aad85
branch
2 times, most recently
from
October 20, 2026 09:31
e563070 to
187b05f
Compare
Contributor
Merge Queue Status
Waiting for
All conditions
|
This was referenced Oct 20, 2026
Allow projects to compile third-party SystemVerilog with mixed explicit and default timescales through a per-code severity policy. Add [diagnostics] and [targets.NAME.diagnostics] to celox.toml, and repeatable --diagnostic CODE=allow|warn|error overrides to both celox run and celox vpi build. Reuse the project discovery and target resolution from #1566, with common settings overridden by the selected target and then the CLI. Keep strict defaults. Relaxed mixed_timescale diagnostics use 1ns/1ps for undeclared settings, retain explicit values, and include default scopes in global precision. Existing Veryl and SV warnings can be suppressed or promoted while unrelated errors remain fatal. NAPI project factories apply the policy and include it in compilation cache keys. Optimizer and runtime settings are unchanged. Breaking Rust API: SimulatorOptions gains diagnostic_policy, SimulatorErrorKind gains DiagnosticPolicy, and the SV frontend/analyzer warning enums gain MixedTimescale. Update exhaustive struct constructions and enum matches accordingly. Existing builder calls and CLI defaults retain their behavior. Validation: - 10 diagnostic-policy regressions, including native, Cranelift, interpreter, WASM and mixed-language interface probes. - 123 timescale and 19 warning regressions across the affected backend variants; 744 analyzer/frontend unit tests passed (3 existing ignored tests). - cargo test --locked -p celox-vpi, with and without --features systemverilog. - Focused NAPI project-policy/cache regression, native addon build, 6 celox.toml JS integration tests and TypeScript typecheck. - WASI addon build using the CI WASI SDK and all 16 playground WASM tests. - Clippy for affected crates and tests, including both VPI feature configurations; cargo fmt; JS lint; affected doctests; parse all TOML guide examples. - Unmodified fpganinja/taxi AXI Stream RTL and testbench sources compile with mixed_timescale=warn. Full upstream cocotb execution still encounters the separate VPI interface-discovery limitation (s_axis is absent); this PR does not claim that workload passes. Depends-On: #1566 Change-Id: I5c15ee49037bd37e3680f71364558aa886eb64f1
tignear
force-pushed
the
stack/tignear/feat/native-testbench-cli/support-celox-toml-projects-sv-file-lists--620aad85
branch
from
October 20, 2026 10:41
187b05f to
451189e
Compare
tignear
force-pushed
the
stack/tignear/feat/diagnostic-policy/configure-compilation-diagnostic-levels--5c15ee49
branch
from
October 20, 2026 10:42
39dd239 to
2eee192
Compare
tignear
added a commit
that referenced
this pull request
Oct 20, 2026
Expose declared SystemVerilog interfaces as navigable scopes in native image reflection. Previously Taxi's s_axis.tdata was published as a flat s_axis$tdata signal, so cocotb could not resolve dut.s_axis and failed before driving the design. Carry interface member paths from elaboration through standalone and mixed-language scheduling, then construct reflection scopes from structured variable paths. Use declaration provenance to preserve legal dollar characters in ordinary identifiers, interface names and member names. Add a native-image round-trip VPI regression covering scoped lookup, enumeration, parent relationships and read/write aliases through interface ports. Validation: - 38 VPI regressions, including the new interface hierarchy regression. - 249 interface-related backend regressions passed; 20 existing cases remain ignored. - 44 analyzer interface tests and 24 native execution tests. - Native addon build and all 108 TypeScript E2E tests. - Clippy for the affected crates and tests, cargo fmt --all -- --check, and git diff --check. - All 9 upstream fpganinja/taxi AXI Stream register cocotb tests passed in an isolated validation worktree combining this change with #1441's SV event metadata and #1570's clock callback ordering. The configuration matches upstream pytest's DATA_W=8, REG_TYPE=2 case; a local testbench copy selects ID_EN=1 and DEST_EN=1, while RTL and Python tests remain unchanged. This PR alone fixes hierarchy discovery; the full workload also needs those existing event-handling changes. Depends-On: #1573 Change-Id: I22a3f6f9ca55b53dbf0dbcf3f2399f4655ed7af1
tignear
added a commit
that referenced
this pull request
Oct 20, 2026
Land the two stacks branching from #1566 together so the upstream testbench workflow and simulator configuration share one validated queue entry. Include celox.toml projects and SV file lists, configurable diagnostics, VPI interface hierarchy, optimization and explicit signal access, numeric top parameter overrides, and the pinned common_cells daily smoke test. The compiler/runtime starts from #1591 at the SHA below. The CLI also accepts the established exclude, [test], and [simulation] manifest fields with their existing types, so explicit Veryl inputs can reuse celox.toml. Additional changes come from #1571's CI, runner, and documentation. The source PRs are held with release:hold while this rollup is active. Their changes are squashed here; they close automatically when this PR lands on master. If a source head changes, rebuild the rollup before queueing it. Removing this rollup requires releasing those holds before resuming individual stack merges. Source PRs and pinned heads: - #1566: 451189e — feat(cli): support celox.toml projects and SV file lists - #1571: 7b3abcc — ci: run pinned upstream SystemVerilog testbench daily - #1573: 2eee192 — feat(diagnostics)!: configure compilation diagnostic levels - #1576: e16ef23 — fix(vpi): preserve SystemVerilog interface member hierarchy - #1579: b291fe8 — feat(cli)!: configure optimization and explicit signal access - #1591: 834663f — feat(cli)!: support numeric top parameter overrides Validation: - Manifest compatibility: 21 CLI tests passed, including run and vpi build with each established field and their combination; malformed field types and unknown CLI fields remain rejected. Affected-crate Clippy and formatting passed. - 75 CLI/VPI tests passed; 3 opt-in cocotb tests retain the successful evidence from the identical #1591 Rust tree. - 63 workflow, classifier, scope, and upstream-runner script tests passed. - Real pinned common_cells Gray code TB passed; broken RTL failed with the required assertion diagnostic. - cargo clippy --locked -p celox-vpi --all-targets --features systemverilog -- -D warnings, cargo fmt --all -- --check, pnpm lint, and git diff --check passed. - Actionlint passed with only its outdated ubuntu-26.04-arm label catalogue diagnostic suppressed; the runner label predates these changes. - Reused #1591's exact-source parameter (256 tests), Clippy, NAPI, and upstream Taxi O1/O2 (9/9 each) validation. BREAKING CHANGE: SimulatorOptions gains diagnostic_policy and signal_access, error and warning enums gain variants, and native image container version 16 requires rebuilding attached images with a matching runtime. VPI builds use O1 with explicitly declared force targets. Unknown Veryl top parameter overrides now fail compilation instead of being silently ignored. Closes #1566 Closes #1571 Closes #1573 Closes #1576 Closes #1579 Closes #1591 Change-Id: I8a7eb9b0697f93da59eb8f5b8b13f70113604263
tignear
deleted the
stack/tignear/feat/diagnostic-policy/configure-compilation-diagnostic-levels--5c15ee49
branch
November 8, 2026 20:19
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.
Allow projects to compile third-party SystemVerilog with mixed explicit and default timescales through a per-code severity policy. Add [diagnostics] and [targets.NAME.diagnostics] to celox.toml, and repeatable --diagnostic CODE=allow|warn|error overrides to both celox run and celox vpi build. Reuse the project discovery and target resolution from #1566, with common settings overridden by the selected target and then the CLI.
Keep strict defaults. Relaxed mixed_timescale diagnostics use 1ns/1ps for undeclared settings, retain explicit values, and include default scopes in global precision. Existing Veryl and SV warnings can be suppressed or promoted while unrelated errors remain fatal. NAPI project factories apply the policy and include it in compilation cache keys. Optimizer and runtime settings are unchanged.
Breaking Rust API: SimulatorOptions gains diagnostic_policy, SimulatorErrorKind gains DiagnosticPolicy, and the SV frontend/analyzer warning enums gain MixedTimescale. Update exhaustive struct constructions and enum matches accordingly. Existing builder calls and CLI defaults retain their behavior.
Validation:
Depends-On: #1566