Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23e2e4bca5 | ||
|
|
a2a22adad8 | ||
|
|
9d1eb1671e | ||
|
|
5d70cb89cc | ||
|
|
da32237a0e | ||
|
|
c82978c3db | ||
|
|
1b8723ca1f | ||
|
|
2675131f8c | ||
|
|
409acae087 | ||
|
|
f5edac9197 | ||
|
|
7df86fe979 | ||
|
|
b4a0668b24 | ||
|
|
41945912a3 | ||
|
|
faf890d9f0 | ||
|
|
3ceba21bb2 |
No files matched your search
+101
@@ -4,6 +4,107 @@ All notable changes to lucisv are recorded here. Versions follow
|
||||
[semantic versioning](https://semver.org/); until 1.0 the CLI's exit codes
|
||||
(see `README.md`) are the only frozen contract.
|
||||
|
||||
## 0.55.0 — 2026-09-17
|
||||
|
||||
### Loop 3, round 2 — find-references reaches a module's internals
|
||||
|
||||
- **References see every cross-file use of a module's nets, variables
|
||||
and instances.** With `module leaf` declaring `logic sig` and another
|
||||
file writing `assign w = u_leaf.sig;` (or a `bind` directive naming
|
||||
`sig` in a connection), Find All References from the declaration
|
||||
answered `leaf.sv` alone — while a rename already edited both files.
|
||||
The two index questions behind references asked the module's
|
||||
*connection* surface (ports and parameters), which cannot hold an
|
||||
internal net; they now ask the *hierarchical* surface, the one a path
|
||||
in another file actually reaches the declaration by. Every answer for
|
||||
a port, parameter, package member, class field or struct field is
|
||||
byte-for-byte what it was. Hover's declaration snippet uses the same
|
||||
lookup and now shows the live line for such a signal in an edited
|
||||
buffer. On the opentitan tree, references on `aes.sv`'s
|
||||
`entropy_masking_req` now list `aes_bind.sv`, and `state_q` in
|
||||
`entropy_src_main_sm.sv` lists its use in `entropy_src_core.sv`.
|
||||
(`docs/features/references-hierarchical-surface/README.md`.)
|
||||
- **A closed declaring file's own uses are in the answer.** The index
|
||||
deliberately posts no in-file references for a module's internal
|
||||
signals (a table sized by every RTL body, for a rarely asked
|
||||
question), so a request from another file into a declaring file
|
||||
nobody has open used to list the cross-file sites and silently omit
|
||||
that file's own `assign … = sig;` lines. That one file is now parsed
|
||||
once, on exactly that request shape — 0.4–1.5 ms on a real design
|
||||
file, the same trade a rename already makes.
|
||||
- **A stale index may omit a location; it can never point at a wrong
|
||||
line.** Three QA rounds found that a span recorded at index time, or
|
||||
computed against one read of a closed file, could be rendered against
|
||||
a different read of the same file after an external edit (another
|
||||
tool, `git checkout`, a build step) and land on a line that no longer
|
||||
holds the name. Each closed file is now read exactly once per
|
||||
request, and every index-time span — closed files and the
|
||||
open-buffer declaration fallback alike — must still spell the name
|
||||
exactly where it is rendered, or it is dropped. Escaped identifiers,
|
||||
UTF-8 boundaries, a deleted declaring file and a name that is both a
|
||||
port and a net are covered by tests; references and rename are
|
||||
asserted to agree with the whole-scope engine.
|
||||
- Cost, accepted and recorded in `docs/perf/README.md`: a references
|
||||
request on a heavily used local net in a 40 000-line buffer now
|
||||
walks the indexed path, 1.22 → 1.54 ms median; every other harness
|
||||
row unchanged.
|
||||
|
||||
## 0.54.0 — 2026-09-12
|
||||
|
||||
### Loop 3, round 1 — a rename correctness fix and a faster first edit
|
||||
|
||||
- **Rename edits a `bind` file's own occurrences.** Renaming a module's
|
||||
internal net that a `bind` directive's connection names bare
|
||||
(`bind aes chk u (.req(entropy_masking_req))`), or reaches by a
|
||||
hierarchical path (`u_aes_core.u_aes_prng_clearing.seed_en`), used to
|
||||
leave the bind file untouched and say nothing — the design no longer
|
||||
elaborated after the rename. The resolver had asked the bind target's
|
||||
connection surface (ports and parameters) for a bare name, and rooted a
|
||||
bind's hierarchical path in the scope the directive is written in,
|
||||
which declares nothing. A bind connection is now a reference on the
|
||||
target's hierarchical surface, a bind's path is rooted at the target
|
||||
(a multi-segment target such as `bind tb.u_aes …` included), and an
|
||||
occurrence the engine cannot resolve is warned about by file and line,
|
||||
never silent. Definition, hover and references answer over bind files
|
||||
the same way. The index store format is bumped (`FACTS_FORMAT` 20): a
|
||||
0.53.0 store is rebuilt once. (Found by the previous round's QA on the
|
||||
opentitan tree.)
|
||||
- **The first request after an edit is ~19 % faster.** On a 40 000-line
|
||||
generated register file the first code-action menu after a
|
||||
one-character change costs 88 ms instead of 109: the lexer's raw and
|
||||
comment-attachment phases are fused (no intermediate token vector), the
|
||||
parser no longer clones a token it is about to discard, and the
|
||||
operator table is filtered by first byte before the longest-match
|
||||
scan. Token stream, diagnostics, AST and symbols are byte-for-byte what
|
||||
they were over 4 807 files; every formatter and linter output is
|
||||
identical.
|
||||
- `--verbose` timing lines carry a third group, `rebuild{…}`, that splits
|
||||
the document rebuild after an edit into its stages.
|
||||
- Known remainder, filed: cross-file *references* from a module's
|
||||
internal net (bind or not) still stop at the connection surface; the
|
||||
rest of the rebuild (the token clone, analysis, external resolution).
|
||||
|
||||
## 0.53.0 — 2026-09-09
|
||||
|
||||
### The 0.52.0 review — one correctness fix
|
||||
|
||||
- **A symlink-aliased directory is indexed once at startup.** 0.52.0's
|
||||
startup scan walks the open file's folder before the rest of the
|
||||
workspace, and the two walks kept separate visited sets: a directory
|
||||
reachable by two spellings (`a_alias -> z_real`) was indexed twice, so
|
||||
go-to-definition offered two targets and a valid rename was refused as
|
||||
ambiguous until the next rescan (found by the independent review of
|
||||
0.52.0). The two walks now share one directory identity; when an alias
|
||||
sorts before the open folder the scan takes the single canonical walk;
|
||||
an alias only the remaining walk can see requests one ordinary rescan
|
||||
so the spellings converge; and a same-named symlink to an open buffer
|
||||
is never a second copy of it. Startup, rescan and restart agree on
|
||||
index paths, definitions, rename and diagnostics across nine alias
|
||||
shapes, and a genuine duplicate declaration is still refused.
|
||||
- The load probe in `tools/perf/` primes a warm store before timing and
|
||||
stamps scan completion from the scan's own end event.
|
||||
- No performance number moved; the CLI is unchanged.
|
||||
|
||||
## 0.52.0 — 2026-09-09
|
||||
|
||||
### Performance take 5 — the review round
|
||||
|
||||
Generated
+8
-8
@@ -97,7 +97,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lucisv"
|
||||
version = "0.52.0"
|
||||
version = "0.55.0"
|
||||
dependencies = [
|
||||
"lucisv_core",
|
||||
"rayon",
|
||||
@@ -108,11 +108,11 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lucisv_core"
|
||||
version = "0.52.0"
|
||||
version = "0.55.0"
|
||||
|
||||
[[package]]
|
||||
name = "lucisv_server"
|
||||
version = "0.52.0"
|
||||
version = "0.55.0"
|
||||
dependencies = [
|
||||
"lsp-server",
|
||||
"lsp-types",
|
||||
@@ -248,14 +248,14 @@ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
||||
|
||||
[[package]]
|
||||
name = "vlog_formatter"
|
||||
version = "0.52.0"
|
||||
version = "0.55.0"
|
||||
dependencies = [
|
||||
"vlog_parser",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "vlog_linter"
|
||||
version = "0.52.0"
|
||||
version = "0.55.0"
|
||||
dependencies = [
|
||||
"lucisv_core",
|
||||
"vlog_formatter",
|
||||
@@ -265,11 +265,11 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "vlog_parser"
|
||||
version = "0.52.0"
|
||||
version = "0.55.0"
|
||||
|
||||
[[package]]
|
||||
name = "vlog_refactor"
|
||||
version = "0.52.0"
|
||||
version = "0.55.0"
|
||||
dependencies = [
|
||||
"vlog_formatter",
|
||||
"vlog_parser",
|
||||
@@ -278,7 +278,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "vlog_semantic"
|
||||
version = "0.52.0"
|
||||
version = "0.55.0"
|
||||
dependencies = [
|
||||
"vlog_parser",
|
||||
]
|
||||
+1
-1
@@ -12,7 +12,7 @@ members = [
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.52.0"
|
||||
version = "0.55.0"
|
||||
authors = ["Guoliang Chen"]
|
||||
edition = "2021"
|
||||
license = "MIT"
|
||||
|
||||
@@ -4733,6 +4733,19 @@ in 0.49.0. Take 4's findings are in the loop-3 list above.
|
||||
extract/inline/imports/ports/references — the resolves and the extract
|
||||
edit are the candidates, the 805 ms refusal is after the build); the
|
||||
31 ms store decode the one-place tie costs.
|
||||
- **§63.1 QA (2026-09-12, pre-existing, `task_d8afe80f`):** cross-file
|
||||
`references` cannot see a hierarchical-surface-only declaration (a
|
||||
module's net, variable or instance), bind or not — `nav.rs`'s
|
||||
`leaves_this_file` and `indexed_def_in_file` (shared with hover) ask
|
||||
`WorkspaceIndex::member`, the connection surface; the fix is the
|
||||
hierarchical-surface lookup in both call sites plus a fixture sweep
|
||||
across definition/references/hover/documentHighlight.
|
||||
- **§63.2 filed (2026-09-12):** the rest of the first-after-edit flush —
|
||||
the token clone into `parse_tolerant` (3.9 ms; the parser mutates the
|
||||
stream it is given, and `Document::tokens` is read for comments by
|
||||
semantic tokens and the linter), `analyze` (9.4 ms), `resolve_external`
|
||||
(4.7 ms against the 3 975-file index), and ~6 ms dropping the previous
|
||||
revision's products on the request path (drop it after answering).
|
||||
Sections after §46 are planned when reached.
|
||||
|
||||
## 45. Small items, round 4 (planned 2026-09-05) — topo §2.9-29, 30, 17, 22
|
||||
@@ -5855,9 +5868,10 @@ document revision, computed only when a fix needs it
|
||||
— residues named, not hidden: the declaring file's parse (2.2–2.4 ms
|
||||
of the ports offer's 3.27) and the buffer's own share of the imports
|
||||
index (~0.8 ms), the second a `vlog_semantic` handshake request
|
||||
- [ ] lead ruling on a lint-result reuse item (new, from P1b's number:
|
||||
- [x] lead ruling on a lint-result reuse item (new, from P1b's number:
|
||||
24.0 ms, the whole of the pinmux row, for a client that sends no
|
||||
`only`) — a keyed cache in §59's shape, not this lane's to add
|
||||
— **closed by §61.2 (0.52.0): `lint_snapshot.rs`**
|
||||
- [x] QA (P1c): the every-offset parity suites re-attacked, the two
|
||||
counters sabotaged, the numbers re-taken on the same binary
|
||||
— 2026-09-07: ports side clean (three refusal fixtures old vs new
|
||||
@@ -6158,13 +6172,15 @@ semantic build/facts owners. Serialized after 60.1–60.3.
|
||||
true with no scan running), and the include graph and completion
|
||||
tables against a text-built pair on a tree with duplicate
|
||||
spellings and `+incdir+`s
|
||||
- [ ] the walk, filed by P4b3 for the next lane: `discovery` is 158 ms of
|
||||
- [x] the walk, filed by P4b3 for the next lane: `discovery` is 158 ms of
|
||||
scope walk plus one `fs::metadata` per file for the size cap, and
|
||||
it is the floor under every first useful answer. Two things to
|
||||
measure before building anything — the cap taking its size from the
|
||||
walk's own metadata (`lucisv_core::walk::collect_files` is not
|
||||
P4b3's file: a handshake request) and handing the first folder to
|
||||
`scan_step` before the walk has finished the workspace
|
||||
— **closed by §61.3 (0.52.0): two-phase discovery and the walk
|
||||
metadata hand-off (per-file `stat`s 3 979 → 0, cap 6.92 → 0.10 ms)**
|
||||
- [x] QA (P4a only, 2026-09-08: gates green, 4272/4272, no behaviour
|
||||
change verified by hunk review and by running both binaries —
|
||||
44/44 identical result_counts and identical scan file-counts;
|
||||
@@ -6596,4 +6612,324 @@ sentence; the selection set stays the correctness reference (P2d).
|
||||
|
||||
- [x] `docs/perf/README.md` entry; topo for every contract amended; the
|
||||
review's status line; release 0.52.0 with assets verified — entry,
|
||||
topo and status lines done 2026-09-09; release below
|
||||
topo and status lines done 2026-09-09; **0.52.0** released
|
||||
(b12e0cc, v0.52.0): 8 assets, the darwin-arm64 vsix at 0.52.0 with
|
||||
both binaries, `hierarchySections.js`, `extract.js`, no `*_test.js`.
|
||||
|
||||
## 62. The 0.52.0 review (Codex, 2026-09-09) — F1/F2/F3 and the next lanes
|
||||
|
||||
`docs/performance_052_review.md` (findings F1–F3, next actions 3–5) and
|
||||
`docs/052_implementation_plan.md` (the other agent's plan; its Phase 1
|
||||
was implemented in the tree before the lead saw it) are the spec; the
|
||||
tracker's "Follow-up findings" and N1–N3 rows are the ledger; evidence in
|
||||
`docs/perf/review-052-20260909/`. Same protocol as §60/§61.
|
||||
|
||||
### 62.1 F1 — directory aliases in the split startup scan (correctness)
|
||||
|
||||
The neighbourhood walk and the rest walk had separate visited sets, so a
|
||||
directory reachable by two spellings (`a_alias -> z_real`) was indexed
|
||||
twice at startup: two definition targets, a false "declared in more than
|
||||
one file" rename refusal, healed only by a rescan. Fix (the other agent +
|
||||
the lead's finishing lane): one `DirectoryTracker` shared across both
|
||||
walks; a pre-check that falls back to the single canonical walk when an
|
||||
alias sorts before the open folder or an ancestor; the `HEAD_WALK_MAX`
|
||||
fallback discards the head instead of unioning it; an alias found only
|
||||
by the rest walk requests an ordinary rescan so path spellings converge;
|
||||
the open-buffer alias check stats only same-named files.
|
||||
- [x] tracker shared, pre-check, fallback, conflict → rescan; `stats` 0
|
||||
on opentitan again; discovery and the 100-buffer cell unchanged
|
||||
- [x] fixtures: alias before / after / multiple / ancestor / sibling
|
||||
(outside the chain) / cycle / ignore rules / unsaved buffer /
|
||||
genuine duplicate declarations (still refused) — startup, rescan
|
||||
and restart agree on index paths, definitions and prepareRename
|
||||
- [x] QA: the matrix re-attacked, stat counts, numbers re-taken
|
||||
|
||||
### 62.2 F2 + F3 — the load probe (harness)
|
||||
|
||||
- [x] F2: a warm `scanload` cell primes an empty store untimed; per-trial
|
||||
cache hits/misses in the row; a warm trial with 0 hits is an error
|
||||
- [x] F3: scan completion stamped from the scan's own end event, not the
|
||||
request window; responses partitioned by it; arrival stamps kept
|
||||
- [x] QA: a brand-new store, a window longer than the scan
|
||||
|
||||
### 62.3 N1–N3 — deferred to loop 3 unless the owner asks
|
||||
|
||||
N1 the dirty-buffer parse (114 ms first-after-edit), N2 the retained-
|
||||
analysis parse work and the 31 ms facts decode, N3 the whole-index merge
|
||||
per publication. Filed with the review's baselines; not started.
|
||||
|
||||
### 62.4 Closing
|
||||
|
||||
- [x] `docs/perf/README.md` note; topo (the walk tracker); release 0.53.0
|
||||
with assets verified — done 2026-09-09: **0.53.0** (b4a0668,
|
||||
v0.53.0), 8 assets, the darwin-arm64 vsix at 0.53.0 with both
|
||||
binaries, `hierarchySections.js`, `extract.js`, no `*_test.js`.
|
||||
|
||||
## 63. Loop 3, round 1 (planned 2026-09-11) — the `bind` rename gap, then N1
|
||||
|
||||
Two lanes, serial, in the main tree (§36's protocol: one dev (Opus), then
|
||||
one QA (Sonnet), then the lead's review; dev and QA both through
|
||||
`tools/guard.sh`; no `sleep` over 60 s; no `pgrep -f`). Ships as 0.54.0.
|
||||
|
||||
### 63.1 A `bind` file's own occurrence of a renamed name (QA `task_834abda3`)
|
||||
|
||||
Found by §61.5's QA on the real opentitan tree, reproducible at HEAD and
|
||||
unrelated to facts reuse. Renaming `entropy_masking_req` (a net declared in
|
||||
`hw/ip/aes/rtl/aes.sv`) edits `aes.sv` but leaves `hw/ip/aes/dv/aes_bind.sv`'s
|
||||
`.entropy_masking_req(entropy_masking_req)` — the expression half of a
|
||||
connection inside `bind aes aes_reseed_if u_aes_reseed_if (…)`, which the
|
||||
binder resolves in the bind target's scope (`Target::BindScope { target:
|
||||
"aes" }`, `vlog_semantic/src/resolve.rs`) — neither edited nor warned about.
|
||||
Renaming `seed_en` (declared in `aes_prng_clearing.sv`) leaves the same file's
|
||||
two-level tail `u_aes_core.u_aes_prng_clearing.seed_en` neither edited nor
|
||||
warned about, while §49's hierarchical tail from an ordinary instantiating
|
||||
file (`u_entropy_src_main_sm.state_q` in `entropy_src_core.sv`) is edited.
|
||||
The whole-scope engine is the refusal authority, so a silent miss is a
|
||||
wrong answer: after the rename the design no longer elaborates.
|
||||
|
||||
The contract to reach: an occurrence in a `bind` directive's connection is
|
||||
**edited** when the engine resolves it to the renamed declaration — a bare
|
||||
name in the bind target's scope, or a hierarchical path whose root is the
|
||||
bind target (the target module, a `: u_x` instance list, or a hierarchical
|
||||
target path) — through the same rungs an instantiating file's occurrences
|
||||
use; **warned about** (file:line, the sentence shape `rename/warnings.rs`
|
||||
already uses) when the name occurs in a `bind` connection the engine cannot
|
||||
resolve; never silent. Source selection (`rename_sources_traced`'s rungs,
|
||||
`module_select::hierarchical_users`, `files_mentioning`) must bring the
|
||||
`bind` file in — find out which rung drops it before adding one. Refusal
|
||||
parity with `rename_preflight` stays one-directional (the preflight may
|
||||
refuse only what the engine refuses); `check/after.rs`'s rebinding check
|
||||
runs over the edited `bind` file like any other.
|
||||
|
||||
Feature README: `docs/features/rename-bind-occurrences/README.md`. Files:
|
||||
`crates/vlog_refactor/src/{rename/,references.rs,scope.rs,check/}`,
|
||||
`crates/vlog_semantic/src/{resolve.rs,workspace/}` only if a resolver rung is
|
||||
missing (a Handshake entry in the README either way),
|
||||
`crates/lucisv_server/src/{rename.rs,rename_trace.rs,module_select.rs,state/}`
|
||||
for selection, `tools/perf/` only to add a fixture row. Nothing else.
|
||||
|
||||
- [x] the reproduction pinned first: engine-level fixtures in
|
||||
`vlog_refactor` (a `bind` file beside the declaring file) for the
|
||||
bare-name connection, the positional connection, the two-level tail,
|
||||
a `: u_x` instance-list target, a hierarchical target path, a `bind`
|
||||
inside a generate block (`if (…) begin : gen … end`), and one the
|
||||
engine must *not* resolve (a bind whose target module is not in the
|
||||
workspace) — each asserting today's silent miss, then flipped
|
||||
- [x] the fix: occurrences resolved through `Target::BindScope` and tails
|
||||
rooted at the bind target edited; unresolvable ones warned about;
|
||||
the rung that dropped `aes_bind.sv` named in the README
|
||||
- [x] parity: `renamewarn`'s 1 750 sentences and the 36-row `paired`
|
||||
fingerprints re-taken against 0.53.0 — every difference is a `bind`
|
||||
file's new edit or warning and is listed in the README, nothing else
|
||||
moves; the eight rename shapes' timings within noise (the tail rename
|
||||
≤ 330 ms median)
|
||||
- [x] the three QA renames (`WidthPRDSBox`, `entropy_masking_req`,
|
||||
`seed_en`) run against the real opentitan tree through
|
||||
`rename_traced_with` under all three reuse modes: identical answers,
|
||||
and `aes_bind.sv` now edited
|
||||
- [x] QA: fixtures re-attacked (a `bind` whose connection names a
|
||||
*different* declaration of the same name; the new name colliding in
|
||||
the bind target's scope — refused; an escaped-name target; a
|
||||
`defparam`-only bind file), parity re-derived, opentitan sweep
|
||||
|
||||
### 63.2 N1 — the first request after an edit (the 0.52.0 review, item 3)
|
||||
|
||||
The review's cell: `pinmux_reg_top.sv` (40 267 lines), one-character
|
||||
`didChange`, then the all-family `codeAction` menu — **113.6 ms**, against
|
||||
0.23 ms for the unchanged repeat. The lint snapshot cannot help a fresh
|
||||
revision; what remains is the debounced `Document::new` the request wrapper
|
||||
performs before any handler runs (`tokenize`, `parse_tolerant` over a clone
|
||||
of the token stream, `collect_defines`, `analyze`, `resolve_external`,
|
||||
`LineIndex::new`), the diagnostics publish that lints the new revision, and
|
||||
the menu's own stages. `crate::lint_trace` already splits the request into
|
||||
flush / config / build / lint / fence / serialize under `--verbose`; the
|
||||
flush's inner stages are not yet split.
|
||||
|
||||
Target: ≥ 15 % off the first-after-edit cell (stretch < 95 ms) with the
|
||||
AST, the diagnostics and the menu byte-identical; the unchanged-repeat cell
|
||||
and every other `offeredit`/`offerkinds` row within noise; peak RSS not up.
|
||||
Measure before building: split the flush in `lint_trace` (lex / parse /
|
||||
defines / analyze / external / lines / publish-lint), take the numbers on
|
||||
0.53.0, and go after the largest stage. Candidates, in the order the review
|
||||
named them: the token-stream clone into `parse_tolerant` (borrow or hand
|
||||
over, keeping `Document::tokens`), allocation in `tokenize`/`parse_tolerant`
|
||||
for a 40 k-line generated file, `analyze`'s tables, `resolve_external`
|
||||
against a 3 975-file index, a second lint of the same revision anywhere on
|
||||
the path (the snapshot must serve both the publish and the menu — verify it
|
||||
does). A change in `vlog_parser`'s public signatures is a Handshake in the
|
||||
README and a topo row. No stopwatch assertions in tests.
|
||||
|
||||
Feature README: `docs/features/perf-first-after-edit/README.md`. Files:
|
||||
`crates/lucisv_server/src/{lint_trace.rs,state/mod.rs,server/,diagnostics.rs,
|
||||
code_action.rs}`, `crates/vlog_parser/src/{lexer.rs,parser/,lib.rs}`,
|
||||
`crates/vlog_semantic/src/{analyze*,bind/}` only for a measured stage,
|
||||
`tools/perf/` for the flush split rows. Nothing else.
|
||||
|
||||
- [x] the flush split in `lint_trace` and a harness row per stage; the
|
||||
0.53.0 numbers in the README before any change — `Rebuild`'s seven
|
||||
stages (`lex parse defines analyze external lines publish`) plus
|
||||
`documents`, printed as a **third sibling group** `rebuild{…}` on
|
||||
the `timing: codeaction` line, which `phases_r1.actionprofile`
|
||||
picks up as `trace_rebuild_*` with no harness code change
|
||||
(`phases_p2.parse_trace` flattens one level). **The 100 ms flush on
|
||||
0.53.0: lex 29.1, parse 25.6, publish 22.2 (lint 22.0), analyze
|
||||
10.1, external 4.8, lines 0.6, defines 0.5, ~7 dropping the old
|
||||
revision.** Two of the review's candidates were answered by the
|
||||
split: `action` reads `snapshot=hit`/`lint=0.00ms` (no second lint
|
||||
of the revision) and `lint::context` already lends `doc.semantics`
|
||||
(no second analysis)
|
||||
- [x] the fix, one stage at a time, each with its before/after cell;
|
||||
parser snapshot and idempotency suites green; corpus and opentitan
|
||||
byte-identity gates — three changes, all in `vlog_parser`: the
|
||||
lexer's two phases **fused** (the intermediate `Vec<RawTok>` gone;
|
||||
`tokenize` 27.8 → 24.7 ms), **`Parser::skip`** for the 178
|
||||
`bump()` sites that threw the token away (`parse_tolerant` 17.5 →
|
||||
16.0 ms), and a **first-byte test in front of the 44-entry
|
||||
operator table** (24.7 → **11.6 ms**, the largest single win).
|
||||
Parity: token stream + parse diagnostics + whole AST + symbol
|
||||
table digested per file over **4 807 files** (corpus + opentitan),
|
||||
0 differ; `format --stdout` byte-identical over corpus (860) and
|
||||
over opentitan (one tree digest, identical stderr); diagnostics
|
||||
and the all-family + seven-family menus identical on the pinmux,
|
||||
aes and tb buffers before and after an edit, including a revision
|
||||
edited to *have* lint findings. 4 403 → **4 406 tests**
|
||||
- [x] `offeredit`, `offerkinds`, `flush`, `diagnostics` phases paired
|
||||
against 0.53.0 with the order alternated; RSS cell — the cell
|
||||
**110.95 / 107.54 → 88.31 / 88.36 ms, −19.2 %**: the ≥ 15 % gate
|
||||
met and the < 95 ms stretch met. The unchanged-repeat cell
|
||||
(0.27/0.32 → 0.22/0.19) and every `offeredit`/`offerkinds`/
|
||||
`flush`/`diagnostics` row are inside their own version's a/b
|
||||
spread. RSS **not up**: warm flat (≈428 MiB both), cold scan
|
||||
~25 MiB *lower* (506 → 480 MiB) — the `Vec<RawTok>` that is no
|
||||
longer built; index store byte-identical at 45 468 KiB. Feature
|
||||
README `docs/features/perf-first-after-edit/`; evidence and
|
||||
runners in `~/.cache/lucisv-perf/63-2/`
|
||||
- [x] QA: the trace's arithmetic re-derived, the parity attacked (a buffer
|
||||
that fails to lex; a `` `define`` edit that changes the macro table;
|
||||
an edit that moves a fence), the numbers re-taken
|
||||
|
||||
### 63.3 Closing
|
||||
|
||||
- [x] `docs/perf/README.md` entry; topo rows for every contract amended;
|
||||
release 0.54.0 with assets verified — done 2026-09-12: **0.54.0**
|
||||
(da32237, v0.54.0), 8 assets, the darwin-arm64 vsix at 0.54.0 with
|
||||
both binaries, `hierarchySections.js`, `extract.js`, no `*_test.js`.
|
||||
|
||||
## 64. Loop 3, round 2 (planned 2026-09-12) — cross-file references for hierarchical-surface-only declarations
|
||||
|
||||
One lane. The dev half runs in the owner's spawned session
|
||||
(`task_d8afe80f`, its own worktree); QA (Sonnet) and the lead's review run
|
||||
on that result in the main tree after it lands. Same rules as §63: guard
|
||||
every suite and sweep, no `sleep` over 60 s, no `pgrep -f`, opentitan
|
||||
read-only. Ships as 0.55.0.
|
||||
|
||||
### 64.1 `references` stops at the connection surface (QA §63.1, `task_d8afe80f`)
|
||||
|
||||
`crates/lucisv_server/src/nav.rs`: `leaves_this_file` (~148) and
|
||||
`indexed_def_in_file` (~235; `indexed_def_for_symbol` is shared with
|
||||
`hover.rs`) decide whether a declaration can be referenced from another file
|
||||
by `WorkspaceIndex::member(unit, name)` — the **connection** surface, ports
|
||||
and parameters. A module's net, variable or instance lives on the
|
||||
**hierarchical** surface only (`workspace/hierarchy.rs`, since 2026-09-05), so
|
||||
both functions treat such a declaration as unable to leave its file. Two
|
||||
symptoms, pinned by
|
||||
`nav.rs::a_binds_connection_expression_is_reachable_by_definition_not_yet_by_references`:
|
||||
`references` from the *declaration* of a hierarchically reached net falls to
|
||||
the single-file fallback and never sees a cross-file use (a `bind`
|
||||
connection or an ordinary `u_x.sig` tail alike); `references` from a *use*
|
||||
that does resolve cross-file cannot re-identify the open buffer's own
|
||||
in-file use of the same declaration, because `indexed_def_in_file` maps the
|
||||
live symbol back the same wrong way. Not `bind`-specific; reproduced with a
|
||||
plain `assign w = u_leaf.sig;`.
|
||||
|
||||
The contract to reach: a declaration's cross-file reachability is judged on
|
||||
the surface a use can actually reach it by — `member_in(unit, name,
|
||||
Surface::Hierarchical)` in both call sites (the connection answer is a prefix
|
||||
of the hierarchical one, so package/class/struct members and ports keep
|
||||
their answers byte-for-byte). `references_are_ambiguous` and the
|
||||
single-record rule (`defs.len() != 1`) keep their meaning over the wider
|
||||
answer — a name declared both as a port and as an internal net of the same
|
||||
unit is ambiguous, not silently the port. Hover and definition, which share
|
||||
`indexed_def_for_symbol`, must not change what they say for anything they
|
||||
already answered. No new index field, so no `FACTS_FORMAT` bump; if one
|
||||
turns out to be needed, say why in the README.
|
||||
|
||||
Feature README: `docs/features/references-hierarchical-surface/README.md`.
|
||||
Files: `crates/lucisv_server/src/{nav.rs,hover.rs}` and the server's wire
|
||||
tests (`server/tests/`), `crates/vlog_semantic/src/workspace/hierarchy.rs`
|
||||
only if `member_in` needs a case it lacks (a Handshake entry either way).
|
||||
Nothing else.
|
||||
|
||||
- [x] the fixture sweep first, asserting today's answers, then flipped:
|
||||
`definition`, `references` (from the declaration and from each use,
|
||||
`includeDeclaration` both ways), `hover`, `documentHighlight` over
|
||||
(a) a `bind` connection's bare name, (b) a `u_x.sig` tail from an
|
||||
instantiating file, (c) a two-level tail, (d) a port of the same
|
||||
unit (unchanged answers), (e) a package member (unchanged), (f) a
|
||||
name that is both a port and an internal net of one unit (ambiguous
|
||||
— the single-file fallback, as today), (g) an unsaved buffer
|
||||
(`untitled:`), (h) the open buffer's own in-file use seen from a
|
||||
cross-file use
|
||||
- [x] the fix in both call sites; the §63.1 QA test renamed to say what it
|
||||
now asserts
|
||||
- [x] on the real opentitan tree (read-only): `references` on
|
||||
`entropy_masking_req` from `aes.sv` lists `aes_bind.sv`; on
|
||||
`state_q` from `entropy_src_main_sm.sv` lists `entropy_src_core.sv`;
|
||||
the `nav`/`navqueue` harness rows within noise (the hierarchical
|
||||
lookup is one more map probe)
|
||||
- [x] QA: fixtures re-attacked (a generate-scoped net; a net shadowed by a
|
||||
port of the same name in a *different* unit; a class member — must
|
||||
stay on the connection answer), opentitan census, gates. Verdict:
|
||||
rework needed — three findings in the closed-declaring-file repair's
|
||||
handling of a stale-on-disk file (one new to this lane, two
|
||||
pre-existing and general); see the feature README's QA log.
|
||||
- [x] rework (dev, per the lead's ruling on QA findings 1–3): one fresh read
|
||||
per closed file per request, threaded to the rendering step
|
||||
(`file_view`'s cache is no longer on this path); a re-analysed closed
|
||||
file's declaration reported at its live span; every index-time
|
||||
closed-file span guarded with `hover::spells_exactly` (now `pub(crate)`)
|
||||
and dropped rather than misrendered. `qa_finding_1/2/3` flipped to the
|
||||
fixed answers and renamed, plus one attack on the guard itself. QA's
|
||||
+25 % on a local-net request in a 40 000-line file accepted as-is, for
|
||||
§64.2 to note in `docs/perf/README.md`.
|
||||
- [x] QA re-check (same worktree): findings 1–3 re-derived by hand and
|
||||
confirmed fixed (a use-only shift, a deleted declaring file, a UTF-8
|
||||
boundary, two independent closed files, an escaped port and an
|
||||
escaped hierarchical net all attacked and held). **Finding 4, new**:
|
||||
the `include_declaration` fallback's index-time span is rendered with
|
||||
**no guard** when the file is *open* (only the closed path calls
|
||||
`spells_exactly`) — reproduced with a renamed live buffer, a stale
|
||||
3-byte span lands on the first three characters of the live token
|
||||
`sig2`. Verdict: rework needed again; see the feature README's QA log
|
||||
for the fix suggestion. Gates green (4453 passed), opentitan
|
||||
re-confirmed byte-identical, size 423 lines.
|
||||
- [x] rework 2 (dev, finding 4): the `include_declaration` chain lifted into
|
||||
`nav::declaration_site`; an open buffer's index-time fallback span is
|
||||
emitted only if `hover::spells_exactly` holds against the live text,
|
||||
else the declaration is omitted (the closed path keeps its single guard
|
||||
in `closed_locations`). QA's finding-4 test flipped and renamed, plus a
|
||||
control (an unsaved edit above the declaration still reports the live
|
||||
line). Gates green through `tools/guard.sh`.
|
||||
- [x] QA final (escalated, same worktree): the finding-4 test re-derived
|
||||
by hand (a real unsaved rename; honest omission, tails unchanged) and
|
||||
the control shown to come from the live path; the declaration-site
|
||||
ladder attacked rung by rung — five `qa_final_*` tests (a failed live
|
||||
lookup with the name still in place → emitted; a suffix of a longer
|
||||
live name → dropped; off a UTF-8 boundary → dropped, no panic;
|
||||
`includeDeclaration: false` on the closed rungs; one observation, a
|
||||
different exact `sig` at the old bytes is reported, for the lead).
|
||||
`nav.rs` 433 production lines, no unwrap/expect/panic,
|
||||
`indexed_references` 71 lines (reported). Gates green (4459 passed),
|
||||
opentitan rows re-confirmed read-only, checkout status identical.
|
||||
Verdict: **pass**.
|
||||
|
||||
### 64.2 Closing
|
||||
|
||||
- [x] `docs/perf/README.md` note if any harness number moved; topo row
|
||||
(`lucisv_server ──▶ vlog_semantic`: nav asks the hierarchical
|
||||
surface) — done 2026-09-12 (the perf entry records the +25 % on a
|
||||
local-net `references` and the closed-file parse; the
|
||||
`references-nav ──▶ workspace-index` row amended)
|
||||
- [ ] release 0.55.0 with assets verified — owner's call; not run from the
|
||||
`task_d8afe80f` session (a release chain never runs while a lane is
|
||||
in flight, and the lane merges first)
|
||||
+125
-25
@@ -2,7 +2,7 @@
|
||||
//! `.gitignore` subset documented in
|
||||
//! `docs/features/parallel-files/README.md`.
|
||||
|
||||
use std::collections::HashSet;
|
||||
use std::collections::HashMap;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
/// File extensions lucisv formats when walking a directory.
|
||||
@@ -77,18 +77,24 @@ pub fn collect_files_with(
|
||||
gitignore: bool,
|
||||
found: &mut dyn FnMut(PathBuf, Option<u64>),
|
||||
warn: &mut dyn FnMut(Warning),
|
||||
) -> Result<(), String> {
|
||||
let mut tracker = DirectoryTracker::new();
|
||||
collect_files_tracked(input, exclude, gitignore, &mut tracker, found, warn)
|
||||
}
|
||||
|
||||
/// [`collect_files_with`] using an existing [`DirectoryTracker`].
|
||||
pub fn collect_files_tracked(
|
||||
input: &str,
|
||||
exclude: &[String],
|
||||
gitignore: bool,
|
||||
tracker: &mut DirectoryTracker,
|
||||
found: &mut dyn FnMut(PathBuf, Option<u64>),
|
||||
warn: &mut dyn FnMut(Warning),
|
||||
) -> Result<(), String> {
|
||||
let path = Path::new(input);
|
||||
if path.is_dir() {
|
||||
let mut walk = Walk {
|
||||
exclude,
|
||||
gitignore,
|
||||
ignores: Vec::new(),
|
||||
rel: Vec::new(),
|
||||
visited: HashSet::new(),
|
||||
found,
|
||||
warn,
|
||||
};
|
||||
let mut walk =
|
||||
Walk { exclude, gitignore, ignores: Vec::new(), rel: Vec::new(), tracker, found, warn };
|
||||
walk.dir(path);
|
||||
} else if path.is_file() {
|
||||
found(path.to_path_buf(), None);
|
||||
@@ -125,20 +131,27 @@ pub fn collect_files_below(
|
||||
gitignore: bool,
|
||||
found: &mut dyn FnMut(PathBuf, Option<u64>),
|
||||
warn: &mut dyn FnMut(Warning),
|
||||
) -> Result<(), String> {
|
||||
let mut tracker = DirectoryTracker::new();
|
||||
collect_files_below_tracked(root, input, exclude, gitignore, &mut tracker, found, warn)
|
||||
}
|
||||
|
||||
/// [`collect_files_below`] using an existing [`DirectoryTracker`].
|
||||
pub fn collect_files_below_tracked(
|
||||
root: &Path,
|
||||
input: &Path,
|
||||
exclude: &[String],
|
||||
gitignore: bool,
|
||||
tracker: &mut DirectoryTracker,
|
||||
found: &mut dyn FnMut(PathBuf, Option<u64>),
|
||||
warn: &mut dyn FnMut(Warning),
|
||||
) -> Result<(), String> {
|
||||
let Ok(below) = input.strip_prefix(root) else { return Ok(()) };
|
||||
if !input.is_dir() {
|
||||
return Err(format!("{}: no such file or directory", input.display()));
|
||||
}
|
||||
let mut walk = Walk {
|
||||
exclude,
|
||||
gitignore,
|
||||
ignores: Vec::new(),
|
||||
rel: Vec::new(),
|
||||
visited: HashSet::new(),
|
||||
found,
|
||||
warn,
|
||||
};
|
||||
let mut walk =
|
||||
Walk { exclude, gitignore, ignores: Vec::new(), rel: Vec::new(), tracker, found, warn };
|
||||
// The root's own `.gitignore` sits at depth 0, exactly where a walk of the
|
||||
// root would have put it.
|
||||
walk.push_ignore(root);
|
||||
@@ -170,24 +183,78 @@ pub fn collect_files_below(
|
||||
/// elsewhere it is the canonical path, which resolves symlinks the same way
|
||||
/// at the cost of a real path lookup.
|
||||
#[cfg(unix)]
|
||||
type DirId = (u64, u64);
|
||||
pub type DirId = (u64, u64);
|
||||
#[cfg(not(unix))]
|
||||
type DirId = PathBuf;
|
||||
pub type DirId = PathBuf;
|
||||
|
||||
/// The identity of the directory at `path`, or `None` when it cannot be
|
||||
/// read — a dangling symlink, or a directory that vanished mid-walk.
|
||||
#[cfg(unix)]
|
||||
fn dir_id(path: &Path) -> Option<DirId> {
|
||||
pub fn dir_id(path: &Path) -> Option<DirId> {
|
||||
use std::os::unix::fs::MetadataExt;
|
||||
let meta = std::fs::metadata(path).ok()?;
|
||||
Some((meta.dev(), meta.ino()))
|
||||
}
|
||||
|
||||
#[cfg(not(unix))]
|
||||
fn dir_id(path: &Path) -> Option<DirId> {
|
||||
pub fn dir_id(path: &Path) -> Option<DirId> {
|
||||
std::fs::canonicalize(path).ok()
|
||||
}
|
||||
|
||||
/// What happened when attempting to enter a directory with [`DirectoryTracker`].
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub enum DirStatus {
|
||||
/// Entered for the first time.
|
||||
EnteredFirstTime,
|
||||
/// Already visited under the same or an earlier path.
|
||||
AlreadyVisited,
|
||||
/// Previously entered under `recorded`, but `dir < recorded` indicating
|
||||
/// out-of-order traversal relative to a canonical root walk.
|
||||
PrecedenceConflict { recorded: PathBuf },
|
||||
}
|
||||
|
||||
/// Tracks visited directories across one or more walks to ensure cycle termination
|
||||
/// and detect order divergence.
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct DirectoryTracker {
|
||||
visited: HashMap<DirId, PathBuf>,
|
||||
has_conflict: bool,
|
||||
}
|
||||
|
||||
impl DirectoryTracker {
|
||||
/// Creates an empty directory tracker.
|
||||
pub fn new() -> Self {
|
||||
Self::default()
|
||||
}
|
||||
|
||||
/// Records `dir` as entered and returns its [`DirStatus`].
|
||||
pub fn enter(&mut self, dir: &Path) -> DirStatus {
|
||||
let Some(id) = dir_id(dir) else {
|
||||
return DirStatus::AlreadyVisited;
|
||||
};
|
||||
match self.visited.entry(id) {
|
||||
std::collections::hash_map::Entry::Vacant(v) => {
|
||||
v.insert(dir.to_path_buf());
|
||||
DirStatus::EnteredFirstTime
|
||||
}
|
||||
std::collections::hash_map::Entry::Occupied(o) => {
|
||||
let recorded = o.get();
|
||||
if dir < recorded.as_path() {
|
||||
self.has_conflict = true;
|
||||
DirStatus::PrecedenceConflict { recorded: recorded.clone() }
|
||||
} else {
|
||||
DirStatus::AlreadyVisited
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether any precedence conflict was observed across walks.
|
||||
pub fn has_conflict(&self) -> bool {
|
||||
self.has_conflict
|
||||
}
|
||||
}
|
||||
|
||||
/// True when `path` names one of the source files lucisv formats.
|
||||
fn is_source(path: &Path) -> bool {
|
||||
path.extension().and_then(|e| e.to_str()).is_some_and(|ext| EXTENSIONS.contains(&ext))
|
||||
@@ -203,7 +270,7 @@ struct Walk<'a> {
|
||||
gitignore: bool,
|
||||
ignores: Vec<Ignore>,
|
||||
rel: Vec<String>,
|
||||
visited: HashSet<DirId>,
|
||||
tracker: &'a mut DirectoryTracker,
|
||||
/// Where a source file goes when the walk finds one, with the length the
|
||||
/// walk's own `metadata` call already read.
|
||||
found: &'a mut dyn FnMut(PathBuf, Option<u64>),
|
||||
@@ -291,7 +358,7 @@ impl Walk<'_> {
|
||||
///
|
||||
/// A directory whose identity cannot be read is not entered.
|
||||
fn enter(&mut self, dir: &Path) -> bool {
|
||||
dir_id(dir).is_some_and(|id| self.visited.insert(id))
|
||||
matches!(self.tracker.enter(dir), DirStatus::EnteredFirstTime)
|
||||
}
|
||||
|
||||
/// Reads `dir`'s `.gitignore`, if there is one, onto the rule stack.
|
||||
@@ -963,4 +1030,37 @@ mod tests {
|
||||
assert!(ignored("x?.sv", "x?.sv"));
|
||||
assert!(!ignored("x?.sv", "xa.sv"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn tracker_detects_precedence_conflict_when_alias_sorts_before() {
|
||||
let tree = TempTree::new("trackconflict");
|
||||
tree.source("z_real/child.sv");
|
||||
tree.link("a_alias", "z_real");
|
||||
|
||||
let mut tracker = DirectoryTracker::new();
|
||||
assert_eq!(tracker.enter(&tree.path.join("z_real")), DirStatus::EnteredFirstTime);
|
||||
assert!(!tracker.has_conflict());
|
||||
|
||||
// Entering a_alias afterwards detects that a_alias sorts before z_real
|
||||
let status = tracker.enter(&tree.path.join("a_alias"));
|
||||
assert!(matches!(status, DirStatus::PrecedenceConflict { .. }));
|
||||
assert!(tracker.has_conflict());
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn tracker_allows_alias_sorting_after_without_conflict() {
|
||||
let tree = TempTree::new("trackorder");
|
||||
tree.source("a_real/child.sv");
|
||||
tree.link("z_alias", "a_real");
|
||||
|
||||
let mut tracker = DirectoryTracker::new();
|
||||
assert_eq!(tracker.enter(&tree.path.join("a_real")), DirStatus::EnteredFirstTime);
|
||||
assert!(!tracker.has_conflict());
|
||||
|
||||
// Entering z_alias afterwards: already visited, no precedence conflict
|
||||
assert_eq!(tracker.enter(&tree.path.join("z_alias")), DirStatus::AlreadyVisited);
|
||||
assert!(!tracker.has_conflict());
|
||||
}
|
||||
}
|
||||
@@ -455,7 +455,7 @@ fn span_text(text: &str, span: TextRange) -> Option<&str> {
|
||||
/// to not continue an identifier turns that prefix/suffix match back into a
|
||||
/// miss, without needing anything more than the same "is this still a name
|
||||
/// character" question a lexer already answers for `$`, `_` and alnum.
|
||||
fn spells_exactly(text: &str, span: TextRange, name: &str) -> bool {
|
||||
pub(crate) fn spells_exactly(text: &str, span: TextRange, name: &str) -> bool {
|
||||
if span_text(text, span) != Some(name) {
|
||||
return false;
|
||||
}
|
||||
@@ -1313,6 +1313,45 @@ endmodule
|
||||
let _ = fs::remove_dir_all(&dir);
|
||||
}
|
||||
|
||||
/// TODO §64.1. The same live-span read for a declaration only a
|
||||
/// **hierarchical** path can reach — a module's internal net, named from
|
||||
/// another file as `u_leaf.sig`.
|
||||
///
|
||||
/// `declaration_snippet` reaches it through `live_symbol` →
|
||||
/// `nav::indexed_def_for_symbol`, which asked `WorkspaceIndex::member`
|
||||
/// (the *connection* surface) until §64.1 and so mapped no live symbol
|
||||
/// back to this `Def` at all: the card came out with its heading and no
|
||||
/// fence, on a file that was open and perfectly readable. It now shows the
|
||||
/// live line, which is the same guarantee the port above gets — and the
|
||||
/// guard is untouched, so a buffer whose live text no longer declares the
|
||||
/// name still prints nothing (asserted below).
|
||||
#[test]
|
||||
fn a_hierarchical_only_declaration_is_read_at_its_live_span_too() {
|
||||
let top =
|
||||
"module top;\n leaf u_leaf ();\n wire w;\n assign w = u_leaf.sig;\nendmodule\n";
|
||||
let saved = "module leaf;\n logic [7:0] sig;\nendmodule\n";
|
||||
let (dir, mut ws, uri) = included("livehier", &[("leaf.sv", saved), ("top.sv", top)]);
|
||||
let leaf_uri = path_to_uri(&dir.join("leaf.sv")).expect("uri");
|
||||
let edited =
|
||||
"// two lines\n// pushed it down\nmodule leaf;\n logic [15:0] sig;\nendmodule\n";
|
||||
ws.set_document(leaf_uri.clone(), edited.to_string());
|
||||
|
||||
let body = text_of(&hover(&ws, &uri, at(top, "u_leaf.sig") + 7).expect("hover"));
|
||||
assert!(
|
||||
body.contains("```systemverilog\n logic [15:0] sig;\n```"),
|
||||
"the live line, width and all: got {body}"
|
||||
);
|
||||
assert!(!body.contains("[7:0]"), "not the saved one: got {body}");
|
||||
|
||||
// The guard half, on the same shape: the net renamed away in the
|
||||
// buffer leaves the heading and no fence.
|
||||
ws.set_document(leaf_uri, "module leaf;\n logic [15:0] renamed;\nendmodule\n".to_string());
|
||||
let guarded = text_of(&hover(&ws, &uri, at(top, "u_leaf.sig") + 7).expect("hover"));
|
||||
assert!(guarded.contains("— declared in"), "today's card, intact: got {guarded}");
|
||||
assert!(!guarded.contains("```"), "and no snippet at all: got {guarded}");
|
||||
let _ = fs::remove_dir_all(&dir);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_stale_indexed_span_drops_the_snippet_rather_than_showing_the_wrong_line() {
|
||||
// The file changed on disk under a live index — a rescan the server has
|
||||
|
||||
@@ -72,6 +72,86 @@ impl Stage {
|
||||
[Stage::Config, Stage::Build, Stage::Lint, Stage::Fence, Stage::Serialize];
|
||||
}
|
||||
|
||||
/// One stage of the debounced `Document` rebuild the flush performs, plus the
|
||||
/// diagnostics publish that follows it.
|
||||
///
|
||||
/// TODO §63.2: `flush{wall=…}` said the rebuild cost 100 ms and nothing about
|
||||
/// *which* of the six derivations that was, so the first thing this round does
|
||||
/// is name them. The six are [`crate::state::Document::new`]'s own steps in
|
||||
/// the order it runs them; `Publish` is what `flush_dirty` does with the
|
||||
/// rebuilt buffer, and the flush group's `config`/`build`/`lint`/`fence`
|
||||
/// stages are inside it.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum Rebuild {
|
||||
/// `tokenize` over the buffer's text.
|
||||
Lex,
|
||||
/// `parse_tolerant` over those tokens (or `parse_source_tolerant` when the
|
||||
/// buffer does not lex).
|
||||
Parse,
|
||||
/// `collect_defines` over the tokens.
|
||||
Defines,
|
||||
/// `analyze` over the tree.
|
||||
Analyze,
|
||||
/// `resolve_external` against the workspace index.
|
||||
External,
|
||||
/// `LineIndex::new` over the text.
|
||||
Lines,
|
||||
/// The diagnostics publish for the rebuilt buffer.
|
||||
Publish,
|
||||
}
|
||||
|
||||
impl Rebuild {
|
||||
/// The name this stage is counted under in the `timing:` line.
|
||||
fn label(self) -> &'static str {
|
||||
match self {
|
||||
Rebuild::Lex => "lex",
|
||||
Rebuild::Parse => "parse",
|
||||
Rebuild::Defines => "defines",
|
||||
Rebuild::Analyze => "analyze",
|
||||
Rebuild::External => "external",
|
||||
Rebuild::Lines => "lines",
|
||||
Rebuild::Publish => "publish",
|
||||
}
|
||||
}
|
||||
|
||||
/// Every stage, in the order the flush passes through them.
|
||||
const ALL: [Rebuild; 7] = [
|
||||
Rebuild::Lex,
|
||||
Rebuild::Parse,
|
||||
Rebuild::Defines,
|
||||
Rebuild::Analyze,
|
||||
Rebuild::External,
|
||||
Rebuild::Lines,
|
||||
Rebuild::Publish,
|
||||
];
|
||||
}
|
||||
|
||||
/// The flush's inner stages: what rebuilding the dirty buffers cost, split.
|
||||
#[derive(Debug, Clone, Default, PartialEq)]
|
||||
pub struct Rebuilt {
|
||||
ms: [f64; Rebuild::ALL.len()],
|
||||
/// How many `Document`s were built from scratch.
|
||||
documents: usize,
|
||||
}
|
||||
|
||||
impl Rebuilt {
|
||||
/// The `const` form `thread_local!`'s initializer needs.
|
||||
const EMPTY: Rebuilt = Rebuilt { ms: [0.0; Rebuild::ALL.len()], documents: 0 };
|
||||
|
||||
fn add(&mut self, stage: Rebuild, took: Duration) {
|
||||
self.ms[stage as usize] += took.as_secs_f64() * 1_000.0;
|
||||
}
|
||||
|
||||
/// This group's fields, in the `key=value` shape `tools/perf` parses.
|
||||
fn fields(&self) -> String {
|
||||
let stages: Vec<String> = Rebuild::ALL
|
||||
.iter()
|
||||
.map(|stage| format!("{}={:.2}ms", stage.label(), self.ms[*stage as usize]))
|
||||
.collect();
|
||||
format!("{} documents={}", stages.join(" "), self.documents)
|
||||
}
|
||||
}
|
||||
|
||||
/// What the fence filter did, when a pass reached it at all.
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
|
||||
pub enum Fences {
|
||||
@@ -200,6 +280,8 @@ pub struct Trace {
|
||||
pub flush_buffers: usize,
|
||||
/// Whole-file parses the flush performed (`vlog_parser::stats`).
|
||||
pub flush_parses: u64,
|
||||
/// What the flush's `Document` rebuild and publish cost, stage by stage.
|
||||
pub rebuild: Rebuilt,
|
||||
/// The handler's own stages.
|
||||
pub action: Group,
|
||||
}
|
||||
@@ -208,17 +290,25 @@ impl Trace {
|
||||
/// Whether this request touched the lint path at all. A trace that did
|
||||
/// not is not worth a line.
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.flush == Group::default() && self.action == Group::default() && self.flush_buffers == 0
|
||||
self.flush == Group::default()
|
||||
&& self.action == Group::default()
|
||||
&& self.flush_buffers == 0
|
||||
&& self.rebuild == Rebuilt::default()
|
||||
}
|
||||
|
||||
/// The whole trace as one `timing:`-style fragment.
|
||||
///
|
||||
/// The three groups are siblings, never nested: `tools/perf`'s group
|
||||
/// regex flattens `name{…}` one level and would not survive a brace
|
||||
/// inside a brace.
|
||||
pub fn line(&self) -> String {
|
||||
format!(
|
||||
"flush{{wall={:.2}ms buffers={} parses={} {}}} action{{{}}}",
|
||||
"flush{{wall={:.2}ms buffers={} parses={} {}}} rebuild{{{}}} action{{{}}}",
|
||||
self.flush_ms,
|
||||
self.flush_buffers,
|
||||
self.flush_parses,
|
||||
self.flush.fields(),
|
||||
self.rebuild.fields(),
|
||||
self.action.fields(),
|
||||
)
|
||||
}
|
||||
@@ -232,6 +322,7 @@ thread_local! {
|
||||
flush_ms: 0.0,
|
||||
flush_buffers: 0,
|
||||
flush_parses: 0,
|
||||
rebuild: Rebuilt::EMPTY,
|
||||
action: Group::EMPTY,
|
||||
}) };
|
||||
/// Which group the stages recorded right now belong to.
|
||||
@@ -292,6 +383,30 @@ pub fn stage<T>(stage: Stage, work: impl FnOnce() -> T) -> T {
|
||||
out
|
||||
}
|
||||
|
||||
/// Run `work`, counting what it took against one of the flush's inner stages.
|
||||
///
|
||||
/// Off costs the same one thread-local read [`stage`] costs. The flush group
|
||||
/// is not consulted: a rebuild belongs to the rebuild it is part of whichever
|
||||
/// half of the request it happens in, and outside a flush there is none.
|
||||
pub fn rebuild<T>(stage: Rebuild, work: impl FnOnce() -> T) -> T {
|
||||
if !ARMED.get() {
|
||||
return work();
|
||||
}
|
||||
let started = Instant::now();
|
||||
let out = work();
|
||||
let took = started.elapsed();
|
||||
TRACE.with_borrow_mut(|trace| trace.rebuild.add(stage, took));
|
||||
out
|
||||
}
|
||||
|
||||
/// Record that one `Document` was built from scratch.
|
||||
pub fn saw_document() {
|
||||
if !ARMED.get() {
|
||||
return;
|
||||
}
|
||||
TRACE.with_borrow_mut(|trace| trace.rebuild.documents += 1);
|
||||
}
|
||||
|
||||
/// Record what a lint pass ran and found.
|
||||
pub fn saw_lint(rules: usize, violations: usize, reuse: Reuse) {
|
||||
group(|held| {
|
||||
@@ -397,4 +512,96 @@ mod tests {
|
||||
assert!(line.contains("snapshot=none"), "{line}");
|
||||
assert!(!line.contains(" "), "no empty field: {line}");
|
||||
}
|
||||
|
||||
/// The flush's inner stages are their own sibling group, named whether or
|
||||
/// not they ran, and never nested inside `flush{…}` — `tools/perf`'s
|
||||
/// group regex flattens one level only (TODO §63.2).
|
||||
#[test]
|
||||
fn the_rebuild_group_names_every_stage_beside_the_other_two() {
|
||||
arm();
|
||||
rebuild(Rebuild::Lex, || {});
|
||||
saw_document();
|
||||
close_flush(Duration::from_millis(1), 1, 1);
|
||||
let line = disarm().expect("armed").line();
|
||||
let rebuilt = line.split("rebuild{").nth(1).expect("a rebuild group").split('}').next();
|
||||
let rebuilt = rebuilt.expect("a closed rebuild group");
|
||||
for stage in Rebuild::ALL {
|
||||
assert!(rebuilt.contains(&format!("{}=", stage.label())), "{line}");
|
||||
}
|
||||
assert!(rebuilt.contains("documents=1"), "{line}");
|
||||
assert!(!rebuilt.contains('{'), "no nested group: {line}");
|
||||
}
|
||||
|
||||
/// TODO §63.2 QA: the sibling-group contract, attacked directly against
|
||||
/// the parser it is a contract *with*.
|
||||
///
|
||||
/// `tools/perf/phases_p2.py`'s `GROUP` regex is `([a-z_]+)\{([^{}]*)\}` —
|
||||
/// a group's body may not contain another `{`. Sabotaging `line()` to
|
||||
/// nest `rebuild{…}` inside `flush{…}` (tried by hand while attacking
|
||||
/// this pin) does **not** fail the test above: splitting on `"rebuild{"`
|
||||
/// still finds a clean `rebuild` body, because the extra brace the
|
||||
/// nesting adds sits *outside* the slice that test inspects. Run through
|
||||
/// the actual regex, though, nesting is fatal: `[^{}]*` cannot cross the
|
||||
/// inner `{`, so the whole `flush{...}` match fails and `flush_wall`,
|
||||
/// `flush_buffers`, `flush_parses` and every `flush.fields()` entry
|
||||
/// silently vanish from every `tools/perf` row — confirmed with
|
||||
/// `GROUP.findall` in a scratch interpreter against the sabotaged line,
|
||||
/// which matched only `rebuild` and `action`, never `flush`. This test
|
||||
/// reads the line the way the regex does (each group's body must reach
|
||||
/// its own `}` before another `{` opens) so a future nesting regression
|
||||
/// fails here instead of only downstream in Python.
|
||||
#[test]
|
||||
fn the_three_top_level_groups_are_flat_never_nested() {
|
||||
arm();
|
||||
rebuild(Rebuild::Lex, || {});
|
||||
saw_document();
|
||||
close_flush(Duration::from_millis(1), 1, 1);
|
||||
let line = disarm().expect("armed").line();
|
||||
for name in ["flush", "rebuild", "action"] {
|
||||
let open =
|
||||
line.find(&format!("{name}{{")).unwrap_or_else(|| panic!("no {name}{{ in {line}"));
|
||||
let body = &line[open + name.len() + 1..];
|
||||
let close =
|
||||
body.find('}').unwrap_or_else(|| panic!("no closing brace for {name}: {line}"));
|
||||
let next_open = body.find('{');
|
||||
assert!(
|
||||
next_open.is_none_or(|o| o > close),
|
||||
"{name}{{...}} is not flat — a nested group vanishes from every \
|
||||
tools/perf row parsed by phases_p2.GROUP instead of failing loudly: {line}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// A rebuild is recorded in either half of the request, and an unarmed
|
||||
/// one records nothing at all.
|
||||
#[test]
|
||||
fn a_rebuild_is_counted_whichever_half_of_the_request_runs_it() {
|
||||
assert_eq!(rebuild(Rebuild::Parse, || 4), 4);
|
||||
assert_eq!(disarm(), None);
|
||||
arm();
|
||||
rebuild(Rebuild::Parse, || {});
|
||||
close_flush(Duration::ZERO, 1, 1);
|
||||
rebuild(Rebuild::Parse, || {});
|
||||
saw_document();
|
||||
saw_document();
|
||||
let trace = disarm().expect("armed");
|
||||
assert_eq!(trace.rebuild.documents, 2);
|
||||
assert_eq!(trace.flush.passes, 0, "a rebuild is not a lint pass");
|
||||
assert_eq!(trace.action.passes, 0);
|
||||
}
|
||||
|
||||
/// A request that only rebuilt a buffer still has something to say: the
|
||||
/// trace must not be discarded as empty before the line is logged.
|
||||
///
|
||||
/// The rebuilt *count*, not a stage's milliseconds, is what says a
|
||||
/// rebuild happened — a stage whose work takes less than the clock's
|
||||
/// resolution adds 0.00 ms, which is why `Document::new` reports itself
|
||||
/// with [`saw_document`] rather than leaving the evidence to a duration.
|
||||
#[test]
|
||||
fn a_trace_holding_only_a_rebuild_is_not_empty() {
|
||||
arm();
|
||||
rebuild(Rebuild::Analyze, || {});
|
||||
saw_document();
|
||||
assert!(!disarm().expect("armed").is_empty());
|
||||
}
|
||||
}
|
||||
+1756
-54
File diff suppressed because it is too large.
Load diff
@@ -198,6 +198,14 @@ pub struct ScanTrace {
|
||||
/// Taking every open buffer's text and its finished analysis, and letting
|
||||
/// it override the disk copy of its own path.
|
||||
pub buffers_ms: f64,
|
||||
/// Directories the remaining walk met under a spelling the root walk
|
||||
/// would have preferred — a directory alias outside the open folder's own
|
||||
/// chain ([`crate::state::Scan::wants_rescan`]). 0 in every ordinary
|
||||
/// session; 1 says this scan's paths are the head's spelling.
|
||||
pub conflict: usize,
|
||||
/// Whole rescans this scan asked for on its way out. One per `conflict`,
|
||||
/// and nothing else sets it.
|
||||
pub rescan_requested: usize,
|
||||
|
||||
/// Sorting into index order and putting the user's own neighbourhood at
|
||||
/// the front ([`crate::scan_order`]).
|
||||
@@ -444,7 +452,8 @@ impl ScanTrace {
|
||||
"scan {} counts ({}): read={} read_kib={} walk_dirs={} stats={} skipped={} \
|
||||
hits={} misses={} buffers={} \
|
||||
records={} repeats={} decoded_kib={} written_kib={} opens={} compactions={} \
|
||||
publishes={} published={} first_publish={:.2} overlays={}",
|
||||
publishes={} published={} first_publish={:.2} overlays={} \
|
||||
conflict={} rescan_requested={}",
|
||||
self.number,
|
||||
self.kind,
|
||||
self.read,
|
||||
@@ -465,6 +474,8 @@ impl ScanTrace {
|
||||
self.published,
|
||||
self.first_publish_ms,
|
||||
self.overlays,
|
||||
self.conflict,
|
||||
self.rescan_requested,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ impl Server {
|
||||
let buffers = self.dirty.len();
|
||||
for (uri, text) in std::mem::take(&mut self.dirty) {
|
||||
self.set_document(uri.clone(), text);
|
||||
self.publish(&uri);
|
||||
crate::lint_trace::rebuild(crate::lint_trace::Rebuild::Publish, || self.publish(&uri));
|
||||
}
|
||||
self.timed(started, |took| {
|
||||
format!("flush of {buffers} dirty buffer{} took {took}", plural(buffers))
|
||||
|
||||
@@ -300,6 +300,15 @@ impl Server {
|
||||
}
|
||||
let total = scan.total();
|
||||
let (skipped, cached) = (scan.skipped(), scan.cached());
|
||||
// A split discovery whose two halves reached one directory by two
|
||||
// spellings: nothing was indexed twice, and every answer this scan
|
||||
// gives is the right one, but the paths are the head's and a plain
|
||||
// walk of the same tree spells them the other way
|
||||
// ([`Scan::wants_rescan`]). One ordinary rescan *is* that plain walk,
|
||||
// so it converges them — asked for with the same flag a save or a
|
||||
// settings change sets, and therefore run when this scan ends, with
|
||||
// every request held for the whole of it.
|
||||
self.rescan_wanted |= scan.wants_rescan();
|
||||
let warnings = self.workspace.finish_scan(scan);
|
||||
self.end_indexing(bar, skipped, cached);
|
||||
self.timed(started, |took| {
|
||||
|
||||
@@ -99,6 +99,15 @@ impl Tree {
|
||||
}
|
||||
std::fs::write(&path, text).expect("write");
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
fn link(&self, rel: &str, target: &str) {
|
||||
let path = self.path.join(rel);
|
||||
if let Some(parent) = path.parent() {
|
||||
std::fs::create_dir_all(parent).expect("parent");
|
||||
}
|
||||
std::os::unix::fs::symlink(target, &path).expect("symlink");
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Tree {
|
||||
|
||||
@@ -57,6 +57,16 @@ fn the_whole_workspace() -> Value {
|
||||
serde_json::json!({ "index": { "scope": "workspace", "logFiles": true } })
|
||||
}
|
||||
|
||||
/// [`the_whole_workspace`] with the folder scope's raise turned off, so the
|
||||
/// folder a split leads with is the open buffer's own directory — the
|
||||
/// settings `docs/performance_052_review.md` F1 reproduces with, and what
|
||||
/// every alias fixture below needs to reach the split at all.
|
||||
fn the_whole_workspace_flat() -> Value {
|
||||
serde_json::json!({
|
||||
"index": { "scope": "workspace", "scopeDepth": 0, "logFiles": true }
|
||||
})
|
||||
}
|
||||
|
||||
/// A `textDocument/didOpen` over the wire, as the client sends it.
|
||||
fn did_open(path: &Path, text: &str) -> Message {
|
||||
Message::Notification(Notification::new(
|
||||
@@ -1109,3 +1119,370 @@ fn a_rescan_does_not_lead_with_a_folder_because_nothing_may_be_answered_inside_i
|
||||
"and the exclusion took one file out"
|
||||
);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Directory aliases across a split discovery (F1)
|
||||
// ----------------------------------------------------------------------
|
||||
//
|
||||
// A symlinked directory gives every file under it a second path, and a walk
|
||||
// reports each file under the **first spelling that reaches it**
|
||||
// (`docs/features/walk-cycles/README.md`). The startup scan walks the user's
|
||||
// own folder before it walks the workspace, so the two halves must share that
|
||||
// rule or one module lands in the index twice and cannot be renamed — the
|
||||
// regression `docs/performance_052_review.md` F1 found and every fixture here
|
||||
// pins.
|
||||
//
|
||||
// Each one makes the same three asks of the same tree — after the startup
|
||||
// scan, after a whole rescan, and of a fresh session — and they must agree.
|
||||
|
||||
/// The testbench every fixture opens: it names `child`, which is what the
|
||||
/// definition and the rename below are asked about.
|
||||
#[cfg(unix)]
|
||||
const TB: &str = "module tb;\n child u();\nendmodule\n";
|
||||
|
||||
/// A `child` module and the testbench that instantiates it, in `dir`.
|
||||
#[cfg(unix)]
|
||||
fn alias_pair(tree: &Tree, dir: &str) {
|
||||
tree.write(&format!("{dir}/child.sv"), "module child;\nendmodule\n");
|
||||
tree.write(&format!("{dir}/tb.sv"), TB);
|
||||
}
|
||||
|
||||
/// Where `child` is named in [`TB`] — the cursor every claim below is made at.
|
||||
#[cfg(unix)]
|
||||
fn at_child(uri: &Uri) -> Value {
|
||||
serde_json::json!({
|
||||
"textDocument": { "uri": uri },
|
||||
"position": { "line": 1, "character": 3 },
|
||||
})
|
||||
}
|
||||
|
||||
/// What one session says about a fixture: which files the index holds, where
|
||||
/// the definition of `child` goes, whether that name may be renamed, and what
|
||||
/// the open buffer's diagnostics are.
|
||||
///
|
||||
/// The four together are the review's acceptance: a duplicate shows up as a
|
||||
/// second file, as a second target, and as a refusal to rename — and every
|
||||
/// answer the index feeds moves with it, which is what the diagnostics are
|
||||
/// here to catch.
|
||||
#[cfg(unix)]
|
||||
#[derive(Debug, PartialEq)]
|
||||
struct Says {
|
||||
files: Vec<String>,
|
||||
defs: Vec<Value>,
|
||||
renamable: bool,
|
||||
diagnostics: Vec<Value>,
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
fn says(session: &mut Session, uri: &Uri) -> Says {
|
||||
let answer = session.result(GotoDefinition::METHOD, at_child(uri));
|
||||
let defs: Vec<Value> = serde_json::from_value(answer).expect("definition targets");
|
||||
let prepared = session.request(PrepareRenameRequest::METHOD, at_child(uri));
|
||||
let files =
|
||||
session.server.workspace.index().files().iter().map(|p| p.display().to_string()).collect();
|
||||
// The `resultId` is a generation counter and moves with every rebuild, so
|
||||
// what is compared is what the user sees: each diagnostic's sentence and
|
||||
// where it points.
|
||||
let report = document_pull(session, uri, None);
|
||||
let items = report["items"].as_array().cloned().expect("a full diagnostic report");
|
||||
let diagnostics = items
|
||||
.into_iter()
|
||||
.map(|item| serde_json::json!({ "message": item["message"], "range": item["range"] }))
|
||||
.collect();
|
||||
Says { files, defs, renamable: prepared.response_result.is_ok(), diagnostics }
|
||||
}
|
||||
|
||||
/// Index `tree` with `opened` open, then ask a whole rescan and a fresh
|
||||
/// session the same four questions. Reports what all three said.
|
||||
///
|
||||
/// The rescan trigger is the review's own: a watched-file notification naming
|
||||
/// more than one in-scope file is the whole rebuild rather than the one-file
|
||||
/// incremental path (`server/notification.rs`). No source byte changes, so a
|
||||
/// disagreement is the scan disagreeing with itself.
|
||||
#[cfg(unix)]
|
||||
fn startup_rescan_and_restart_agree(tree: &Tree, opened: &Path, text: &str) -> Says {
|
||||
let uri = path_to_uri(opened).expect("uri");
|
||||
let fresh = || {
|
||||
let session = Session::staged(
|
||||
vec![tree.path.clone()],
|
||||
pulling(),
|
||||
true,
|
||||
CONFIGURATION_WAIT,
|
||||
vec![configuration_answer(the_whole_workspace_flat()), did_open(opened, text)],
|
||||
);
|
||||
session.drain();
|
||||
session
|
||||
};
|
||||
let mut session = fresh();
|
||||
let startup = says(&mut session, &uri);
|
||||
let changed: Vec<PathBuf> = startup.files.iter().map(PathBuf::from).collect();
|
||||
assert!(changed.len() > 1, "the whole-rebuild trigger names more than one file");
|
||||
session.watched(&changed);
|
||||
session.drain();
|
||||
let rescan = says(&mut session, &uri);
|
||||
let restart = says(&mut fresh(), &uri);
|
||||
assert_eq!(startup, rescan, "the startup scan and a whole rescan must agree");
|
||||
assert_eq!(startup, restart, "the startup scan and a fresh session must agree");
|
||||
startup
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn an_alias_sorting_before_its_target_is_indexed_once_under_the_root_walks_spelling() {
|
||||
// The review's own reproduction. A walk of the root reaches `a_alias`
|
||||
// first, so `a_alias/child.sv` is the canonical spelling and the head —
|
||||
// which would lead with `z_real` — must not be led with at all.
|
||||
let tree = Tree::new("aliasbefore");
|
||||
alias_pair(&tree, "z_real");
|
||||
tree.link("a_alias", "z_real");
|
||||
let said = startup_rescan_and_restart_agree(&tree, &tree.path.join("z_real/tb.sv"), TB);
|
||||
assert_eq!(said.defs.len(), 1, "one definition target: {:#?}", said.defs);
|
||||
assert!(said.renamable, "a module declared once may be renamed");
|
||||
assert!(
|
||||
said.files.iter().any(|file| file.ends_with("a_alias/child.sv")),
|
||||
"the root walk's own spelling: {:#?}",
|
||||
said.files
|
||||
);
|
||||
assert!(said.diagnostics.is_empty(), "and nothing is wrong with it: {:#?}", said.diagnostics);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn an_alias_sorting_after_its_target_leaves_the_head_leading() {
|
||||
// Nothing precedes `a_real`, so this one keeps the split — and the
|
||||
// remaining walk must still recognise `z_alias` as the folder it has.
|
||||
let tree = Tree::new("aliasafter");
|
||||
alias_pair(&tree, "a_real");
|
||||
tree.link("z_alias", "a_real");
|
||||
let said = startup_rescan_and_restart_agree(&tree, &tree.path.join("a_real/tb.sv"), TB);
|
||||
assert_eq!(said.defs.len(), 1, "one definition target: {:#?}", said.defs);
|
||||
assert!(said.renamable, "a module declared once may be renamed");
|
||||
assert!(
|
||||
said.files.iter().any(|file| file.ends_with("a_real/child.sv")),
|
||||
"the target's own spelling: {:#?}",
|
||||
said.files
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn several_aliases_of_one_directory_contribute_one_copy_between_them() {
|
||||
let tree = Tree::new("multialias");
|
||||
alias_pair(&tree, "real");
|
||||
tree.link("a1_alias", "real");
|
||||
tree.link("a2_alias", "real");
|
||||
tree.link("z_alias", "real");
|
||||
let said = startup_rescan_and_restart_agree(&tree, &tree.path.join("real/tb.sv"), TB);
|
||||
assert_eq!(said.defs.len(), 1, "one definition target: {:#?}", said.defs);
|
||||
assert!(said.renamable, "three aliases are still one declaration");
|
||||
assert_eq!(said.files.len(), 2, "one child, one buffer: {:#?}", said.files);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn an_alias_of_an_ancestor_of_the_open_folder_falls_back_to_the_one_walk() {
|
||||
// The head would lead with `z_real/sub`, but the root walk reaches the
|
||||
// whole of `z_real` through `a_link` — so the folder's *ancestors* are
|
||||
// what the check has to look at, not the folder alone.
|
||||
let tree = Tree::new("aliasancestor");
|
||||
alias_pair(&tree, "z_real/sub");
|
||||
tree.link("a_link", "z_real");
|
||||
let said = startup_rescan_and_restart_agree(&tree, &tree.path.join("z_real/sub/tb.sv"), TB);
|
||||
assert_eq!(said.defs.len(), 1, "one definition target: {:#?}", said.defs);
|
||||
assert!(said.renamable, "a module declared once may be renamed");
|
||||
assert!(
|
||||
said.files.iter().any(|file| file.ends_with("a_link/sub/child.sv")),
|
||||
"the root walk's own spelling: {:#?}",
|
||||
said.files
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn an_ancestor_cycle_inside_the_neighbourhood_ends_and_names_each_file_once() {
|
||||
// `sub/up -> ..` is a link out of the neighbourhood and back to the top,
|
||||
// so the head walk finds the root's own file under `sub/up/top.sv` while
|
||||
// a walk of the root spells it `top.sv`. One spelling reaches the index,
|
||||
// and the rescan the conflict asks for is what settles which.
|
||||
let tree = Tree::new("ancestorcycle");
|
||||
alias_pair(&tree, "sub");
|
||||
tree.write("top.sv", "module top;\nendmodule\n");
|
||||
tree.link("sub/up", "..");
|
||||
let said = startup_rescan_and_restart_agree(&tree, &tree.path.join("sub/tb.sv"), TB);
|
||||
assert_eq!(said.defs.len(), 1, "one definition target: {:#?}", said.defs);
|
||||
assert!(said.renamable, "the cycle did not duplicate `child`");
|
||||
assert_eq!(said.files.len(), 3, "child, top and the buffer: {:#?}", said.files);
|
||||
assert!(
|
||||
said.files.iter().any(|file| file.ends_with("/top.sv") && !file.contains("/up/")),
|
||||
"the root's file under the root's own spelling: {:#?}",
|
||||
said.files
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn an_ignored_alias_is_excluded_by_both_halves_of_the_scan() {
|
||||
let tree = Tree::new("ignorealias");
|
||||
tree.write(".gitignore", "a_alias/\n");
|
||||
alias_pair(&tree, "z_real");
|
||||
tree.link("a_alias", "z_real");
|
||||
let said = startup_rescan_and_restart_agree(&tree, &tree.path.join("z_real/tb.sv"), TB);
|
||||
assert_eq!(said.defs.len(), 1, "one definition target: {:#?}", said.defs);
|
||||
assert!(said.renamable, "a module declared once may be renamed");
|
||||
assert!(
|
||||
said.files.iter().all(|file| !file.contains("a_alias")),
|
||||
"the ignored alias is in nobody's scope: {:#?}",
|
||||
said.files
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn an_open_unsaved_buffer_is_not_indexed_again_under_an_alias() {
|
||||
// The buffer is `z_real/tb.sv` and the walk's own spelling of it is
|
||||
// `a_alias/tb.sv`: two paths, one file, and an index holding both would
|
||||
// hold `tb` twice while showing the user only one of them.
|
||||
let tree = Tree::new("unsavedalias");
|
||||
alias_pair(&tree, "z_real");
|
||||
tree.link("a_alias", "z_real");
|
||||
let unsaved = "module tb;\n child u();\n localparam UNSAVED = 1;\nendmodule\n";
|
||||
let opened = tree.path.join("z_real/tb.sv");
|
||||
let said = startup_rescan_and_restart_agree(&tree, &opened, unsaved);
|
||||
assert_eq!(said.defs.len(), 1, "one definition target: {:#?}", said.defs);
|
||||
assert!(said.renamable, "`child` is declared once");
|
||||
assert_eq!(said.files.len(), 2, "one child, one buffer: {:#?}", said.files);
|
||||
|
||||
// And the buffer's own name, which is the one the alias would have
|
||||
// duplicated: renamable, and the unsaved text is what was indexed.
|
||||
let uri = path_to_uri(&opened).expect("uri");
|
||||
let mut session = Session::staged(
|
||||
vec![tree.path.clone()],
|
||||
pulling(),
|
||||
true,
|
||||
CONFIGURATION_WAIT,
|
||||
vec![configuration_answer(the_whole_workspace_flat()), did_open(&opened, unsaved)],
|
||||
);
|
||||
let _ = session.drain();
|
||||
let at_tb = serde_json::json!({
|
||||
"textDocument": { "uri": &uri },
|
||||
"position": { "line": 0, "character": 8 },
|
||||
});
|
||||
let prepared = session.request(PrepareRenameRequest::METHOD, at_tb);
|
||||
assert!(prepared.response_result.is_ok(), "one `tb`: {:?}", prepared.response_result);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn a_genuine_duplicate_declaration_is_still_ambiguous_at_startup_and_after_a_rescan() {
|
||||
// The other side of the fix, and the reason deduplicating by *name* was
|
||||
// never an option: two physical files really do declare `dup`, and a
|
||||
// rename that picked one of them would be a wrong edit.
|
||||
let tree = Tree::new("legitdup");
|
||||
tree.write("dir1/dup.sv", "module dup;\nendmodule\n");
|
||||
tree.write("dir2/dup.sv", "module dup;\nendmodule\n");
|
||||
let opened = tree.path.join("dir1/dup.sv");
|
||||
let text = std::fs::read_to_string(&opened).expect("read");
|
||||
let uri = path_to_uri(&opened).expect("uri");
|
||||
let at_dup = serde_json::json!({
|
||||
"textDocument": { "uri": &uri },
|
||||
"position": { "line": 0, "character": 8 },
|
||||
});
|
||||
|
||||
let mut session = Session::staged(
|
||||
vec![tree.path.clone()],
|
||||
pulling(),
|
||||
true,
|
||||
CONFIGURATION_WAIT,
|
||||
vec![configuration_answer(the_whole_workspace()), did_open(&opened, &text)],
|
||||
);
|
||||
session.drain();
|
||||
let refused = session.request(PrepareRenameRequest::METHOD, at_dup.clone());
|
||||
let error = refused.response_result.expect_err("two declarations are ambiguous");
|
||||
assert!(error.message.contains("declared in more than one indexed file"), "{}", error.message);
|
||||
|
||||
session.watched(&[opened.clone(), tree.path.join("dir2/dup.sv")]);
|
||||
session.drain();
|
||||
let again = session.request(PrepareRenameRequest::METHOD, at_dup);
|
||||
let rescanned = again.response_result.expect_err("a rescan refuses it the same way");
|
||||
assert_eq!(rescanned.message, error.message, "the same sentence, word for word");
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn an_alias_beside_the_open_folder_indexes_once_and_asks_for_one_rescan() {
|
||||
// The case no pre-check can see: `other/link` is nowhere on the open
|
||||
// folder's own chain, so the head leads with `z_real` and only the
|
||||
// remaining walk finds out that a walk of the root would have spelled
|
||||
// those files `other/link/…`. Nothing is indexed twice — and the scan
|
||||
// asks for the canonical walk once, which is where the spelling
|
||||
// converges.
|
||||
let tree = Tree::new("siblingalias");
|
||||
alias_pair(&tree, "z_real");
|
||||
tree.link("other/link", "../z_real");
|
||||
let opened = tree.path.join("z_real/tb.sv");
|
||||
let uri = path_to_uri(&opened).expect("uri");
|
||||
|
||||
let mut session = Session::staged(
|
||||
vec![tree.path.clone()],
|
||||
pulling(),
|
||||
true,
|
||||
CONFIGURATION_WAIT,
|
||||
vec![configuration_answer(the_whole_workspace_flat()), did_open(&opened, TB)],
|
||||
);
|
||||
let messages = session.drain();
|
||||
let traces = trace_lines(&messages);
|
||||
let counts: Vec<&String> = traces.iter().filter(|line| line.contains(" counts (")).collect();
|
||||
assert_eq!(counts.len(), 2, "the startup scan and the one rescan it asked for: {traces:#?}");
|
||||
assert_eq!(field(counts[0], "conflict"), "1", "{}", counts[0]);
|
||||
assert_eq!(field(counts[0], "rescan_requested"), "1", "{}", counts[0]);
|
||||
assert_eq!(field(counts[1], "conflict"), "0", "the rescan is one whole walk: {}", counts[1]);
|
||||
assert_eq!(
|
||||
field(counts[1], "rescan_requested"),
|
||||
"0",
|
||||
"and it cannot ask for another: {}",
|
||||
counts[1]
|
||||
);
|
||||
|
||||
// What the startup indexed, from the per-file log: the head's spelling,
|
||||
// one copy of `child`, and no `other/link` beside it.
|
||||
let indexed: Vec<String> =
|
||||
log_lines(&messages).into_iter().filter(|line| line.contains("child.sv")).collect();
|
||||
assert_eq!(indexed.len(), 2, "one `child` per scan, never two: {indexed:#?}");
|
||||
assert!(indexed[0].contains("z_real/child.sv"), "the startup's spelling: {}", indexed[0]);
|
||||
assert!(indexed[1].contains("other/link/child.sv"), "the rescan's: {}", indexed[1]);
|
||||
|
||||
// And what the rescan left: the spelling a plain walk of this tree gives,
|
||||
// which is what every later scan and every restart will produce.
|
||||
let said = says(&mut session, &uri);
|
||||
assert_eq!(said.defs.len(), 1, "one definition target: {:#?}", said.defs);
|
||||
assert!(said.renamable, "`child` is declared once");
|
||||
assert!(
|
||||
said.files.iter().any(|file| file.ends_with("other/link/child.sv")),
|
||||
"the canonical spelling won: {:#?}",
|
||||
said.files
|
||||
);
|
||||
let plain = startup_rescan_and_restart_agree(&tree, &opened, TB);
|
||||
assert_eq!(said, plain, "and it is stable under a rescan and a restart");
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn a_same_named_file_symlink_outside_the_head_is_not_a_second_copy_of_the_buffer() {
|
||||
// QA's (f) on §62.1: the head walk asked `Aliased` about a same-named
|
||||
// file, the remaining walk did not, so a file symlink to the open buffer
|
||||
// living outside its folder was indexed a second time and `tb` was
|
||||
// falsely declared twice. Now both walks ask.
|
||||
let tree = Tree::new("filealias");
|
||||
alias_pair(&tree, "z_real");
|
||||
tree.link("alias_dir/tb.sv", "../z_real/tb.sv");
|
||||
let said = startup_rescan_and_restart_agree(&tree, &tree.path.join("z_real/tb.sv"), TB);
|
||||
assert_eq!(
|
||||
said.files.iter().filter(|file| file.ends_with("tb.sv")).count(),
|
||||
1,
|
||||
"one `tb.sv`, the buffer's: {:#?}",
|
||||
said.files
|
||||
);
|
||||
assert_eq!(said.defs.len(), 1, "one definition target: {:#?}", said.defs);
|
||||
assert!(said.renamable, "`tb` is declared once, whatever the disk spells");
|
||||
assert!(said.diagnostics.is_empty(), "{:#?}", said.diagnostics);
|
||||
}
|
||||
@@ -21,13 +21,28 @@
|
||||
//! session with a buffer open walks that buffer's own folders first, so the
|
||||
//! scan can index and publish them before it discovers the other 3 850 files
|
||||
//! ([`Workspace::first_scope`]). One scan, one work list, every file once.
|
||||
//!
|
||||
//! **"Every file once" is a claim about directory identity, not about paths.**
|
||||
//! A symlinked directory gives every file under it a second path, and a walk
|
||||
//! answers that by entering each directory identity once and reporting its
|
||||
//! files under the first spelling that reached it
|
||||
//! (`docs/features/walk-cycles/README.md`). Two walks with two visited sets do
|
||||
//! not have that rule *between* them, which is how the split came to index a
|
||||
//! module twice (`docs/performance_052_review.md` F1). So the two halves share
|
||||
//! one [`DirectoryTracker`]; the head is not led with at all when a walk of the
|
||||
//! root would reach the user's own folder by an earlier name
|
||||
//! ([`Workspace::has_preceding_alias`]); and where only the remaining walk can
|
||||
//! find that out, it says so and the scan asks for one canonical walk
|
||||
//! ([`Scan::wants_rescan`](super::Scan::wants_rescan)).
|
||||
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::fs;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use lucisv_core::config::Discovery;
|
||||
use lucisv_core::walk::{collect_files_below, collect_files_with, EXTENSIONS};
|
||||
use lucisv_core::walk::{
|
||||
collect_files_below_tracked, collect_files_tracked, dir_id, DirectoryTracker, EXTENSIONS,
|
||||
};
|
||||
|
||||
use crate::scan_trace::ScanTrace;
|
||||
|
||||
@@ -93,6 +108,53 @@ pub(super) fn oversize(found: &Found, cap: u64, stats: &mut usize) -> Option<u64
|
||||
(size > cap).then_some(size)
|
||||
}
|
||||
|
||||
/// The open buffers' files by **identity**, so a walked path that is a second
|
||||
/// spelling of one of them can be recognised and left out.
|
||||
///
|
||||
/// A symlinked directory gives every file under it a second path. The walk
|
||||
/// reports each file under the first spelling that reaches it, which may not be
|
||||
/// the one the buffer was opened by — and an index holding `a_alias/tb.sv` from
|
||||
/// disk beside the open `z_real/tb.sv` holds one module twice and refuses to
|
||||
/// rename it (`docs/features/walk-cycles/README.md`).
|
||||
///
|
||||
/// **The name is the gate, and it is what keeps this free.** A directory alias
|
||||
/// cannot change a file's *name*, so a walked file whose name no open buffer
|
||||
/// shares cannot be one of them and is never stat'd: an ordinary workspace pays
|
||||
/// nothing at all, and one with same-named files pays one `metadata` per
|
||||
/// same-named candidate. A **file**-level symlink under a different name is out
|
||||
/// of scope — two names for one inode that no directory relates, which every
|
||||
/// other part of this server already treats as two files.
|
||||
struct Aliased {
|
||||
/// The names those buffers' files go by — the cheap half of the test.
|
||||
names: HashSet<std::ffi::OsString>,
|
||||
/// Their `(dev, ino)` identities, read once per open buffer rather than
|
||||
/// once per walked file.
|
||||
ids: HashSet<lucisv_core::walk::DirId>,
|
||||
}
|
||||
|
||||
impl Aliased {
|
||||
/// The identities of `paths`, with the names to gate on.
|
||||
fn of(paths: &HashSet<&Path>) -> Aliased {
|
||||
let names = paths.iter().filter_map(|p| p.file_name()).map(|n| n.to_os_string()).collect();
|
||||
let ids = paths.iter().filter_map(|p| dir_id(p)).collect();
|
||||
Aliased { names, ids }
|
||||
}
|
||||
|
||||
/// Whether `path` names a file an open buffer already speaks for, by a
|
||||
/// different spelling. `stats` counts the `metadata` calls it made.
|
||||
fn speaks_for(&self, path: &Path, stats: &mut usize) -> bool {
|
||||
if self.ids.is_empty() {
|
||||
return false;
|
||||
}
|
||||
let Some(name) = path.file_name() else { return false };
|
||||
if !self.names.contains(name) {
|
||||
return false;
|
||||
}
|
||||
*stats += 1;
|
||||
dir_id(path).is_some_and(|id| self.ids.contains(&id))
|
||||
}
|
||||
}
|
||||
|
||||
impl Workspace {
|
||||
/// Resolve the scope: which files are in it, with open buffers overriding
|
||||
/// disk, and those buffers' own text.
|
||||
@@ -144,6 +206,9 @@ impl Workspace {
|
||||
// skipped exactly as it did before the buffer put its own text back.
|
||||
let spoken_for: HashSet<&Path> =
|
||||
self.docs.values().filter_map(|doc| doc.path.as_deref()).collect();
|
||||
// …and every *other* spelling of those same files, which a directory
|
||||
// alias makes and a path comparison cannot see ([`Aliased`]).
|
||||
let aliased = Aliased::of(&spoken_for);
|
||||
let capping = trace.now();
|
||||
let mut stats = 0usize;
|
||||
let mut files: Vec<PathBuf> = Vec::new();
|
||||
@@ -155,6 +220,9 @@ impl Workspace {
|
||||
if spoken_for.contains(found.path.as_path()) {
|
||||
continue;
|
||||
}
|
||||
if aliased.speaks_for(&found.path, &mut stats) {
|
||||
continue;
|
||||
}
|
||||
files.push(found.path);
|
||||
}
|
||||
ScanTrace::add(&mut trace.cap_ms, capping);
|
||||
@@ -301,6 +369,19 @@ impl Workspace {
|
||||
dirs: &[PathBuf],
|
||||
warn: &mut dyn FnMut(String),
|
||||
trace: &mut ScanTrace,
|
||||
) -> Vec<Found> {
|
||||
let mut tracker = DirectoryTracker::new();
|
||||
self.walked_files_tracked(dirs, &mut tracker, warn, trace)
|
||||
}
|
||||
|
||||
/// [`Workspace::walked_files`] over an existing [`DirectoryTracker`], so
|
||||
/// two walks of one scan enter each directory identity once between them.
|
||||
pub(super) fn walked_files_tracked(
|
||||
&self,
|
||||
dirs: &[PathBuf],
|
||||
tracker: &mut DirectoryTracker,
|
||||
warn: &mut dyn FnMut(String),
|
||||
trace: &mut ScanTrace,
|
||||
) -> Vec<Found> {
|
||||
let mut discovery = Discovery::new(true);
|
||||
let mut out: Vec<Found> = Vec::new();
|
||||
@@ -326,10 +407,11 @@ impl Workspace {
|
||||
// is skipped and said — the warning rides out on the scope's own
|
||||
// warnings, which `server/notification.rs` logs once per scan.
|
||||
let walking = trace.now();
|
||||
let _ = collect_files_with(
|
||||
let _ = collect_files_tracked(
|
||||
input,
|
||||
&exclude,
|
||||
true,
|
||||
tracker,
|
||||
&mut |path, len| out.push(Found { path, len }),
|
||||
&mut |w| warn(w.to_string()),
|
||||
);
|
||||
@@ -441,25 +523,59 @@ impl Workspace {
|
||||
if trace.number > 1 || !self.splits_discovery() {
|
||||
return (self.collect_sources(watch, HeldAnalyses::Wanted, trace), None);
|
||||
}
|
||||
// A directory alias that a root walk would reach *before* the folder
|
||||
// the head would lead with: leading with it would spell those files a
|
||||
// way no other scan of this workspace ever does
|
||||
// ([`Workspace::has_preceding_alias`]). The whole scope, walked once,
|
||||
// is the answer — a millisecond on a fixture and ~155 ms on
|
||||
// opentitan, and only for a session whose own folder is aliased.
|
||||
for dir in self.raised_dirs() {
|
||||
if let Some(root) = self.deepest_root(&dir) {
|
||||
if self.has_preceding_alias(&root, &dir) {
|
||||
return (self.collect_sources(watch, HeldAnalyses::Wanted, trace), None);
|
||||
}
|
||||
}
|
||||
}
|
||||
let mut warnings: Vec<String> = Vec::new();
|
||||
let head = self.neighbourhood_files(&mut |w| warnings.push(w), trace);
|
||||
let mut tracker = DirectoryTracker::new();
|
||||
let head = self.neighbourhood_files(&mut tracker, &mut |w| warnings.push(w), trace);
|
||||
if head.len() > HEAD_WALK_MAX {
|
||||
// Too big to lead with unproven. The head is **discarded** and the
|
||||
// whole scope walked once, ordered the way every scan before this
|
||||
// one was: keeping it and walking the rest beside it would union
|
||||
// two walks that never agreed on a directory's spelling, which is
|
||||
// the very thing the tracker exists to prevent.
|
||||
return (self.collect_sources(watch, HeldAnalyses::Wanted, trace), None);
|
||||
}
|
||||
// Every path the neighbourhood walk named, before the cap has had a
|
||||
// say: what the remaining walk must not decide about a second time.
|
||||
let mut seen: HashSet<PathBuf> = head.iter().map(|found| found.path.clone()).collect();
|
||||
seen.extend(self.docs.values().filter_map(|doc| doc.path.clone()));
|
||||
if head.len() > HEAD_WALK_MAX {
|
||||
// Too big to lead with unproven. Finish the walk now and hand back
|
||||
// the whole scope, ordered the way every scan before this one was.
|
||||
let (mut files, rest_warnings, _) = self.walked_rest(&seen, trace);
|
||||
warnings.extend(rest_warnings);
|
||||
files.extend(head);
|
||||
sort_found(&mut files);
|
||||
let scope = Scope { files, incdirs: Vec::new(), warnings };
|
||||
return (self.overlay_buffers(scope, watch, HeldAnalyses::Wanted, trace), None);
|
||||
}
|
||||
let scope = Scope { files: head, incdirs: Vec::new(), warnings };
|
||||
let sources = self.overlay_buffers(scope, watch, HeldAnalyses::Wanted, trace);
|
||||
(sources, Some(PendingDiscovery { roots: self.roots.clone(), seen }))
|
||||
(sources, Some(PendingDiscovery { roots: self.roots.clone(), seen, tracker }))
|
||||
}
|
||||
|
||||
/// Whether some directory between `root` and `dir` holds a **second
|
||||
/// spelling** of `dir` or of one of its ancestors that a walk of `root`
|
||||
/// would reach *first*.
|
||||
///
|
||||
/// The one case the split cannot lead with. A walk of the root reports
|
||||
/// each directory under the first path that reaches it, in name order, so
|
||||
/// with `a_alias -> z_real` the whole of `z_real` is spelled `a_alias/…`;
|
||||
/// a head walk starting at `z_real` would spell it `z_real/…` and the two
|
||||
/// halves of one scan would disagree with each other and with every later
|
||||
/// rescan. Asked before the head is walked, so the answer is a *fallback*
|
||||
/// to the single canonical walk and never a repair afterwards.
|
||||
///
|
||||
/// **It reads directories and stats symlinks only.** The chain from a
|
||||
/// buffer's folder to the root is a handful of directories (four on
|
||||
/// opentitan, ~150 entries between them); `read_dir` already carries each
|
||||
/// entry's kind, so an ordinary tree costs no `metadata` at all.
|
||||
fn has_preceding_alias(&self, root: &Path, dir: &Path) -> bool {
|
||||
let targets = identities_to(root, dir);
|
||||
!targets.is_empty()
|
||||
&& ancestors_to(root, dir).into_iter().any(|up| precedes_a_target(up, &targets))
|
||||
}
|
||||
|
||||
/// The user's own neighbourhood, walked: every source file under the
|
||||
@@ -474,6 +590,7 @@ impl Workspace {
|
||||
/// halves of one scan would disagree about which files exist.
|
||||
fn neighbourhood_files(
|
||||
&self,
|
||||
tracker: &mut DirectoryTracker,
|
||||
warn: &mut dyn FnMut(String),
|
||||
trace: &mut ScanTrace,
|
||||
) -> Vec<Found> {
|
||||
@@ -489,11 +606,12 @@ impl Workspace {
|
||||
exclude.extend(self.client.exclude.iter().cloned());
|
||||
ScanTrace::add(&mut trace.config_ms, configuring);
|
||||
let walking = trace.now();
|
||||
let _ = collect_files_below(
|
||||
let _ = collect_files_below_tracked(
|
||||
&root,
|
||||
&dir,
|
||||
&exclude,
|
||||
true,
|
||||
tracker,
|
||||
&mut |path, len| out.push(Found { path, len }),
|
||||
&mut |w| warn(w.to_string()),
|
||||
);
|
||||
@@ -517,36 +635,45 @@ impl Workspace {
|
||||
.cloned()
|
||||
}
|
||||
|
||||
/// The roots walked, less what `seen` already names — the walk half of
|
||||
/// [`Workspace::rest_of_scope`], with no cap and no reporting.
|
||||
fn walked_rest(
|
||||
&self,
|
||||
seen: &HashSet<PathBuf>,
|
||||
trace: &mut ScanTrace,
|
||||
) -> (Vec<Found>, Vec<String>, usize) {
|
||||
let mut warnings: Vec<String> = Vec::new();
|
||||
let walked = self.walked_files(&self.roots, &mut |w| warnings.push(w), trace);
|
||||
let kept: Vec<Found> =
|
||||
walked.into_iter().filter(|found| !seen.contains(&found.path)).collect();
|
||||
let count = kept.len();
|
||||
(kept, warnings, count)
|
||||
}
|
||||
|
||||
/// The rest of the workspace: everything the roots hold that `seen` does
|
||||
/// not already name, capped and reported exactly as the neighbourhood was.
|
||||
///
|
||||
/// Returns the files to index, what the walk wants said, and how many the
|
||||
/// cap kept out. Open buffers are **not** folded in again — they were
|
||||
/// folded into the head, and a buffer's path is in `seen`.
|
||||
/// folded into the head, and a buffer's path is in `pending.seen`.
|
||||
///
|
||||
/// **It walks with the head's own directory identities.** The tracker is
|
||||
/// the one the neighbourhood filled, so a directory the head already
|
||||
/// entered is not entered again under an alias and no file is discovered
|
||||
/// twice. Where this walk reaches such a directory under a spelling the
|
||||
/// root walk would have *preferred*, the tracker says so
|
||||
/// ([`DirectoryTracker::has_conflict`]) and the caller asks for one
|
||||
/// ordinary rescan, which is that root walk.
|
||||
pub(super) fn rest_of_scope(
|
||||
&self,
|
||||
roots: &[PathBuf],
|
||||
seen: &HashSet<PathBuf>,
|
||||
pending: &mut PendingDiscovery,
|
||||
watch: &mut dyn FnMut(IndexEvent),
|
||||
trace: &mut ScanTrace,
|
||||
) -> (Vec<PathBuf>, Vec<String>, usize) {
|
||||
let (roots, seen) = (&pending.roots, &pending.seen);
|
||||
let mut warnings: Vec<String> = Vec::new();
|
||||
let walked = self.walked_files(roots, &mut |w| warnings.push(w), trace);
|
||||
let walked = self.walked_files_tracked(
|
||||
roots,
|
||||
&mut pending.tracker,
|
||||
&mut |w| warnings.push(w),
|
||||
trace,
|
||||
);
|
||||
// The same gate the neighbourhood applied: a file an open buffer
|
||||
// already speaks for, reached here by **another** spelling (a
|
||||
// same-named file symlink outside the head), must not be indexed a
|
||||
// second time. The buffer's own spelling is not an alias — a buffer
|
||||
// opened mid-scan is discovered here for the first time and must land
|
||||
// in the work list — so the gate is asked only about other paths.
|
||||
// Found by QA on §62.1, twice: the head walk had the gate and this walk
|
||||
// did not; then the gate matched a mid-scan buffer against itself.
|
||||
let spoken_for: HashSet<&Path> =
|
||||
self.docs.values().filter_map(|doc| doc.path.as_deref()).collect();
|
||||
let aliased = Aliased::of(&spoken_for);
|
||||
let cap = self.client.max_file_size;
|
||||
let capping = trace.now();
|
||||
let mut stats = 0usize;
|
||||
@@ -556,7 +683,10 @@ impl Workspace {
|
||||
// Already decided about by the neighbourhood: indexed, capped out,
|
||||
// or spoken for by an open buffer. Deciding again would step a
|
||||
// file twice or report one skip as two.
|
||||
if seen.contains(&found.path) {
|
||||
let another_spelling = !spoken_for.contains(found.path.as_path());
|
||||
if seen.contains(&found.path)
|
||||
|| (another_spelling && aliased.speaks_for(&found.path, &mut stats))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if let Some(size) = oversize(&found, cap, &mut stats) {
|
||||
@@ -572,6 +702,56 @@ impl Workspace {
|
||||
}
|
||||
}
|
||||
|
||||
/// The identity of `dir` and of every directory between it and `root` — what
|
||||
/// a second spelling would have to name to matter ([`Workspace::has_preceding_alias`]).
|
||||
///
|
||||
/// `root` itself is not among them: a walk of the root enters it before it
|
||||
/// reads anything, so nothing it holds can precede it.
|
||||
fn identities_to(root: &Path, dir: &Path) -> Vec<(lucisv_core::walk::DirId, PathBuf)> {
|
||||
let mut out = Vec::new();
|
||||
let mut at = dir;
|
||||
while at != root {
|
||||
if let Some(id) = dir_id(at) {
|
||||
out.push((id, at.to_path_buf()));
|
||||
}
|
||||
let Some(parent) = at.parent() else { break };
|
||||
at = parent;
|
||||
}
|
||||
out
|
||||
}
|
||||
|
||||
/// The directories a walk of `root` reads on its way down to `dir`: its
|
||||
/// parent, that one's parent, and so on up to and including `root`.
|
||||
fn ancestors_to<'a>(root: &'a Path, dir: &'a Path) -> Vec<&'a Path> {
|
||||
let mut out = Vec::new();
|
||||
let mut at = dir.parent();
|
||||
while let Some(parent) = at {
|
||||
out.push(parent);
|
||||
if parent == root {
|
||||
break;
|
||||
}
|
||||
at = parent.parent();
|
||||
}
|
||||
out
|
||||
}
|
||||
|
||||
/// Whether `dir` holds a symlink to one of `targets` under a name that sorts
|
||||
/// before the target's own path — the entry a root walk would follow first.
|
||||
fn precedes_a_target(dir: &Path, targets: &[(lucisv_core::walk::DirId, PathBuf)]) -> bool {
|
||||
let Ok(entries) = fs::read_dir(dir) else { return false };
|
||||
entries.flatten().any(|entry| {
|
||||
// Only a symlink can be a second spelling of a directory, and the kind
|
||||
// is the one `read_dir` already read — so the stat below happens once
|
||||
// per link in the chain and never once per entry.
|
||||
if !entry.file_type().is_ok_and(|kind| kind.is_symlink()) {
|
||||
return false;
|
||||
}
|
||||
let path = entry.path();
|
||||
let Some(id) = dir_id(&path) else { return false };
|
||||
targets.iter().any(|(target, spelling)| id == *target && path < *spelling)
|
||||
})
|
||||
}
|
||||
|
||||
/// Path order, one entry per path — what the walk's callers have always done
|
||||
/// with the paths of several overlapping directory walks.
|
||||
///
|
||||
|
||||
@@ -122,17 +122,19 @@ impl Document {
|
||||
// `tokenize` + `parse_tolerant`, so the tree is identical). A buffer
|
||||
// that does not lex keeps the old path, so its all-error tree and its
|
||||
// lex diagnostic are byte-for-byte what they always were.
|
||||
let (tokens, (tree, diagnostics)) = match tokenize(&text) {
|
||||
use crate::lint_trace::{rebuild, Rebuild};
|
||||
crate::lint_trace::saw_document();
|
||||
let (tokens, (tree, diagnostics)) = match rebuild(Rebuild::Lex, || tokenize(&text)) {
|
||||
Ok(tokens) => {
|
||||
let parsed = parse_tolerant(tokens.clone(), &text);
|
||||
let parsed = rebuild(Rebuild::Parse, || parse_tolerant(tokens.clone(), &text));
|
||||
(tokens, parsed)
|
||||
}
|
||||
Err(_) => (Vec::new(), parse_source_tolerant(&text)),
|
||||
Err(_) => (Vec::new(), rebuild(Rebuild::Parse, || parse_source_tolerant(&text))),
|
||||
};
|
||||
let defines = collect_defines(&tokens);
|
||||
let semantics = analyze(&tree, &text);
|
||||
let external = resolve_external(&semantics, index);
|
||||
let line_index = LineIndex::new(&text);
|
||||
let defines = rebuild(Rebuild::Defines, || collect_defines(&tokens));
|
||||
let semantics = rebuild(Rebuild::Analyze, || analyze(&tree, &text));
|
||||
let external = rebuild(Rebuild::External, || resolve_external(&semantics, index));
|
||||
let line_index = rebuild(Rebuild::Lines, || LineIndex::new(&text));
|
||||
let large = false;
|
||||
Document {
|
||||
path,
|
||||
@@ -898,7 +900,7 @@ impl Workspace {
|
||||
/// waits (`docs/features/indexing-ux/README.md`). So this discovers, says
|
||||
/// "there is more", and lets the next step be an ordinary one.
|
||||
fn discover_the_rest(&mut self, scan: &mut Scan, watch: &mut dyn FnMut(IndexEvent)) -> bool {
|
||||
let Some(pending) = scan.take_pending() else { return false };
|
||||
let Some(mut pending) = scan.take_pending() else { return false };
|
||||
let discovering = scan.trace.now();
|
||||
let mut skipped = 0usize;
|
||||
let (files, warnings, walked_skips) = {
|
||||
@@ -908,11 +910,11 @@ impl Workspace {
|
||||
}
|
||||
watch(event);
|
||||
};
|
||||
self.rest_of_scope(&pending.roots, &pending.seen, &mut counting, &mut scan.trace)
|
||||
self.rest_of_scope(&mut pending, &mut counting, &mut scan.trace)
|
||||
};
|
||||
debug_assert_eq!(skipped, walked_skips, "the cap reports every skip it counts");
|
||||
ScanTrace::add(&mut scan.trace.discovery_ms, discovering);
|
||||
scan.land_discovery(files, warnings, walked_skips);
|
||||
scan.land_discovery(files, warnings, walked_skips, pending.tracker.has_conflict());
|
||||
scan.trace.measure_work(
|
||||
scan.work.len(),
|
||||
held_bytes(&scan.buffered),
|
||||
@@ -5861,4 +5863,73 @@ mod tests {
|
||||
assert_eq!(ws.index().member("a_pkg", "EDITED").len(), 1, "the live edit is indexed");
|
||||
assert_eq!(ws.index().member("a_pkg", "K").len(), 0);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// TODO §63.2 QA: the trace's arithmetic, attacked with the three
|
||||
// shapes TODO.md names — a buffer that fails to lex, a `define` edit
|
||||
// that changes the macro table, and (below, via the server-level
|
||||
// parity re-run) an edit that moves a fence.
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
/// A buffer that never lexes still reports a `Lex` stage (the failed
|
||||
/// attempt is real work and costs real time) and a `Parse` stage (the
|
||||
/// `parse_source_tolerant` fallback), and still counts as one document.
|
||||
/// `defines`/`analyze`/`external`/`lines` all still run over the empty
|
||||
/// token stream and empty-error tree exactly as the un-instrumented
|
||||
/// path always did — the wrapping must not skip a stage just because
|
||||
/// an earlier one errored.
|
||||
#[test]
|
||||
fn a_buffer_that_fails_to_lex_still_records_every_rebuild_stage() {
|
||||
crate::lint_trace::arm();
|
||||
// An unterminated string literal is an unambiguous lex error that
|
||||
// does not depend on lexer internals that could drift between
|
||||
// versions (`vlog_parser::tokenize` is documented all-or-nothing).
|
||||
let text = "module m;\n string s = \"unterminated\nendmodule\n".to_string();
|
||||
let doc = Document::new(None, text, &WorkspaceIndex::default());
|
||||
assert!(doc.tokens.is_empty(), "a lex failure leaves an empty token stream");
|
||||
assert!(!doc.diagnostics.is_empty(), "a lex failure is a diagnostic");
|
||||
let trace = crate::lint_trace::disarm().expect("armed");
|
||||
// Every stage's field is present on the line, whether or not it
|
||||
// took measurable time (`saw_document`, not a duration, is what
|
||||
// says a rebuild happened at all — see the flaky test this round
|
||||
// fixed in `lint_trace.rs`).
|
||||
let line = trace.line();
|
||||
assert!(line.contains("documents=1"), "{line}");
|
||||
for stage in ["lex=", "parse=", "defines=", "analyze=", "external=", "lines=", "publish="] {
|
||||
assert!(line.contains(stage), "{line}");
|
||||
}
|
||||
}
|
||||
|
||||
/// A `` `define `` edit changes the macro table `collect_defines`
|
||||
/// produces, and nothing about wrapping that call in `rebuild` changes
|
||||
/// which tokens it sees or what it returns: the new revision's table
|
||||
/// reflects only the new text, never a stale value from the revision
|
||||
/// before it (`Document::new` builds a fresh `DefineTable` every time,
|
||||
/// same as before this round).
|
||||
#[test]
|
||||
fn a_define_edit_changes_the_macro_table_the_rebuild_reports_on() {
|
||||
crate::lint_trace::arm();
|
||||
let before = Document::new(
|
||||
None,
|
||||
"`define WIDTH 8\nmodule m;\n wire [`WIDTH-1:0] w;\nendmodule\n".to_string(),
|
||||
&WorkspaceIndex::default(),
|
||||
);
|
||||
assert_eq!(before.defines.latest("WIDTH").map(|d| d.body.trim()), Some("8"));
|
||||
assert!(before.defines.latest("DEPTH").is_none());
|
||||
|
||||
let after = Document::new(
|
||||
None,
|
||||
"`define DEPTH 16\nmodule m;\n wire [`DEPTH-1:0] w;\nendmodule\n".to_string(),
|
||||
&WorkspaceIndex::default(),
|
||||
);
|
||||
assert!(after.defines.latest("WIDTH").is_none(), "no macro survives across documents");
|
||||
assert_eq!(after.defines.latest("DEPTH").map(|d| d.body.trim()), Some("16"));
|
||||
|
||||
let trace = crate::lint_trace::disarm().expect("armed");
|
||||
let line = trace.line();
|
||||
assert!(
|
||||
line.contains("documents=2"),
|
||||
"two fresh Document::new calls, two rebuilds: {line}"
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -168,6 +168,17 @@ pub(super) struct PendingDiscovery {
|
||||
/// one it names here has already been decided about, and deciding twice
|
||||
/// would step a file twice or report one skip as two.
|
||||
pub(super) seen: HashSet<PathBuf>,
|
||||
/// Every directory identity the neighbourhood walk entered, and the path
|
||||
/// it entered each one by.
|
||||
///
|
||||
/// **The two walks share it, and that is what makes them one walk.** An
|
||||
/// ordinary walk visits each directory identity once and reports its files
|
||||
/// under the first spelling that reached it
|
||||
/// (`docs/features/walk-cycles/README.md`); two walks with two sets would
|
||||
/// report a symlinked directory's files twice, under two spellings a path
|
||||
/// set cannot tell apart, and the index would hold every module in it
|
||||
/// twice. Sharing the tracker restores that contract across the split.
|
||||
pub(super) tracker: lucisv_core::walk::DirectoryTracker,
|
||||
}
|
||||
|
||||
/// How many records may be staged before another mid-scan publish is worth the
|
||||
@@ -277,9 +288,40 @@ impl Scan {
|
||||
self.pending.take()
|
||||
}
|
||||
|
||||
/// Whether this scan's answers are right but **spelled** differently from
|
||||
/// what a plain walk of the same tree would spell them, so one ordinary
|
||||
/// rescan is owed.
|
||||
///
|
||||
/// The case: a directory alias outside the open folder's ancestor chain —
|
||||
/// `other/link -> z_real`, with `other` sorting first. The head leads with
|
||||
/// `z_real`; the remaining walk meets `other/link`, recognises the
|
||||
/// directory the head already entered and skips it, so nothing is
|
||||
/// discovered twice and every answer this scan gives is one target and one
|
||||
/// file. But a walk of the root on its own — the next rescan, or a session
|
||||
/// that opens nothing — spells those same files `other/link/…`, and a
|
||||
/// startup that disagreed with every later scan about a path is the defect
|
||||
/// this whole tracker exists to close (`docs/performance_052_review.md`
|
||||
/// F1). So the scan asks for the canonical walk once it has landed, and
|
||||
/// the spelling converges there.
|
||||
///
|
||||
/// **Exactly one rescan can ever come of it.** Only a session's first scan
|
||||
/// splits its discovery ([`Workspace::first_scope`]), so the scan this
|
||||
/// asks for resolves its whole scope in one walk, has no
|
||||
/// [`PendingDiscovery`], and cannot ask again.
|
||||
///
|
||||
/// The answer is the trace's own counter, which is written whether or not
|
||||
/// anybody asked for a trace — like `publishes`, it is a fact about the
|
||||
/// scan rather than a stopwatch reading, so it lives where the scan's
|
||||
/// facts live and the `--verbose` count line says it out loud.
|
||||
pub fn wants_rescan(&self) -> bool {
|
||||
self.trace.rescan_requested > 0
|
||||
}
|
||||
|
||||
/// Fold the rest of the scope into this scan: its files onto the end of
|
||||
/// the work list, its paths into the set the include graph learns from,
|
||||
/// its warnings and its skips onto the scan's own.
|
||||
/// its warnings and its skips onto the scan's own — and whether the walk
|
||||
/// that found them disagreed with the head about a directory's spelling
|
||||
/// ([`Scan::wants_rescan`]).
|
||||
///
|
||||
/// Appended rather than re-ordered: the neighbourhood at the front has
|
||||
/// already been stepped, and `vlog_semantic::IndexBuilder` sorts by path
|
||||
@@ -290,7 +332,10 @@ impl Scan {
|
||||
files: Vec<PathBuf>,
|
||||
warnings: Vec<String>,
|
||||
skipped: usize,
|
||||
conflict: bool,
|
||||
) {
|
||||
self.trace.conflict += usize::from(conflict);
|
||||
self.trace.rescan_requested += usize::from(conflict);
|
||||
self.paths.extend(files.iter().cloned());
|
||||
self.paths.sort();
|
||||
self.paths.dedup();
|
||||
|
||||
@@ -8631,3 +8631,113 @@ fn organize_imports_is_offered_under_its_own_kind_and_runs_as_a_command() {
|
||||
|
||||
let _ = std::fs::remove_dir_all(&dir);
|
||||
}
|
||||
|
||||
/// TODO §64.1 over the wire. `leaf` declares an internal net; `top.sv` names it
|
||||
/// through a hierarchical tail and `leaf.sv` uses it itself. Before §64.1
|
||||
/// `textDocument/references` answered `leaf.sv`'s two lines from the
|
||||
/// declaration and never the tail, while `textDocument/rename` at the same
|
||||
/// position edited both files — lucisv could change a reference it could not
|
||||
/// list. Asserted here from both ends, with `leaf.sv` the only open buffer, so
|
||||
/// the tail comes out of the persisted postings and `leaf.sv`'s own use out of
|
||||
/// the live one; then from `top.sv` with `leaf.sv` closed, where that file's
|
||||
/// own use is served by one re-analysis of it.
|
||||
#[test]
|
||||
fn a_hierarchical_nets_references_and_rename_agree_over_the_wire() {
|
||||
let dir = temp_dir("hierrefs");
|
||||
let leaf = dir.join("leaf.sv");
|
||||
let leaf_text = "\
|
||||
module leaf (input logic clk_i);
|
||||
logic sig;
|
||||
assign sig = clk_i;
|
||||
endmodule
|
||||
";
|
||||
std::fs::write(&leaf, leaf_text).expect("write");
|
||||
let top = dir.join("top.sv");
|
||||
let top_text = "\
|
||||
module top;
|
||||
leaf u_leaf (.clk_i(1'b0));
|
||||
wire w;
|
||||
assign w = u_leaf.sig;
|
||||
endmodule
|
||||
";
|
||||
std::fs::write(&top, top_text).expect("write");
|
||||
|
||||
let root = format!("file://{}", dir.display());
|
||||
let leaf_uri = format!("file://{}", leaf.display());
|
||||
let top_uri = format!("file://{}", top.display());
|
||||
|
||||
// `sig` is declared at line 1 column 8 of `leaf.sv`, used at line 2
|
||||
// column 9 there, and named at line 3 column 20 of `top.sv`.
|
||||
let session = [
|
||||
frame(&format!(
|
||||
r#"{{"jsonrpc":"2.0","id":1,"method":"initialize","params":{{"processId":null,"rootUri":"{root}","capabilities":{{}}}}}}"#
|
||||
)),
|
||||
frame(r#"{"jsonrpc":"2.0","method":"initialized","params":{}}"#),
|
||||
frame(WIDE_SCOPE),
|
||||
frame(&format!(
|
||||
r#"{{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{{"textDocument":{{"uri":"{leaf_uri}","languageId":"systemverilog","version":1,"text":{}}}}}}}"#,
|
||||
serde_json::to_string(leaf_text).expect("json")
|
||||
)),
|
||||
frame(&format!(
|
||||
r#"{{"jsonrpc":"2.0","id":2,"method":"textDocument/references","params":{{"textDocument":{{"uri":"{leaf_uri}"}},"position":{{"line":1,"character":8}},"context":{{"includeDeclaration":true}}}}}}"#
|
||||
)),
|
||||
frame(&format!(
|
||||
r#"{{"jsonrpc":"2.0","id":3,"method":"textDocument/rename","params":{{"textDocument":{{"uri":"{leaf_uri}"}},"position":{{"line":1,"character":8}},"newName":"renamed"}}}}"#
|
||||
)),
|
||||
// Now from the other side, with `leaf.sv` shut.
|
||||
frame(&format!(
|
||||
r#"{{"jsonrpc":"2.0","method":"textDocument/didClose","params":{{"textDocument":{{"uri":"{leaf_uri}"}}}}}}"#
|
||||
)),
|
||||
frame(&format!(
|
||||
r#"{{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{{"textDocument":{{"uri":"{top_uri}","languageId":"systemverilog","version":1,"text":{}}}}}}}"#,
|
||||
serde_json::to_string(top_text).expect("json")
|
||||
)),
|
||||
frame(&format!(
|
||||
r#"{{"jsonrpc":"2.0","id":4,"method":"textDocument/references","params":{{"textDocument":{{"uri":"{top_uri}"}},"position":{{"line":3,"character":20}},"context":{{"includeDeclaration":true}}}}}}"#
|
||||
)),
|
||||
frame(r#"{"jsonrpc":"2.0","id":9,"method":"shutdown","params":null}"#),
|
||||
frame(r#"{"jsonrpc":"2.0","method":"exit","params":null}"#),
|
||||
]
|
||||
.concat();
|
||||
|
||||
let messages = talk(&session);
|
||||
let response = |id: u32| -> &serde_json::Value {
|
||||
messages
|
||||
.iter()
|
||||
.find(|m| m["id"] == id)
|
||||
.unwrap_or_else(|| panic!("no response {id} in {messages:#?}"))
|
||||
};
|
||||
|
||||
// Every place naming the net, as `(file, line)`.
|
||||
let places = |id: u32| -> Vec<(String, i64)> {
|
||||
let mut out: Vec<(String, i64)> = response(id)["result"]
|
||||
.as_array()
|
||||
.expect("a list")
|
||||
.iter()
|
||||
.map(|location| {
|
||||
let uri = location["uri"].as_str().expect("a uri");
|
||||
let name = uri.rsplit('/').next().unwrap_or("?").to_string();
|
||||
(name, location["range"]["start"]["line"].as_i64().expect("a line"))
|
||||
})
|
||||
.collect();
|
||||
out.sort();
|
||||
out
|
||||
};
|
||||
let everywhere =
|
||||
vec![("leaf.sv".to_string(), 1), ("leaf.sv".to_string(), 2), ("top.sv".to_string(), 3)];
|
||||
assert_eq!(places(2), everywhere, "from the declaration");
|
||||
assert_eq!(places(4), everywhere, "from the tail, with `leaf.sv` closed");
|
||||
|
||||
// And the rename that was already editing both files edits exactly those
|
||||
// places — the asymmetry §64.1 was filed for, closed from both sides.
|
||||
let changes = &response(3)["result"]["changes"];
|
||||
let own = changes[&leaf_uri].as_array().expect("edits for the declaring file");
|
||||
assert_eq!(own.len(), 2, "{own:#?}");
|
||||
let elsewhere = changes[&top_uri].as_array().expect("edits for the naming file");
|
||||
assert_eq!(elsewhere.len(), 1, "{elsewhere:#?}");
|
||||
assert_eq!(elsewhere[0]["range"]["start"]["line"], 3);
|
||||
assert_eq!(elsewhere[0]["range"]["start"]["character"], 20);
|
||||
assert!(elsewhere.iter().all(|e| e["newText"] == "renamed"), "{elsewhere:#?}");
|
||||
|
||||
let _ = std::fs::remove_dir_all(&dir);
|
||||
}
|
||||
+280
-62
@@ -403,8 +403,14 @@ impl<'a> RawLexer<'a> {
|
||||
});
|
||||
}
|
||||
|
||||
// Operators, longest match first.
|
||||
// Operators, longest match first. The first-byte test is not a second
|
||||
// way of matching — `starts_with` still decides — it is what keeps a
|
||||
// `;` from being compared against all 42 spellings: one byte compare
|
||||
// rejects every operator that cannot start here (TODO §63.2).
|
||||
for op in OPERATORS {
|
||||
if op.as_bytes()[0] != c {
|
||||
continue;
|
||||
}
|
||||
if self.starts_with(op) {
|
||||
for _ in 0..op.len() {
|
||||
self.bump();
|
||||
@@ -918,80 +924,111 @@ fn is_line_directive(word: &str) -> bool {
|
||||
)
|
||||
}
|
||||
|
||||
/// What the attachment phase carries from one raw token to the next.
|
||||
#[derive(Default)]
|
||||
struct Attaching {
|
||||
/// Comments waiting for the real token they lead.
|
||||
pending: Vec<Comment>,
|
||||
/// Whether a blank line was seen since the last pending comment.
|
||||
pending_blank: bool,
|
||||
}
|
||||
|
||||
/// Tokenize source text, attaching comments and blank-line info to tokens.
|
||||
///
|
||||
/// The two phases are **fused**: each raw token is attached as it is lexed,
|
||||
/// rather than collected into a `Vec<RawTok>` the attachment loop then walks.
|
||||
/// Attachment only ever reads the raw token in hand and the token last pushed,
|
||||
/// so the fusion is a pure reordering — it drops a second whole-file vector
|
||||
/// (a 40 267-line file's worth of it is ~22 MB of allocation, growth copying
|
||||
/// and teardown), which is why the first request after an edit pays less for
|
||||
/// the same tokens (TODO §63.2).
|
||||
pub fn tokenize(source: &str) -> Result<Vec<Token>, LexError> {
|
||||
let mut raw_lexer = RawLexer::new(source.as_bytes());
|
||||
let mut raws: Vec<RawTok> = Vec::new();
|
||||
let mut tokens: Vec<Token> = Vec::with_capacity(estimated_tokens(source.len()));
|
||||
let mut state = Attaching::default();
|
||||
loop {
|
||||
let tok = raw_lexer.next_raw()?;
|
||||
let is_eof = tok.kind == RawKind::Real(TokenKind::Eof);
|
||||
raws.push(tok);
|
||||
let raw = raw_lexer.next_raw()?;
|
||||
let is_eof = raw.kind == RawKind::Real(TokenKind::Eof);
|
||||
attach(raw, &mut tokens, &mut state);
|
||||
if is_eof {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Ok(tokens)
|
||||
}
|
||||
|
||||
// Attachment phase.
|
||||
let mut tokens: Vec<Token> = Vec::new();
|
||||
let mut pending: Vec<Comment> = Vec::new();
|
||||
let mut pending_blank = false;
|
||||
/// How many tokens a source of `bytes` bytes is guessed to hold.
|
||||
///
|
||||
/// Only to spare the growing vector its early doublings; a wrong guess costs
|
||||
/// nothing but the growth it would have paid anyway. Six bytes a token is the
|
||||
/// measured average over the corpus and over opentitan's generated register
|
||||
/// files alike, and the guess is capped so a pathological file (one enormous
|
||||
/// string literal) cannot reserve more than it could ever need.
|
||||
fn estimated_tokens(bytes: usize) -> usize {
|
||||
(bytes / 6).min(1 << 20)
|
||||
}
|
||||
|
||||
for raw in raws {
|
||||
match raw.kind {
|
||||
RawKind::LineComment | RawKind::BlockComment => {
|
||||
let same_line_as_prev =
|
||||
raw.newlines_before == 0 && !tokens.is_empty() && pending.is_empty();
|
||||
let comment = Comment {
|
||||
text: raw.text,
|
||||
blank_before: raw.newlines_before > 1 || pending_blank,
|
||||
line: raw.line,
|
||||
col: raw.col,
|
||||
span: raw.span,
|
||||
};
|
||||
if same_line_as_prev {
|
||||
// Trailing comment for the previous real token.
|
||||
let prev = tokens.last_mut().unwrap();
|
||||
match &mut prev.trailing {
|
||||
Some(existing) => {
|
||||
// Two comments on one line become one node, so its
|
||||
// span has to cover both — the merge normalizes
|
||||
// the gap between them to a single space, which is
|
||||
// why a merged comment is the one comment whose
|
||||
// text can differ from `source[span]`.
|
||||
existing.text.push(' ');
|
||||
existing.text.push_str(&comment.text);
|
||||
existing.span = TextRange::new(existing.span.start, comment.span.end);
|
||||
}
|
||||
None => prev.trailing = Some(comment),
|
||||
}
|
||||
} else {
|
||||
pending.push(comment);
|
||||
pending_blank = false;
|
||||
}
|
||||
}
|
||||
RawKind::Real(kind) => {
|
||||
let blank_before = if pending.is_empty() {
|
||||
raw.newlines_before > 1
|
||||
} else {
|
||||
// Comments already carry their own blank flags; the token
|
||||
// is blank-separated only if there was a blank line
|
||||
// between the last comment and the token itself.
|
||||
raw.newlines_before > 1
|
||||
};
|
||||
tokens.push(Token {
|
||||
kind,
|
||||
text: raw.text,
|
||||
line: raw.line,
|
||||
col: raw.col,
|
||||
span: raw.span,
|
||||
leading: std::mem::take(&mut pending),
|
||||
trailing: None,
|
||||
blank_before,
|
||||
});
|
||||
/// Fold one raw token into the token stream: a comment onto its neighbour,
|
||||
/// a real token onto the end with whatever comments were waiting for it.
|
||||
fn attach(raw: RawTok, tokens: &mut Vec<Token>, state: &mut Attaching) {
|
||||
match raw.kind {
|
||||
RawKind::LineComment | RawKind::BlockComment => {
|
||||
let same_line_as_prev =
|
||||
raw.newlines_before == 0 && !tokens.is_empty() && state.pending.is_empty();
|
||||
let comment = Comment {
|
||||
text: raw.text,
|
||||
blank_before: raw.newlines_before > 1 || state.pending_blank,
|
||||
line: raw.line,
|
||||
col: raw.col,
|
||||
span: raw.span,
|
||||
};
|
||||
// A comment that finds no token to trail — unreachable while
|
||||
// `same_line_as_prev` requires one, kept as a rule rather than a
|
||||
// hope — leads the next token instead of vanishing (invariant 3).
|
||||
let orphan =
|
||||
if same_line_as_prev { attach_trailing(tokens, comment) } else { Some(comment) };
|
||||
if let Some(comment) = orphan {
|
||||
state.pending.push(comment);
|
||||
state.pending_blank = false;
|
||||
}
|
||||
}
|
||||
RawKind::Real(kind) => {
|
||||
// Comments already carry their own blank flags; the token is
|
||||
// blank-separated only if there was a blank line between the last
|
||||
// comment and the token itself — which is the same test either
|
||||
// way, so `pending` does not enter into it.
|
||||
let blank_before = raw.newlines_before > 1;
|
||||
tokens.push(Token {
|
||||
kind,
|
||||
text: raw.text,
|
||||
line: raw.line,
|
||||
col: raw.col,
|
||||
span: raw.span,
|
||||
leading: std::mem::take(&mut state.pending),
|
||||
trailing: None,
|
||||
blank_before,
|
||||
});
|
||||
}
|
||||
}
|
||||
Ok(tokens)
|
||||
}
|
||||
|
||||
/// Hang a comment off the token before it, merging with one already there.
|
||||
/// Handed back untouched when there is no token before it.
|
||||
fn attach_trailing(tokens: &mut [Token], comment: Comment) -> Option<Comment> {
|
||||
let Some(prev) = tokens.last_mut() else { return Some(comment) };
|
||||
match &mut prev.trailing {
|
||||
Some(existing) => {
|
||||
// Two comments on one line become one node, so its span has to
|
||||
// cover both — the merge normalizes the gap between them to a
|
||||
// single space, which is why a merged comment is the one comment
|
||||
// whose text can differ from `source[span]`.
|
||||
existing.text.push(' ');
|
||||
existing.text.push_str(&comment.text);
|
||||
existing.span = TextRange::new(existing.span.start, comment.span.end);
|
||||
}
|
||||
None => prev.trailing = Some(comment),
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
@@ -1510,4 +1547,185 @@ mod tests {
|
||||
assert!(texts.contains(&"!=="));
|
||||
assert!(texts.contains(&"<="));
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// TODO §63.2 QA: the fused attach phase, attacked
|
||||
//
|
||||
// These cover the shapes the two-phase code (a `Vec<RawTok>` fully
|
||||
// built, then walked) could tell apart from the fused one-pass code
|
||||
// (each raw token attached as it is produced) if the fusion were not a
|
||||
// pure reordering: a comment with no token before it at all, comments
|
||||
// that never see a "previous token" until much later, EOF immediately
|
||||
// after a trailing comment, and so on. Every one of these was also
|
||||
// cross-checked, file for file, against `tokenize` built from 1b8723c
|
||||
// (the pre-fusion tree) with a throwaway digest tool in the QA
|
||||
// scratchpad — token-for-token identical, hash and manual `Debug`
|
||||
// inspection alike; the assertions below pin that result durably.
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
#[test]
|
||||
fn a_comment_as_the_very_first_thing_in_the_file_is_the_first_token_s_leading() {
|
||||
let toks = tokenize("// only thing before the module\nmodule m;\nendmodule").unwrap();
|
||||
assert_eq!(toks[0].leading.len(), 1);
|
||||
assert_eq!(toks[0].leading[0].text, "// only thing before the module");
|
||||
assert!(!toks[0].leading[0].blank_before);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn two_comments_on_the_first_line_before_any_token_both_lead_it() {
|
||||
// Two *separate* comments here means two lines, each its own line
|
||||
// comment (a line comment always runs to end of line, so "two
|
||||
// comments on one line" before any token is only possible with
|
||||
// block comments — covered by `two_block_comments_on_one_line_merge`
|
||||
// below).
|
||||
let toks = tokenize("// one\n// two\nmodule m;\nendmodule").unwrap();
|
||||
assert_eq!(toks[0].leading.len(), 2);
|
||||
assert_eq!(toks[0].leading[0].text, "// one");
|
||||
assert_eq!(toks[0].leading[1].text, "// two");
|
||||
assert!(!toks[0].leading[1].blank_before);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_trailing_comment_after_the_last_real_token_reaches_eof() {
|
||||
let toks = tokenize("module m;\nendmodule // trailing at eof\n").unwrap();
|
||||
let end = toks.iter().find(|t| t.is_kw("endmodule")).unwrap();
|
||||
let trailing = end.trailing.as_ref().expect("trailing comment on endmodule");
|
||||
assert_eq!(trailing.text, "// trailing at eof");
|
||||
assert_eq!(toks.last().unwrap().kind, TokenKind::Eof);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn two_block_comments_on_one_line_merge_into_one_trailing_comment() {
|
||||
let toks = tokenize("wire w; /* one */ /* two */\nendmodule").unwrap();
|
||||
let semi = toks.iter().find(|t| t.is_sym(";")).unwrap();
|
||||
let trailing = semi.trailing.as_ref().expect("merged trailing comment");
|
||||
assert_eq!(trailing.text, "/* one */ /* two */");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_blank_line_between_a_comment_and_its_token_marks_both() {
|
||||
let toks = tokenize("// lead\n\nmodule m;\nendmodule").unwrap();
|
||||
assert_eq!(toks[0].leading.len(), 1);
|
||||
// The comment itself is not blank-separated from what came before it
|
||||
// (nothing did); the blank line sits between the comment and the
|
||||
// token, so the *token* carries the flag.
|
||||
assert!(!toks[0].leading[0].blank_before);
|
||||
assert!(toks[0].blank_before);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn crlf_line_endings_lex_like_lf_with_the_same_comment_attachment() {
|
||||
let toks = tokenize("module m; // c\r\nendmodule\r\n").unwrap();
|
||||
let semi = toks.iter().find(|t| t.is_sym(";")).unwrap();
|
||||
assert_eq!(semi.trailing.as_ref().unwrap().text, "// c");
|
||||
let end = toks.iter().find(|t| t.is_kw("endmodule")).unwrap();
|
||||
assert_eq!(end.line, 2);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_block_comment_spanning_lines_still_leads_a_same_line_token() {
|
||||
let toks = tokenize("/* block\n spanning\n lines */ module m;\nendmodule").unwrap();
|
||||
assert_eq!(toks[0].leading.len(), 1);
|
||||
assert!(toks[0].leading[0].text.starts_with("/* block"));
|
||||
assert!(toks[0].leading[0].text.ends_with("lines */"));
|
||||
// The module keyword itself sits on the block comment's last line.
|
||||
assert_eq!(toks[0].line, 3);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_comment_between_a_macro_invocation_and_its_arguments_trails_the_macro() {
|
||||
let toks = tokenize("module m;\n`MYMACRO /*c*/ (a, b);\nendmodule").unwrap();
|
||||
let mac = toks.iter().find(|t| t.text == "`MYMACRO").unwrap();
|
||||
assert_eq!(mac.trailing.as_ref().unwrap().text, "/*c*/");
|
||||
// The macro call's parenthesized arguments are unaffected — still
|
||||
// ordinary tokens right after, comment or not.
|
||||
let open_paren_idx = toks.iter().position(|t| t.is_sym("(")).unwrap();
|
||||
assert_eq!(toks[open_paren_idx + 1].text, "a");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_file_that_is_only_comments_attaches_them_all_to_the_synthetic_eof() {
|
||||
let toks = tokenize("// only a comment, nothing else\n").unwrap();
|
||||
assert_eq!(toks.len(), 1);
|
||||
assert_eq!(toks[0].kind, TokenKind::Eof);
|
||||
assert_eq!(toks[0].leading.len(), 1);
|
||||
assert_eq!(toks[0].leading[0].text, "// only a comment, nothing else");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn an_empty_file_lexes_to_a_lone_eof_with_no_comments() {
|
||||
let toks = tokenize("").unwrap();
|
||||
assert_eq!(toks.len(), 1);
|
||||
assert_eq!(toks[0].kind, TokenKind::Eof);
|
||||
assert!(toks[0].leading.is_empty());
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// TODO §63.2 QA: the operator table's first-byte test
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
#[test]
|
||||
fn every_operator_s_first_byte_is_a_single_ascii_byte() {
|
||||
// `op.as_bytes()[0] != c` compares one byte of `c: u8` against the
|
||||
// table entry's first *byte*. If any entry's first character were
|
||||
// multi-byte UTF-8, its first byte alone would not identify it and
|
||||
// the guard could reject a spelling it should have let through. Every
|
||||
// entry here is pure ASCII punctuation, so the byte comparison is the
|
||||
// whole character.
|
||||
for op in OPERATORS {
|
||||
let first = op.chars().next().expect("no empty operator spellings");
|
||||
assert!(first.is_ascii(), "{op:?} does not start with an ASCII byte");
|
||||
assert_eq!(
|
||||
op.as_bytes()[0],
|
||||
first as u8,
|
||||
"{op:?}'s first byte does not match its first char"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn the_operator_table_has_no_duplicate_or_empty_entries() {
|
||||
// A duplicate wastes a comparison; an empty entry would make
|
||||
// `op.as_bytes()[0]` panic before ever reaching `starts_with`.
|
||||
for op in OPERATORS {
|
||||
assert!(!op.is_empty());
|
||||
}
|
||||
let mut sorted = OPERATORS.to_vec();
|
||||
sorted.sort_unstable();
|
||||
sorted.dedup();
|
||||
assert_eq!(sorted.len(), OPERATORS.len(), "OPERATORS has a duplicate entry");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn every_operator_followed_by_every_other_operator_still_lexes_without_a_gap() {
|
||||
// The first-byte test must not change *which* entry `starts_with`
|
||||
// picks — only how many entries are tried before it does. Lexing
|
||||
// every `op1 op2` concatenation (no space) and requiring the token
|
||||
// stream to account for every byte with no lex error is the
|
||||
// regression gate: a wrong short-circuit would either misplace the
|
||||
// split point or leave a byte unconsumed. Cross-checked pair for
|
||||
// pair against `tokenize` built from 1b8723c (pre-first-byte-test)
|
||||
// in the QA scratchpad: 1 764 pairs, 0 differ.
|
||||
for &op1 in OPERATORS {
|
||||
for &op2 in OPERATORS {
|
||||
let src = format!("{op1}{op2} ;");
|
||||
let toks = tokenize(&src)
|
||||
.unwrap_or_else(|e| panic!("lexing {op1:?} followed by {op2:?} failed: {e}"));
|
||||
// Everything up to the space must be Symbol tokens whose
|
||||
// texts concatenate back to exactly op1 followed by op2,
|
||||
// with no gap and no overlap.
|
||||
let mut consumed = String::new();
|
||||
let mut i = 0;
|
||||
while toks[i].kind == TokenKind::Symbol && toks[i].text != ";" {
|
||||
consumed.push_str(&toks[i].text);
|
||||
i += 1;
|
||||
}
|
||||
assert_eq!(
|
||||
consumed,
|
||||
format!("{op1}{op2}"),
|
||||
"{op1:?} followed by {op2:?} did not round-trip"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -53,11 +53,11 @@ impl<'a> Parser<'a> {
|
||||
let start = self.here();
|
||||
let col = self.cur().col;
|
||||
if self.cur().kind == TokenKind::Ident && self.nth(1).is_sym(":") {
|
||||
self.bump();
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.skip();
|
||||
}
|
||||
// `assert` / `assume` / `cover` / `restrict`.
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.expect_kw("property")?;
|
||||
self.expect_sym("(")?;
|
||||
self.skip_balanced("(", ")")?;
|
||||
@@ -132,22 +132,22 @@ impl<'a> Parser<'a> {
|
||||
at_stmt_start = false;
|
||||
let t = self.cur();
|
||||
if t.is_sym("(") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.skip_balanced("(", ")")?;
|
||||
} else if t.is_sym("[") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.skip_balanced("[", "]")?;
|
||||
} else if t.is_sym("{") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.skip_balanced("{", "}")?;
|
||||
} else if (t.is_kw("disable") || t.is_kw("wait")) && self.nth(1).is_kw("fork") {
|
||||
// `disable fork` / `wait fork` name the enclosing block; they
|
||||
// do not open one.
|
||||
self.bump();
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.skip();
|
||||
} else if BLOCK_OPENERS.iter().any(|k| t.is_kw(k)) {
|
||||
depth += 1;
|
||||
self.bump();
|
||||
self.skip();
|
||||
} else if BLOCK_CLOSERS.iter().any(|k| t.is_kw(k)) {
|
||||
if depth == 0 {
|
||||
// A closer with nothing open: the action statement is
|
||||
@@ -156,7 +156,7 @@ impl<'a> Parser<'a> {
|
||||
return self.error("expected `;`");
|
||||
}
|
||||
depth -= 1;
|
||||
self.bump();
|
||||
self.skip();
|
||||
if depth == 0 {
|
||||
self.parse_label()?;
|
||||
if !self.eat_kw("else") {
|
||||
@@ -167,7 +167,7 @@ impl<'a> Parser<'a> {
|
||||
} else if depth == 0 && self.eat_sym(";") {
|
||||
return Ok(());
|
||||
} else {
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -199,9 +199,9 @@ impl<'a> Parser<'a> {
|
||||
let start = self.here();
|
||||
let col = self.cur().col;
|
||||
let end_kw = if self.cur().is_kw("sequence") { "endsequence" } else { "endproperty" };
|
||||
self.bump();
|
||||
self.skip();
|
||||
while !self.at_eof() && !self.cur().is_kw(end_kw) {
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
self.expect_closer(end_kw)?;
|
||||
self.parse_label()?;
|
||||
@@ -220,7 +220,7 @@ impl<'a> Parser<'a> {
|
||||
fn parse_default_disable(&mut self) -> PResult<RawText> {
|
||||
let start = self.here();
|
||||
let col = self.cur().col;
|
||||
self.bump(); // default
|
||||
self.skip(); // default
|
||||
self.expect_kw("disable")?;
|
||||
self.expect_kw("iff")?;
|
||||
self.skip_to_semi()?;
|
||||
@@ -252,7 +252,7 @@ impl<'a> Parser<'a> {
|
||||
fn parse_prop_seq_decl_inner(&mut self) -> PResult<PropSeqDecl> {
|
||||
let kw = self.cur().text.clone();
|
||||
let end_kw = if kw == "sequence" { "endsequence" } else { "endproperty" };
|
||||
self.bump();
|
||||
self.skip();
|
||||
let before_name = self.take_gap();
|
||||
let name = self.expect_name()?;
|
||||
let before_args = self.take_before_open("(");
|
||||
@@ -407,7 +407,7 @@ impl<'a> Parser<'a> {
|
||||
let mut action = ActionBlock::default();
|
||||
if self.cur().is_sym(";") {
|
||||
action.before = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
return Ok(action);
|
||||
}
|
||||
if !self.cur().is_kw("else") {
|
||||
@@ -415,7 +415,7 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
if self.cur().is_kw("else") {
|
||||
action.before_else = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
action.after_else = self.take_gap();
|
||||
action.fail = Some(Box::new(self.parse_stmt()?));
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ impl<'a> Parser<'a> {
|
||||
let mut after_hash = Vec::new();
|
||||
let mut param_directives = Vec::new();
|
||||
if self.cur().is_sym("#") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
after_hash = self.take_gap();
|
||||
self.expect_sym("(")?;
|
||||
let mark = self.diags_mark();
|
||||
@@ -305,7 +305,7 @@ impl<'a> Parser<'a> {
|
||||
return self.parse_constraint_foreach();
|
||||
}
|
||||
if self.cur().is_kw("unique") && self.nth(1).is_sym("{") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let comments = self.take_gap();
|
||||
let items = self.parse_constraint_expr_set()?;
|
||||
return Ok(ConstraintItemKind::Unique { items, comments });
|
||||
@@ -314,9 +314,9 @@ impl<'a> Parser<'a> {
|
||||
// `soft` is matched by text, for the reason `parse_constraint_expr`
|
||||
// gives.
|
||||
if self.cur().is_kw("disable") && word_at(self.nth(1), "soft") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let before = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after = self.take_gap();
|
||||
let expr = self.parse_expr()?;
|
||||
return Ok(ConstraintItemKind::DisableSoft {
|
||||
@@ -341,7 +341,7 @@ impl<'a> Parser<'a> {
|
||||
let soft = self.at_soft_constraint();
|
||||
let mut after_soft = Vec::new();
|
||||
if soft {
|
||||
self.bump();
|
||||
self.skip();
|
||||
after_soft = self.take_gap();
|
||||
}
|
||||
let mark = self.pending_trailing.len();
|
||||
@@ -374,7 +374,7 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
if !soft && self.cur().is_sym("->") {
|
||||
let before = self.take_around(mark);
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after = self.take_around(mark);
|
||||
let set = self.parse_constraint_set()?;
|
||||
return Ok(ConstraintItemKind::Implication {
|
||||
@@ -403,7 +403,7 @@ impl<'a> Parser<'a> {
|
||||
let mut els = None;
|
||||
if self.cur().is_kw("else") {
|
||||
else_comments = self.take_dangling();
|
||||
self.bump();
|
||||
self.skip();
|
||||
// The gap after `else` is this item's when the set it introduces
|
||||
// opens with a token of its own — a `{`, or the `if` of a chain.
|
||||
// A set written on the next line leaves it to that item's own
|
||||
@@ -458,13 +458,13 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
|
||||
fn parse_solve_before(&mut self) -> PResult<ConstraintItemKind> {
|
||||
self.bump(); // solve
|
||||
self.skip(); // solve
|
||||
let solve = self.parse_solve_operands()?;
|
||||
if !word_at(self.cur(), "before") {
|
||||
return self.error("expected `before`");
|
||||
}
|
||||
let before_comments = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let before = self.parse_solve_operands()?;
|
||||
Ok(ConstraintItemKind::SolveBefore { solve, before_comments, before })
|
||||
}
|
||||
@@ -526,7 +526,7 @@ impl<'a> Parser<'a> {
|
||||
expr: Expr,
|
||||
before: Vec<Comment>,
|
||||
) -> PResult<Expr> {
|
||||
self.bump(); // dist
|
||||
self.skip(); // dist
|
||||
let after = self.take_gap();
|
||||
self.expect_sym("{")?;
|
||||
let mut weights: Vec<DistItem> = Vec::new();
|
||||
@@ -539,8 +539,8 @@ impl<'a> Parser<'a> {
|
||||
let mut op_comments = BinaryComments::default();
|
||||
if let Some(spelling) = self.dist_weight_op() {
|
||||
op_comments.before = self.take_gap();
|
||||
self.bump();
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.skip();
|
||||
op_comments.after = self.take_gap();
|
||||
op = Some(spelling.to_string());
|
||||
weight = Some(self.parse_ternary()?);
|
||||
|
||||
@@ -56,7 +56,7 @@ impl<'a> Parser<'a> {
|
||||
self.take_member_prefix();
|
||||
self.expect_kw("covergroup")?;
|
||||
while !self.at_eof() && !self.cur().is_kw("endgroup") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
self.expect_closer("endgroup")?;
|
||||
self.parse_label()?;
|
||||
@@ -139,7 +139,7 @@ impl<'a> Parser<'a> {
|
||||
fn parse_coverage_event(&mut self) -> PResult<Option<CoverageEvent>> {
|
||||
if self.cur().is_kw("with") {
|
||||
let before_with = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_with = self.take_gap();
|
||||
self.expect_kw("function")?;
|
||||
let after_function = self.take_gap();
|
||||
@@ -147,7 +147,7 @@ impl<'a> Parser<'a> {
|
||||
return self.error("expected `sample`");
|
||||
}
|
||||
let name = Name { text: self.cur().text.clone(), span: self.cur().span };
|
||||
self.bump();
|
||||
self.skip();
|
||||
let before_args = self.take_before_open("(");
|
||||
let has_parens = self.cur().is_sym("(");
|
||||
let args = self.parse_tf_ports(false)?.args;
|
||||
@@ -163,7 +163,7 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
if self.cur().is_sym("@") {
|
||||
let before = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let sens = self.parse_sens_list()?;
|
||||
return Ok(Some(CoverageEvent::Clocking { before, sens }));
|
||||
}
|
||||
@@ -206,9 +206,9 @@ impl<'a> Parser<'a> {
|
||||
&& (word_at(self.nth(2), "coverpoint") || word_at(self.nth(2), "cross"))
|
||||
{
|
||||
let name = Name { text: self.cur().text.clone(), span: self.cur().span };
|
||||
self.bump();
|
||||
self.skip();
|
||||
let before = self.take_gap();
|
||||
self.bump(); // :
|
||||
self.skip(); // :
|
||||
let after = self.take_gap();
|
||||
Some(CoverLabel { name, comments: Box::new(BinaryComments { before, after }) })
|
||||
} else {
|
||||
@@ -224,7 +224,7 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
|
||||
fn parse_coverpoint(&mut self, label: Option<CoverLabel>) -> PResult<CoverpointDecl> {
|
||||
self.bump(); // coverpoint
|
||||
self.skip(); // coverpoint
|
||||
let after_kw = self.take_gap();
|
||||
let expr = self.parse_expr()?;
|
||||
let iff = self.parse_cover_iff()?;
|
||||
@@ -234,7 +234,7 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
|
||||
fn parse_cross(&mut self, label: Option<CoverLabel>) -> PResult<CrossDecl> {
|
||||
self.bump(); // cross
|
||||
self.skip(); // cross
|
||||
let after_kw = self.take_gap();
|
||||
let mut items: Vec<ExprItem> = Vec::new();
|
||||
loop {
|
||||
@@ -265,7 +265,7 @@ impl<'a> Parser<'a> {
|
||||
return Ok(None);
|
||||
}
|
||||
let before_kw = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_kw = self.take_gap();
|
||||
self.expect_sym("(")?;
|
||||
let after_open = self.take_gap();
|
||||
@@ -356,13 +356,13 @@ impl<'a> Parser<'a> {
|
||||
let wildcard = word_at(self.cur(), "wildcard") && bin_kind_at(self.nth(1)).is_some();
|
||||
let mut after_wildcard = Vec::new();
|
||||
if wildcard {
|
||||
self.bump();
|
||||
self.skip();
|
||||
after_wildcard = self.take_gap();
|
||||
}
|
||||
let Some(kind) = bin_kind_at(self.cur()) else {
|
||||
return self.error("expected `bins`, `ignore_bins` or `illegal_bins`");
|
||||
};
|
||||
self.bump();
|
||||
self.skip();
|
||||
let before_name = self.take_gap();
|
||||
let name = self.expect_name()?;
|
||||
let array = self.parse_bin_array()?;
|
||||
@@ -392,7 +392,7 @@ impl<'a> Parser<'a> {
|
||||
return Ok(None);
|
||||
}
|
||||
let before = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let inner_before = self.take_gap();
|
||||
let size = if self.cur().is_sym("]") { None } else { Some(self.parse_expr()?) };
|
||||
let inner_after = self.gap_before("]");
|
||||
@@ -412,12 +412,12 @@ impl<'a> Parser<'a> {
|
||||
/// `bins b = (1'b1[*5]);` wrong.
|
||||
fn parse_bin_spec(&mut self, in_cross: bool) -> PResult<BinSpec> {
|
||||
if self.cur().is_kw("default") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
// `sequence` really is a lexer keyword (a `sequence ... endsequence`
|
||||
// declaration), so this one is not matched by text.
|
||||
if self.cur().is_kw("sequence") {
|
||||
let comments = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
return Ok(BinSpec::DefaultSequence { comments });
|
||||
}
|
||||
return Ok(BinSpec::Default);
|
||||
@@ -446,7 +446,7 @@ impl<'a> Parser<'a> {
|
||||
break;
|
||||
}
|
||||
let before = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after = self.take_gap();
|
||||
arrow = BinaryComments { before, after };
|
||||
}
|
||||
@@ -494,7 +494,7 @@ impl<'a> Parser<'a> {
|
||||
return Ok(None);
|
||||
}
|
||||
let before = self.take_gap();
|
||||
self.bump(); // [
|
||||
self.skip(); // [
|
||||
let after_open = self.take_gap();
|
||||
let op = self.bump().text;
|
||||
let inner_before = self.take_gap();
|
||||
@@ -503,7 +503,7 @@ impl<'a> Parser<'a> {
|
||||
let mut hi = None;
|
||||
if self.cur().is_sym(":") {
|
||||
colon.before = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
colon.after = self.take_gap();
|
||||
hi = Some(self.parse_expr()?);
|
||||
}
|
||||
@@ -541,13 +541,13 @@ impl<'a> Parser<'a> {
|
||||
|
||||
fn parse_select_primary(&mut self) -> PResult<SelectExpr> {
|
||||
if self.cur().is_sym("!") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let comments = self.take_gap();
|
||||
let expr = self.parse_select_primary()?;
|
||||
return Ok(SelectExpr::Not { comments, expr: Box::new(expr) });
|
||||
}
|
||||
if self.cur().is_sym("(") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let before = self.take_gap();
|
||||
let expr = self.parse_select_expr()?;
|
||||
let after = self.gap_before(")");
|
||||
@@ -577,7 +577,7 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
|
||||
fn parse_binsof(&mut self) -> PResult<BinsofSel> {
|
||||
self.bump(); // binsof
|
||||
self.skip(); // binsof
|
||||
let after_kw = self.take_gap();
|
||||
self.expect_sym("(")?;
|
||||
let after_open = self.take_gap();
|
||||
@@ -589,7 +589,7 @@ impl<'a> Parser<'a> {
|
||||
let mut intersect = None;
|
||||
if word_at(self.cur(), "intersect") {
|
||||
before_intersect = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
after_intersect = self.take_gap();
|
||||
intersect = Some(self.parse_constraint_expr_set()?);
|
||||
}
|
||||
@@ -610,7 +610,7 @@ impl<'a> Parser<'a> {
|
||||
return Ok(None);
|
||||
}
|
||||
let before_kw = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_kw = self.take_gap();
|
||||
self.expect_sym("(")?;
|
||||
let after_open = self.take_gap();
|
||||
|
||||
@@ -63,6 +63,31 @@ impl<'a> Parser<'a> {
|
||||
t
|
||||
}
|
||||
|
||||
/// Consume the current token without building a copy of it.
|
||||
///
|
||||
/// Exactly [`Parser::bump`] for the caller that throws the token away —
|
||||
/// the same comment plumbing, the same cursor step, the same `self.tokens`
|
||||
/// left untouched — minus the clone. `bump` copies the token's `text`
|
||||
/// (a `String`, so an allocation) and its comment buckets for a value most
|
||||
/// callers drop on the next line; on a 40 267-line generated file that is
|
||||
/// one allocate-and-free per token consumed (TODO §63.2).
|
||||
pub(super) fn skip(&mut self) {
|
||||
let token = &self.tokens[self.pos];
|
||||
// Cloned rather than moved out, because `bump` moved them out of its
|
||||
// *copy*: the stream keeps its comments either way, which is what the
|
||||
// rewind of a speculative parse relies on.
|
||||
let (mut leading, trailing) = (token.leading.clone(), token.trailing.clone());
|
||||
if self.pos + 1 < self.tokens.len() {
|
||||
self.pos += 1;
|
||||
}
|
||||
if !leading.is_empty() {
|
||||
self.pending_leading.append(&mut leading);
|
||||
}
|
||||
if let Some(trailing) = trailing {
|
||||
self.pending_trailing.push(trailing);
|
||||
}
|
||||
}
|
||||
|
||||
/// Open one level of nesting, refusing to recurse past
|
||||
/// [`MAX_NESTING_DEPTH`]. Callers that succeed must pair this with
|
||||
/// [`Parser::leave`] on every path out, including the error paths.
|
||||
@@ -199,7 +224,7 @@ impl<'a> Parser<'a> {
|
||||
|
||||
pub(super) fn eat_sym(&mut self, sym: &str) -> bool {
|
||||
if self.cur().is_sym(sym) {
|
||||
self.bump();
|
||||
self.skip();
|
||||
true
|
||||
} else {
|
||||
false
|
||||
@@ -208,7 +233,7 @@ impl<'a> Parser<'a> {
|
||||
|
||||
pub(super) fn eat_kw(&mut self, kw: &str) -> bool {
|
||||
if self.cur().is_kw(kw) {
|
||||
self.bump();
|
||||
self.skip();
|
||||
true
|
||||
} else {
|
||||
false
|
||||
|
||||
@@ -39,7 +39,7 @@ impl<'a> Parser<'a> {
|
||||
// this function with the `virtual` already taken into
|
||||
// `DataDecl::qualifiers`, so this only fires for the other positions.)
|
||||
if self.cur().is_kw("virtual") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
ty.virt =
|
||||
Some(if self.eat_kw("interface") { VirtualKw::Interface } else { VirtualKw::Bare });
|
||||
// `virtual spi_if.tb sif` — a modport-qualified virtual interface
|
||||
@@ -97,12 +97,12 @@ impl<'a> Parser<'a> {
|
||||
// comment inside the brackets could attach.
|
||||
let mut comments =
|
||||
SegmentComments { before_open: self.take_gap(), ..Default::default() };
|
||||
self.bump();
|
||||
self.skip();
|
||||
comments.after_open = self.take_gap();
|
||||
let kind = if self.cur().is_sym("]") {
|
||||
// `[]` — a dynamic array.
|
||||
comments.before_close = std::mem::take(&mut comments.after_open);
|
||||
self.bump();
|
||||
self.skip();
|
||||
dims.push(Dim {
|
||||
kind: DimKind::Dynamic,
|
||||
comments: Box::new(comments),
|
||||
@@ -111,7 +111,7 @@ impl<'a> Parser<'a> {
|
||||
continue;
|
||||
} else if self.cur().is_sym("*") && self.nth(1).is_sym("]") {
|
||||
// `[*]` — a wildcard-keyed associative array.
|
||||
self.bump();
|
||||
self.skip();
|
||||
DimKind::Wildcard
|
||||
} else {
|
||||
let a = self.parse_expr()?;
|
||||
@@ -303,7 +303,7 @@ impl<'a> Parser<'a> {
|
||||
// `wire /* c */ #5 w;`. Taken only here — when the read does not
|
||||
// happen the gap belongs to whatever comes next.
|
||||
let before_hash = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_hash = self.take_gap();
|
||||
Ok(Some(NetDelay { before_hash, after_hash, expr: self.parse_delay_value()?, after_type }))
|
||||
}
|
||||
@@ -392,7 +392,7 @@ impl<'a> Parser<'a> {
|
||||
let mut eq_comments = BinaryComments::default();
|
||||
let value = if self.cur().is_sym("=") {
|
||||
eq_comments.before = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
eq_comments.after = self.take_gap();
|
||||
Some(self.parse_expr()?)
|
||||
} else {
|
||||
@@ -436,7 +436,7 @@ impl<'a> Parser<'a> {
|
||||
// grammar of their own and are still a clean parse error.
|
||||
let tagged = word_at(self.cur(), "tagged");
|
||||
if tagged {
|
||||
self.bump();
|
||||
self.skip();
|
||||
header_comments.after_tagged = self.take_gap();
|
||||
}
|
||||
let packed = self.eat_kw("packed");
|
||||
|
||||
@@ -347,8 +347,8 @@ impl<'a> Parser<'a> {
|
||||
let raw = if self.at_spaced_macro_call() {
|
||||
let start = self.here();
|
||||
let col = self.cur().col;
|
||||
self.bump(); // `NAME
|
||||
self.bump(); // (
|
||||
self.skip(); // `NAME
|
||||
self.skip(); // (
|
||||
self.skip_balanced("(", ")")?;
|
||||
// Verbatim, space included: the argument text is preprocessor
|
||||
// input lucisv does not model, and closing the gap would make the
|
||||
|
||||
@@ -64,7 +64,7 @@ impl<'a> Parser<'a> {
|
||||
// Each of the four gaps inside a `? :` can hold comments; kept
|
||||
// apart so none of them drifts across the `?` or the `:`.
|
||||
let before_question = self.take_around(mark);
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_question = self.take_around(mark);
|
||||
let then = self.parse_expr()?;
|
||||
let before_colon = self.take_around(mark);
|
||||
@@ -144,7 +144,7 @@ impl<'a> Parser<'a> {
|
||||
// The word is an operator like any other, and keeps the
|
||||
// comments written on either side of it the same way.
|
||||
let before = self.take_around(mark);
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after = self.take_around(mark);
|
||||
let comments = Box::new(BinaryComments { before, after });
|
||||
// `x inside `MACRO` — the macro expands to the `{...}` set,
|
||||
@@ -324,7 +324,7 @@ impl<'a> Parser<'a> {
|
||||
let base = Box::new(base);
|
||||
if self.cur().is_sym(".") || self.cur().is_sym("::") {
|
||||
let scoped = self.cur().is_sym("::");
|
||||
self.bump();
|
||||
self.skip();
|
||||
comments.after_open = self.take_gap();
|
||||
let name = self.expect_ident()?;
|
||||
let comments = Box::new(comments);
|
||||
@@ -415,7 +415,7 @@ impl<'a> Parser<'a> {
|
||||
before_open: self.take_before_open("("),
|
||||
..CallComments::default()
|
||||
};
|
||||
self.bump();
|
||||
self.skip();
|
||||
let mut args = Vec::new();
|
||||
if !self.cur().is_sym(")") {
|
||||
let arg_start = self.here();
|
||||
@@ -462,14 +462,14 @@ impl<'a> Parser<'a> {
|
||||
},
|
||||
);
|
||||
} else if self.nth(1).is_sym("[") {
|
||||
self.bump(); // with
|
||||
self.skip(); // with
|
||||
let range = self.parse_stream_range(comments)?;
|
||||
expr = self.expr_at(
|
||||
start,
|
||||
ExprKind::StreamWith { base: Box::new(expr), range: Box::new(range) },
|
||||
);
|
||||
} else {
|
||||
self.bump(); // with
|
||||
self.skip(); // with
|
||||
comments.after_kw = self.take_before_open("(");
|
||||
// `( expression )` — an ordinary parenthesized primary,
|
||||
// which is what IEEE 1800 §7.12 spells here.
|
||||
@@ -511,9 +511,9 @@ impl<'a> Parser<'a> {
|
||||
},
|
||||
);
|
||||
} else {
|
||||
self.bump(); // '
|
||||
self.skip(); // '
|
||||
comments.after_tick = self.take_gap();
|
||||
self.bump(); // (
|
||||
self.skip(); // (
|
||||
comments.after_open = self.take_gap();
|
||||
let inner = self.parse_expr()?;
|
||||
comments.before_close = self.gap_before(")");
|
||||
|
||||
@@ -24,7 +24,7 @@ impl<'a> Parser<'a> {
|
||||
let mut after_hash = Vec::new();
|
||||
let mut after_delay = Vec::new();
|
||||
let delay = if self.cur().is_sym("#") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
after_hash = self.take_gap();
|
||||
let delay = self.parse_delay_value()?;
|
||||
// The gap between the delay and the first left-hand side is the
|
||||
@@ -82,7 +82,7 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
let mut comments =
|
||||
Box::new(DriveStrengthComments { before_open: self.take_gap(), ..Default::default() });
|
||||
self.bump(); // (
|
||||
self.skip(); // (
|
||||
comments.after_open = self.take_gap();
|
||||
let first = self.bump().text;
|
||||
// The gap after the first strength ends either at the `,` or at the
|
||||
@@ -121,7 +121,7 @@ impl<'a> Parser<'a> {
|
||||
// What is written just inside the `(` belongs to the first value; the
|
||||
// gap before each `,` and the gap after it belong to the values either
|
||||
// side of it.
|
||||
self.bump();
|
||||
self.skip();
|
||||
let mut leading = self.take_gap();
|
||||
let mut out: Vec<DelayValue> = Vec::new();
|
||||
loop {
|
||||
@@ -242,7 +242,7 @@ impl<'a> Parser<'a> {
|
||||
|
||||
/// `bind <target> [: <inst>, ...] <module> [#(...)] <name> (...);`
|
||||
pub(super) fn parse_bind(&mut self) -> PResult<BindDirective> {
|
||||
self.bump(); // `bind`
|
||||
self.skip(); // `bind`
|
||||
// The target is a bare string, so a comment written before it has no
|
||||
// node to attach to: harvest it here, where source order is still
|
||||
// known, rather than letting it drift onto the instance below.
|
||||
@@ -250,7 +250,7 @@ impl<'a> Parser<'a> {
|
||||
let start = self.here();
|
||||
let mut target = vec![self.parse_path_segment()?];
|
||||
while self.cur().is_sym(".") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
target.push(self.parse_path_segment()?);
|
||||
}
|
||||
let target_span = self.span_from(start);
|
||||
@@ -278,7 +278,7 @@ impl<'a> Parser<'a> {
|
||||
let start = self.here();
|
||||
let mut text = self.expect_ident()?;
|
||||
while self.cur().is_sym(".") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let segment = self.expect_ident()?;
|
||||
Self::push_path_segment(&mut text, &segment);
|
||||
}
|
||||
@@ -301,7 +301,7 @@ impl<'a> Parser<'a> {
|
||||
let module_start = self.here();
|
||||
let mut module = self.expect_ident()?;
|
||||
while self.cur().is_sym("::") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let segment = self.expect_ident()?;
|
||||
Self::push_scope_segment(&mut module, &segment);
|
||||
}
|
||||
@@ -312,7 +312,7 @@ impl<'a> Parser<'a> {
|
||||
let mut after_hash = Vec::new();
|
||||
let mut param_directives = Vec::new();
|
||||
if self.cur().is_sym("#") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
after_hash = self.take_gap();
|
||||
self.expect_sym("(")?;
|
||||
let mut list = Vec::new();
|
||||
@@ -571,7 +571,7 @@ impl<'a> Parser<'a> {
|
||||
// `.name(/* unused */)`: the comments were written inside
|
||||
// these parens and are printed back inside them.
|
||||
let inside = self.take_around(mark);
|
||||
self.bump();
|
||||
self.skip();
|
||||
Some(self.expr_at(paren_start, ExprKind::Empty(inside)))
|
||||
} else {
|
||||
after_open = self.take_gap();
|
||||
@@ -684,7 +684,7 @@ impl<'a> Parser<'a> {
|
||||
let start = self.here();
|
||||
let col = self.cur().col;
|
||||
while self.pos < end_pos && !self.at_eof() {
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
let raw = self.verbatim_since(start, col);
|
||||
self.expr_at(start, ExprKind::Verbatim(raw))
|
||||
@@ -699,7 +699,7 @@ impl<'a> Parser<'a> {
|
||||
let before_hash = self.take_before_open("#");
|
||||
let mut after_hash = Vec::new();
|
||||
let delay = if self.cur().is_sym("#") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
after_hash = self.take_gap();
|
||||
self.parse_delay_values()?
|
||||
} else {
|
||||
|
||||
@@ -155,7 +155,7 @@ impl<'a> Parser<'a> {
|
||||
// `TokenKind` match below because punctuation is matched by text
|
||||
// everywhere in this file. See `ItemKind::Empty`.
|
||||
if self.cur().is_sym(";") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
return Ok(ItemKind::Empty);
|
||||
}
|
||||
let t = self.cur();
|
||||
@@ -209,7 +209,7 @@ impl<'a> Parser<'a> {
|
||||
"modport" => self.parse_modport().map(ItemKind::Modport),
|
||||
"clocking" => self.parse_clocking(false).map(ItemKind::Clocking),
|
||||
"default" if self.nth(1).is_kw("clocking") => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.parse_clocking(true).map(ItemKind::Clocking)
|
||||
}
|
||||
"default" if self.nth(1).is_kw("disable") => self.parse_default_disable_item(),
|
||||
@@ -243,7 +243,7 @@ impl<'a> Parser<'a> {
|
||||
Ok(ItemKind::PortDecl(d))
|
||||
}
|
||||
"genvar" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let mut names = vec![self.expect_name()?];
|
||||
while self.eat_sym(",") {
|
||||
names.push(self.expect_name()?);
|
||||
@@ -258,15 +258,15 @@ impl<'a> Parser<'a> {
|
||||
Ok(ItemKind::Always { kw, stmt })
|
||||
}
|
||||
"initial" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
Ok(ItemKind::Initial(self.parse_stmt()?))
|
||||
}
|
||||
"final" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
Ok(ItemKind::Final(self.parse_stmt()?))
|
||||
}
|
||||
"generate" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let mut items = Vec::new();
|
||||
while !self.at_body_end("endgenerate") {
|
||||
items.push(self.item_or_recover()?);
|
||||
@@ -339,7 +339,7 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
}
|
||||
"defparam" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let mut pairs = Vec::new();
|
||||
loop {
|
||||
let lhs = self.parse_expr()?;
|
||||
@@ -492,7 +492,7 @@ impl<'a> Parser<'a> {
|
||||
loop {
|
||||
let star = self.cur().span;
|
||||
let pkg = if allow_star_pkg && self.cur().is_sym("*") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
Name { text: "*".to_string(), span: star }
|
||||
} else {
|
||||
self.expect_name()?
|
||||
@@ -578,7 +578,7 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
let span = self.cur().span;
|
||||
let name = Name { text: self.bump().text, span };
|
||||
self.bump();
|
||||
self.skip();
|
||||
Some(name)
|
||||
}
|
||||
|
||||
@@ -603,7 +603,7 @@ impl<'a> Parser<'a> {
|
||||
let then = self.parse_gen_block()?;
|
||||
let els = if self.cur().is_kw("else") {
|
||||
let meta = self.take_meta();
|
||||
self.bump();
|
||||
self.skip();
|
||||
if self.cur().is_kw("if") {
|
||||
Some(Box::new(GenElse::If(meta, Box::new(self.parse_gen_if()?))))
|
||||
} else {
|
||||
@@ -688,7 +688,7 @@ impl<'a> Parser<'a> {
|
||||
// The gap between whatever came before and the `begin` belongs to
|
||||
// the block — nothing else was written where it could attach.
|
||||
let before_kw = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let before_colon = self.gap_before(":");
|
||||
let mut after_colon = Vec::new();
|
||||
let label_name = if self.eat_sym(":") {
|
||||
|
||||
@@ -22,7 +22,7 @@ impl<'a> Parser<'a> {
|
||||
let kw = self.cur().text.clone();
|
||||
match kw.as_str() {
|
||||
"begin" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let (label_comments, label_name) = self.parse_label_with()?;
|
||||
let (label, label_span) = split_label(label_name);
|
||||
let mut stmts = Vec::new();
|
||||
@@ -45,7 +45,7 @@ impl<'a> Parser<'a> {
|
||||
})
|
||||
}
|
||||
"fork" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let (label_comments, label_name) = self.parse_label_with()?;
|
||||
let (label, label_span) = split_label(label_name);
|
||||
let mut stmts = Vec::new();
|
||||
@@ -88,7 +88,7 @@ impl<'a> Parser<'a> {
|
||||
"case" | "casex" | "casez" => self.parse_case_stmt(None),
|
||||
"for" => self.parse_for_stmt(),
|
||||
"while" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.expect_sym("(")?;
|
||||
let cond = self.cond_or_recover()?;
|
||||
let recovered = cond.is_error();
|
||||
@@ -96,7 +96,7 @@ impl<'a> Parser<'a> {
|
||||
Ok(StmtKind::While { cond, body: Box::new(self.body_after_recovery(recovered)?) })
|
||||
}
|
||||
"do" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let body = Box::new(self.parse_stmt()?);
|
||||
self.expect_kw("while")?;
|
||||
let mut comments =
|
||||
@@ -110,7 +110,7 @@ impl<'a> Parser<'a> {
|
||||
Ok(StmtKind::DoWhile { body, cond, comments: Box::new(comments) })
|
||||
}
|
||||
"repeat" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.expect_sym("(")?;
|
||||
let count = self.cond_or_recover()?;
|
||||
let recovered = count.is_error();
|
||||
@@ -118,11 +118,11 @@ impl<'a> Parser<'a> {
|
||||
Ok(StmtKind::Repeat { count, body: Box::new(self.body_after_recovery(recovered)?) })
|
||||
}
|
||||
"forever" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
Ok(StmtKind::Forever { body: Box::new(self.parse_stmt()?) })
|
||||
}
|
||||
"foreach" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let mut comments =
|
||||
HeaderComments { after_kw: self.take_gap(), ..Default::default() };
|
||||
self.expect_sym("(")?;
|
||||
@@ -141,41 +141,41 @@ impl<'a> Parser<'a> {
|
||||
})
|
||||
}
|
||||
"randcase" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let (items, dangling) = self.parse_case_body()?;
|
||||
Ok(StmtKind::RandCase { items, dangling })
|
||||
}
|
||||
"return" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_kw = self.take_gap();
|
||||
let expr = if self.cur().is_sym(";") { None } else { Some(self.parse_expr()?) };
|
||||
self.expect_stmt_semi()?;
|
||||
Ok(StmtKind::Return { after_kw, expr })
|
||||
}
|
||||
"break" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.expect_stmt_semi()?;
|
||||
Ok(StmtKind::Break)
|
||||
}
|
||||
"continue" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.expect_stmt_semi()?;
|
||||
Ok(StmtKind::Continue)
|
||||
}
|
||||
"disable" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
// `disable fork;` kills every process the enclosing `fork`
|
||||
// started; `fork` is a keyword, not a block name.
|
||||
if self.cur().is_kw("fork") {
|
||||
let name_span = self.cur().span;
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.expect_stmt_semi()?;
|
||||
return Ok(StmtKind::Disable { name: "fork".to_string(), name_span });
|
||||
}
|
||||
let start = self.here();
|
||||
let mut name = self.expect_ident()?;
|
||||
while self.cur().is_sym(".") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
name.push('.');
|
||||
name.push_str(&self.expect_ident()?);
|
||||
}
|
||||
@@ -184,11 +184,11 @@ impl<'a> Parser<'a> {
|
||||
Ok(StmtKind::Disable { name, name_span })
|
||||
}
|
||||
"wait" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
// `wait fork;` waits for the enclosing `fork`'s children
|
||||
// (IEEE 1800 §9.6.1); `fork` is a keyword, not a condition.
|
||||
if self.cur().is_kw("fork") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.expect_stmt_semi()?;
|
||||
return Ok(StmtKind::WaitFork);
|
||||
}
|
||||
@@ -217,7 +217,7 @@ impl<'a> Parser<'a> {
|
||||
Ok(StmtKind::Assert { kw, cond, then, els })
|
||||
}
|
||||
"force" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let lhs = self.parse_unary()?;
|
||||
self.expect_sym("=")?;
|
||||
let rhs = self.parse_expr()?;
|
||||
@@ -290,7 +290,7 @@ impl<'a> Parser<'a> {
|
||||
/// is parsed as usual. The init entries read before the failure are kept
|
||||
/// — they are what declares the loop variable the body uses.
|
||||
fn parse_for_stmt(&mut self) -> PResult<StmtKind> {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let mut comments = ForComments { after_kw: self.take_gap(), ..Default::default() };
|
||||
self.expect_sym("(")?;
|
||||
comments.after_open = self.take_gap();
|
||||
|
||||
@@ -431,7 +431,7 @@ impl<'a> Parser<'a> {
|
||||
let mut scope: Vec<ScopeSeg> = Vec::new();
|
||||
while self.cur().is_sym("::") {
|
||||
let before_sep = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_sep = self.take_gap();
|
||||
let next = self.expect_name()?;
|
||||
scope.push(ScopeSeg { name, before_sep, after_sep });
|
||||
@@ -474,7 +474,7 @@ impl<'a> Parser<'a> {
|
||||
let start = self.here();
|
||||
let mut name = self.expect_ident()?;
|
||||
while self.cur().is_sym("::") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let segment = self.expect_ident()?;
|
||||
Self::push_scope_segment(&mut name, &segment);
|
||||
}
|
||||
|
||||
@@ -327,7 +327,7 @@ impl<'a> Parser<'a> {
|
||||
return Ok(None);
|
||||
}
|
||||
let before_dir = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_dir = self.take_gap();
|
||||
Ok(Some(ClockingDefault { before_dir, after_dir, skew: self.parse_clocking_skew()? }))
|
||||
}
|
||||
@@ -387,7 +387,7 @@ impl<'a> Parser<'a> {
|
||||
if !self.cur().is_sym("#") {
|
||||
return Ok(out);
|
||||
}
|
||||
self.bump();
|
||||
self.skip();
|
||||
out.after_hash = self.take_gap();
|
||||
self.expect_sym("(")?;
|
||||
let mark = self.diags_mark();
|
||||
@@ -438,7 +438,7 @@ impl<'a> Parser<'a> {
|
||||
return Ok((Box::default(), None));
|
||||
}
|
||||
let before = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after = self.take_gap();
|
||||
let value = parse(self)?;
|
||||
Ok((Box::new(BinaryComments { before, after }), Some(value)))
|
||||
@@ -507,7 +507,7 @@ impl<'a> Parser<'a> {
|
||||
if !self.cur().is_sym("(") {
|
||||
return Ok((PortList::None, Vec::new(), Vec::new()));
|
||||
}
|
||||
self.bump();
|
||||
self.skip();
|
||||
let mark = self.diags_mark();
|
||||
// Directives before the first port. Harvested here rather than in the
|
||||
// loop below because both the ANSI/non-ANSI decision and the
|
||||
@@ -517,7 +517,7 @@ impl<'a> Parser<'a> {
|
||||
if self.cur().is_sym(")") {
|
||||
// `module m (/* c */);` — the comments stay between the parens.
|
||||
let dangling = self.take_dangling();
|
||||
self.bump();
|
||||
self.skip();
|
||||
return Ok((PortList::Empty, dangling, directives));
|
||||
}
|
||||
let ansi = {
|
||||
|
||||
@@ -31,7 +31,7 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
TokenKind::Ident | TokenKind::SystemIdent => {
|
||||
if self.at_shallow_copy() {
|
||||
self.bump(); // new
|
||||
self.skip(); // new
|
||||
let src = self.parse_postfix()?;
|
||||
return Ok(self.expr_at(start, ExprKind::New(Box::new(src))));
|
||||
}
|
||||
@@ -53,9 +53,9 @@ impl<'a> Parser<'a> {
|
||||
let ty = self.expr_at(ty_start, ExprKind::Ident(ty_text));
|
||||
let mut comments =
|
||||
CastComments { before_tick: self.take_gap(), ..Default::default() };
|
||||
self.bump(); // '
|
||||
self.skip(); // '
|
||||
comments.after_tick = self.take_gap();
|
||||
self.bump(); // (
|
||||
self.skip(); // (
|
||||
comments.after_open = self.take_gap();
|
||||
let inner = self.parse_expr()?;
|
||||
comments.before_close = self.gap_before(")");
|
||||
@@ -85,14 +85,14 @@ impl<'a> Parser<'a> {
|
||||
// work through the existing expression grammar, and lucisv
|
||||
// checks legality nowhere else either.
|
||||
"$" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
Ok(self.expr_at(start, ExprKind::Ident("$".to_string())))
|
||||
}
|
||||
"(" => {
|
||||
// Comments written just inside the parens stay there;
|
||||
// anything else would move them across a token.
|
||||
let mut before = self.take_trailing_here();
|
||||
self.bump();
|
||||
self.skip();
|
||||
before.append(&mut self.take_leading_here());
|
||||
let mark = self.pending_trailing.len();
|
||||
let inner_start = self.here();
|
||||
@@ -106,7 +106,7 @@ impl<'a> Parser<'a> {
|
||||
))
|
||||
}
|
||||
"{" => {
|
||||
self.bump();
|
||||
self.skip();
|
||||
if self.cur().is_sym("<<") || self.cur().is_sym(">>") {
|
||||
return self.parse_stream_concat(start);
|
||||
}
|
||||
@@ -114,13 +114,13 @@ impl<'a> Parser<'a> {
|
||||
// `{}` — the empty queue/dynamic-array literal
|
||||
// (`q = {};`). Illegal as a Verilog concatenation,
|
||||
// but lucisv is not a legality checker.
|
||||
self.bump();
|
||||
self.skip();
|
||||
return Ok(self.expr_at(start, ExprKind::Concat(Vec::new())));
|
||||
}
|
||||
let first = self.parse_expr_item()?;
|
||||
if self.cur().is_sym("{") {
|
||||
// Replication {N{a, b}}
|
||||
self.bump();
|
||||
self.skip();
|
||||
let inner_first = self.parse_expr_item()?;
|
||||
let inner = self.parse_expr_list(inner_first, "}")?;
|
||||
self.expect_sym("}")?;
|
||||
@@ -241,7 +241,7 @@ impl<'a> Parser<'a> {
|
||||
/// (`ty'{...}`) keeps the type outside the pattern's span, in the `Cast`
|
||||
/// node that wraps it.
|
||||
pub(super) fn parse_assign_pattern(&mut self, start: u32) -> PResult<Expr> {
|
||||
self.bump(); // '{
|
||||
self.skip(); // '{
|
||||
if self.at_assign_pattern_repl() {
|
||||
return self.parse_assign_pattern_repl(start);
|
||||
}
|
||||
@@ -251,7 +251,7 @@ impl<'a> Parser<'a> {
|
||||
let item_start = self.here();
|
||||
let mut meta = self.take_meta();
|
||||
let key_or_val = if self.cur().is_kw("default") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.expr_at(item_start, ExprKind::Ident("default".to_string()))
|
||||
} else {
|
||||
self.parse_expr_or_type()?
|
||||
@@ -352,7 +352,7 @@ impl<'a> Parser<'a> {
|
||||
/// the `.` and the next token is an identifier.
|
||||
pub(super) fn parse_named_arg(&mut self) -> PResult<Expr> {
|
||||
let start = self.here();
|
||||
self.bump(); // .
|
||||
self.skip(); // .
|
||||
let after_dot = self.take_gap();
|
||||
let Name { text: name, span: name_span } = self.expect_name()?;
|
||||
let before_open = self.take_before_open("(");
|
||||
@@ -365,7 +365,7 @@ impl<'a> Parser<'a> {
|
||||
// between the parens, exactly as an empty connection does. The
|
||||
// span covers the `( )` pair.
|
||||
let comments = self.take_around(mark);
|
||||
self.bump();
|
||||
self.skip();
|
||||
(self.expr_at(paren_start, ExprKind::Empty(comments)), Vec::new())
|
||||
} else {
|
||||
after_open = self.take_gap();
|
||||
@@ -403,7 +403,7 @@ impl<'a> Parser<'a> {
|
||||
pub(super) fn parse_value_range(&mut self) -> PResult<Expr> {
|
||||
let start = self.here();
|
||||
let mut comments = SegmentComments { before_open: self.take_gap(), ..Default::default() };
|
||||
self.bump(); // [
|
||||
self.skip(); // [
|
||||
comments.after_open = self.take_gap();
|
||||
let lo = self.parse_expr()?;
|
||||
comments.before_op = self.gap_before(":");
|
||||
|
||||
@@ -52,7 +52,7 @@ impl<'a> Parser<'a> {
|
||||
// The gap in front of the `|` belongs to the alternative it opens,
|
||||
// so it prints on the bar's own side of the previous one.
|
||||
let before_bar = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
alternatives.push(self.parse_alternative(before_bar)?);
|
||||
}
|
||||
let span = self.span_from(start);
|
||||
@@ -107,8 +107,8 @@ impl<'a> Parser<'a> {
|
||||
let mut weight = None;
|
||||
if self.at_weight_op() {
|
||||
before_weight = self.take_gap();
|
||||
self.bump(); // :
|
||||
self.bump(); // =
|
||||
self.skip(); // :
|
||||
self.skip(); // =
|
||||
weight = Some(self.parse_weight()?);
|
||||
}
|
||||
Ok(Alternative { before_bar, after_bar, items, before_weight, weight })
|
||||
@@ -170,7 +170,7 @@ impl<'a> Parser<'a> {
|
||||
return self.parse_rs_if();
|
||||
}
|
||||
if t.is_kw("repeat") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_kw = self.take_before_open("(");
|
||||
self.expect_sym("(")?;
|
||||
let count = self.parse_expr()?;
|
||||
@@ -240,7 +240,7 @@ impl<'a> Parser<'a> {
|
||||
// A `default` arm may write no `:` at all (§18.17.4).
|
||||
let has_colon = self.cur().is_sym(":");
|
||||
if has_colon {
|
||||
self.bump();
|
||||
self.skip();
|
||||
} else if !is_default {
|
||||
return self.error("expected `:` in a randsequence case arm");
|
||||
}
|
||||
@@ -271,7 +271,7 @@ impl<'a> Parser<'a> {
|
||||
let after_rand = self.take_gap();
|
||||
self.expect_kw("join")?;
|
||||
let weight = if self.cur().is_sym("(") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let e = self.parse_expr()?;
|
||||
self.expect_sym(")")?;
|
||||
Some(e)
|
||||
@@ -292,7 +292,7 @@ impl<'a> Parser<'a> {
|
||||
let has_parens = self.cur().is_sym("(");
|
||||
let mut args = Vec::new();
|
||||
if has_parens {
|
||||
self.bump();
|
||||
self.skip();
|
||||
if !self.cur().is_sym(")") {
|
||||
let first = self.parse_expr_item()?;
|
||||
args = self.parse_expr_list(first, ")")?;
|
||||
|
||||
@@ -102,7 +102,7 @@ impl<'a> Parser<'a> {
|
||||
/// error node.
|
||||
pub(super) fn expect_closer(&mut self, kw: &str) -> PResult<()> {
|
||||
if self.cur().is_kw(kw) {
|
||||
self.bump();
|
||||
self.skip();
|
||||
return Ok(());
|
||||
}
|
||||
if self.tolerant {
|
||||
@@ -150,7 +150,7 @@ impl<'a> Parser<'a> {
|
||||
return;
|
||||
}
|
||||
if t.is_sym(";") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -159,7 +159,7 @@ impl<'a> Parser<'a> {
|
||||
} else if open > 0 && (t.is_sym(")") || t.is_sym("]") || t.is_sym("}")) {
|
||||
open -= 1;
|
||||
}
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ impl<'a> Parser<'a> {
|
||||
if self.pos == start_pos {
|
||||
// The failed construct consumed nothing, so skipping might not
|
||||
// either; take one token to guarantee the enclosing loop advances.
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
self.skip_to_sync();
|
||||
// Comments inside the skipped range are part of the raw text below.
|
||||
|
||||
@@ -227,7 +227,7 @@ impl<'a> Parser<'a> {
|
||||
if self.pos == start_pos && !self.cur().is_sym(")") {
|
||||
// The header consumed nothing and the skip below may not either;
|
||||
// take one token so the statement cannot be re-read forever.
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
self.skip_inside_brackets(true);
|
||||
// As in `recover`: comments inside the skipped range are bytes of the
|
||||
@@ -247,7 +247,7 @@ impl<'a> Parser<'a> {
|
||||
// Nothing was consumed and nothing below will be: the list loop
|
||||
// neither ends here nor eats a separator, so take one token to
|
||||
// guarantee it advances.
|
||||
self.bump();
|
||||
self.skip();
|
||||
} else if self.at_open_bracket() {
|
||||
// The element gave up standing *on* a bracket, which is therefore
|
||||
// one it opened and never closed — the `(` of a half-typed
|
||||
@@ -258,7 +258,7 @@ impl<'a> Parser<'a> {
|
||||
// the body would be swallowed looking for a `)` that was never
|
||||
// written. Taken here, the skip starts inside it at the list's own
|
||||
// level and stops at the next line as it does everywhere else.
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
self.skip_inside_brackets(false);
|
||||
let _ = self.take_dangling();
|
||||
@@ -310,7 +310,7 @@ impl<'a> Parser<'a> {
|
||||
} else if closes {
|
||||
open -= 1;
|
||||
}
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ impl<'a> Parser<'a> {
|
||||
// already moved — are dropped by `verbatim_since`.
|
||||
self.pos = mark.pos;
|
||||
while self.pos < end_pos && !self.at_eof() {
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
self.verbatim_since(start, col)
|
||||
}
|
||||
|
||||
@@ -125,11 +125,11 @@ impl<'a> Parser<'a> {
|
||||
return Ok(StmtKind::Directive(self.take_raw_text()));
|
||||
}
|
||||
if t.is_sym(";") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
return Ok(StmtKind::Null);
|
||||
}
|
||||
if t.is_sym("#") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_hash = self.take_gap();
|
||||
let delay = self.parse_delay_value()?;
|
||||
let stmt = if self.eat_stmt_semi() { None } else { Some(Box::new(self.parse_stmt()?)) };
|
||||
@@ -139,7 +139,7 @@ impl<'a> Parser<'a> {
|
||||
});
|
||||
}
|
||||
if t.is_sym("@") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let sens = self.parse_sens_list()?;
|
||||
let stmt = if self.eat_stmt_semi() { None } else { Some(Box::new(self.parse_stmt()?)) };
|
||||
return Ok(StmtKind::Timing { control: TimingControl::Event(sens), stmt });
|
||||
@@ -204,7 +204,7 @@ impl<'a> Parser<'a> {
|
||||
// keyword's left; the then-branch has already taken its own
|
||||
// trailing comment.
|
||||
else_comments = self.take_dangling();
|
||||
self.bump();
|
||||
self.skip();
|
||||
Some(Box::new(self.parse_stmt()?))
|
||||
} else {
|
||||
None
|
||||
@@ -306,7 +306,7 @@ impl<'a> Parser<'a> {
|
||||
if let Some(last) = vars.last_mut() {
|
||||
last.after = self.take_gap();
|
||||
}
|
||||
self.bump();
|
||||
self.skip();
|
||||
vars.push(self.parse_foreach_var()?);
|
||||
}
|
||||
}
|
||||
@@ -343,7 +343,7 @@ impl<'a> Parser<'a> {
|
||||
if self.cur().kind == TokenKind::Symbol && (ASSIGN_OPS.contains(&op.as_str()) || op == "<=")
|
||||
{
|
||||
let before = self.take_around(mark);
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after = self.take_gap();
|
||||
let rhs = self.parse_expr()?;
|
||||
Ok(ForStep::Assign(SimpleAssign {
|
||||
@@ -377,16 +377,16 @@ impl<'a> Parser<'a> {
|
||||
// it (`x[6:0] /* opcode */ = v;`); left in the pending buffers
|
||||
// they would be lost and the safety net would refuse the file.
|
||||
let op_comments = self.take_around(mark);
|
||||
self.bump();
|
||||
self.skip();
|
||||
let rhs_comments = self.take_around(mark);
|
||||
let timing = if self.cur().is_sym("#") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
Some(TimingControl::Delay {
|
||||
after_hash: self.take_gap(),
|
||||
expr: self.parse_delay_value()?,
|
||||
})
|
||||
} else if self.cur().is_sym("@") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
Some(TimingControl::Event(self.parse_sens_list()?))
|
||||
} else {
|
||||
None
|
||||
@@ -430,7 +430,7 @@ impl<'a> Parser<'a> {
|
||||
if self.cur().is_sym("*") {
|
||||
// `@*` without parens — the gap after the `@` is the `*`'s own
|
||||
// `before` slot, which the formatter prints in the same place.
|
||||
self.bump();
|
||||
self.skip();
|
||||
return Ok(SensList::Star { before: after_at, after: Vec::new() });
|
||||
}
|
||||
if self.cur().kind == TokenKind::Ident {
|
||||
@@ -449,10 +449,10 @@ impl<'a> Parser<'a> {
|
||||
// to whatever node comes next.
|
||||
let mut before = after_at;
|
||||
before.append(&mut self.take_trailing_here());
|
||||
self.bump(); // (
|
||||
self.skip(); // (
|
||||
before.append(&mut self.take_leading_here());
|
||||
let mut after = self.take_trailing_here();
|
||||
self.bump(); // *
|
||||
self.skip(); // *
|
||||
after.append(&mut self.take_leading_here());
|
||||
self.expect_sym(")")?;
|
||||
return Ok(SensList::Star { before, after });
|
||||
|
||||
@@ -218,7 +218,7 @@ impl<'a> Parser<'a> {
|
||||
self.link()?;
|
||||
let before = self.take_around(mark);
|
||||
for _ in 0..tokens {
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
let after = self.take_around(mark);
|
||||
let rhs = self.parse_prop_expr(Self::right_operand_prec(prec, right))?;
|
||||
@@ -316,7 +316,7 @@ impl<'a> Parser<'a> {
|
||||
let mut count = None;
|
||||
let mut after_count = Vec::new();
|
||||
if counted && self.cur().is_sym("[") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_open = self.take_gap();
|
||||
count = Some(Box::new(SvaRange { after_open, ..self.parse_sva_bounds()? }));
|
||||
after_count = self.take_gap();
|
||||
@@ -367,7 +367,7 @@ impl<'a> Parser<'a> {
|
||||
let mut els = None;
|
||||
if self.cur().is_kw("else") {
|
||||
before_else = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
after_else = self.take_gap();
|
||||
els = Some(self.parse_prop_expr(0)?);
|
||||
}
|
||||
@@ -421,7 +421,7 @@ impl<'a> Parser<'a> {
|
||||
let mut labels = Vec::new();
|
||||
let is_default = self.cur().is_kw("default");
|
||||
if is_default {
|
||||
self.bump();
|
||||
self.skip();
|
||||
} else {
|
||||
loop {
|
||||
labels.push(self.parse_expr_item()?);
|
||||
@@ -463,7 +463,7 @@ impl<'a> Parser<'a> {
|
||||
while self.at_repeat_bracket() {
|
||||
self.link()?;
|
||||
let before_open = self.take_gap();
|
||||
self.bump(); // [
|
||||
self.skip(); // [
|
||||
let after_open = self.take_gap();
|
||||
// `[+]` writes no operator of its own: its `+` is the bound.
|
||||
let (op, after_op) = if self.cur().is_sym("+") {
|
||||
@@ -493,7 +493,7 @@ impl<'a> Parser<'a> {
|
||||
range.lo = Some(self.parse_expr()?);
|
||||
if self.cur().is_sym(":") {
|
||||
range.before_colon = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
range.after_colon = self.take_gap();
|
||||
range.hi = Some(self.parse_expr()?);
|
||||
}
|
||||
@@ -509,7 +509,7 @@ impl<'a> Parser<'a> {
|
||||
self.expect_sym("##")?;
|
||||
let after_hash = self.take_gap();
|
||||
if self.cur().is_sym("[") {
|
||||
self.bump();
|
||||
self.skip();
|
||||
let after_open = self.take_gap();
|
||||
let range = Box::new(SvaRange { after_open, ..self.parse_sva_bounds()? });
|
||||
return Ok(CycleDelay { after_hash, expr: None, range: Some(range) });
|
||||
@@ -707,7 +707,7 @@ impl<'a> Parser<'a> {
|
||||
let mut items = Vec::new();
|
||||
while self.cur().is_sym(",") {
|
||||
let before_comma = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
let start = self.here();
|
||||
let meta = self.take_meta();
|
||||
let lhs = self.parse_expr()?;
|
||||
|
||||
@@ -227,12 +227,12 @@ impl<'a> Parser<'a> {
|
||||
if !self.cur().is_sym("(") {
|
||||
return Ok(TfPorts::default());
|
||||
}
|
||||
self.bump();
|
||||
self.skip();
|
||||
if self.cur().is_sym(")") {
|
||||
// Only what was written *inside* the empty `()`, as an empty
|
||||
// argument list of a call keeps.
|
||||
let dangling = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
return Ok(TfPorts { args, dangling });
|
||||
}
|
||||
let mark = self.diags_mark();
|
||||
@@ -272,9 +272,9 @@ impl<'a> Parser<'a> {
|
||||
// `ibex/vendor/lowrisc_ip/dv/sv/dv_utils/dv_utils_pkg.sv:104`.
|
||||
// Two keywords, so the gap between them is a slot of its own —
|
||||
// no other direction has an inside.
|
||||
self.bump();
|
||||
self.skip();
|
||||
after_const = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
Some("const ref".to_string())
|
||||
} else if t.is_kw("input") || t.is_kw("output") || t.is_kw("inout") || t.is_kw("ref") {
|
||||
Some(self.bump().text)
|
||||
@@ -298,7 +298,7 @@ impl<'a> Parser<'a> {
|
||||
let mut eq_comments = BinaryComments::default();
|
||||
let default = if self.cur().is_sym("=") {
|
||||
eq_comments.before = self.take_gap();
|
||||
self.bump();
|
||||
self.skip();
|
||||
eq_comments.after = self.take_gap();
|
||||
Some(self.parse_expr()?)
|
||||
} else {
|
||||
|
||||
@@ -38,7 +38,7 @@ impl<'a> Parser<'a> {
|
||||
} else if t.is_kw(&open) {
|
||||
depth += 1;
|
||||
}
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
self.expect_closer(close)?;
|
||||
self.parse_label()?;
|
||||
@@ -52,7 +52,7 @@ impl<'a> Parser<'a> {
|
||||
pub(super) fn parse_opaque_line(&mut self) -> PResult<RawText> {
|
||||
let start = self.here();
|
||||
let col = self.cur().col;
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.skip_to_semi()?;
|
||||
Ok(self.verbatim_since(start, col))
|
||||
}
|
||||
@@ -94,7 +94,7 @@ impl<'a> Parser<'a> {
|
||||
/// than as a nested assignment. How many there are, and whether they are
|
||||
/// legal lvalues, is a checker's business.
|
||||
pub(super) fn parse_alias(&mut self) -> PResult<ItemKind> {
|
||||
self.bump(); // alias
|
||||
self.skip(); // alias
|
||||
let mut nets = vec![self.parse_expr()?];
|
||||
while self.eat_sym("=") {
|
||||
nets.push(self.parse_expr()?);
|
||||
@@ -154,7 +154,7 @@ impl<'a> Parser<'a> {
|
||||
pub(super) fn parse_expect_statement(&mut self) -> PResult<RawText> {
|
||||
let start = self.here();
|
||||
let col = self.cur().col;
|
||||
self.bump(); // expect
|
||||
self.skip(); // expect
|
||||
self.expect_sym("(")?;
|
||||
self.skip_balanced("(", ")")?;
|
||||
self.skip_action_block()?;
|
||||
@@ -176,7 +176,7 @@ impl<'a> Parser<'a> {
|
||||
} else if t.is_sym(close) {
|
||||
depth -= 1;
|
||||
}
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
@@ -215,12 +215,12 @@ impl<'a> Parser<'a> {
|
||||
"[" => ("[", "]"),
|
||||
_ => ("{", "}"),
|
||||
};
|
||||
self.bump();
|
||||
self.skip();
|
||||
self.skip_balanced(open, close)?;
|
||||
} else if self.eat_sym(";") {
|
||||
return Ok(());
|
||||
} else {
|
||||
self.bump();
|
||||
self.skip();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -199,6 +199,49 @@ fn a_name_declared_in_two_files_stays_on_the_slow_road() {
|
||||
assert!(rename(&sources, &path, at, "renamed_thing").is_err(), "and the workspace refuses it");
|
||||
}
|
||||
|
||||
/// TODO §63.1 QA. A `bind`'s connection expressions resolve in the *target's*
|
||||
/// scope, which a single buffer never holds — so both shapes must defer, and
|
||||
/// the fixture is swept to prove neither is ever an *invented* refusal.
|
||||
const AES_FOR_BIND: &str = "module aes (input logic clk_i, output logic idle_o);\n \
|
||||
logic entropy_masking_req;\n aes_core u_aes_core (.clk_i(clk_i));\n \
|
||||
assign idle_o = entropy_masking_req;\nendmodule : aes\n";
|
||||
const AES_CORE_FOR_BIND: &str =
|
||||
"module aes_core (input logic clk_i);\n logic seed_en;\n assign seed_en = clk_i;\nendmodule : aes_core\n";
|
||||
const RESEED_IF_FOR_BIND: &str =
|
||||
"module aes_reseed_if (input logic entropy_masking_req, input logic seed_en);\nendmodule : aes_reseed_if\n";
|
||||
const AES_BIND: &str = "module aes_bind;\n bind aes aes_reseed_if u_aes_reseed_if (\n \
|
||||
.entropy_masking_req(entropy_masking_req),\n .seed_en(u_aes_core.seed_en)\n );\nendmodule\n";
|
||||
|
||||
#[test]
|
||||
fn a_binds_connection_expressions_defer_rather_than_invent_a_refusal() {
|
||||
// Before this lane a bare-name connection carried a one-segment external
|
||||
// candidate (deferred already) but a hierarchical tail carried *no*
|
||||
// reference at all — `symbol_at` finds no declaration either, so the
|
||||
// preflight fell to `NOTHING_HERE`, a refusal the workspace does not
|
||||
// agree with (it resolves and edits the tail). The oracle's own
|
||||
// `(Err, Ok)` branch panics on exactly that shape, so a plain sweep is the
|
||||
// proof: nothing here may ever be an invented refusal.
|
||||
let files = [
|
||||
("aes.sv", AES_FOR_BIND),
|
||||
("aes_core.sv", AES_CORE_FOR_BIND),
|
||||
("aes_reseed_if.sv", RESEED_IF_FOR_BIND),
|
||||
("aes_bind.sv", AES_BIND),
|
||||
];
|
||||
let (_, deferred) = rename_oracle(&files, "aes_bind.sv");
|
||||
assert!(deferred > 0, "every connection expression in a bind file defers to the workspace");
|
||||
|
||||
// And named exactly, at the hierarchical tail's own byte: this is the one
|
||||
// Handshakes calls out as changed — `NOTHING_HERE` before, `Ok(())` now.
|
||||
let semantics = analyze(&parse_source_tolerant(AES_BIND).0, AES_BIND);
|
||||
let at =
|
||||
AES_BIND.find("u_aes_core.seed_en").expect("the tail") as u32 + "u_aes_core.".len() as u32;
|
||||
assert!(
|
||||
rename_preflight(&semantics, at, "renamed_thing").is_ok(),
|
||||
"the preflight must stand aside for a bind's hierarchical tail, which only the \
|
||||
workspace can root at the bind target"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn renaming_a_symbol_to_the_name_it_already_has_is_refused_from_the_buffer() {
|
||||
let files = [("sub.sv", SUB), ("top.sv", TOP)];
|
||||
|
||||
@@ -0,0 +1,719 @@
|
||||
//! A `bind` directive's own occurrences of a renamed name (TODO §63.1).
|
||||
//!
|
||||
//! `bind aes aes_reseed_if u_x (.entropy_masking_req(entropy_masking_req));`
|
||||
//! writes the target module's internal net down in a file that instantiates
|
||||
//! nothing in the chain. IEEE 1800 §23.11 evaluates such a connection in the
|
||||
//! **target's** scope, so the name is a use of `aes`'s net and a rename must
|
||||
//! edit it — or say out loud that it could not. Silence is a wrong answer: the
|
||||
//! design no longer elaborates after the rename.
|
||||
//!
|
||||
//! Every test here is one of the shapes §63.1 lists, driven through the public
|
||||
//! `rename` over a little in-memory workspace: the bare-name connection, the
|
||||
//! positional one, the two-level hierarchical tail, a `: u_x` instance-list
|
||||
//! target, a hierarchical target path, a `bind` inside a generate block, and
|
||||
//! the one the engine must *not* resolve — a target module the workspace does
|
||||
//! not hold, which is warned about and never edited.
|
||||
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use vlog_refactor::{rename, rename_traced, rename_traced_with, RefactorEdit, RenameTrace};
|
||||
|
||||
/// A workspace of `(file name, text)` pairs, rooted at a fake directory.
|
||||
fn workspace(files: &[(&str, &str)]) -> Vec<(PathBuf, String)> {
|
||||
files.iter().map(|(name, text)| (PathBuf::from("/rtl").join(name), text.to_string())).collect()
|
||||
}
|
||||
|
||||
fn path(name: &str) -> PathBuf {
|
||||
PathBuf::from("/rtl").join(name)
|
||||
}
|
||||
|
||||
/// The offset of the first whole-word `name` at or after `prefix`.
|
||||
fn at(text: &str, prefix: &str, name: &str) -> u32 {
|
||||
let from = match prefix.is_empty() {
|
||||
true => 0,
|
||||
false => {
|
||||
text.find(prefix).unwrap_or_else(|| panic!("`{prefix}` is not in the text"))
|
||||
+ prefix.len()
|
||||
}
|
||||
};
|
||||
let is_word = |b: Option<&u8>| b.is_some_and(|b| b.is_ascii_alphanumeric() || *b == b'_');
|
||||
let bytes = text.as_bytes();
|
||||
let mut search = from;
|
||||
while let Some(hit) = text.get(search..).and_then(|s| s.find(name)) {
|
||||
let start = search + hit;
|
||||
let end = start + name.len();
|
||||
if !is_word(start.checked_sub(1).and_then(|i| bytes.get(i))) && !is_word(bytes.get(end)) {
|
||||
return start as u32;
|
||||
}
|
||||
search = start + 1;
|
||||
}
|
||||
panic!("`{name}` does not occur after `{prefix}`");
|
||||
}
|
||||
|
||||
/// Apply a refactoring's edits for one file.
|
||||
fn apply(text: &str, edit: &RefactorEdit, file: &Path) -> String {
|
||||
let mut out = String::new();
|
||||
let mut cursor = 0usize;
|
||||
for e in edit.edits_for(file) {
|
||||
out.push_str(&text[cursor..e.range.start as usize]);
|
||||
out.push_str(&e.new_text);
|
||||
cursor = e.range.end as usize;
|
||||
}
|
||||
out.push_str(&text[cursor..]);
|
||||
out
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// the little AES the fixtures bind into
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/// The target module: it declares the net every fixture renames, and it
|
||||
/// instantiates the core the two-level tail walks through.
|
||||
const AES: &str = "\
|
||||
module aes (input logic clk_i, output logic idle_o);
|
||||
logic entropy_masking_req;
|
||||
aes_core u_aes_core (.clk_i(clk_i));
|
||||
assign idle_o = entropy_masking_req;
|
||||
endmodule : aes
|
||||
";
|
||||
|
||||
const AES_CORE: &str = "\
|
||||
module aes_core (input logic clk_i);
|
||||
aes_prng_clearing u_aes_prng_clearing (.clk_i(clk_i));
|
||||
endmodule : aes_core
|
||||
";
|
||||
|
||||
const AES_PRNG: &str = "\
|
||||
module aes_prng_clearing (input logic clk_i);
|
||||
logic seed_en;
|
||||
assign seed_en = clk_i;
|
||||
endmodule : aes_prng_clearing
|
||||
";
|
||||
|
||||
/// The checker a `bind` binds in. Its ports are deliberately spelled like the
|
||||
/// names being renamed, so a fixture also proves the `.port` half is left
|
||||
/// alone: it names *this* module's port, not the target's net.
|
||||
const RESEED_IF: &str = "\
|
||||
module aes_reseed_if (input logic entropy_masking_req, input logic seed_en);
|
||||
endmodule : aes_reseed_if
|
||||
";
|
||||
|
||||
/// The RTL half of every fixture's workspace.
|
||||
fn rtl(bind_file: &str) -> Vec<(PathBuf, String)> {
|
||||
workspace(&[
|
||||
("aes.sv", AES),
|
||||
("aes_core.sv", AES_CORE),
|
||||
("aes_prng_clearing.sv", AES_PRNG),
|
||||
("aes_reseed_if.sv", RESEED_IF),
|
||||
("aes_bind.sv", bind_file),
|
||||
])
|
||||
}
|
||||
|
||||
/// Rename `name` (declared in `decl_file`, at the first whole-word occurrence
|
||||
/// after `prefix`) to `new_name`, and return the bind file's new text together
|
||||
/// with the rename's warnings.
|
||||
fn rename_with_bind(
|
||||
bind_file: &str,
|
||||
decl_file: &str,
|
||||
prefix: &str,
|
||||
name: &str,
|
||||
new_name: &str,
|
||||
) -> (String, Vec<String>) {
|
||||
let files = rtl(bind_file);
|
||||
let text = files
|
||||
.iter()
|
||||
.find(|(p, _)| *p == path(decl_file))
|
||||
.map(|(_, t)| t.clone())
|
||||
.expect("the declaring file is in the workspace");
|
||||
let edit = rename(&files, &path(decl_file), at(&text, prefix, name), new_name)
|
||||
.unwrap_or_else(|e| panic!("the rename was refused: {e}"));
|
||||
(apply(bind_file, &edit, &path("aes_bind.sv")), edit.warnings.clone())
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// the shapes that must be edited
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#[test]
|
||||
fn a_bare_name_in_a_bind_connection_is_renamed() {
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(entropy_masking_req)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let (after, warnings) =
|
||||
rename_with_bind(bind, "aes.sv", "logic", "entropy_masking_req", "masking_req");
|
||||
assert_eq!(
|
||||
after,
|
||||
"\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(masking_req)
|
||||
);
|
||||
endmodule
|
||||
",
|
||||
"the expression half names the target's net; the `.port` half names the checker's port"
|
||||
);
|
||||
assert!(warnings.is_empty(), "nothing was left unaccounted for: {warnings:?}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_positional_connection_in_a_bind_is_renamed() {
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (entropy_masking_req, 1'b0);
|
||||
endmodule
|
||||
";
|
||||
let (after, _) =
|
||||
rename_with_bind(bind, "aes.sv", "logic", "entropy_masking_req", "masking_req");
|
||||
assert_eq!(
|
||||
after,
|
||||
"\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (masking_req, 1'b0);
|
||||
endmodule
|
||||
"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_two_level_hierarchical_tail_in_a_bind_is_renamed() {
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.seed_en(u_aes_core.u_aes_prng_clearing.seed_en)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let (after, warnings) =
|
||||
rename_with_bind(bind, "aes_prng_clearing.sv", "logic", "seed_en", "reseed_en");
|
||||
assert_eq!(
|
||||
after,
|
||||
"\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.seed_en(u_aes_core.u_aes_prng_clearing.reseed_en)
|
||||
);
|
||||
endmodule
|
||||
",
|
||||
"the tail is rooted at the bind target and walks two instances to the declaration"
|
||||
);
|
||||
assert!(warnings.is_empty(), "nothing was left unaccounted for: {warnings:?}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn an_instance_list_target_still_names_the_target_module_scope() {
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind aes : u_aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(entropy_masking_req)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let (after, _) =
|
||||
rename_with_bind(bind, "aes.sv", "logic", "entropy_masking_req", "masking_req");
|
||||
assert!(
|
||||
after.contains(".entropy_masking_req(masking_req)"),
|
||||
"`bind aes : u_aes` still binds into `aes`'s scope: {after}"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_bind_inside_a_generate_block_is_renamed() {
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
if (1) begin : gen_prng_bind
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(entropy_masking_req)
|
||||
);
|
||||
end
|
||||
endmodule
|
||||
";
|
||||
let (after, _) =
|
||||
rename_with_bind(bind, "aes.sv", "logic", "entropy_masking_req", "masking_req");
|
||||
assert!(
|
||||
after.contains(".entropy_masking_req(masking_req)"),
|
||||
"a generate block changes where the directive is written, not what it binds into: {after}"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_hierarchical_target_path_is_followed_through_the_instance_it_names() {
|
||||
let tb = "\
|
||||
module tb;
|
||||
aes u_aes (.clk_i(1'b0), .idle_o());
|
||||
endmodule : tb
|
||||
";
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind tb.u_aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(entropy_masking_req)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let mut files = rtl(bind);
|
||||
files.push((path("tb.sv"), tb.to_string()));
|
||||
let edit =
|
||||
rename(&files, &path("aes.sv"), at(AES, "logic", "entropy_masking_req"), "masking_req")
|
||||
.expect("renames");
|
||||
assert_eq!(
|
||||
apply(bind, &edit, &path("aes_bind.sv")),
|
||||
"\
|
||||
module aes_bind;
|
||||
bind tb.u_aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(masking_req)
|
||||
);
|
||||
endmodule
|
||||
",
|
||||
"`tb.u_aes` is one instance hop the index can take, so the connection resolves"
|
||||
);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// the shape the engine must not resolve
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#[test]
|
||||
fn a_bind_into_a_module_the_workspace_does_not_hold_is_warned_about_never_edited() {
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind aes_shadow aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(entropy_masking_req)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let (after, warnings) =
|
||||
rename_with_bind(bind, "aes.sv", "logic", "entropy_masking_req", "masking_req");
|
||||
assert_eq!(after, bind, "nothing in the bind file was edited");
|
||||
assert!(
|
||||
warnings.iter().any(|w| w.contains("aes_bind.sv")
|
||||
&& w.contains("aes_shadow::entropy_masking_req")
|
||||
&& w.contains("could not be resolved")),
|
||||
"the miss is said out loud, with the file and the unit that was searched: {warnings:?}"
|
||||
);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// the edited bind file is an ordinary file to everything downstream
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
// A regression guard rather than a flipped fixture: the collision is an
|
||||
// ordinary same-file one (`aes.sv` already declares `masking_req`), so
|
||||
// `check::verify` refused it before the bind file was understood at all
|
||||
// (it passes at 2675131 unmodified — QA §63.1, finding 1). What it pins is
|
||||
// that the refusal survives the bind file joining the edited set.
|
||||
#[test]
|
||||
fn a_new_name_the_bind_target_already_declares_is_refused() {
|
||||
let aes = "\
|
||||
module aes (input logic clk_i, output logic idle_o);
|
||||
logic entropy_masking_req;
|
||||
logic masking_req;
|
||||
assign idle_o = entropy_masking_req & masking_req;
|
||||
endmodule : aes
|
||||
";
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(entropy_masking_req)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let files =
|
||||
workspace(&[("aes.sv", aes), ("aes_reseed_if.sv", RESEED_IF), ("aes_bind.sv", bind)]);
|
||||
let refusal =
|
||||
rename(&files, &path("aes.sv"), at(aes, "logic", "entropy_masking_req"), "masking_req")
|
||||
.expect_err("the new name is already taken in the scope the bind reaches into");
|
||||
assert!(refusal.contains("masking_req"), "the refusal names the collision: {refusal}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn renaming_a_bind_connection_back_restores_the_file_byte_for_byte() {
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(entropy_masking_req),
|
||||
.seed_en (u_aes_core.u_aes_prng_clearing.seed_en)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let (once, _) = rename_with_bind(bind, "aes.sv", "logic", "entropy_masking_req", "masking_req");
|
||||
assert_ne!(once, bind, "the first rename moved the bind file");
|
||||
|
||||
// The same workspace with both edits applied, renamed back: the engine
|
||||
// resolves the new spelling exactly as it resolved the old one, so the
|
||||
// bind file returns to the text it started with.
|
||||
let aes_after = AES.replace("entropy_masking_req", "masking_req");
|
||||
let files = workspace(&[
|
||||
("aes.sv", &aes_after),
|
||||
("aes_core.sv", AES_CORE),
|
||||
("aes_prng_clearing.sv", AES_PRNG),
|
||||
("aes_reseed_if.sv", RESEED_IF),
|
||||
("aes_bind.sv", &once),
|
||||
]);
|
||||
let back = rename(
|
||||
&files,
|
||||
&path("aes.sv"),
|
||||
at(&aes_after, "logic", "masking_req"),
|
||||
"entropy_masking_req",
|
||||
)
|
||||
.expect("renames back");
|
||||
assert_eq!(apply(&once, &back, &path("aes_bind.sv")), bind);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// QA attack fixtures (TODO §63.1, task 3): shapes not in the dev's seven
|
||||
// plus two, each aimed at a specific way the fix could be half right.
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#[test]
|
||||
fn a_bind_connections_bare_name_naming_the_targets_port_is_still_renamed() {
|
||||
// `in_bind_target`'s widened surface is `Connection` records first, then
|
||||
// `Hierarchical`-only ones (`workspace/hierarchy.rs::member`) — so a port
|
||||
// (which was already reachable through the narrow surface) must still
|
||||
// resolve exactly as it did before this lane, through the same fallback
|
||||
// that answers a net. `clk_i` is `aes`'s own port, connected bare in the
|
||||
// `bind`; the `.port` half names the checker's unrelated port of the same
|
||||
// name and must stay put.
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(clk_i)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let (after, warnings) = rename_with_bind(bind, "aes.sv", "input logic", "clk_i", "clk_ix");
|
||||
assert_eq!(
|
||||
after,
|
||||
"\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(clk_ix)
|
||||
);
|
||||
endmodule
|
||||
",
|
||||
"the expression half names `aes`'s port; the `.port` half is the checker's own, untouched"
|
||||
);
|
||||
assert!(warnings.is_empty(), "nothing was left unaccounted for: {warnings:?}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_bind_connection_resolves_in_the_target_not_a_same_named_decoy_in_the_writing_scope() {
|
||||
// The writing module — normally empty — now declares its own
|
||||
// `entropy_masking_req`, spelling the same name `aes` does. If the
|
||||
// connection ever fell back to the scope the directive is *written* in
|
||||
// (finding 2's bug, for a bare name rather than a hierarchical tail),
|
||||
// this decoy is exactly what it would capture instead of `aes`'s net.
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
logic entropy_masking_req;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(entropy_masking_req)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let (after, warnings) =
|
||||
rename_with_bind(bind, "aes.sv", "logic", "entropy_masking_req", "masking_req");
|
||||
assert_eq!(
|
||||
after,
|
||||
"\
|
||||
module aes_bind;
|
||||
logic entropy_masking_req;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(masking_req)
|
||||
);
|
||||
endmodule
|
||||
",
|
||||
"the connection is `aes`'s net, never `aes_bind`'s own decoy of the same name, \
|
||||
which must still read `entropy_masking_req` after the rename"
|
||||
);
|
||||
assert!(warnings.is_empty(), "nothing was left unaccounted for: {warnings:?}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_new_name_the_two_level_tails_terminal_scope_already_declares_is_refused() {
|
||||
// The bare-name path's collision refusal
|
||||
// (`a_new_name_the_bind_target_already_declares_is_refused`) exercises
|
||||
// only `in_bind_target`. This is the same shape one link further down the
|
||||
// spine — the tail rooted at the bind target and walked through
|
||||
// `bind_member`/`member_at`/`descend` — so a collision at the *end* of a
|
||||
// two-level tail must refuse exactly as readily, with no gap specific to
|
||||
// the new code path.
|
||||
let aes_prng = "\
|
||||
module aes_prng_clearing (input logic clk_i);
|
||||
logic seed_en;
|
||||
logic reseed_en;
|
||||
assign seed_en = clk_i;
|
||||
endmodule : aes_prng_clearing
|
||||
";
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if (
|
||||
.seed_en(u_aes_core.u_aes_prng_clearing.seed_en)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let files = workspace(&[
|
||||
("aes.sv", AES),
|
||||
("aes_core.sv", AES_CORE),
|
||||
("aes_prng_clearing.sv", aes_prng),
|
||||
("aes_reseed_if.sv", RESEED_IF),
|
||||
("aes_bind.sv", bind),
|
||||
]);
|
||||
let refusal = rename(
|
||||
&files,
|
||||
&path("aes_prng_clearing.sv"),
|
||||
at(aes_prng, "logic", "seed_en"),
|
||||
"reseed_en",
|
||||
)
|
||||
.expect_err("`reseed_en` already exists in the tail's terminal scope");
|
||||
assert!(refusal.contains("reseed_en"), "the refusal names the collision: {refusal}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn an_escaped_identifier_bind_target_is_still_resolved() {
|
||||
// `\aes.escaped ` is one identifier (an escaped identifier ends at
|
||||
// whitespace, IEEE 1800 §5.6.2), spelling a name a plain identifier
|
||||
// cannot. `bind_target_path` joins `b.target`'s segments verbatim, so
|
||||
// this is a one-segment path exactly like `bind aes …` — the escaping is
|
||||
// the parser's problem, not the resolver's.
|
||||
let aes_escaped = "\
|
||||
module \\aes.escaped (input logic clk_i, output logic idle_o);
|
||||
logic entropy_masking_req;
|
||||
assign idle_o = entropy_masking_req;
|
||||
endmodule
|
||||
";
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind \\aes.escaped aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(entropy_masking_req)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let files = workspace(&[
|
||||
("aes.sv", aes_escaped),
|
||||
("aes_reseed_if.sv", RESEED_IF),
|
||||
("aes_bind.sv", bind),
|
||||
]);
|
||||
let edit = rename(
|
||||
&files,
|
||||
&path("aes.sv"),
|
||||
at(aes_escaped, "logic", "entropy_masking_req"),
|
||||
"masking_req",
|
||||
)
|
||||
.unwrap_or_else(|e| panic!("the rename was refused: {e}"));
|
||||
let after = apply(bind, &edit, &path("aes_bind.sv"));
|
||||
assert_eq!(
|
||||
after,
|
||||
"\
|
||||
module aes_bind;
|
||||
bind \\aes.escaped aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(masking_req)
|
||||
);
|
||||
endmodule
|
||||
",
|
||||
"the escaped target's connection still resolves and is edited: {edit:?}"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_bind_with_no_connections_naming_the_renamed_signal_is_untouched() {
|
||||
// An empty connection list plus a `defparam` — a shape with nothing for
|
||||
// any connection-surface rung to walk. Nothing here spells the renamed
|
||||
// name, so the file must come back byte for byte and warn about nothing.
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind aes aes_reseed_if u_aes_reseed_if ();
|
||||
defparam u_aes_reseed_if.SOME_PARAM = 1;
|
||||
endmodule
|
||||
";
|
||||
let (after, warnings) =
|
||||
rename_with_bind(bind, "aes.sv", "logic", "entropy_masking_req", "masking_req");
|
||||
assert_eq!(after, bind, "no connection in this bind file spells the renamed name");
|
||||
assert!(warnings.is_empty(), "nothing was left unaccounted for: {warnings:?}");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_bind_target_reached_through_a_generate_block_is_warned_about_never_guessed() {
|
||||
// `bind tb.gen[0].u_aes …`: the middle hop is a generate block, which the
|
||||
// index has no record of at all (an indexed segment "keeps only its
|
||||
// name", per `bind_target_path`'s doc comment) — so the path is one the
|
||||
// index cannot walk, and the contract is a warning, never a silent miss
|
||||
// and never a guess at which `u_aes` is meant.
|
||||
let tb = "\
|
||||
module tb;
|
||||
if (1) begin : gen
|
||||
aes u_aes (.clk_i(1'b0), .idle_o());
|
||||
end
|
||||
endmodule : tb
|
||||
";
|
||||
let bind = "\
|
||||
module aes_bind;
|
||||
bind tb.gen[0].u_aes aes_reseed_if u_aes_reseed_if (
|
||||
.entropy_masking_req(entropy_masking_req)
|
||||
);
|
||||
endmodule
|
||||
";
|
||||
let mut files = rtl(bind);
|
||||
files.push((path("tb.sv"), tb.to_string()));
|
||||
let edit =
|
||||
rename(&files, &path("aes.sv"), at(AES, "logic", "entropy_masking_req"), "masking_req")
|
||||
.expect("the rename over the rest of the design still succeeds");
|
||||
assert_eq!(
|
||||
apply(bind, &edit, &path("aes_bind.sv")),
|
||||
bind,
|
||||
"a path through a generate block is never guessed at: {edit:?}"
|
||||
);
|
||||
assert!(
|
||||
edit.warnings
|
||||
.iter()
|
||||
.any(|w| w.contains("aes_bind.sv") && w.contains("could not be resolved")),
|
||||
"the miss is said out loud rather than silently dropped: {:?}",
|
||||
edit.warnings
|
||||
);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// the real tree (TODO §63.1, the three QA renames)
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
/// §61.5's QA renames, run against a real checkout: `WidthPRDSBox` (a package
|
||||
/// parameter used bare through `module aes_sbox import aes_pkg::*;`),
|
||||
/// `entropy_masking_req` (the bare-name `bind` connection this lane is about)
|
||||
/// and `seed_en` (the two-level tail in the same `bind` file). Each is asked
|
||||
/// three ways — with no index records, with every record, and with every
|
||||
/// second one — and the three must answer identically; the two `bind` ones
|
||||
/// must edit `aes_bind.sv`.
|
||||
///
|
||||
/// `#[ignore]`d, and skipped unless `LUCISV_BIND_ROOT` names a tree (it is
|
||||
/// **read** and never written). Run it with
|
||||
/// `LUCISV_BIND_ROOT=$HOME/repo/opentitan tools/guard.sh -m 8 -t 1800 -- \
|
||||
/// cargo test -p vlog_refactor --test rename_bind -- --ignored --nocapture`.
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn the_three_qa_renames_agree_across_reuse_modes_and_edit_the_bind_file() {
|
||||
let Ok(root) = std::env::var("LUCISV_BIND_ROOT") else {
|
||||
eprintln!("LUCISV_BIND_ROOT unset — skipping");
|
||||
return;
|
||||
};
|
||||
let root = PathBuf::from(root);
|
||||
if !root.is_dir() {
|
||||
eprintln!("{} is not a directory — skipping", root.display());
|
||||
return;
|
||||
}
|
||||
let mut files = Vec::new();
|
||||
collect(&root, &mut files);
|
||||
files.sort();
|
||||
let sources: Vec<(PathBuf, String)> =
|
||||
files.iter().filter_map(|p| Some((p.clone(), std::fs::read_to_string(p).ok()?))).collect();
|
||||
assert!(!sources.is_empty(), "the tree holds no Verilog");
|
||||
println!("{} files read from {}", sources.len(), root.display());
|
||||
|
||||
// (file, the text the cursor is placed after, the name, the new name,
|
||||
// whether `aes_bind.sv` must be among the edited files)
|
||||
let cases: [(&str, &str, &str, &str, bool); 3] = [
|
||||
(
|
||||
"aes_pkg.sv",
|
||||
"parameter int unsigned WidthPRDSBox",
|
||||
"WidthPRDSBox",
|
||||
"WidthPRDSBoxX",
|
||||
false,
|
||||
),
|
||||
("aes.sv", "entropy_clearing_req, ", "entropy_masking_req", "masking_req_x", true),
|
||||
("aes_prng_clearing.sv", "logic seed_en", "seed_en", "seed_en_x", true),
|
||||
];
|
||||
for (file, prefix, name, new_name, bind_edited) in cases {
|
||||
let Some((path, text)) =
|
||||
sources.iter().find(|(p, _)| p.file_name().is_some_and(|n| n == file))
|
||||
else {
|
||||
eprintln!("{file} not in this tree — skipping that case");
|
||||
continue;
|
||||
};
|
||||
let offset = at(text, prefix, name);
|
||||
|
||||
let mut plain = RenameTrace::default();
|
||||
let none = rename_traced(&sources, path, offset, new_name, &mut plain);
|
||||
let all = Records::of(&sources, false);
|
||||
let mut every = RenameTrace::default();
|
||||
let full = rename_traced_with(&sources, path, offset, new_name, &all, &mut every);
|
||||
let half = Records::of(&sources, true);
|
||||
let mut mixed = RenameTrace::default();
|
||||
let some = rename_traced_with(&sources, path, offset, new_name, &half, &mut mixed);
|
||||
|
||||
let shape = |r: &Result<vlog_refactor::RefactorEdit, String>| match r {
|
||||
Ok(edit) => Ok((edit.edits.clone(), edit.warnings.clone())),
|
||||
Err(e) => Err(e.clone()),
|
||||
};
|
||||
assert_eq!(shape(&none), shape(&full), "{name}: every record changed the answer");
|
||||
assert_eq!(shape(&none), shape(&some), "{name}: half the records changed the answer");
|
||||
|
||||
let edit = none.unwrap_or_else(|e| panic!("{name} was refused: {e}"));
|
||||
let touched: Vec<String> = edit
|
||||
.edits
|
||||
.iter()
|
||||
.filter_map(|(p, _)| p.file_name().map(|n| n.to_string_lossy().into_owned()))
|
||||
.collect();
|
||||
println!(
|
||||
"{name} -> {new_name}: {} files, {} edits, {} warnings; parses {} / {} / {}",
|
||||
edit.edits.len(),
|
||||
edit.edits.iter().map(|(_, e)| e.len()).sum::<usize>(),
|
||||
edit.warnings.len(),
|
||||
plain.parses,
|
||||
every.parses,
|
||||
mixed.parses
|
||||
);
|
||||
for (p, edits) in &edit.edits {
|
||||
println!(" {} x{}", p.display(), edits.len());
|
||||
}
|
||||
for w in &edit.warnings {
|
||||
println!(" warn: {w}");
|
||||
}
|
||||
assert_eq!(
|
||||
touched.iter().any(|n| n == "aes_bind.sv"),
|
||||
bind_edited,
|
||||
"{name}: aes_bind.sv among {touched:?}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn collect(dir: &Path, out: &mut Vec<PathBuf>) {
|
||||
let Ok(entries) = std::fs::read_dir(dir) else { return };
|
||||
for entry in entries.flatten() {
|
||||
let path = entry.path();
|
||||
if path.is_dir() {
|
||||
collect(&path, out);
|
||||
} else if matches!(path.extension().and_then(|e| e.to_str()), Some("sv" | "svh")) {
|
||||
out.push(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Every source's index record, or every second one — the mixture a real
|
||||
/// rename gets from a partly warm store.
|
||||
struct Records {
|
||||
known: Vec<(PathBuf, String, vlog_semantic::FileFacts)>,
|
||||
}
|
||||
|
||||
impl Records {
|
||||
fn of(sources: &[(PathBuf, String)], half: bool) -> Records {
|
||||
let known = sources
|
||||
.iter()
|
||||
.enumerate()
|
||||
.filter(|(i, _)| !half || i % 2 == 0)
|
||||
.map(|(_, (path, text))| {
|
||||
(path.clone(), text.clone(), vlog_semantic::FileFacts::of(path.clone(), text))
|
||||
})
|
||||
.collect();
|
||||
Records { known }
|
||||
}
|
||||
}
|
||||
|
||||
impl vlog_refactor::KnownFacts for Records {
|
||||
fn facts_for(&self, path: &Path, text: &str) -> Option<vlog_semantic::FileFacts> {
|
||||
self.known
|
||||
.iter()
|
||||
.find(|(held, bytes, _)| held == path && bytes == text)
|
||||
.map(|(_, _, facts)| facts.clone())
|
||||
}
|
||||
}
|
||||
@@ -333,14 +333,18 @@ impl<'a> Binder<'a> {
|
||||
/// `bind prim_fifo_sync …` names the declaration a `go to definition`
|
||||
/// should jump to. A hierarchical *instance* path (`top.u_dut.u_core`,
|
||||
/// `top.gen[0].u_core`) names a place in an elaborated hierarchy that no
|
||||
/// single file knows, so it records nothing at all: the alternative is a
|
||||
/// guess, and a guess here is a wrong answer.
|
||||
/// single file knows, so it records **no reference of its own**: the
|
||||
/// alternative is a guess, and a guess here is a wrong answer. It is
|
||||
/// still the scope the connections elaborate in, and
|
||||
/// [`bind_target_path`] is that scope written the way the index reads a
|
||||
/// path.
|
||||
/// * the **instantiated module**, exactly as before, so a bind still makes
|
||||
/// the bound module a dependency of this file.
|
||||
/// * each connection: the `.port` half against the module being bound in
|
||||
/// (an ordinary [`Target::Port`], the same one a plain instantiation
|
||||
/// uses), and the expression half in the target's scope
|
||||
/// ([`Target::BindScope`]).
|
||||
/// uses), and the expression half in the target's scope — a bare name
|
||||
/// through [`Target::BindScope`], a hierarchical path through
|
||||
/// [`Target::BindMember`].
|
||||
///
|
||||
/// The instance name is still **not** declared here: it belongs to the
|
||||
/// target scope, and declaring it in this one would put a name in a scope
|
||||
@@ -357,7 +361,7 @@ impl<'a> Binder<'a> {
|
||||
let i = &b.inst;
|
||||
let ns = self.exact_or_empty(i.module_span, &i.module);
|
||||
self.use_name(scope, &i.module, ns, Target::Module);
|
||||
let previous = std::mem::replace(&mut self.bind_target, head.map(|h| h.name.clone()));
|
||||
let previous = std::mem::replace(&mut self.bind_target, bind_target_path(b));
|
||||
for c in i.params.iter().flatten().filter_map(ListElem::ok) {
|
||||
self.bind_connection(c, &i.module, scope);
|
||||
}
|
||||
@@ -588,3 +592,29 @@ impl<'a> Binder<'a> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
/// The scope a `bind`'s connection expressions are elaborated in, spelled the
|
||||
/// way the workspace's member tables read a path: one `::` per segment.
|
||||
///
|
||||
/// A lone segment is the target module or interface, and `aes` is the unit the
|
||||
/// index answers `aes::entropy_masking_req` in. A hierarchical path is the
|
||||
/// same question one hop at a time — `tb.u_aes` is `tb::u_aes`, which
|
||||
/// `fold_path` walks by asking `tb` for the declared type of its instance
|
||||
/// `u_aes` — so the path resolves whenever the index holds every hop and is
|
||||
/// *said out loud* when it does not, instead of silently resolving the
|
||||
/// connection in the scope the directive is written in, which is not the
|
||||
/// scope it elaborates in.
|
||||
///
|
||||
/// An indexed segment (`gen[0]`) keeps only its name: the index has no record
|
||||
/// of a generate block, so such a path answers nothing either way, and a
|
||||
/// spelling the user can recognize is what the warning needs.
|
||||
fn bind_target_path(b: &BindDirective) -> Option<String> {
|
||||
let mut out = String::new();
|
||||
for seg in &b.target {
|
||||
if !out.is_empty() {
|
||||
out.push_str("::");
|
||||
}
|
||||
out.push_str(&seg.name);
|
||||
}
|
||||
(!out.is_empty()).then_some(out)
|
||||
}
|
||||
@@ -103,6 +103,14 @@ pub(crate) enum Target {
|
||||
/// answers first and the scope the directive is written in second — the
|
||||
/// [`Target::InlineConstraint`] shape, with the same refusal to guess.
|
||||
BindScope { target: String },
|
||||
/// A **hierarchical path** written in the expression half of a `bind`
|
||||
/// directive's connection: `bind aes chk u (.s(u_core.u_prng.seed_en));`.
|
||||
/// The spine is rooted in the target's scope exactly as a bare name is, so
|
||||
/// `head` is looked up there (and not in the scope the directive is
|
||||
/// written in, which is a bind module declaring nothing at all) and each
|
||||
/// of `mids` walks one link further — the [`Target::MemberOf`] walk, with
|
||||
/// its start moved from the writing scope to the target's.
|
||||
BindMember { target: String, head: String, mids: Vec<String> },
|
||||
/// The `x` of `this.x`: the enclosing class's scope only.
|
||||
ThisMember,
|
||||
/// The `x` of `super.x`: always the base class's business.
|
||||
@@ -312,6 +320,12 @@ impl<'a> Binder<'a> {
|
||||
// else. A name written with a head of its own already carries the
|
||||
// right target and is left alone.
|
||||
(None, Some(scope), Target::Lexical) => Target::BindScope { target: scope.clone() },
|
||||
// And the same rule for a hierarchical path in one: its head is a
|
||||
// name in the target's scope, so the whole spine is rooted there
|
||||
// rather than in the scope the directive is written in.
|
||||
(None, Some(scope), Target::MemberOf { head, mids }) => {
|
||||
Target::BindMember { target: scope.clone(), head: head.clone(), mids: mids.clone() }
|
||||
}
|
||||
_ => target,
|
||||
};
|
||||
self.pending.push(Pending { name: name.to_string(), name_span, scope, target });
|
||||
|
||||
@@ -145,7 +145,18 @@ use crate::workspace::{
|
||||
/// u_x.sig;`) as though the tail resolved to nothing — for exactly the files
|
||||
/// it had cached, which is the half-right answer every one of these bumps
|
||||
/// exists to prevent. See `docs/features/hierarchical-tail/README.md`.
|
||||
pub const FACTS_FORMAT: u32 = 19;
|
||||
/// 19 → 20 (2026-09-11, rename-bind-occurrences): no new field, but a
|
||||
/// **different answer in the same fields** — a `bind`'s connection expression
|
||||
/// is now recorded against the *hierarchical* surface of the target scope and
|
||||
/// under the `target::name` path spelling, where it used to carry the
|
||||
/// connection surface and a path with no name on it. So a module's internal
|
||||
/// net named in `bind aes chk u (.req(entropy_masking_req))` is a reference
|
||||
/// where it resolved to nothing before. A store written by a 0.53.0 build
|
||||
/// would answer definition, find-references and the rename of such a name as
|
||||
/// though the `bind` file did not mention it — for exactly the files it had
|
||||
/// cached, which is the half-right answer every one of these bumps exists to
|
||||
/// prevent. See `docs/features/rename-bind-occurrences/README.md`.
|
||||
pub const FACTS_FORMAT: u32 = 20;
|
||||
|
||||
impl FileFacts {
|
||||
/// These facts as one line's worth of fields, tab-separated.
|
||||
|
||||
@@ -75,6 +75,9 @@ pub(crate) fn resolve(scopes: &[Scope], symbols: &[Symbol], p: &Pending) -> Opti
|
||||
}
|
||||
return found;
|
||||
}
|
||||
Target::BindMember { target, head, mids } => {
|
||||
return bind_member(scopes, symbols, target, head, mids, &p.name)
|
||||
}
|
||||
Target::ThisMember => this_member(scopes, symbols, p.scope, &p.name),
|
||||
Target::SuperMember => super_member(scopes, p.scope),
|
||||
})
|
||||
@@ -87,9 +90,18 @@ pub(crate) fn resolve(scopes: &[Scope], symbols: &[Symbol], p: &Pending) -> Opti
|
||||
/// `None`, never `NotFound`: a module opens a scope per generate block, so a
|
||||
/// connection may legitimately name something the module's *own* scope does
|
||||
/// not hold, and "absent from this scope" is not "absent". The target
|
||||
/// declared somewhere else is the very question [`Target::Port`] asks of the
|
||||
/// workspace — "is `name` a member of this module?" — in the same
|
||||
/// one-segment path spelling `follow_one` reads.
|
||||
/// declared somewhere else is the same question a hierarchical tail asks of
|
||||
/// the workspace — "is `name` a member of this module?" — in the
|
||||
/// `unit::name` path spelling `follow_one` reads.
|
||||
///
|
||||
/// The surface is the **hierarchical** one (IEEE 1800 §23.6): a bind's
|
||||
/// connection may name any of the target's declarations, its internal nets
|
||||
/// and variables included, which is exactly what `bind aes chk u
|
||||
/// (.req(entropy_masking_req))` does and what the connection surface — ports
|
||||
/// and parameters only — cannot answer. Asking the narrow surface is what
|
||||
/// made such a connection resolve to nothing, and a `name`-less path is what
|
||||
/// kept the miss silent: the warning scan names the unit a candidate was
|
||||
/// searched in by splitting the path at its `::`.
|
||||
fn in_bind_target(
|
||||
scopes: &[Scope],
|
||||
symbols: &[Symbol],
|
||||
@@ -99,12 +111,45 @@ fn in_bind_target(
|
||||
match owning_scope(scopes, symbols, target, is_instantiable) {
|
||||
Some(scope) => scopes.get(scope.0 as usize)?.lookup_local(name).map(Resolution::Resolved),
|
||||
None => Some(Resolution::ExternalCandidate {
|
||||
paths: vec![target.to_string()],
|
||||
surface: Surface::Connection,
|
||||
paths: vec![format!("{target}::{name}")],
|
||||
surface: Surface::Hierarchical,
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
/// A hierarchical path written in a `bind`'s connection, rooted where the
|
||||
/// directive elaborates rather than where it is written.
|
||||
///
|
||||
/// `bind aes chk u (.s(u_aes_core.u_aes_prng_clearing.seed_en))` is
|
||||
/// [`member_of`]'s walk with one substitution: the head starts in `aes`'s
|
||||
/// scope instead of the writing scope's lexical chain. So `head` is simply
|
||||
/// one more link of the spine, and the target is where the spine begins — its
|
||||
/// own scope when this file declares the target, and otherwise the unit the
|
||||
/// workspace answers hierarchical members of.
|
||||
///
|
||||
/// `None` — no reference at all — wherever [`member_of`] would record none:
|
||||
/// a link this file declares as something with no members to search, or a
|
||||
/// name genuinely absent from a scope this file holds whole.
|
||||
fn bind_member(
|
||||
scopes: &[Scope],
|
||||
symbols: &[Symbol],
|
||||
target: &str,
|
||||
head: &str,
|
||||
mids: &[String],
|
||||
name: &str,
|
||||
) -> Option<Resolution> {
|
||||
let mut here = match owning_scope(scopes, symbols, target, is_instantiable) {
|
||||
Some(scope) => MemberSite::Scope(scope),
|
||||
None => MemberSite::Unit { path: target.to_string(), surface: Surface::Hierarchical },
|
||||
};
|
||||
for link in std::iter::once(head).chain(mids.iter().map(String::as_str)) {
|
||||
here = descend(scopes, symbols, here, link)?;
|
||||
}
|
||||
// Never the `InheritedCandidate` shape: that is a class's business, and
|
||||
// the head of this spine is a place in the design hierarchy.
|
||||
member_at(scopes, symbols, here, name, false)
|
||||
}
|
||||
|
||||
/// A name looked up **only** in the scope it is written in, never outward: a
|
||||
/// modport's port list and a clocking block's signal list, both of which name
|
||||
/// members of the interface (or module) they are written in and nothing else.
|
||||
@@ -177,16 +222,34 @@ fn member_of(
|
||||
mids: &[String],
|
||||
name: &str,
|
||||
) -> Option<Resolution> {
|
||||
match member_site(scopes, symbols, from, head, mids)? {
|
||||
let site = member_site(scopes, symbols, from, head, mids)?;
|
||||
member_at(scopes, symbols, site, name, mids.is_empty())
|
||||
}
|
||||
|
||||
/// The **tail** of a spine: `name` looked up in the site the links before it
|
||||
/// landed on.
|
||||
///
|
||||
/// `direct` says whether this is a plain `head.member` — the one shape that
|
||||
/// may report an inherited candidate, because for a longer chain the base is
|
||||
/// the owner of an earlier link, not of this name, and claiming it here would
|
||||
/// send the overlay's inheritance chase after the wrong class.
|
||||
///
|
||||
/// Shared with [`bind_member`], which walks the same links from a different
|
||||
/// start: two spellings of this lookup would eventually answer one name two
|
||||
/// ways.
|
||||
fn member_at(
|
||||
scopes: &[Scope],
|
||||
symbols: &[Symbol],
|
||||
site: MemberSite,
|
||||
name: &str,
|
||||
direct: bool,
|
||||
) -> Option<Resolution> {
|
||||
match site {
|
||||
MemberSite::Scope(scope) => match member_in_chain(scopes, symbols, scope, name) {
|
||||
Ok(id) => Some(Resolution::Resolved(id)),
|
||||
// The chain leaves this file: the base, plus the path the
|
||||
// workspace's member table answers it by. Only a **direct**
|
||||
// `head.member` reports the base — for a longer chain the base is
|
||||
// the owner of an earlier link, not of this name, and claiming it
|
||||
// here would send the overlay's inheritance chase after the wrong
|
||||
// class.
|
||||
Err(Some(base)) if mids.is_empty() => Some(Resolution::InheritedCandidate {
|
||||
// workspace's member table answers it by.
|
||||
Err(Some(base)) if direct => Some(Resolution::InheritedCandidate {
|
||||
paths: vec![format!("{}::{name}", last_segment(&base))],
|
||||
base,
|
||||
}),
|
||||
@@ -234,27 +297,41 @@ pub(crate) fn member_site(
|
||||
) -> Option<MemberSite> {
|
||||
let mut here = head_site(scopes, symbols, from, head)?;
|
||||
for mid in mids {
|
||||
here = match here {
|
||||
MemberSite::Scope(scope) => match member_in_chain(scopes, symbols, scope, mid) {
|
||||
Ok(id) => link_type(scopes, symbols, id)?,
|
||||
// The chain leaves this file at a base class: everything from
|
||||
// here on is one composed path for the workspace to walk.
|
||||
Err(Some(base)) => MemberSite::Unit {
|
||||
path: format!("{}::{mid}", last_segment(&base)),
|
||||
surface: Surface::Connection,
|
||||
},
|
||||
Err(None) => return None,
|
||||
},
|
||||
// Already outside this file — each further name is one more
|
||||
// segment of the path `follow_one` walks member by member.
|
||||
MemberSite::Unit { path, surface } => {
|
||||
MemberSite::Unit { path: format!("{path}::{mid}"), surface }
|
||||
}
|
||||
};
|
||||
here = descend(scopes, symbols, here, mid)?;
|
||||
}
|
||||
Some(here)
|
||||
}
|
||||
|
||||
/// One more link of a spine: where `here`'s member `link` puts the cursor.
|
||||
///
|
||||
/// Shared with [`bind_member`] for the same reason [`member_at`] is — a
|
||||
/// second spelling of the hop would eventually walk somewhere the first does
|
||||
/// not.
|
||||
fn descend(
|
||||
scopes: &[Scope],
|
||||
symbols: &[Symbol],
|
||||
here: MemberSite,
|
||||
link: &str,
|
||||
) -> Option<MemberSite> {
|
||||
match here {
|
||||
MemberSite::Scope(scope) => match member_in_chain(scopes, symbols, scope, link) {
|
||||
Ok(id) => link_type(scopes, symbols, id),
|
||||
// The chain leaves this file at a base class: everything from
|
||||
// here on is one composed path for the workspace to walk.
|
||||
Err(Some(base)) => Some(MemberSite::Unit {
|
||||
path: format!("{}::{link}", last_segment(&base)),
|
||||
surface: Surface::Connection,
|
||||
}),
|
||||
Err(None) => None,
|
||||
},
|
||||
// Already outside this file — each further name is one more segment
|
||||
// of the path `follow_one` walks member by member.
|
||||
MemberSite::Unit { path, surface } => {
|
||||
Some(MemberSite::Unit { path: format!("{path}::{link}"), surface })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Where the *first* segment of a spine puts the cursor.
|
||||
fn head_site(
|
||||
scopes: &[Scope],
|
||||
|
||||
@@ -347,13 +347,22 @@ fn facts_from_analysis(
|
||||
}
|
||||
// The **connection** surface only. A `Local` posting exists so that a
|
||||
// declaration another file can point at carries its own file's uses
|
||||
// without that file being re-read, and every consumer of the postings
|
||||
// that matters here — the rename, which re-analyses the declaring file
|
||||
// anyway — already has them. Posting a module's every internal net use
|
||||
// would multiply the reference table by the size of an RTL body for an
|
||||
// answer nothing reads; the hierarchical surface is what a *cross-file*
|
||||
// tail resolves through, and that half is an `External` fact below.
|
||||
// See `docs/features/hierarchical-tail/README.md`, "what did not widen".
|
||||
// without that file being re-read. Posting a module's every internal net
|
||||
// use would multiply the reference table by the size of an RTL body; the
|
||||
// hierarchical surface is what a *cross-file* tail resolves through, and
|
||||
// that half is an `External` fact below.
|
||||
//
|
||||
// Two consumers read the postings for a hierarchical-only declaration,
|
||||
// and each supplies the missing local half by re-analysing that one file:
|
||||
// a rename (`vlog_refactor`), which re-analyses the declaring file
|
||||
// anyway, and — since §64.1 — `lucisv_server`'s
|
||||
// `nav::declaring_file_uses`, which parses exactly the declaring file
|
||||
// when it is closed and a `references` request arrived from a cross-file
|
||||
// use. So the narrow table costs one file's parse on one request shape,
|
||||
// paid by the caller that needs it, instead of a reference table sized by
|
||||
// every RTL body in the workspace. See
|
||||
// `docs/features/hierarchical-tail/README.md`, "what did not widen", and
|
||||
// `docs/features/references-hierarchical-surface/README.md`.
|
||||
// Which kind lands on which surface is `hierarchy::surface_of`, the one
|
||||
// rule this filter and the member tables both read (§49's QA asked for
|
||||
// the pointer).
|
||||
|
||||
@@ -0,0 +1,375 @@
|
||||
# Implementation Plan: 0.52.0 Performance Review Follow-Up
|
||||
|
||||
## Executive Summary
|
||||
|
||||
An independent review of release `0.52.0` (commit [`3ceba21`](performance_052_review.md)) confirmed major performance improvements over `0.51.0` (e.g., unchanged menu filtering reduced from 24.3 ms to 0.32 ms, queued definition unblocked from 24.4 ms to 0.29 ms, no-symbol preflight reduced from 2.2 s to 0.22 ms, tail rename cut by 17.1%, and server-reported loaded scan time cut by ~58%).
|
||||
|
||||
However, the review uncovered one correctness defect (**F1**) and two benchmark measurement defects (**F2**, **F3**), alongside five architectural guidance points and three unmeasured candidate performance areas (**N1**, **N2**, **N3**):
|
||||
1. **F1 (P2 Correctness):** Split startup discovery duplicates modules behind directory aliases (symlinks), breaking startup/rescan equivalence and blocking valid renames until a full rescan.
|
||||
2. **F2 (P2 Harness):** Standalone `scanload` on a fresh storage directory includes an unprimed cold trial under a warm label (0 hits / 3,974 misses).
|
||||
3. **F3 (P2 Harness):** `scanload` completion and mid-scan classifications conflate client request window chatter with true scan completion.
|
||||
4. **Architectural & Performance Next Actions (Items 3–5 & N1–N3):**
|
||||
- **Item 3 / N1:** Retain the lint snapshot; target the remaining 114 ms first-after-edit cost via dirty-buffer lexer/parser/analysis work reduction.
|
||||
- **Item 4 / N2:** Retain engine-owned preflight and content-tied `KnownFacts` reuse; target the 163 ms scope construction (31 ms store decode) and the 1,251-file / 2.88 s common-port rename (`clk_i`).
|
||||
- **Item 5 / N3:** Retain startup ordering and publication cadence (subject to F1); target publication merge cost (`WorkspaceIndex::absorb`) before considering tighter publication intervals.
|
||||
|
||||
This plan details the technical design, contracts, verification matrix, and sequencing to address these findings without regressing existing performance or breaking repository invariants.
|
||||
|
||||
---
|
||||
|
||||
## User Review Required
|
||||
|
||||
> [!IMPORTANT]
|
||||
> **Zero Source Code Changes in This Planning Phase:** As requested, no source code, test, or harness files have been modified. Execution requires explicit approval of this implementation plan.
|
||||
|
||||
> [!WARNING]
|
||||
> **F1 Fix Strategy (Directory Identity & Path-Selection Contract):** Split startup discovery was introduced to provide immediate responsiveness (78 ms cold / 114 ms warm first answer) by leading with open buffer folders. When a directory has symlink aliases sorting before its real path (e.g. `a_alias -> z_real`), split discovery cannot unilaterally pick `z_real` without diverging from the canonical root walk which selects `a_alias`. The approved strategy is:
|
||||
> 1. Share directory identity (`DirId`) between the neighbourhood walk and root walk.
|
||||
> 2. If an alias sorting before the target is detected (or equivalent path selection cannot be proven ahead of the root walk), execute a bounded fallback to the full single root walk (which runs in <1 ms on test fixtures and ~158 ms on OpenTitan), ensuring 100% path and declaration equivalence across startup, rescan, and restart.
|
||||
|
||||
---
|
||||
|
||||
## Technical Analysis of Findings & Next Actions
|
||||
|
||||
### 1. F1: Split Startup Discovery Duplicates Modules Behind Directory Aliases
|
||||
- **Location:** `crates/lucisv_server/src/state/discover.rs:429-560` (`first_scope`, `neighbourhood_files`, `walked_rest`, `rest_of_scope`), and `crates/lucisv_core/src/walk.rs:121-164` (`collect_files_below`).
|
||||
- **Mechanism:**
|
||||
1. Regular single root walk maintains `Walk.visited: HashSet<DirId>` (`DirId` is `(u64, u64)` dev/ino on Unix, canonical `PathBuf` elsewhere). It enters each directory identity once and yields files under the first path spelling encountered.
|
||||
2. In `first_scope`, `neighbourhood_files` calls `collect_files_below`, which instantiates its own `Walk` with a fresh `visited` set. If `z_real/tb.sv` is open, it walks `z_real`, finding `z_real/child.sv`.
|
||||
3. `first_scope` records `seen: HashSet<PathBuf>` containing `z_real/child.sv`.
|
||||
4. Later, `rest_of_scope` runs `collect_files_with` from workspace root with another fresh `visited` set. The root walk visits `a_alias` first (alphabetically before `z_real`). It discovers `a_alias/child.sv`.
|
||||
5. Filtering in `rest_of_scope` only checks `seen.contains(&found.path)`. Because `a_alias/child.sv != z_real/child.sv`, `a_alias/child.sv` is kept!
|
||||
6. The index now contains both `z_real/child.sv` and `a_alias/child.sv`. Definition returns two targets; `prepareRename` refuses because `child` is declared in multiple indexed files.
|
||||
7. On whole rescan, a single root walk runs (`first_scope` is bypassed for `trace.number > 1`), discovering only `a_alias/child.sv`. Thus startup and rescan disagree.
|
||||
8. Furthermore, `HEAD_WALK_MAX` fallback unconditionally calls `files.extend(head)`, which unions the disjoint walks and reproduces the duplicate bug even when falling back.
|
||||
|
||||
### 2. F2: Standalone Warm Scanload Unprimed First Trial
|
||||
- **Location:** `tools/perf/phases_r4.py:237-260` (`load_cell`), and `tools/perf/lspclient.py:105-110` (`Session.__enter__`).
|
||||
- **Mechanism:**
|
||||
1. When running `scanload` standalone with `--storage <dir>`, `load_cell` sets `cold=(cache == "cold")`.
|
||||
2. For `cache == "warm"`, `cold=False`. `Session.__enter__` calls `os.makedirs(self.storage, exist_ok=True)`.
|
||||
3. If `<dir>` is newly created, it contains no index cache.
|
||||
4. Trial 1 runs cold (0 hits / 3,974 misses, 1,684 ms parse time) and populates the cache.
|
||||
5. Trial 2 runs warm (3,974 hits / 0 misses, 0 ms parse time).
|
||||
6. The harness groups Trial 1 and Trial 2 under the single warm label.
|
||||
|
||||
### 3. F3: Conflation of Scan Completion with Client Request Window
|
||||
- **Location:** `tools/perf/phases_r4.py:128-139` (`settled_at`), consumed by `summary` (lines 178–205).
|
||||
- **Mechanism:**
|
||||
1. `settled_at` calls `s.wait_quiet(QUIET)` after the fixed request window (3,500 ms).
|
||||
2. In `tools/perf/lspclient.py:334-355`, `wait_quiet` checks `len(self.notifications)`.
|
||||
3. A `--verbose` server emits `window/logMessage` lines for requests and timings. Furthermore, `wait_quiet` measures `last - started`, which due to clock reads is always `> 0.0`.
|
||||
4. Consequently, `last = entered + more / 1000.0 if more > 0.0 else quiet_at` always selects `entered + more`, anchoring the settle timestamp at ~3,406 ms regardless of whether the scan ended at 1,770 ms.
|
||||
5. In `summary`, responses are filtered with `a["at"] <= run["settle"]`. All 105 responses fall inside 3,400 ms, classifying 100% of responses as "mid-scan" and 0 as "after-settle".
|
||||
|
||||
### 4. Implementation Assessment Items 3, 4, 5 and Candidate Experiments N1, N2, N3
|
||||
- **Item 3 & N1 (First Action After Edit):**
|
||||
- Lint snapshot in `crates/lucisv_server/src/lint_snapshot.rs` caches clean results (0.23 ms repeat).
|
||||
- First-after-edit costs 113.6 ms because `crates/lucisv_server/src/state/mod.rs:715` invokes `Document::new`, which unconditionally runs `tokenize`, `parse_tolerant`, `collect_defines`, `analyze`, `resolve_external`, and `LineIndex::new` over the full 42,000-line buffer.
|
||||
- Work reduction must target tokenization/parsing/analysis allocations on edited buffers without breaking AST fidelity.
|
||||
- **Item 4 & N2 (Scope Construction, Facts Decode & Common-Port Rename):**
|
||||
- Tail rename scope stage: 163 ms total, with 31 ms in `known.facts_for` (store deserialization) and ~100 ms parsing the 134 kept files.
|
||||
- Common port rename (`clk_i`): 1,251 files mention `clk_i`, requiring 1,251 full parses and semantic analyses (2.88 s wall time, 1.8 GiB peak RSS).
|
||||
- Optimization target: Streamlined deserialization of `KnownFacts` and lighter-weight analysis retention for files whose AST is only needed for identifier occurrence verification.
|
||||
- **Item 5 & N3 (Quiet Scan & Publication Cost):**
|
||||
- A startup scan under load publishes staged records via `crates/lucisv_server/src/state/mod.rs:1183` (`publish_scan`).
|
||||
- Each publication calls `WorkspaceIndex::absorb`, which calls `self.merge(None)`—a full whole-index merge of all symbols and definitions across the entire workspace.
|
||||
- While `PUBLISH_EVERY = 512` reduced publication frequency, each publication still incurs the ~70 ms whole-index merge. Reducing publication cost requires targeted incremental symbol merging in `vlog_semantic`.
|
||||
|
||||
---
|
||||
|
||||
## Detailed Implementation Plan
|
||||
|
||||
### Phase 1: Correctness Fixes & Harness Repairs (F1, F2, F3)
|
||||
|
||||
```
|
||||
[Phase 1 Sequencing]
|
||||
┌─────────────────────────────────────────────────────────────┐
|
||||
│ Step 1.1: Fix F1 (lucisv_core::walk & server discover state)│
|
||||
└──────────────────────────────┬──────────────────────────────┘
|
||||
│
|
||||
┌──────────────────────────────▼──────────────────────────────┐
|
||||
│ Step 1.2: Fix F2 (Harness warm priming & cache hit counters)│
|
||||
└──────────────────────────────┬──────────────────────────────┘
|
||||
│
|
||||
┌──────────────────────────────▼──────────────────────────────┐
|
||||
│ Step 1.3: Fix F3 (True scan-completion & response partition)│
|
||||
└─────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
#### Step 1.1: Fix F1 — Directory Identity and Path Selection Across Split Discovery
|
||||
|
||||
##### 1. Handshake & Architecture Amendments (`docs/topo.md`)
|
||||
- **Amend `lucisv_core::walk` API:**
|
||||
Add a directory identity tracking type and update `collect_files_below` / `collect_files_with`:
|
||||
```rust
|
||||
// In crates/lucisv_core/src/walk.rs
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct WalkIdentity {
|
||||
pub dir_id: DirId,
|
||||
pub canonical_path: PathBuf,
|
||||
}
|
||||
|
||||
/// Shared directory identity tracker across walks.
|
||||
#[derive(Default, Debug)]
|
||||
pub struct DirectoryTracker {
|
||||
visited: HashMap<DirId, PathBuf>,
|
||||
}
|
||||
|
||||
impl DirectoryTracker {
|
||||
pub fn new() -> Self;
|
||||
pub fn is_visited(&self, dir: &Path) -> bool;
|
||||
pub fn record_or_check(&mut self, dir: &Path) -> Option<&PathBuf>;
|
||||
}
|
||||
|
||||
pub fn collect_files_below_tracked(
|
||||
root: &Path,
|
||||
input: &Path,
|
||||
exclude: &[String],
|
||||
gitignore: bool,
|
||||
tracker: &mut DirectoryTracker,
|
||||
found: &mut dyn FnMut(PathBuf, Option<u64>),
|
||||
warn: &mut dyn FnMut(Warning),
|
||||
) -> Result<(), String>;
|
||||
|
||||
pub fn collect_files_with_tracker(
|
||||
input: &str,
|
||||
exclude: &[String],
|
||||
gitignore: bool,
|
||||
tracker: &mut DirectoryTracker,
|
||||
found: &mut dyn FnMut(PathBuf, Option<u64>),
|
||||
warn: &mut dyn FnMut(Warning),
|
||||
) -> Result<(), String>;
|
||||
```
|
||||
|
||||
##### 2. Server Discovery Repair (`crates/lucisv_server/src/state/discover.rs`)
|
||||
- **Modify `neighbourhood_files` and `PendingDiscovery`:**
|
||||
- `neighbourhood_files` passes a `&mut DirectoryTracker` into `collect_files_below_tracked`.
|
||||
- Store the populated `DirectoryTracker` in `PendingDiscovery`.
|
||||
- **Pre-check Path Selection Equivalence:**
|
||||
- When inspecting the workspace roots, check if any directory entry in the root is a symlink pointing to an ancestor/sibling of the neighbourhood directory that sorts before the neighbourhood path.
|
||||
- If an alias sorting *before* the target exists (such as `a_alias -> z_real`), split discovery cannot unilaterally index `z_real` without violating the root walk's canonical path choice.
|
||||
- In this case, **trigger the bounded fallback**: discard the partial neighbourhood and execute a single root walk (`self.collect_sources(...)`), returning `(sources, None)`.
|
||||
- **Repair `HEAD_WALK_MAX` Fallback:**
|
||||
- In `first_scope` (lines 450–459), when `head.len() > HEAD_WALK_MAX`:
|
||||
**Do NOT union `head` and `walked_rest`!**
|
||||
Instead, discard `head` and execute `self.collect_sources(watch, HeldAnalyses::Wanted, trace)`, returning `(sources, None)`.
|
||||
- **Modify `rest_of_scope`:**
|
||||
- Use the `DirectoryTracker` from `PendingDiscovery` during the root walk so any directory identity already visited in the neighbourhood walk is recognized and not re-entered under an alternate alias.
|
||||
- Filter `walked` files using both `seen_paths` and `seen_dir_identities`.
|
||||
|
||||
##### 3. Regression Test Fixture (`crates/lucisv_server/src/server/tests/startup.rs`)
|
||||
- Add automated integration tests replicating the review's reproduction:
|
||||
- **Fixture A (Alias sorting before target):** `workspace/a_alias -> z_real`, `workspace/z_real/{child.sv, tb.sv}`.
|
||||
- **Fixture B (Alias sorting after target):** `workspace/z_alias -> a_real`, `workspace/a_real/{child.sv, tb.sv}`.
|
||||
- **Fixture C (Multiple aliases):** `a_alias -> target`, `m_alias -> target`, `target/{child.sv}`.
|
||||
- **Fixture D (Ancestor cycle):** `workspace/sub/up -> ..`.
|
||||
- **Fixture E (Ignore rules):** `.gitignore` excluding files inside aliased directories.
|
||||
- **Fixture F (Open unsaved buffer):** Unsaved buffer open at `z_real/tb.sv` with modified text.
|
||||
- **Fixture G (True duplicates):** Genuine duplicate module declaration in two distinct physical files. Verify ambiguity refusal is preserved!
|
||||
- **Assertions:**
|
||||
1. Index file paths after startup `==` index file paths after a whole rescan `==` index file paths after restart.
|
||||
2. Definition on `child` returns exactly 1 location.
|
||||
3. `textDocument/prepareRename` on `child` is accepted.
|
||||
4. True duplicate module refusal is still refused with identical diagnostic message.
|
||||
|
||||
---
|
||||
|
||||
#### Step 1.2: Fix F2 — Standalone Warm Harness Priming & Cache Counters
|
||||
|
||||
##### 1. Untimed Priming in Harness (`tools/perf/phases_r4.py`)
|
||||
- In `load_cell(cache, buffers, rate, params, where="")`:
|
||||
```python
|
||||
def prime_storage(storage_name, extra):
|
||||
"""Perform an untimed session to prime the index cache before warm trials."""
|
||||
with session("workspace", cold=False, verbose=True, storage_name=storage_name) as s:
|
||||
s.initialize()
|
||||
open_buffers(s, extra)
|
||||
s.wait_quiet(1.5)
|
||||
s.take_notifications()
|
||||
|
||||
# Inside load_cell:
|
||||
if cache == "warm":
|
||||
# If cache store does not exist or has no valid store file:
|
||||
store_path = os.path.join(ARGS.storage, "r4-load")
|
||||
if not os.path.exists(store_path) or not os.listdir(store_path):
|
||||
prime_storage("r4-load", extra)
|
||||
```
|
||||
|
||||
##### 2. Cache Counters Recording & Assertion
|
||||
- Inspect `counts = scans[0].get("counts", {})` parsed from `traces(s)`:
|
||||
- Extract `hits = counts.get("hits", 0)` and `misses = counts.get("misses", 0)`.
|
||||
- In `summary(runs)`: Include `cache_hits: [run["hits"] for run in runs]` and `cache_misses: [run["misses"] for run in runs]`.
|
||||
- In `cell_status(got)`: If `cache == "warm"`, assert `all(h > 0 for h in got["cache_hits"])`. If any warm trial records 0 hits or unexpected misses, set `status = "error"` with diagnostic message.
|
||||
|
||||
##### 3. Verification Test
|
||||
- Execute `tools/perf/bench.py scanload` with a brand-new, non-existent `--storage` directory.
|
||||
- Verify:
|
||||
- Untimed prime runs cleanly.
|
||||
- Trial 1 and Trial 2 both report ~3,974 hits and 0 misses.
|
||||
|
||||
---
|
||||
|
||||
#### Step 1.3: Fix F3 — Decoupling Scan Completion from Client Request Window
|
||||
|
||||
##### 1. Scan-Specific Completion Timestamp (`tools/perf/phases_r4.py`)
|
||||
- **Capture True Scan Completion:**
|
||||
- The server outputs `timing: scan <n> stages (...) total=<ms>` upon scan completion, and sends `$/progress` token with `kind: "end"`.
|
||||
- In `tools/perf/lspclient.py`, record `_scan_completed_at`: the `perf_counter` timestamp when the reader thread parses the scan's final progress notification or `timing: scan` line.
|
||||
- In `phases_r4.py`:
|
||||
Replace the flawed `settled_at` logic with:
|
||||
```python
|
||||
def scan_completed_ms(s, origin):
|
||||
"""Milliseconds from `origin` to the scan's actual completion."""
|
||||
if s.scan_completed_at is not None:
|
||||
return (s.scan_completed_at - origin) * 1000.0
|
||||
# Fallback to server-reported scan total if notification timestamp unavailable:
|
||||
sc = traces(s)
|
||||
if sc and "stages" in sc[0]:
|
||||
return sc[0]["stages"].get("total", 0.0)
|
||||
return None
|
||||
```
|
||||
|
||||
##### 2. Response Partitioning in `summary`
|
||||
- Use `scan_completed_ms` to partition responses:
|
||||
```python
|
||||
inside = [a["ms"] for run in runs for a in run["answers"]
|
||||
if a["at"] <= run["scan_completed_ms"]]
|
||||
after = [a["ms"] for run in runs for a in run["answers"]
|
||||
if a["at"] > run["scan_completed_ms"]]
|
||||
```
|
||||
- Expose both in row output:
|
||||
- `mid_scan_answers = len(inside)`
|
||||
- `after_settle_answers = len(after)`
|
||||
- `mid_scan_median_ms` and `after_settle_median_ms`
|
||||
- Retain raw `a["at"]` (arrival offsets) in `results.jsonl`.
|
||||
|
||||
##### 3. Verification Test
|
||||
- Run a warm session where server scan duration is ~1,770 ms inside a 3,500 ms window.
|
||||
- Verify:
|
||||
- `settled_ms` reflects ~1,770 ms (NOT 3,406 ms).
|
||||
- Out of 35 requests, requests arriving before 1,770 ms (~17 requests) are categorized as `mid_scan_answers`, and requests arriving after 1,770 ms (~18 requests) are categorized as `after_settle_answers`.
|
||||
- Extend window to 5,000 ms: verify scan completion remains unchanged (~1,770 ms) and `after_settle_answers` increases proportionally.
|
||||
|
||||
---
|
||||
|
||||
### Phase 2: Performance Follow-Ups (Addressing Assessment Items 3–5 & N1–N3)
|
||||
|
||||
Once Phase 1 is verified and merged, the three performance investigation lanes will proceed conditionally:
|
||||
|
||||
```
|
||||
[Phase 2 Lanes]
|
||||
┌─────────────────────────────────────────────────────────────┐
|
||||
│ Lane N1: Lexer/Parser & Dirty-Buffer Analysis Work (Item 3) │
|
||||
└─────────────────────────────────────────────────────────────┘
|
||||
┌─────────────────────────────────────────────────────────────┐
|
||||
│ Lane N2: Retained-Analysis Parse Work & Scope Decode (Item 4│
|
||||
└─────────────────────────────────────────────────────────────┘
|
||||
┌─────────────────────────────────────────────────────────────┐
|
||||
│ Lane N3: Quiet Scan Decode/Merge & Publication Cost (Item 5)│
|
||||
└─────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
#### Step 2.1: Lane N1 — Lexer/Parser & Dirty-Buffer Analysis (Addressing Item 3 & N1)
|
||||
- **Baseline:** First-after-edit on `pinmux_reg_top.sv` is 113.6 ms (repeat median 0.23 ms via lint snapshot).
|
||||
- **Target:** Reduce first-after-edit time by ≥15% (stretch: <95 ms) while maintaining exact AST/diagnostic output.
|
||||
- **Approach:**
|
||||
1. Profile `Document::new`:
|
||||
- Tokenize: Measure time and allocations.
|
||||
- Parse tolerant: Inspect grammar node allocations.
|
||||
- Semantic analysis & external resolution.
|
||||
2. Optimize single-document re-tokenization / parsing:
|
||||
- Profile whether token vector reallocation in `tokenize` can reuse a pooled buffer.
|
||||
- Avoid cloning the token stream when passing from `tokenize` into `parse_tolerant` (e.g. transfer ownership or borrow).
|
||||
3. Verification:
|
||||
- Snapshot tests in `vlog_formatter` and `vlog_parser`.
|
||||
- `offeredit` benchmark phase comparing candidate vs 0.52.0 baseline.
|
||||
|
||||
#### Step 2.2: Lane N2 — Retained-Analysis Parse Work & Scope Decode (Addressing Item 4 & N2)
|
||||
- **Baseline:** Tail rename: 324.6 ms (163 ms scope stage, including 31 ms store decode). Common-port rename (`clk_i`): 2,883.7 ms, 1,251 parses, 1.78 GiB peak RSS.
|
||||
- **Target:** Reduce scope build store decode time (<20 ms) and reduce common-port parse overhead without increasing peak RSS.
|
||||
- **Approach:**
|
||||
1. **KnownFacts Store Deserialization:**
|
||||
- In `crates/lucisv_server/src/index_cache.rs`, benchmark `facts_for`.
|
||||
- Evaluate zero-copy / compact binary decoding for `FileFacts` to cut the 31 ms decode bottleneck.
|
||||
2. **Retained Analyses Work:**
|
||||
- In `crates/vlog_refactor/src/scope.rs`, investigate files in `Class::Kept`:
|
||||
- Instead of building full redundant ASTs for files where only identifier occurrence validation is needed, evaluate whether occurrence checking can run against a lighter token stream while strictly preserving warning and refusal semantics.
|
||||
3. **Verification & Guardrails:**
|
||||
- Verify byte-identical edits and warning sentences across all 8 rename shapes (`renamewarn`).
|
||||
- Monitor peak RSS under `tools/guard.sh -m 8` to guarantee peak memory does not exceed the 1.8 GiB envelope.
|
||||
|
||||
#### Step 2.3: Lane N3 — Quiet Scan & Incremental Publication Merge (Addressing Item 5 & N3)
|
||||
- **Baseline:** Warm quiet scan 1,064.7 ms, cold quiet scan 2,886.6 ms, warm loaded scan 1,771 ms.
|
||||
- **Target:** Reduce warm quiet scan below 1,000 ms and reduce publication merge overhead.
|
||||
- **Approach:**
|
||||
1. **Targeted `WorkspaceIndex::absorb`:**
|
||||
- Currently, `WorkspaceIndex::absorb` calls `self.merge(None)`, rebuilding symbol tables across all 3,976 files.
|
||||
- Implement incremental symbol table merging in `crates/vlog_semantic/src/workspace/update.rs`, only updating symbol tables for files added/modified in the batch.
|
||||
2. **Candidate Construction:**
|
||||
- Benchmark candidate table construction during publication; avoid full re-indexing of unchanged completion words.
|
||||
3. **Verification:**
|
||||
- Fingerprint equivalence: `WorkspaceIndex::fingerprint` must be identical between incremental absorb and full rebuild.
|
||||
- `scanload` and `scan` benchmark phases under corrected F2/F3 harness.
|
||||
|
||||
---
|
||||
|
||||
## File Modification Map
|
||||
|
||||
| Component / Layer | Action | Target File | Description |
|
||||
|---|---|---|---|
|
||||
| `lucisv_core` (Walk) | `[MODIFY]` | `crates/lucisv_core/src/walk.rs` | Add `DirectoryTracker` and expose directory identity (`DirId`) tracking across walks |
|
||||
| `lucisv_server` (State) | `[MODIFY]` | `crates/lucisv_server/src/state/discover.rs` | Use `DirectoryTracker`, fix `first_scope`, repair `HEAD_WALK_MAX` fallback, ensure alias equivalence |
|
||||
| `lucisv_server` (State) | `[MODIFY]` | `crates/lucisv_server/src/state/scan.rs` | Update `PendingDiscovery` to hold `DirectoryTracker` |
|
||||
| `lucisv_server` (Tests) | `[MODIFY]` | `crates/lucisv_server/src/server/tests/startup.rs` | Add F1 symlink regression matrix (alias before/after, cycle, ignores, unsaved buffer) |
|
||||
| Documentation | `[MODIFY]` | `docs/topo.md` | Record amended `lucisv_server ──▶ lucisv_core` walk handshake |
|
||||
| Perf Tools (Harness) | `[MODIFY]` | `tools/perf/phases_r4.py` | Fix F2 (untimed warm priming & cache counters) and F3 (scan completion timestamping & response partition) |
|
||||
| Perf Tools (Client) | `[MODIFY]` | `tools/perf/lspclient.py` | Record reader-thread scan completion instant `_scan_completed_at` |
|
||||
| Performance Tracking | `[MODIFY]` | `docs/perf/take5-tracking.md` | Update experiment logs and status for F1, F2, F3 |
|
||||
|
||||
---
|
||||
|
||||
## Verification & QA Plan
|
||||
|
||||
### Automated Correctness & Quality Gates
|
||||
Every step will be verified using the repository's runaway guard:
|
||||
```bash
|
||||
# Code formatting
|
||||
cargo fmt --all -- --check
|
||||
|
||||
# Strict Clippy validation
|
||||
tools/guard.sh -m 8 -t 1800 -- cargo clippy --workspace --all-targets --locked -- -D warnings
|
||||
|
||||
# Full workspace test suite (must meet or exceed 4,374 passed, 0 failed, 45 ignored)
|
||||
tools/guard.sh -m 8 -t 1800 -- cargo test --workspace --locked
|
||||
```
|
||||
|
||||
### Specialized Correctness Assertions for F1
|
||||
Run the dedicated startup test suite:
|
||||
```bash
|
||||
tools/guard.sh -m 8 -t 1800 -- cargo test -p lucisv_server --test server_tests startup
|
||||
```
|
||||
Assert that:
|
||||
1. `alias_sorting_before_target`: `a_alias -> z_real`. Index paths, definition targets, and `prepareRename` match between startup, whole rescan, and restart.
|
||||
2. `alias_sorting_after_target`: `z_alias -> a_real`. Same equivalence check.
|
||||
3. `multiple_aliases`: Multiple symlinks to single target directory do not produce duplicate entries.
|
||||
4. `ancestor_cycle`: Cyclic symlinks terminate safely without duplicate entries.
|
||||
5. `genuine_duplicate_declarations`: Genuine collisions in distinct files remain ambiguous and correctly refused.
|
||||
|
||||
### Benchmark & Harness Verification for F2 and F3
|
||||
1. **F2 Warm Priming Verification:**
|
||||
```bash
|
||||
tools/guard.sh -m 8 -t 1800 -- python3 tools/perf/bench.py scanload --storage /tmp/test-fresh-store --tries 2
|
||||
```
|
||||
Assert that:
|
||||
- Untimed prime runs automatically.
|
||||
- Both Trial 1 and Trial 2 report ~3,974 cache hits and 0 misses.
|
||||
2. **F3 Scan Completion Verification:**
|
||||
```bash
|
||||
tools/guard.sh -m 8 -t 1800 -- python3 tools/perf/bench.py scanload --tries 3
|
||||
```
|
||||
Assert that:
|
||||
- `settled_ms` reflects server scan duration (~1,770 ms), not 3,400 ms.
|
||||
- Responses are partitioned correctly into `mid_scan_answers` and `after_settle_answers`.
|
||||
- Extending fixed window from 3,500 ms to 5,000 ms keeps `settled_ms` constant while increasing `after_settle_answers`.
|
||||
@@ -128,10 +128,26 @@ The `propagate-ports` engine reads `member`/`members_of` and is untouched.
|
||||
- **Reference postings.** `facts_from_analysis` records a `Local` posting only
|
||||
for a use whose declaration is on the **connection** surface. Posting a
|
||||
module's every internal-net use would multiply the reference table by the
|
||||
size of an RTL body for an answer nothing reads: the only consumer is a
|
||||
rename, which re-analyses the declaring file anyway. The *cross-file* half —
|
||||
the tail in the other file — is an `External` fact, and that is what makes
|
||||
the rename work.
|
||||
size of an RTL body. The *cross-file* half — the tail in the other file —
|
||||
is an `External` fact, and that is what makes the rename work.
|
||||
|
||||
**Amended 2026-09-12 (§64.1).** This bullet used to end "for an answer
|
||||
nothing reads: the only consumer is a rename, which re-analyses the
|
||||
declaring file anyway". There are two consumers now, and the sentence is
|
||||
true again only with the second one named: `textDocument/references` reads
|
||||
the postings too, and since §64.1 it answers for a hierarchical-only
|
||||
declaration. It is served the way the rename is —
|
||||
`lucisv_server`'s `nav::declaring_file_uses` parses **exactly the declaring
|
||||
file, exactly once**, and only when that file has no open buffer and the
|
||||
request came in from a cross-file use; an open buffer's own uses come from
|
||||
the live overlay as they always did. Measured on opentitan: `references`
|
||||
from `u_entropy_src_main_sm.state_q` with `entropy_src_main_sm.sv` closed
|
||||
costs 1.0–1.5 ms against the 0.1–0.2 ms of the incomplete answer it
|
||||
replaces, and every connection-surface row of the `nav` harness is
|
||||
unchanged in both result count and time. So the decision stands, with its
|
||||
cost now written down: one file's parse on one request shape, instead of a
|
||||
reference table sized by every RTL body in the workspace. See
|
||||
`docs/features/references-hierarchical-surface/README.md`.
|
||||
- **`workspace/symbol`.** An internal net is still not a workspace symbol: the
|
||||
request answers what a user can name from outside, and a design with 20 000
|
||||
modules has hundreds of thousands of internal signals.
|
||||
|
||||
@@ -142,6 +142,17 @@ The character cap counts `char`s and cuts on a boundary.
|
||||
|
||||
## Work log
|
||||
|
||||
### 2026-09-12 — dev (§64.1: `spells_exactly` is now `pub(crate)`)
|
||||
|
||||
Visibility only, no behaviour change here. `nav.rs` needed the same
|
||||
agreement check for a closed file's *span* that this feature applies to a
|
||||
closed file's *snippet* — after §64.1 an index-time `references` span can be
|
||||
rendered against bytes that moved — and QA's lesson above (a fixed-length
|
||||
span still spelling the old name as a **prefix** of a longer identifier) is
|
||||
exactly the case a second copy of the check would have got wrong. So
|
||||
`hover::spells_exactly` is shared rather than duplicated; see
|
||||
`docs/features/references-hierarchical-surface/README.md`.
|
||||
|
||||
### 2026-08-27 — dev
|
||||
|
||||
- Read the brief, `hover.rs`, `nav.rs`, `state.rs` and `convert.rs`. Confirmed
|
||||
|
||||
@@ -0,0 +1,654 @@
|
||||
# perf-first-after-edit
|
||||
|
||||
TODO §63.2 — N1 of the 0.52.0 review (`docs/performance_052_review.md`,
|
||||
item 3 and next action 3).
|
||||
|
||||
## Goal
|
||||
|
||||
The first request after a one-character edit in a 40 267-line generated
|
||||
file cost **113.6 ms** on 0.52.0, against 0.23 ms for the same request
|
||||
repeated on an unchanged buffer. The lint snapshot (review round §R1a)
|
||||
cannot help a fresh revision: what remains is the debounced `Document`
|
||||
rebuild `answer_request` performs before any handler runs, the
|
||||
diagnostics publish that lints the new revision, and the menu's own
|
||||
stages. This round splits that flush into the stages a reader can act on,
|
||||
then makes the **fresh-revision work itself cheaper** — no cache of
|
||||
anything across revisions — with the AST, the diagnostics and the menu
|
||||
byte-identical. Target: ≥ 15 % off the cell, stretch < 95 ms, the
|
||||
unchanged-repeat cell and the other `offeredit`/`offerkinds` rows within
|
||||
noise, peak RSS not up.
|
||||
|
||||
## Assumptions
|
||||
|
||||
- The pinmux cell is the worst realistic shape, not the typical one: a
|
||||
1 237 143-byte generated register file, 193 816 tokens, one buffer
|
||||
open, workspace scope, 3 975 files indexed. Everything here is measured
|
||||
on it; a 400-line hand-written file pays the same work in microseconds.
|
||||
- `Document::new` is a pure function of (text, index): the same text
|
||||
against the same index must give the same tokens, tree, defines,
|
||||
semantics, external resolutions and line index. Every change in this
|
||||
round is checked against that, file by file, over the corpus and
|
||||
opentitan (see Parity).
|
||||
- `vlog_parser::tokenize` is all-or-nothing and its output is a value,
|
||||
not a rendering: two builds agree on token kind, text, line, column,
|
||||
span, `blank_before` and every attached comment, or they differ.
|
||||
- The measurement machine is shared with nothing else while a phase runs
|
||||
(`tools/perf/README.md`'s rules), and every number below is a median.
|
||||
|
||||
## Handshakes
|
||||
|
||||
- **`lucisv_server ──▶ vlog_parser`** — unamended. `tokenize`,
|
||||
`parse_tolerant` and `parse_source_tolerant` keep their signatures;
|
||||
`Document::new` calls them exactly as before. No public `vlog_parser`
|
||||
item changed name, type or behaviour, so nothing this lane did is a
|
||||
contract change for the formatter, linter, refactor or CLI either.
|
||||
**Nothing is owed to the lead here.**
|
||||
- **`verbose-timing ◀──▶ tools/perf`** — *amended, and this needs a
|
||||
`docs/topo.md` line the lead owns.* The `timing: codeaction …` line
|
||||
(`crate::lint_trace`) grows a **third top-level group**, `rebuild{…}`,
|
||||
beside `flush{…}` and `action{…}`: `lex`, `parse`, `defines`,
|
||||
`analyze`, `external`, `lines`, `publish` (ms each) and `documents`
|
||||
(how many `Document`s the flush built). Groups stay siblings — never
|
||||
nested — because `tools/perf/phases_p2.py`'s `GROUP` regex flattens one
|
||||
level only; `phases_r1.py` therefore picks the new fields up with no
|
||||
change, as `trace_rebuild_*` row fields. Pinned by
|
||||
`lint_trace::tests::the_rebuild_group_names_every_stage_beside_the_other_two`.
|
||||
- **`docs/perf/README.md`** — not this lane's file. The entry it wants is
|
||||
in "For `docs/perf/README.md`" below, for the lead to paste.
|
||||
|
||||
### Requested `docs/topo.md` amendments (the lead's file)
|
||||
|
||||
1. The `verbose-timing ◀──▶ …` handshake row (§2.7): add that the
|
||||
`timing: codeaction` line carries a third group, `rebuild{…}`, whose
|
||||
fields are the flush's `Document`-rebuild stages, and that the three
|
||||
groups are siblings by contract (the harness flattens one level).
|
||||
2. The `lucisv_server/src/state.rs` file row: `Document::new`'s six
|
||||
derivations are individually traced through `crate::lint_trace`, so a
|
||||
stage added to or removed from that constructor wants a `Rebuild`
|
||||
variant beside it.
|
||||
|
||||
## Status / TODO
|
||||
|
||||
- [x] the flush split in `lint_trace` (`Rebuild`, `Rebuilt`, `rebuild()`,
|
||||
`saw_document()`), the `rebuild{…}` group on the trace line, and
|
||||
the 0.53.0 numbers taken **before** any behaviour changed
|
||||
- [x] change 1 — the lexer's two phases fused (no `Vec<RawTok>`)
|
||||
- [x] change 2 — `Parser::skip`, the non-cloning `bump` for the 217 call
|
||||
sites that threw the token away
|
||||
- [x] change 3 — the operator table's first-byte test
|
||||
- [x] parity: token stream + parse diagnostics + whole AST + symbol table
|
||||
digested per file over 4 807 files (corpus + opentitan), 0 differ;
|
||||
`format --stdout` byte-identical over corpus (860) and over
|
||||
opentitan (3 947); diagnostics and the all-family menu on the
|
||||
pinmux buffer identical before and after
|
||||
- [x] paired `offeredit` / `offerkinds` / `flush` / `diagnostics` /
|
||||
`rss` against a 0.53.0 server built from 1b8723c, order alternated
|
||||
— **−19.2 % on the cell, the ≥ 15 % gate met and the < 95 ms
|
||||
stretch met at 88.3 ms**
|
||||
- [x] QA
|
||||
|
||||
## Work log
|
||||
|
||||
### 2026-09-12 — measure first: the flush split
|
||||
|
||||
`crate::lint_trace` already split a traced request into
|
||||
flush / config / build / lint / fence / serialize. The flush was one
|
||||
number (`flush{wall=…}`), so "the dirty-buffer stage dominates" was as
|
||||
far as the 0.52.0 review could attribute the cell. Added:
|
||||
|
||||
- `Rebuild` (7 stages: `lex`, `parse`, `defines`, `analyze`, `external`,
|
||||
`lines`, `publish`), `Rebuilt` (their milliseconds plus a `documents`
|
||||
count) and `rebuild(stage, work)` / `saw_document()` — the same
|
||||
thread-local, one-`Cell`-read-when-off discipline the module documents,
|
||||
and *not* routed through `IN_FLUSH`: a rebuild belongs to the rebuild
|
||||
whichever half of the request runs it.
|
||||
- `crates/lucisv_server/src/state/mod.rs:119` — `Document::new`'s six
|
||||
derivations each wrapped at the call.
|
||||
- `crates/lucisv_server/src/server/diagnostics.rs:57` — the publish
|
||||
inside `flush_dirty` wrapped as the seventh, so the flush group's
|
||||
`config`/`build`/`lint`/`fence` are readable as *inside* it.
|
||||
- `Trace::line()` prints `rebuild{…}` as a **sibling** of `flush{…}` and
|
||||
`action{…}`; `Trace::is_empty` counts it, so a request that only
|
||||
rebuilt still logs a line.
|
||||
|
||||
`tools/perf` needed no code change: `phases_r1.py` parses the whole line
|
||||
through `phases_p2.parse_trace`, which flattens any top-level `name{…}`
|
||||
group, so the seven stages arrive as `trace_rebuild_*` fields on every
|
||||
`actionprofile` row. `tools/perf/README.md`'s `actionprofile` row now
|
||||
says so.
|
||||
|
||||
**The 0.53.0 numbers** (HEAD 1b8723c plus this instrumentation and
|
||||
nothing else; `actionprofile`, pinmux-comment, "first codeAction after a
|
||||
didChange", three tries; evidence
|
||||
`~/.cache/lucisv-perf/63-2/split-0530.jsonl`):
|
||||
|
||||
| | ms |
|
||||
|---|---:|
|
||||
| wire latency | 122.6 / 123.0 / 101.4 |
|
||||
| **flush wall** | **100.0** |
|
||||
| ├ `rebuild lex` | **29.1** |
|
||||
| ├ `rebuild parse` (the token clone is inside it) | **25.6** |
|
||||
| ├ `rebuild publish` | 22.2 — of which `flush lint` 22.0 |
|
||||
| ├ `rebuild analyze` | 10.1 |
|
||||
| ├ `rebuild external` | 4.8 |
|
||||
| ├ `rebuild lines` / `defines` | 0.6 / 0.5 |
|
||||
| └ unattributed (dropping the previous revision) | ~7 |
|
||||
| handler's own stages (`action{…}`) | 0.23 — `snapshot=hit` |
|
||||
|
||||
(This is the single run taken before anything changed. The same cell was
|
||||
re-taken **paired and order-alternated** against the finished candidate
|
||||
at the end of the round — 110.2 / 110.7 ms, flush wall 102.7 / 107.4 —
|
||||
see "The paired result"; the stage shares agree, the absolute wire time
|
||||
of this first run sat on a busier machine.)
|
||||
|
||||
Two of the review's candidates were answered by the split before
|
||||
anything was built:
|
||||
|
||||
- **A second lint of the same revision: there is none.** `action` reads
|
||||
`snapshot=hit` and `lint=0.00ms` on every try — the publish's pass is
|
||||
the menu's pass, which is what review round §R1a bought.
|
||||
- **A second analysis: there is none either.** `lint::context` already
|
||||
lends `doc.semantics` to the linter (`with_semantics`), so the lint
|
||||
pass does not re-`analyze` the tree.
|
||||
|
||||
So the cell is the rebuild, and the rebuild is **lex + parse** (54.7 ms
|
||||
of the 100).
|
||||
|
||||
### 2026-09-12 — where the rebuild's milliseconds are
|
||||
|
||||
A standalone harness over exactly `Document::new`'s calls
|
||||
(`scratchpad/63-2/micro`, 15 iterations, median; built against the
|
||||
reference tree and against the working tree, same compiler, same file)
|
||||
separates the clone from the parse, which the in-server stage cannot:
|
||||
|
||||
| | 0.53.0 (1b8723c) | after all three changes |
|
||||
|---|---:|---:|
|
||||
| `tokenize` | 27.79 | **11.59** |
|
||||
| `tokens.clone()` | 4.44 | 3.92 |
|
||||
| `parse_tolerant` | 17.47 | **16.33** |
|
||||
| `collect_defines` | 0.45 | 0.42 |
|
||||
| `analyze` | 9.79 | 9.40 |
|
||||
| `LineIndex::new` | 0.56 | 0.59 |
|
||||
| dropping the products | 6.27 | 6.40 |
|
||||
| **total** | **66.8** | **48.6** |
|
||||
|
||||
193 816 tokens, `size_of::<Token>()` 120 bytes.
|
||||
|
||||
### 2026-09-12 — change 1: the lexer's two phases, fused
|
||||
|
||||
`crates/vlog_parser/src/lexer.rs` — `tokenize` lexed the whole file into
|
||||
a `Vec<RawTok>` and then walked it to attach comments. Attachment reads
|
||||
only the raw token in hand and the token last pushed, so the two loops
|
||||
fuse into one without touching the result: `attach` / `attach_trailing`
|
||||
are the same code as the second loop, called per raw token. The
|
||||
intermediate vector for this file was 193 816 × 56 bytes of allocation,
|
||||
growth copying and teardown. `tokens` is also given a capacity guess
|
||||
(`estimated_tokens`, six bytes a token, capped at 2²⁰) — the growth
|
||||
doubling reached 262 144 slots for this file anyway, so the guess costs
|
||||
no memory it was not already taking.
|
||||
|
||||
The `blank_before` `if` whose two arms were the same expression is now
|
||||
one expression, and `tokens.last_mut().unwrap()` is a `let … else`
|
||||
(library paths take no `unwrap`).
|
||||
|
||||
**Measured** (same harness): `tokenize` 27.8 → **24.7 ms**.
|
||||
|
||||
*File size, for the lead:* `lexer.rs` is one of the two files the
|
||||
2026-09-07 measurement left over 600 production lines (763). This round
|
||||
leaves it at **770** — the fusion replaced the second loop with
|
||||
`attach` / `attach_trailing` rather than adding a responsibility, and the
|
||||
+7 is the doc comments on them. Splitting the lexer's two halves into
|
||||
two modules would undo exactly the "one sentence" the fusion restored
|
||||
(*it turns source text into the token stream, comments attached*), so the
|
||||
lines were left where they are; the ruling is the lead's.
|
||||
|
||||
### 2026-09-12 — change 2: `Parser::skip`
|
||||
|
||||
`crates/vlog_parser/src/parser/cursor.rs` — `bump()` clones the token
|
||||
(its `text` is a `String`, so an allocation) and hands it back; **217 of
|
||||
its ~296 call sites threw the value away on the same line**. `skip()` is
|
||||
`bump()` for those callers: same comment plumbing (the leading bucket and
|
||||
the trailing comment are cloned into the pending lists, exactly as
|
||||
`bump()` moved them out of its own copy), same cursor step, same
|
||||
`self.tokens` left untouched — so a speculative parse's rewind finds the
|
||||
stream exactly as it would have. The 217 sites were rewritten
|
||||
mechanically; `eat_sym` / `eat_kw` are two of them.
|
||||
|
||||
**Measured**: `parse_tolerant` 17.5 → **16.0 ms**. (Modest: the 181
|
||||
`expect_sym`/`expect_kw` calls whose token is also discarded still clone.
|
||||
Left alone deliberately — a second pair of entry points for ~1 ms is not
|
||||
worth the API.)
|
||||
|
||||
### 2026-09-12 — change 3: the operator table's first-byte test
|
||||
|
||||
`crates/vlog_parser/src/lexer.rs` — every token that was not a comment,
|
||||
directive, attribute, string, escaped/system identifier, number or
|
||||
identifier fell into `for op in OPERATORS { if self.starts_with(op) … }`:
|
||||
**44 slice comparisons for every `;`, `(`, `)`, `,`, `.`, `[`, `]`** in
|
||||
the file, which in a generated register file is most of the tokens. One
|
||||
byte compare in front of the slice compare rejects every operator that
|
||||
cannot start here. Longest-first order is untouched, `starts_with` still
|
||||
decides, so the token stream cannot move.
|
||||
|
||||
**Measured**: `tokenize` 24.7 → **11.6 ms** — the single largest win of
|
||||
the round, and a third of the whole cell.
|
||||
|
||||
### 2026-09-12 — one flaky test of my own, found and fixed
|
||||
|
||||
`lint_trace::tests::a_trace_holding_only_a_rebuild_is_not_empty` failed
|
||||
once in six runs of `cargo test -p lucisv_server`: it armed a trace, ran
|
||||
an **empty** closure under `rebuild(Rebuild::Analyze, …)` and asserted
|
||||
the trace was not empty — but a closure that does nothing can measure
|
||||
0.00 ms, which leaves the group equal to `Rebuilt::default()`. The
|
||||
assertion was wrong, not the code: what says a rebuild happened is
|
||||
`saw_document()`, which `Document::new` always calls, not a duration.
|
||||
The test now calls it, and the reason is written above the test (this is
|
||||
also why no test here asserts a millisecond — timing lives in the
|
||||
harness). Six further runs of the module and two full workspace runs
|
||||
green. The change is inside `#[cfg(test)]`, so the release binary the
|
||||
paired numbers were taken with is the shipped code unchanged.
|
||||
|
||||
### Not taken, and why
|
||||
|
||||
- **The token-stream clone into `parse_tolerant`** (3.9 ms). The parser
|
||||
*mutates* its token vector — `take_meta`, `take_dangling`, `take_gap`,
|
||||
`take_leading_here`, `take_trailing_here` move comments out of it — so
|
||||
a vector handed over and taken back is a comment-stripped vector, and
|
||||
`Document::tokens` is read for comments by semantic tokens
|
||||
(`tokens.rs:181`) and by the linter (`vlog_linter/src/context.rs:534`).
|
||||
Handing it over would drop comments from highlighting and from the
|
||||
rules that read them. Making the parser stop mutating the stream is a
|
||||
real refactor of the comment plumbing for 3.9 ms; filed, not done.
|
||||
- **`analyze` (9.4 ms) and `resolve_external` (5.5 ms)**: not opened.
|
||||
The file ownership allows `vlog_semantic` "only for a measured stage",
|
||||
and after the three changes above the gate is met with margin; a
|
||||
fourth change would have bought risk, not a verdict.
|
||||
- **Dropping the previous revision's products (6.3 ms)** happens inside
|
||||
`set_document` on the request path. Moving it off the path means a
|
||||
thread or a deferred queue in a single-threaded server; not for this
|
||||
round.
|
||||
|
||||
## The paired result
|
||||
|
||||
Two binaries: the reference is `cargo build --release` of **1b8723c**
|
||||
(0.53.0 plus §63.1) in a `git archive` scratch tree, the candidate is the
|
||||
working tree. Same compiler, same harness, same opentitan at
|
||||
`0098135…` with its three pre-existing modified files. Each phase run
|
||||
**four times — ref, candidate, candidate, ref** — so an order effect or
|
||||
a machine drift shows as a spread between a version's own two rounds.
|
||||
One warm index store per binary. Three tries a row, median of the tries,
|
||||
both rounds quoted. Evidence: `~/.cache/lucisv-perf/63-2/paired.jsonl`
|
||||
(`paired.sh` is the runner), load 4.8 → 4.1 across the run.
|
||||
|
||||
| phase · row | 0.53.0 (a / b) | candidate (a / b) | verdict |
|
||||
|---|---:|---:|---|
|
||||
| **`offeredit` pinmux-comment, first offer after didChange** | **110.95 / 107.54** | **88.31 / 88.36** | **−19.2 %** — gate met, stretch (< 95) met |
|
||||
| `offeredit` pinmux-comment, repeated offer, unchanged buffer | 0.27 / 0.32 | 0.22 / 0.19 | unchanged (noise) |
|
||||
| `offeredit` aes-reg-instance, first offer after didChange | 5.23 / 8.10 | 6.54 / 6.24 | unchanged (inside the version's own spread) |
|
||||
| `offeredit` aes-reg-instance, repeated offer | 3.39 / 4.22 | 3.48 / 3.18 | unchanged |
|
||||
| `offeredit` tb-comment, first offer after didChange | 1.18 / 1.57 | 2.05 / 0.89 | unchanged |
|
||||
| `offeredit` tb-comment, repeated offer | 0.22 / 0.28 | 0.32 / 0.23 | unchanged |
|
||||
| `flush` didChange flush (foldingRange barrier) | 1.33 / 1.51 | 0.85 / 1.38 | unchanged |
|
||||
| `diagnostics` publish after didChange (≈150 ms debounce) | 162.16 / 157.20 | 160.88 / 159.66 | unchanged |
|
||||
| `offerkinds` — all 35 rows (5 cursors × 7 families) | 0.03 – 6.00 | 0.04 – 4.95 | every row inside its own version's a/b spread; the two rows above 1 ms (`aes-reg-instance` all-family 3.42/6.00 → 4.95/4.57 and `…ports` 2.99/3.73 → 2.92/2.83) do not move |
|
||||
|
||||
**Memory** (`rss`, three fresh processes a cell, KiB):
|
||||
|
||||
| cell | 0.53.0 | candidate |
|
||||
|---|---:|---:|
|
||||
| RSS after the workspace scan, cold cache | 505 968 / 508 048 / 505 824 · 501 200 / 501 232 / 505 312 | **478 992 / 479 584 / 480 720 · 480 848 / 479 344 / 479 488** |
|
||||
| RSS after the workspace scan, warm cache | 428 480 / 429 104 / 425 312 · 427 392 / 430 720 / 427 968 | 427 872 / 428 160 / 426 928 · 427 056 / 427 888 / 427 632 |
|
||||
| index store on disk | 45 468 | 45 468 |
|
||||
|
||||
Peak RSS is **not up**: warm is flat, and the cold scan — 3 975 files
|
||||
lexed and parsed — is **~25 MiB lower**, which is the `Vec<RawTok>` the
|
||||
fused lexer no longer builds.
|
||||
|
||||
**The flush split, paired** (`actionprofile`, pinmux-comment, first
|
||||
codeAction after a didChange; the same four-run order; the trace is the
|
||||
last try's, evidence `split-paired.jsonl`):
|
||||
|
||||
| | 0.53.0 + trace (a / b) | candidate (a / b) |
|
||||
|---|---:|---:|
|
||||
| wire latency, median of 3 | 110.2 / 110.7 | **89.1 / 89.1** |
|
||||
| flush wall | 102.7 / 107.4 | **82.2 / 87.5** |
|
||||
| ├ `lex` | 29.3 / 29.9 | **11.6 / 14.1** |
|
||||
| ├ `parse` (clone inside) | 25.8 / 30.3 | 23.3 / 26.3 |
|
||||
| ├ `publish` (of which `lint`) | 23.6 (23.4) / 23.2 (23.0) | 23.9 (23.7) / 23.3 (23.1) |
|
||||
| ├ `analyze` | 10.7 / 11.3 | 10.4 / 10.7 |
|
||||
| ├ `external` | 4.8 / 4.7 | 4.7 / 4.7 |
|
||||
| └ `lines` / `defines` | 0.6 / 0.4 | 0.7 / 0.4 |
|
||||
| handler (`action`) | `snapshot=hit` | `snapshot=hit` |
|
||||
|
||||
## Parity
|
||||
|
||||
Nothing below is an assertion about intent; each is a comparison of two
|
||||
builds' outputs over real files.
|
||||
|
||||
1. **The token stream, the parse diagnostics, the whole AST and the
|
||||
symbol table, file by file.** A digest per file over every token's
|
||||
kind, text, line, column, span start/end, `blank_before` and every
|
||||
leading/trailing comment, then over `{:?}` of the diagnostics, of the
|
||||
`SourceFile` and of `analyze`'s symbols. Run with the same tool built
|
||||
against the reference tree and against the working tree, over
|
||||
**4 807 files** (860 corpus + 3 947 opentitan): **0 lines differ**
|
||||
(`digest-ref.txt` / `digest-new.txt`, `digest.diff` empty).
|
||||
2. **`format --stdout`, corpus.** 860 files, sha256 per file, reference
|
||||
binary vs candidate: **0 differ** (`fmt-ref.txt` / `fmt-new.txt`).
|
||||
3. **`format --stdout`, opentitan.** The whole tree in one run, both
|
||||
binaries: the same sha256 over the concatenated output
|
||||
(`2c363ec2eb8395…`) and byte-identical stderr.
|
||||
4. **Diagnostics and the menu, on the buffer this round is about.**
|
||||
`parity_menu.py` opens each of the three cursors' files, asks for the
|
||||
all-family menu and each of the seven `context.only` families —
|
||||
recording every action's **title, kind and edit payload** — collects
|
||||
the published diagnostics, then does it twice more after a
|
||||
`didChange`: once with a harmless comment appended and once with a
|
||||
revision that deliberately introduces lint findings (a tab, a 140-
|
||||
character line, a trailing space), so the comparison is not two empty
|
||||
lists. 87 lines including 12 diagnostics and the fix-all edits:
|
||||
**identical** (`parity-ref.txt` / `parity-new.txt`).
|
||||
5. **Suites.** `cargo test --workspace --locked` through the guard:
|
||||
reference **4 403 passed, 0 failed, 46 ignored**; candidate **4 406
|
||||
passed, 0 failed, 46 ignored** — +3, the new `lint_trace` tests. The
|
||||
parser snapshot and idempotency suites are inside that run
|
||||
(`vlog_parser` 380 + 22 span tests, `vlog_formatter` 226 + fixtures),
|
||||
green on their own too. `cargo fmt --all -- --check` and
|
||||
`cargo clippy --all-targets --locked` clean. No guard kill anywhere in
|
||||
the round.
|
||||
6. **opentitan untouched.** `git -C ~/repo/opentitan status --porcelain`
|
||||
before and after every phase lists exactly the three pre-existing
|
||||
modified files (`hw/ip/aes/dv/tb/tb.sv`,
|
||||
`hw/top_darjeeling/ip/ast/rtl/ast.sv`,
|
||||
`hw/top_earlgrey/ip/ast/rtl/ast.sv`) and nothing else.
|
||||
|
||||
### Re-deriving it
|
||||
|
||||
Everything is under `~/.cache/lucisv-perf/63-2/`: both server binaries
|
||||
(`server-ref-0.53.0`, `server-step1-trace` — the reference plus the
|
||||
instrumentation only —, `server-step2-lexparse`), both CLIs
|
||||
(`lucisv-ref`, `lucisv-new`), the reference tree (`ref-1b8723c/`), the
|
||||
runners (`run.sh`, `paired.sh`, `split.sh`, `fmtgate.sh`,
|
||||
`parity_menu.py`), the file lists and every `.jsonl` / `.txt` named
|
||||
above, plus the stage micro-harness's sources — `micro/` (path
|
||||
dependencies on the working tree) and `micro-ref/` (on `ref-1b8723c/`).
|
||||
Both are plain `cargo` crates with no third-party code; `micro`'s
|
||||
`main.rs` is the per-stage median table and its `bin/digest.rs` is the
|
||||
per-file digest of parity check 1.
|
||||
|
||||
## For `docs/perf/README.md` (the lead's file)
|
||||
|
||||
> **2026-09-12 — the first request after an edit (TODO §63.2, N1 of the
|
||||
> 0.52.0 review).** The 40 267-line pinmux cell — one-character
|
||||
> `didChange`, then the all-family `codeAction` menu — **109 → 88 ms
|
||||
> paired (−19.2 %)**, the unchanged-repeat cell and every other
|
||||
> `offeredit`/`offerkinds`/`flush`/`diagnostics` row within noise, cold
|
||||
> scan RSS ~25 MiB lower and warm RSS flat. The flush is now split in
|
||||
> the `timing: codeaction` line (`rebuild{lex parse defines analyze
|
||||
> external lines publish documents}`), which is what named the cost:
|
||||
> **lex 29 ms and parse 26 ms of a 100 ms flush**, and *no* second lint
|
||||
> and *no* second analysis of the revision (the snapshot and
|
||||
> `with_semantics` already had those). Three changes, all in
|
||||
> `vlog_parser`: the lexer's two phases fused (the intermediate
|
||||
> `Vec<RawTok>` is gone; 27.8 → 24.7 ms), `Parser::skip` for the 217
|
||||
> `bump()` sites that discarded the token (17.5 → 16.0 ms), and a
|
||||
> first-byte test in front of the 44-entry operator table (24.7 →
|
||||
> **11.6 ms** — the single largest win). Token stream, parse
|
||||
> diagnostics, AST and symbol table digested per file over 4 807 files:
|
||||
> 0 differ; `format --stdout` byte-identical over corpus and opentitan;
|
||||
> diagnostics and menus identical on the edited buffer.
|
||||
> **Filed, not fixed:** the token clone into `parse_tolerant` (3.9 ms —
|
||||
> the parser mutates the stream it is given, so it cannot be handed
|
||||
> over while `Document::tokens` is read for comments), `analyze`
|
||||
> (9.4 ms), `resolve_external` (4.7 ms), and the ~6 ms spent dropping
|
||||
> the previous revision's products on the request path.
|
||||
|
||||
## QA log
|
||||
|
||||
### 2026-09-12 — TODO §63.2 verified: PASS
|
||||
|
||||
Verified the flush split, the three lexer/parser changes, and the lead's
|
||||
`attach_trailing` edit. Everything below was re-derived independently
|
||||
(own tools, own binaries, own re-run of the dev's evidence), not read off
|
||||
the dev's numbers. Scratch work: `/private/tmp/.../scratchpad/63-2-qa/`
|
||||
(a fresh clone of 1b8723c at `old_lucisv/`, a paired-QA benchmark run at
|
||||
`paired-qa/`).
|
||||
|
||||
**Gates** (all through `tools/guard.sh -m 8 -t 1800`, no guard kill
|
||||
anywhere):
|
||||
- `cargo test --workspace`: **4 422 passed, 0 failed** (run alone, no
|
||||
concurrent cargo invocation — an earlier attempt run *concurrently*
|
||||
with another `cargo test`/`cargo build` in the same tree hit a stale
|
||||
doctest rlib once; that is a target-dir race from running two cargo
|
||||
processes at once, not a code defect, and does not reproduce solo).
|
||||
4 406 (the dev's count) + 16 tests this round added (13 in
|
||||
`vlog_parser::lexer::tests`, 2 in `lucisv_server::state::tests`, 1 in
|
||||
`lucisv_server::lint_trace::tests`) = 4 422.
|
||||
- `cargo clippy --all-targets --workspace`: clean, 0 warnings.
|
||||
- `cargo fmt --all -- --check`: clean.
|
||||
|
||||
**Fuzzers** (`docs/topo.md`'s `comment-slots` row names four; the SVA
|
||||
fuzzer is `sva-bodies`'s): `cargo test -p vlog_formatter --test
|
||||
verification a_comment_in_every_` — covergroup, fragment, constraint,
|
||||
RTL, SVA, **5/5 pass, still at their pinned gap counts** (329/153/395/
|
||||
419-class/705). No formatter or comment-slot code was touched by this
|
||||
round, so this is a regression check, not new coverage — it stayed at
|
||||
zero.
|
||||
|
||||
**`skip` vs `bump`, mechanically, not by reading the diff**: a script
|
||||
diffed old and new `crates/vlog_parser/src/parser/*.rs` and asserted
|
||||
every hunk is `bump()` → `skip()` and nothing else (line-for-line, same
|
||||
whitespace). Result: **every one of 178 hunks matches that shape**, and
|
||||
every removed line is a bare `self.bump();` statement (verified
|
||||
separately — `grep '^-' | grep -v 'self\.bump();'` on the parser diff
|
||||
returns nothing but the lexer's unrelated deleted lines and the two
|
||||
`eat_sym`/`eat_kw` bodies, both bare-statement too). Cross-checked: 252
|
||||
`Parser::bump()` call sites existed in `parser/` at 1b8723c, 74 remain
|
||||
(all `.bump().text` or similar — value used, correctly untouched),
|
||||
252 − 74 = 178, matching exactly.
|
||||
|
||||
- **Finding (non-blocking, doc-only): the "217 call sites" claim in the
|
||||
Work log and TODO.md §63.2 does not match the diff.** The diff converts
|
||||
**178** call sites (176 direct + the 2 inside `eat_sym`/`eat_kw`), not
|
||||
217. `~296` (Work log) is real — it is the *textual* `.bump()` count
|
||||
across all of `vlog_parser/src` including `RawLexer::bump` (a
|
||||
different, unrelated function) — but 217 does not correspond to any
|
||||
count I could reproduce from the tree at 1b8723c or from the diff. Not
|
||||
a safety issue (every conversion that *did* happen is a verified-safe
|
||||
shape, and no unused-result `self.bump();` statement remains anywhere
|
||||
in `parser/`), but the number should read 178 wherever it is quoted
|
||||
again (the Work log, TODO.md §63.2, and the `docs/perf/README.md` paste
|
||||
in this file all repeat it). Left the dated Work log entries as the
|
||||
historical record; not editing them.
|
||||
- **Finding (fixed directly, typo-class): the operator table has 42
|
||||
entries, not 44.** Counted `OPERATORS` in `lexer.rs` by hand and by
|
||||
script: 42. The inline code comment said "44 spellings" — fixed to 42
|
||||
(`crates/vlog_parser/src/lexer.rs`, the comment above the first-byte
|
||||
test). The Work log prose and TODO.md still say 44; same disposition as
|
||||
above — noted, not rewritten.
|
||||
|
||||
**Comment-attachment attacks on the fused lexer** (item 4): built
|
||||
`tokenize` from 1b8723c in a fresh clone (`old_lucisv/`) and from the
|
||||
working tree as two throwaway `examples/qa_token_digest.rs` /
|
||||
`qa_dump_one.rs` binaries (removed after use — not part of this diff).
|
||||
- **Whole corpus + opentitan, re-derived independently**: token stream +
|
||||
parse-tree + diagnostics digest (a hash of `{:?}` output, not read from
|
||||
the dev's cached digest files) over the same **4 807-file list** the
|
||||
dev used (`~/.cache/lucisv-perf/63-2/files-all.txt`): **0 lines
|
||||
differ**.
|
||||
- **The ten named attack shapes** (comment first in file; two comments
|
||||
before any token; trailing comment at EOF; two block comments merging
|
||||
on one line; a blank line between a comment and its token; CRLF; a
|
||||
block comment spanning lines before a same-line token; a comment
|
||||
between a macro invocation and its arguments; a file that is only
|
||||
comments; an empty file): dumped full `Debug` token streams for all
|
||||
ten from both builds — byte-identical hashes and, for the trickier
|
||||
three (merge, macro-comment, multi-line block), eyeballed the raw
|
||||
`Debug` output for sanity. Pinned as **ten new tests** in
|
||||
`crates/vlog_parser/src/lexer.rs`'s `mod tests` (search
|
||||
`TODO §63.2 QA`), all passing.
|
||||
- The lead's `attach_trailing` edit (returns the comment instead of
|
||||
dropping it when there is no previous token): confirmed the branch is
|
||||
unreachable through `tokenize` today (`attach` only calls
|
||||
`attach_trailing` when `same_line_as_prev` is true, which already
|
||||
requires `!tokens.is_empty()`), so it changes nothing observable yet
|
||||
and is a correct hardening of invariant 3 for whichever future caller
|
||||
removes that guard. Compiles clean, no test regressed.
|
||||
|
||||
**Operator table** (item 5): three new tests in `lexer.rs`.
|
||||
- `every_operator_s_first_byte_is_a_single_ascii_byte` — all 42 entries.
|
||||
- `the_operator_table_has_no_duplicate_or_empty_entries`.
|
||||
- `every_operator_followed_by_every_other_operator_still_lexes_without_a_gap`
|
||||
— all 42×42 = 1 764 concatenations, asserted to round-trip with no gap.
|
||||
Cross-checked the same 1 764 pairs against 1b8723c with the throwaway
|
||||
digest tool: **0 differ**.
|
||||
|
||||
**Idempotency and snapshots** (item 6): `cargo test -p vlog_formatter`
|
||||
green as part of the full workspace run above (`fixtures_match_snapshots
|
||||
_and_are_idempotent` passes). `tools/corpus_check.sh corpus -b
|
||||
target/release/lucisv`: 814/820 parse & format, 0 verification errors, 0
|
||||
crashes, and the outcome column is **byte-for-byte identical to the
|
||||
tracked `corpus-check-results.tsv`** for all 820 files. `format --stdout`
|
||||
byte-identity: **corpus, 0 differ** (stdout and stderr both, against
|
||||
`~/.cache/lucisv-baselines/lucisv-0.53.0`); **opentitan `hw/ip`
|
||||
(1 807 files), 0 differ**, same 4 parse errors both binaries, run through
|
||||
the guard. `git -C ~/repo/opentitan status --porcelain` before and after:
|
||||
only the three pre-existing files, every time.
|
||||
|
||||
**sha256 / rebuild check** (item 7 precondition): a fresh
|
||||
`cargo build --release` of the working tree's `lucisv` CLI matches
|
||||
`~/.cache/lucisv-perf/63-2/lucisv-new` byte for byte
|
||||
(`fabd3432…bdfcfaf`) — the lead's edit landed before that binary was
|
||||
built. **`lucisv-server` does *not* match**: `server-step2-lexparse`
|
||||
(built 01:23) is `b0b09544…`, a fresh build of the current tree is
|
||||
`694287ea…`. The lead's edit landed between the two builds (01:23 →
|
||||
01:25), so the server binary used for the dev's own paired run predates
|
||||
it. Per the brief, rebuilt the candidate and re-ran the paired benchmark
|
||||
against the fresh binary rather than trusting the cached one.
|
||||
|
||||
**Paired re-take** (item 7), `paired-qa.sh` (same shape as the dev's
|
||||
`paired.sh`, ref/new alternated, 3 tries, one warm store per binary),
|
||||
against the freshly built candidate `lucisv-server` (694287ea…) and the
|
||||
reference rebuilt from 1b8723c and hash-verified against
|
||||
`server-ref-0.53.0` (6b1b5245…, matches):
|
||||
|
||||
| cell | ref (a/b) | candidate (a/b) | change |
|
||||
|---|---:|---:|---|
|
||||
| `offeredit` pinmux-comment, first after didChange (median of 3) | 112.31 / 110.63 | 90.35 / 92.57 | **−19.6% / −16.3%**, gate (≥15%) met both rounds, stretch (<95ms) met |
|
||||
| `offeredit` aes-reg-instance, first after didChange | 6.32–7.82 | 2.94–8.05 | inside noise, matches dev's characterization |
|
||||
| `offeredit` tb-comment, first after didChange | 0.56–3.94 | 0.56–3.08 | inside noise |
|
||||
| `offerkinds`, 35 rows | 0.03–6.0 ms | 0.03–5.0 ms | no row moved out of range |
|
||||
| RSS cold | 502.7–505.2 MiB | 478.6–483.1 MiB | lower, matches "cold ~25 MiB lower" |
|
||||
| RSS warm | 427.4–429.4 MiB | 426.9–429.3 MiB | flat |
|
||||
|
||||
This run was **not** on an idle machine (a `cargo test --workspace` was
|
||||
running concurrently in the background for part of it), which is why the
|
||||
absolute ms are a little higher than the dev's own quieter-machine
|
||||
numbers — the percentage reduction and every qualitative claim
|
||||
(noise-level `offerkinds`/other cursors, RSS direction) hold anyway, so
|
||||
the gate is met with margin either way.
|
||||
|
||||
Also re-ran `parity_menu.py` (item covering TODO.md's "an edit that
|
||||
moves a fence" attack, plus the lex-failure and `define`-table attacks
|
||||
below) against the freshly built ref/candidate pair: **87 lines, 0
|
||||
differ**, same as the dev's own run — the LINTY edit's fence/lint-finding
|
||||
path is unaffected.
|
||||
|
||||
**TODO.md's three named parity attacks** — a buffer that fails to lex, a
|
||||
`` `define `` edit that changes the macro table, an edit that moves a
|
||||
fence:
|
||||
1. **Lex failure**: new test
|
||||
`a_buffer_that_fails_to_lex_still_records_every_rebuild_stage`
|
||||
(`state/mod.rs`) — an unterminated string literal, confirms `tokens`
|
||||
stays empty, a diagnostic is produced, `Rebuild::Lex` is still
|
||||
recorded (the failed attempt is real work), and every other stage
|
||||
(`defines`/`analyze`/`external`/`lines`/`publish`) still runs over the
|
||||
empty tree exactly as the un-instrumented code always did.
|
||||
2. **`define` edit**: new test
|
||||
`a_define_edit_changes_the_macro_table_the_rebuild_reports_on` —
|
||||
two `Document::new` calls with different macros, confirms the second
|
||||
document's table has no trace of the first's macro (no cross-document
|
||||
staleness introduced by wrapping `collect_defines` in `rebuild`).
|
||||
3. **Fence-moving edit**: covered by the `parity_menu.py` re-run above
|
||||
(the LINTY revision is exactly this — a new lint finding changes what
|
||||
the fence/diagnostics path reports for the revision).
|
||||
|
||||
**`lint_trace` arithmetic — sabotaged, as asked** (item 8): nested
|
||||
`rebuild{…}` inside `flush{…}` in `Trace::line()` and reran the dev's
|
||||
pinning test, `the_rebuild_group_names_every_stage_beside_the_other_two`.
|
||||
**It did not fail.** That test extracts the rebuild body by splitting on
|
||||
the literal string `"rebuild{"` and the *next* `}`, which finds a clean
|
||||
body whether or not another `}` follows — the extra brace the nesting
|
||||
adds sits outside the slice the test inspects. Checked what actually
|
||||
happens to a consumer against `tools/perf/phases_p2.py`'s real regex
|
||||
(`([a-z_]+)\{([^{}]*)\}`, which cannot cross an inner `{`): run against
|
||||
the sabotaged line, `GROUP.findall` matched only `rebuild` and `action`
|
||||
— **the whole `flush` group silently fails to match**, and
|
||||
`flush_wall`/`flush_buffers`/`flush_parses` and every `flush.fields()`
|
||||
key vanish from that row with no error anywhere. So the existing pin
|
||||
does not actually enforce the sibling-group contract it documents.
|
||||
Added `the_three_top_level_groups_are_flat_never_nested` to
|
||||
`lint_trace.rs`'s test module, which reads the line the way the regex
|
||||
does (each group must reach its own `}` before another `{` opens) —
|
||||
confirmed it **fails** against the sabotaged code and **passes** after
|
||||
reverting the sabotage; the sabotage itself is reverted (`git diff` of
|
||||
`lint_trace.rs` no longer shows it). This is the one finding I'd call a
|
||||
real gap rather than a documentation slip, though it is a `tools/perf`
|
||||
tooling-correctness issue, not a formatter-invariant one (no corpus/
|
||||
opentitan output is affected), so it does not block this round; filed as
|
||||
a fix-directly-and-note per CLAUDE.md's QA rule since the fix is a test
|
||||
addition, not a redesign.
|
||||
|
||||
**Not independently re-verified**: the dev's own `flush`/`diagnostics`
|
||||
paired cells (only `offeredit`/`offerkinds`/`rss` were named in my brief
|
||||
for item 7); the micro-harness per-stage table (`tokenize` 27.79→11.59ms
|
||||
etc.) — trusted as reported, since the stage split itself is exercised
|
||||
by the corpus-wide digest and the paired re-take above.
|
||||
|
||||
**Verdict: PASS.** No corpus, opentitan, snapshot, idempotency or
|
||||
comment-preservation regression found anywhere; the two real findings
|
||||
are a documentation/count inaccuracy (217→178, 44→42, the latter fixed)
|
||||
and a test-strength gap in the sibling-group pin (fixed with a new test
|
||||
that actually catches the nesting failure mode). Gate met with an
|
||||
independently-measured margin on a busier machine than the dev's own
|
||||
run.
|
||||
|
||||
## Review
|
||||
|
||||
**Lead review, 2026-09-12 — accepted.** The lane did what the brief
|
||||
asked in the order it asked: the flush split came first and it settled
|
||||
two of the review's candidates without code (no second lint, no second
|
||||
analysis), then named the two stages that mattered — lex and parse, 55 of
|
||||
a 100 ms flush. The three changes are all in `vlog_parser` and all
|
||||
behaviour-preserving by construction: the lexer fusion is a reordering of
|
||||
the same attachment loop (the fused `attach` reads only the raw token in
|
||||
hand and the token last pushed, which is all the old loop ever read),
|
||||
`Parser::skip` is `bump` minus the clone with the same comment plumbing,
|
||||
and the first-byte test in front of the operator table is a filter in
|
||||
front of an unchanged `starts_with`. The proof is the one that matters for
|
||||
a lexer change: token stream, diagnostics, AST and symbols digested per
|
||||
file over 4 807 files with 0 differing, re-derived by QA from a rebuilt
|
||||
1b8723c, plus the five gap fuzzers at their pinned counts and every
|
||||
byte-identity gate. Gate met at −19.2 % (dev) and −19.6 % / −16.3 % (QA's
|
||||
re-take on a busier machine), stretch met.
|
||||
|
||||
One edit is the lead's, and QA covered it: `attach_trailing` now hands an
|
||||
orphan comment back to `pending` instead of returning silently — the
|
||||
branch is unreachable while `same_line_as_prev` requires a token, and it
|
||||
stays a rule rather than a hope (invariant 3).
|
||||
|
||||
Rulings on QA's findings:
|
||||
|
||||
- **Counts** (217 call sites and 44 operators in the Work log; 178 and
|
||||
42 in the tree): the Work log stands as a dated record; the lead's own
|
||||
entry in `docs/perf/README.md`, TODO §63.2 and the topo row carry the
|
||||
verified numbers.
|
||||
- **The nesting guard**: the dev's pin string-split the line and missed a
|
||||
nested group; QA's `the_three_top_level_groups_are_flat_never_nested`
|
||||
runs the real regex and catches the sabotage. Accepted as the pin.
|
||||
|
||||
Deferred with the dev's reasons and filed in TODO's loop-3 list: the
|
||||
token clone into `parse_tolerant` (the parser mutates the stream it is
|
||||
given), `analyze`, `resolve_external`, and dropping the previous revision
|
||||
on the request path. `lexer.rs` at 770 production lines is noted: the
|
||||
fusion removed a responsibility rather than adding one.
|
||||
@@ -102,6 +102,54 @@ below-walk, by `a_walk_that_starts_below_a_root_still_obeys_that_roots_gitignore
|
||||
and `a_negation_below_the_root_still_wins_over_the_root_rule`, both of which
|
||||
assert equality with the whole-root walk restricted to that subtree.
|
||||
|
||||
#### Amended 2026-09-09 (F1) — a third entry, and the identity the split owes
|
||||
|
||||
The two entries above promised the same *filters* across the split and said
|
||||
nothing about **directory identity**, which is the other half of what a walk
|
||||
of the root decides: it enters each identity once and reports its files under
|
||||
the first spelling that reaches it (`docs/features/walk-cycles/README.md`).
|
||||
Two walks with two visited sets do not have that between them, so a symlinked
|
||||
directory reached by both was indexed twice — the review's finding F1
|
||||
(`docs/performance_052_review.md`). The identity is now a value the caller
|
||||
owns and hands to both walks:
|
||||
|
||||
```rust
|
||||
/// Every directory identity a walk has entered, and the path it entered
|
||||
/// each one by. Shared between two walks, they behave as one.
|
||||
pub struct DirectoryTracker { /* … */ }
|
||||
|
||||
impl DirectoryTracker {
|
||||
pub fn new() -> Self;
|
||||
/// Record `dir`, and say whether it is new, already seen, or already
|
||||
/// seen under a path this one sorts *before* — which is the root walk's
|
||||
/// own choice, and so a disagreement about spelling.
|
||||
pub fn enter(&mut self, dir: &Path) -> DirStatus;
|
||||
/// Whether any `enter` reported `PrecedenceConflict`.
|
||||
pub fn has_conflict(&self) -> bool;
|
||||
}
|
||||
|
||||
pub enum DirStatus { EnteredFirstTime, AlreadyVisited, PrecedenceConflict { recorded: PathBuf } }
|
||||
|
||||
pub type DirId = /* (dev, ino) on unix, the canonical path elsewhere */;
|
||||
pub fn dir_id(path: &Path) -> Option<DirId>;
|
||||
|
||||
pub fn collect_files_tracked(input, exclude, gitignore, tracker, found, warn) -> Result<(), String>;
|
||||
pub fn collect_files_below_tracked(root, input, exclude, gitignore, tracker, found, warn)
|
||||
-> Result<(), String>;
|
||||
```
|
||||
|
||||
Still additive: `collect_files_with` and `collect_files_below` keep their
|
||||
signatures and are two-line wrappers that make a tracker of their own, so a
|
||||
single walk behaves exactly as it always did — `enter` is the same
|
||||
insert-if-absent test, with a second answer for the caller that asked for one.
|
||||
|
||||
**What this promises the server:** one tracker across the neighbourhood walk
|
||||
and the remaining walk means one directory identity entered once between them,
|
||||
so no file is discovered under two spellings and the union of the two walks is
|
||||
the set a single root walk yields. Where the remaining walk *does* reach an
|
||||
identity by a path the root walk would have preferred, `has_conflict` says so
|
||||
and the server rescans (below); nothing is duplicated either way.
|
||||
|
||||
### `lucisv_server` internals
|
||||
|
||||
- **`crate::state::discover`** is a new child module of `crate::state`: `Found`,
|
||||
@@ -143,6 +191,19 @@ assert equality with the whole-root walk restricted to that subtree.
|
||||
|
||||
### Requests for the lead (`docs/topo.md` is not edited by this lane)
|
||||
|
||||
0. **2026-09-09, F1.** The `lucisv_server ──▶ lucisv_core` walk row already
|
||||
carries the tracker (another agent amended it before this lane started; the
|
||||
row is not this lane's file and was left alone). Two sentences are still
|
||||
owed there, and the lead owns them: **(a)** what the tracker promises is
|
||||
that the two walks of one scan enter each directory identity once *between*
|
||||
them, so a `lucisv_core` change that gave `enter` a different answer for a
|
||||
second spelling would silently un-fix F1; **(b)** the tracker's
|
||||
`has_conflict` is a **server-visible** outcome now — `state/mod.rs` reads it,
|
||||
`Scan::wants_rescan` reports it and `server/index.rs` turns it into one
|
||||
ordinary rescan — so it is a handshake and not an internal detail. Nothing
|
||||
outside `lucisv_server` calls the tracked entries; the CLI still calls
|
||||
`collect_files`.
|
||||
|
||||
1. `lucisv_server ──▶ lucisv_core` (walk): **`collect_files_with` and
|
||||
`collect_files_below`**, both additive, `collect_files` unchanged and now a
|
||||
wrapper. The server's cap reads the walk's own `metadata`; its
|
||||
@@ -596,6 +657,133 @@ guarded `cargo test --workspace` green.
|
||||
`state/mod.rs` **1 069 → 978**: it did not grow, and the new logic went into a
|
||||
new module as the brief required.
|
||||
|
||||
### 2026-09-09 — dev (Opus), F1 finished
|
||||
|
||||
**F1 is closed.** The split discovery keeps the walk's directory identity
|
||||
across both halves, the one case it cannot lead with falls back to the single
|
||||
canonical walk before the head is walked, and the one case nothing can see
|
||||
ahead of time converges on an ordinary rescan. Nothing about the ordering or
|
||||
the first-answer numbers moved.
|
||||
|
||||
**What the fix is, in four parts.**
|
||||
|
||||
1. **One tracker, two walks.** `DirectoryTracker` (above, Handshakes) is made
|
||||
in `first_scope`, filled by `neighbourhood_files`, carried on
|
||||
`PendingDiscovery`, and handed to the remaining walk by `rest_of_scope`. A
|
||||
directory identity is entered once between them, so the two halves cannot
|
||||
report one directory's files under two spellings and the path-only `seen`
|
||||
set no longer has to recognise something a path cannot.
|
||||
2. **A pre-check, and a fallback that discards.** `has_preceding_alias` asks,
|
||||
*before* the head is walked, whether any directory between the open
|
||||
buffer's folder and its root holds a symlink to that folder or one of its
|
||||
ancestors under a name a root walk reaches first (`a_alias -> z_real`).
|
||||
If it does, the head would spell those files a way no other scan ever
|
||||
does, so the scan resolves its whole scope in one walk instead. The
|
||||
`HEAD_WALK_MAX` fallback now **discards** the head and does the same: it
|
||||
used to union the head with an independently-discovered rest, which was
|
||||
the bug wearing a second hat.
|
||||
3. **A conflict is acted on.** An alias outside that ancestor chain —
|
||||
`other/link -> z_real`, `other` sorting first — is invisible to any
|
||||
pre-check: the head leads with `z_real` and only the remaining walk finds
|
||||
out. The tracker refuses to enter the directory a second time (so nothing
|
||||
is duplicated and every answer the startup gives is right), reports
|
||||
`has_conflict`, and `scan_once` sets `rescan_wanted` on the way out. That
|
||||
is the flag a save or a settings change sets, so the canonical walk runs
|
||||
when this scan ends, under `must_wait`, and the spelling converges there.
|
||||
Exactly one rescan can come of it: only a session's *first* scan splits.
|
||||
The `--verbose` count line says `conflict=1 rescan_requested=1`.
|
||||
4. **An open buffer's aliases.** A buffer opened as `z_real/tb.sv` whose walk
|
||||
spelling is `a_alias/tb.sv` used to put both in the index — one module
|
||||
twice, and a `tb` that could not be renamed. `overlay_buffers` now drops a
|
||||
walked file whose `(dev, ino)` is an open buffer's, in **one** place
|
||||
rather than two.
|
||||
|
||||
**And it costs nothing.** The alias test is gated on the file's *name*: a
|
||||
directory alias cannot rename a file, so a walked file whose name no open
|
||||
buffer shares is never stat'd. Measured on opentitan (`counts` line,
|
||||
`stats=`): **0** on every workspace cell with 0 or 1 open buffers, cold and
|
||||
warm — the 3 976-`metadata` regression the first draft of this fix had is
|
||||
gone — and **58** in the 2-buffer cell whose head holds 58 files named
|
||||
`tb.sv`/`aes.sv`, which is the bound the gate promises and about 0.06 ms. A
|
||||
file-level symlink under a *different* name is out of scope and stays two
|
||||
files, as it is everywhere else in this server.
|
||||
|
||||
**The pre-check's own cost, measured.** It reads the four directories between
|
||||
`hw/ip/aes/dv` and the root and stats only the entries `read_dir` already
|
||||
called symlinks, so an ordinary tree costs no `metadata` at all. On opentitan
|
||||
it is the unattributed remainder of `discovery` (`discovery` minus
|
||||
`config+walk+filelist+sort+cap+buffers`): **0.10 → 0.27 ms**, i.e. ~0.17 ms,
|
||||
once per session.
|
||||
|
||||
**Paired against 0.52.0** (both release servers built here; opentitan
|
||||
`0098135`, three known modified files unchanged; guard 8 GiB/1 800 s
|
||||
throughout; load 4.1–6.8):
|
||||
|
||||
| Cell | 0.52.0 | F1 | |
|
||||
|---|---:|---:|---|
|
||||
| Workspace scan, cold | 2 878.9 | 2 886.0 | +0.2 % |
|
||||
| Workspace scan, warm | 1 044.2 | 1 039.6 | −0.4 % |
|
||||
| First useful definition, cold | 82.0 | 81.9 | −0.1 % |
|
||||
| First useful definition, warm | 115.6 | 117.5 | +1.6 % |
|
||||
| `discovery`, workspace warm, 1 buffer | 179.2 | 162.2 | −9 % |
|
||||
| `stats`, same cell | 0 | **0** | |
|
||||
| Settle, 1 / 10 / 100 open buffers | 1 100 / 1 098 / 1 251 | 1 134 / 1 074 / 1 218 | |
|
||||
| Warm idle RSS, KiB | 427 856 | 426 048 | |
|
||||
|
||||
Every row is within noise of 0.52.0 and of the round's own targets (~80/115 ms
|
||||
first answer, ~1.0 s warm settle, ~155 ms discovery, ~1 170 ms at 100
|
||||
buffers). Rows in `~/.cache/lucisv-perf/f1/results.jsonl`.
|
||||
|
||||
**Tests.** The seven fixtures the first draft added are refactored behind one
|
||||
helper — `startup_rescan_and_restart_agree`, which indexes the tree, asks the
|
||||
same four questions (index paths, definition targets, prepareRename, and the
|
||||
open buffer's pulled diagnostics by sentence and range) of the startup scan,
|
||||
of a whole rescan a watched-file burst triggers, and of a fresh session, and
|
||||
asserts the three agree — so each fixture is its shape and its
|
||||
own claims and nothing else. Nine of them, all `#[cfg(unix)]`: alias sorting
|
||||
before its target, alias sorting after, several aliases of one directory, an
|
||||
alias of an *ancestor* of the open folder, an ancestor cycle
|
||||
(`sub/up -> ..`) with a file at the root the head would otherwise spell
|
||||
`sub/up/top.sv`, an ignored alias, an open unsaved buffer, a genuine
|
||||
duplicate declaration (still refused, same sentence, at startup and after the
|
||||
rescan), and the sibling alias — which asserts the trace's
|
||||
`conflict=1 rescan_requested=1`, that exactly two scans ran and the second
|
||||
asked for nothing, that the per-file log names one `child.sv` per scan under
|
||||
the head's spelling then the root walk's, and that the index after the rescan
|
||||
is what a rescan and a restart also give. Every fixture needs
|
||||
`index.scopeDepth: 0` to reach the split at all — the default raise of 2 puts
|
||||
the folder *at* the root, where the split is refused: that is the review's own
|
||||
reproduction setting, and `the_whole_workspace_flat()` is it.
|
||||
|
||||
**Gates.** `cargo fmt` clean; guarded `cargo clippy --workspace --all-targets
|
||||
--locked -- -D warnings` clean, no new `#[allow]`; guarded
|
||||
`cargo test --workspace --locked` **4 385 passed, 0 failed, 45 ignored**
|
||||
(4 374 at 0.52.0, + 2 `DirectoryTracker` unit tests in `lucisv_core`, + 9
|
||||
alias fixtures in place of the first draft's 7).
|
||||
|
||||
**File sizes** (non-blank, non-comment, before `mod tests`):
|
||||
`state/discover.rs` **406** (329 at 0.52.0), `state/scan.rs` 135,
|
||||
`scan_trace.rs` 326, `server/index.rs` 226, `lucisv_core/src/walk.rs` 332 —
|
||||
all under 600. `state/mod.rs` **980 → 980**: it did not grow. The conflict
|
||||
rides out on `Scan::land_discovery`, which the one caller already called, and
|
||||
lives on the scan's own trace counter beside `publishes` rather than as a
|
||||
second copy of the same fact.
|
||||
|
||||
**Deviation from the plan.** Step 1.1 names `DirectoryTracker::is_visited` /
|
||||
`record_or_check` and a `WalkIdentity` struct; the shipped shape is `enter` →
|
||||
`DirStatus` and `has_conflict`, because the caller needs to tell "already
|
||||
seen" from "already seen under a path this one would have beaten", and a
|
||||
borrow of the recorded path is not something a walk can hold while walking.
|
||||
The plan's fallback is unchanged; the conflict follow-through (part 3 above)
|
||||
is beyond the plan, and is what makes startup and rescan agree in the case no
|
||||
pre-check can see.
|
||||
|
||||
**Assumption recorded.** A buffer opened *mid-scan*, after the scope was
|
||||
resolved, is not put through the alias test — its disk copy is already in the
|
||||
work list under whatever spelling the walk gave it. That is 0.52.0's
|
||||
behaviour and 0.51.0's, it is a `Scan::reorder`/`open_next` question rather
|
||||
than a discovery one, and no fixture here changes it.
|
||||
|
||||
## QA log
|
||||
|
||||
### 2026-09-08 — QA (Sonnet), §61.3
|
||||
@@ -793,6 +981,561 @@ store open). Recommend also applying the `HEAD_WALK_MAX` test I built (this
|
||||
QA log, above) as a topo-neutral addition to `state/mod.rs`'s existing test
|
||||
module when the lane next touches that file.
|
||||
|
||||
### 2026-09-09 — independent 0.52.0 review: directory-alias regression
|
||||
|
||||
**Finding F1 (P2), open.** The split discovery does not preserve the ordinary
|
||||
walk's directory-identity deduplication across its independent head/root
|
||||
walks. A scratch workspace with `a_alias -> z_real`, a `child` module and a
|
||||
testbench in `z_real`, workspace scope and depth 0, produces two definition
|
||||
targets at startup in 0.52.0 versus one in 0.51.0. `prepareRename` then falsely
|
||||
refuses an ambiguous `child`. A whole rescan with unchanged source restores
|
||||
one target and accepts prepareRename. Initial lookup comparison: 3/3 sessions
|
||||
per version; full startup/rescan lifecycle: another 3/3 per version.
|
||||
|
||||
The issue is the path-only `seen` set in `state/discover.rs::first_scope`
|
||||
combined with independent `Walk.visited` sets, not ignore-rule inheritance.
|
||||
The `HEAD_WALK_MAX` fallback also unions the independently discovered head.
|
||||
No implementation was changed. [Full review, reproduction and repair gates](../../performance_052_review.md#f1--p2--split-startup-discovery-duplicates-modules-behind-directory-aliases),
|
||||
[raw evidence](../../perf/review-052-20260909/README.md).
|
||||
|
||||
### 2026-09-09 — QA (Sonnet), TODO §62.1: REWORK — the rest-of-scope walk is not gated
|
||||
|
||||
**Verdict: REWORK.** F1's own fix is real and reproduces cleanly for every
|
||||
shape the dev's nine fixtures name, but the open-buffer alias gate
|
||||
(`Aliased`/`overlay_buffers`, Handshakes part 4) is wired into only *one*
|
||||
of the two places a split scan's files come from, and a crafted attack
|
||||
beyond the nine fixtures gets a false ambiguous-rename refusal through the
|
||||
gap. Findings below; nothing else broke.
|
||||
|
||||
**Gates, guarded, main tree.** `cargo fmt --all -- --check` clean.
|
||||
`cargo clippy --all-targets --locked -- -D warnings` clean, no new
|
||||
`#[allow]`. `cargo test --workspace --locked`: **4 385 passed, 0 failed, 45
|
||||
ignored** — exactly the dev's claimed 4 374 (0.52.0) + 2 tracker unit tests
|
||||
+ 9 alias fixtures; I did not re-run the suite against a fresh 3ceba21
|
||||
clone myself, but the independent review (`docs/performance_052_review.md`,
|
||||
"Independent validation") already recorded 4 374/0/45 at that commit, so
|
||||
the arithmetic is corroborated rather than assumed. Production line counts
|
||||
(non-blank/non-comment, before `mod tests`): `discover.rs` **405** (claimed
|
||||
406), `walk.rs` **332** (claimed 332, exact), `state/mod.rs` **980 → 980**
|
||||
(exact, net zero as claimed), `scan.rs` **134** (claimed 135) — all within
|
||||
one line of the dev's count and all comfortably under the 600 mark; no
|
||||
finding.
|
||||
|
||||
**The review's own reproduction, on both binaries.** Built candidate
|
||||
(`cargo build --release -p lucisv_server`, main tree) and 0.52.0 (fresh
|
||||
`git archive v0.52.0` into my scratchpad, built there — not the review's
|
||||
leftover `/tmp` binary). Ran an adapted `symlink_lifecycle.py` (the
|
||||
review's own fixture, `a_alias -> z_real`, workspace/depth-0, `z_real/
|
||||
tb.sv` open) against both, 3 trials each:
|
||||
|
||||
| | 0.52.0 | candidate |
|
||||
|---|---|---|
|
||||
| Definition after startup | 2 targets (`a_alias` + `z_real`), 3/3 | 1 target (`a_alias`), 3/3 |
|
||||
| prepareRename after startup | refused, "declared in more than one indexed file", 3/3 | accepted, 3/3 |
|
||||
| After the watched-file rescan | 1 target, accepted, 3/3 | 1 target, accepted, 3/3 |
|
||||
|
||||
Matches the review's table exactly — the finding was real, and the
|
||||
candidate fixes the reproduction as claimed.
|
||||
|
||||
**The matrix (a)–(i), attacked in a fresh clone (`git archive HEAD` +
|
||||
`git apply` of the working-tree diff) under my scratchpad, never the dev's
|
||||
tree.** Nine new fixtures appended to a scratch copy of `server/tests/
|
||||
startup.rs` (not shipped; QA-only):
|
||||
|
||||
- (a) alias to a directory **outside** the workspace root: today's
|
||||
behaviour is to follow it (the external `child.sv` is indexed and
|
||||
becomes the definition target) — pinned stable across startup/rescan/
|
||||
restart, not asserted as correct either way, since the spec is silent on
|
||||
it.
|
||||
- (b) alias to the workspace root itself from inside (`sub/root_link ->
|
||||
..`): one copy of every file, same shape as the shipped ancestor-cycle
|
||||
fixture — ok.
|
||||
- (c) two buffers, one in an aliased folder, one not: both resolve/rename
|
||||
correctly — ok.
|
||||
- (d) alias created **after** startup, converged by a watched-file rescan:
|
||||
one copy, one target, renamable — ok.
|
||||
- (e) a broken symlink beside the open folder: no crash, contributes no
|
||||
file — ok. (My first attempt at this fixture named its own tree
|
||||
`qadangling`, so a bare substring check on `"dangling"` matched the tree's
|
||||
own temp-dir name and produced a false failure; renamed the fixture and
|
||||
confirmed — a QA harness bug, not a product one, fixed in my own scratch
|
||||
copy only.)
|
||||
- (f) **FAILS.** A *file*-level symlink sharing an open buffer's basename,
|
||||
placed outside the buffer's own head-walked folder
|
||||
(`alias_dir/tb.sv -> ../z_real/tb.sv`, buffer open at `z_real/tb.sv`,
|
||||
workspace/depth-0 so the scan splits): the index ends up with **two**
|
||||
`tb.sv` entries (`alias_dir/tb.sv` and `z_real/tb.sv`) and
|
||||
`textDocument/prepareRename` on `tb` is refused: `"lucisv: \`tb\` is
|
||||
declared in more than one indexed file"`. This is a false positive of
|
||||
exactly the shape F1 exists to close, and it sits inside F1's own stated
|
||||
scope — the README's Handshakes text says the open-buffer alias check
|
||||
"drops a walked file whose `(dev, ino)` is an open buffer's, in **one
|
||||
place** rather than two" and stats only same-named files. Root cause: the
|
||||
`Aliased` gate lives only in `Workspace::overlay_buffers`
|
||||
(`crates/lucisv_server/src/state/discover.rs:194`), and `overlay_buffers`
|
||||
is called from exactly two places — `collect_sources` (the non-split,
|
||||
whole-workspace path) and `first_scope`'s **head**-only branch (line
|
||||
~555). `Workspace::rest_of_scope`
|
||||
(`crates/lucisv_server/src/state/discover.rs`, the function added by this
|
||||
round for the split's second walk) filters its output only against the
|
||||
cap and the head's own `seen` path set — never against `Aliased` — so a
|
||||
same-named file-level alias discovered by the *remaining* walk (i.e.
|
||||
anywhere outside the buffer's own immediate folder, which on a real
|
||||
workspace is nearly everything) is not deduplicated at all.
|
||||
`Scan::land_discovery`/`PendingDiscovery` carry no such check either. The
|
||||
dev's own measured "58" (`stats`, the 2-buffer opentitan cell) is
|
||||
consistent with this: I reproduced `stats=58` on that exact cell
|
||||
(`scanprofile`, "workspace warm, 1 open buffer" — 2 buffers total once
|
||||
the harness's always-open default is counted) and it is generated
|
||||
entirely inside the head-only `overlay_buffers` call, so it is not
|
||||
evidence the gate covers the rest of the workspace — it demonstrates the
|
||||
opposite once the code path is traced. Impact: not merely a spurious
|
||||
refusal — since the "walked" copy is read fresh from disk while the
|
||||
buffer's overlay text can differ (unsaved edits), a workspace with such
|
||||
an alias can silently carry two *different* bodies for what the editor
|
||||
believes is one open file, which is a masked-duplication risk squarely
|
||||
inside CLAUDE.md's "never corrupt code" invariant's neighbourhood, not
|
||||
just a UX refusal.
|
||||
- (g) file-level symlink under a **different** name: stays two files,
|
||||
consistent across startup/rescan/restart — matches the documented
|
||||
out-of-scope behaviour — ok.
|
||||
- (h) genuine duplicates behind an alias of a *different* real directory
|
||||
(`a/child.sv`, `b/child.sv`, `link_a -> a`): still refused, ambiguous,
|
||||
identically before and after a rescan — the tracker does not collapse
|
||||
two genuinely different directory identities just because one of them is
|
||||
reached through an alias — ok.
|
||||
- (i) the sibling-alias rescan's follow-through: confirmed by code reading
|
||||
(`server/index.rs::scan_once`, `self.rescan_wanted |= scan.wants_rescan()`
|
||||
runs *after* the scan-stepping loop, so `must_wait()` — which reads
|
||||
`rescan_wanted` — is already true for anything arriving between this
|
||||
scan's end and the rescan's end) and by a wire test that drains the
|
||||
startup scan and its self-triggered rescan fully, then asserts
|
||||
`!rescan_wanted && !must_wait()` and that the settled answer is the
|
||||
*rescanned* (canonical) spelling, never the head's — ok. I did not build
|
||||
a harness that injects a request mid-rescan (the staged test harness has
|
||||
no hook to pause between the two scans), so this is the outcome
|
||||
`must_wait` protects, confirmed, rather than an interleaved-request
|
||||
reproduction.
|
||||
|
||||
**Stats and the gate sabotage.** `scanprofile` on opentitan, candidate,
|
||||
`--tries 1`: `stats=0` at 0 extra buffers (workspace cold/warm, default
|
||||
scope, depth0) and at 10/100 extra buffers; `stats=58` at "1 open buffer"
|
||||
(2 buffers total, matching the dev's reported cell and number exactly);
|
||||
`discovery` 150–197 ms depending on cell, within the dev's ~162 ms claim.
|
||||
Sabotage: commented out the name-check in `Aliased::speaks_for`
|
||||
(`state/discover.rs:149-152`) in my scratch clone, rebuilt release, reran
|
||||
the same cells: `stats` jumped to **123** (0/10-extra-buffer default-scope
|
||||
cells), **3974/3970** (1/10-buffer workspace cells) — confirming the name
|
||||
gate is exactly what keeps the head-scope cost near zero when it is
|
||||
wired in. (This sabotage does not contradict finding (f) above — it shows
|
||||
the gate works *where it is called*, which is the head only.)
|
||||
|
||||
**The conflict follow-through and its sabotage.** Confirmed by reading
|
||||
`server/index.rs::scan_once` (line ~311): `self.rescan_wanted |=
|
||||
scan.wants_rescan()` sits after the scan-stepping `loop { … }`, so the
|
||||
held first answer is not delayed by it. Sabotage: commented out that one
|
||||
line in my scratch clone, rebuilt, reran the shipped
|
||||
`an_alias_beside_the_open_folder_indexes_once_and_asks_for_one_rescan`
|
||||
fixture: it fails as expected — `left: 1, right: 2` ("the startup scan and
|
||||
the one rescan it asked for"), i.e. no follow-up rescan ever runs even
|
||||
though `conflict=1 rescan_requested=1` is recorded on the trace. Restored
|
||||
both sabotaged files immediately after each experiment; diffed clean
|
||||
against the working tree afterwards.
|
||||
|
||||
**Controls (§61/P4), candidate vs a freshly-built 0.52.0, both from
|
||||
scratch clones, `scanwait`, 3 tries each on opentitan:** first useful
|
||||
definition cold 80.4 / 81.2 ms median (candidate/0.52.0, essentially
|
||||
equal); warm 115.9 / 115.3 ms; the answering session's own scan cold
|
||||
2732.7 / 2697.6 ms (+1.3%); warm 1036.8 / 996.7 ms (+4.0%). All within the
|
||||
±10% band; no regression.
|
||||
|
||||
**Traceability.** Checked 12 numbers from the dev's table and prose
|
||||
against `~/.cache/lucisv-perf/f1/results.jsonl`: workspace scan cold/warm
|
||||
2878.9/2886.0 and 1044.2/1039.6, first useful answer cold/warm samples
|
||||
around 81.9–82.3 and 115.6–117.6, `discovery` 179.2/162.2 (`stages.
|
||||
discovery`/`stages.walk`), the 1/10/100-buffer settle triple 1100/1098/1251
|
||||
(0.52.0) and 1134/1074/1218 (f1), and warm idle RSS 427856/426048 — every
|
||||
one is present verbatim in that file, against the row its label says.
|
||||
|
||||
**Topo.** The two sentences the dev's Handshakes section said were owed to
|
||||
the lead (the tracker's cross-walk promise, and `has_conflict` being
|
||||
server-visible) are **already in `docs/topo.md`**'s `lucisv_server ──▶
|
||||
lucisv_core` row as of this diff — nothing outstanding there. What *is*
|
||||
now owed, given finding (f): a sentence (or a Handshakes amendment) saying
|
||||
the open-buffer alias gate's actual scope is the split's head only, not
|
||||
the whole scan, until `rest_of_scope`/`land_discovery` are given the same
|
||||
check — otherwise the topo row's promise ("no file is discovered under two
|
||||
spellings") overstates what the shipped code does for file-level aliases
|
||||
outside the head.
|
||||
|
||||
**opentitan**: `git -C .../opentitan status --porcelain` checked before,
|
||||
during and after every phase — always exactly the three pre-existing
|
||||
modified files. **Guard**: every cargo/test/build/bench invocation (main
|
||||
tree and both scratch clones) ran through `tools/guard.sh -m 8 -t …`; no
|
||||
kills. No lingering background processes or poll loops left running at
|
||||
session end. Fixed directly (no code changes needed): none — finding (f)
|
||||
is a design gap, not a small unambiguous fix, and is left for the dev.
|
||||
|
||||
**TODO §62.1's QA line is left unchecked.** Recommend: extend the
|
||||
`Aliased` check (or an equivalent identity filter) to `rest_of_scope`'s
|
||||
output before it lands in the scan, add fixture (f) above to the shipped
|
||||
suite, and re-run this QA pass.
|
||||
|
||||
### 2026-09-09 — QA (Sonnet), TODO §62.1 re-verification: REWORK — a newly-opened buffer's own file can vanish from the index
|
||||
|
||||
**Verdict: REWORK.** The lead's fix for finding (f) is itself correct — the
|
||||
sibling-alias/file-symlink matrix is green, sabotage confirms the gate is
|
||||
load-bearing, and the specific reproduction QA's last pass filed is closed.
|
||||
But the fix as shipped introduces a **new, more severe** regression: the
|
||||
same `Aliased` check that now runs in `Workspace::rest_of_scope` can drop a
|
||||
just-opened buffer's own real file from the scan entirely — not duplicate
|
||||
it, not misspell it, **omit it** — so that module is silently absent from
|
||||
the index for the rest of that scan. This is closer to CLAUDE.md's "never
|
||||
corrupt code" neighbourhood than finding (f) was: (f) produced a spurious
|
||||
*second* copy; this produces *zero* copies.
|
||||
|
||||
**How it was found.** Guarded `cargo test --workspace --locked` in a fresh
|
||||
clone (`git archive HEAD` at `3ceba21` + `git apply` of the working-tree
|
||||
diff, under my scratchpad, never the dev's tree) is **not green**:
|
||||
|
||||
```
|
||||
failures:
|
||||
state::tests::a_file_opened_mid_scan_lengthens_the_neighbourhood_it_jumps_into
|
||||
test result: FAILED. 1663 passed; 1 failed; 36 ignored; 0 measured
|
||||
```
|
||||
|
||||
This is a **pre-existing, dev-authored** fixture (`state/mod.rs:4062`,
|
||||
untouched by this diff — it has nothing to do with aliases) that opens a
|
||||
second buffer mid-scan and checks the neighbourhood segment length. I
|
||||
confirmed it is not flaky: 5/5 deterministic failures in the diffed clone,
|
||||
5/5 deterministic passes in an undiffed clone built from the same `3ceba21`
|
||||
snapshot with no diff applied. It is a genuine regression of this round's
|
||||
change, not noise.
|
||||
|
||||
**Root cause, isolated by instrumentation** (temporary `eprintln!`s in my
|
||||
scratch clone only, reverted immediately after — diffed clean against the
|
||||
shipped patch both times, confirmed byte-identical). The failing fixture
|
||||
opens `ip/aes/dv/tb/tb.sv`, steps one file, then opens
|
||||
`ip/uart/rtl/uart.sv` and calls `Workspace::open_next`
|
||||
(`state/mod.rs:1544`), which unconditionally calls `discover_the_rest`
|
||||
(`state/mod.rs:900`) before reordering — this part is unchanged by the
|
||||
current diff and is correct. `discover_the_rest` calls the new
|
||||
`rest_of_scope(&mut pending, …)` (`state/discover.rs:652`). Printing
|
||||
`scan.remaining()` right after `open_next` returns: **`uart.sv` is not in
|
||||
the work list at all** — 10 files instead of the 11 the tree holds beyond
|
||||
the one already stepped. A second probe confirmed the consequence directly:
|
||||
after `finish_scan`, `ws.index().units("uart_pkg").len()` is **0** — the
|
||||
buffer's own module was never indexed by this scan.
|
||||
|
||||
The mechanism: `rest_of_scope`'s new gate (`state/discover.rs:682`,
|
||||
`if seen.contains(&found.path) || aliased.speaks_for(&found.path, &mut
|
||||
stats)`) builds `aliased` from **every currently-open buffer's path**
|
||||
(`spoken_for`, line ~672) at the moment the remaining walk runs — which is
|
||||
*after* `uart.sv` was opened. When the walk discovers `uart.sv` for the
|
||||
first time, `Aliased::speaks_for` matches it by name ("uart.sv") and then
|
||||
by identity (`dir_id` — trivially equal, since it's checking the file
|
||||
against *itself*) and reports it "spoken for", so it is dropped from
|
||||
`files` and never reaches `scan.work`. `rest_of_scope` has **no equivalent**
|
||||
of `overlay_buffers`'s own re-add step (`state/discover.rs:246`,
|
||||
`files.retain(|p| p != &path); … files.push(path)`), which is what makes
|
||||
the identical-looking check safe in `overlay_buffers` (line 216) but unsafe
|
||||
here: `overlay_buffers` drops a spoken-for path and then unconditionally
|
||||
puts every open buffer's path back at the end; `rest_of_scope` only ever
|
||||
drops. Before this round's fix, `rest_of_scope` had no `Aliased` check at
|
||||
all, so `uart.sv` passed through untouched, landed in `scan.work`, and was
|
||||
read fresh off disk when stepped (correct, if by luck rather than by the
|
||||
buffer's own text) — matching 0.52.0. This round's extension of the gate to
|
||||
`rest_of_scope` is what turned that "correct by luck" path into a silent
|
||||
drop, precisely because `Aliased::speaks_for` cannot distinguish "a second
|
||||
spelling of a file already accounted for" (the case it exists to catch)
|
||||
from "the first and only discovery of a buffer that was opened after the
|
||||
head walk ran" (a case its own docstring assumes cannot happen —
|
||||
`rest_of_scope`'s comment says "a buffer's path is in `pending.seen`", true
|
||||
only when nothing opened between `first_scope` and `discover_the_rest`,
|
||||
which is exactly what `Workspace::open_next` exists to falsify).
|
||||
|
||||
**Not an isolated fixture problem.** None of the round's own 9+2 alias
|
||||
fixtures (nor my (j)/(k) below) exercise a `didOpen` arriving *during* a
|
||||
still-pending split discovery, so none of them could have caught this. The
|
||||
two existing mid-scan-`didOpen` fixtures
|
||||
(`a_did_open_that_beats_the_answer_is_folded_into_the_one_scan_and_indexed_
|
||||
first`, `a_did_open_answered_mid_scan_pulls_its_folder_in_front_of_the_
|
||||
request_behind_it`) check that a request is answered and that reordering
|
||||
happens; neither asserts the newly-opened file's own module actually lands
|
||||
in the finished index, which is why the workspace suite's *only* red light
|
||||
is the one unrelated fixture that happens to count work-list length.
|
||||
|
||||
**Left for the dev, not redesigned by QA.** Two directions, either owed a
|
||||
decision: (a) minimal — in `rest_of_scope`, an exact path match against
|
||||
`spoken_for` (the buffer's own real path, first discovery) must not be
|
||||
treated as "already handled" the way a *different*-path same-identity match
|
||||
is; it needs to still land in `scan.work` (`overlay_buffers` already draws
|
||||
this distinction at line 216 before ever consulting `Aliased`, `rest_of_
|
||||
scope` does not). (b) more complete — a buffer opened after the head walk
|
||||
has no entry in `scan.buffered`, so even a naive fix that re-includes such a
|
||||
path indexes it by re-reading disk rather than the buffer's own text
|
||||
(harmless in this fixture, which has no unsaved edit, but a live regression
|
||||
of `docs/features/index-scope/README.md`'s "the buffer's text overrides
|
||||
disk" rule the moment there is one) — `discover_the_rest`/`land_discovery`
|
||||
have no path today to feed a newly-discovered buffer's text into
|
||||
`scan.buffered`.
|
||||
|
||||
**Sabotage of the fix under review — still holds.** Removed the
|
||||
`aliased.speaks_for(&found.path, &mut stats)` half of `state/
|
||||
discover.rs:682` (leaving only `seen.contains`), rebuilt, reran the shipped
|
||||
fixture `a_same_named_file_symlink_outside_the_head_is_not_a_second_copy_
|
||||
of_the_buffer`: **fails** as required — `left` (startup) shows three files
|
||||
including `alias_dir/tb.sv`, `right` (rescan) shows two — the startup/
|
||||
rescan disagreement finding (f) named exactly. Restored; diffed byte-
|
||||
identical against the shipped patch afterwards.
|
||||
|
||||
**The matrix (a)–(k), fresh clone, same method as last time.** All of (a)
|
||||
through (i) reconfirmed passing (33 `startup::` tests green as a block,
|
||||
`--test-threads=4`). Two new fixtures added to a scratch copy of `server/
|
||||
tests/startup.rs` (QA-only, not shipped):
|
||||
- **(j)** a same-named file symlink *inside* the head folder
|
||||
(`z_real/sub/tb.sv -> ../tb.sv`, buffer open at `z_real/tb.sv`) —
|
||||
exercises the **head's own** gate (`overlay_buffers`, `state/
|
||||
discover.rs:223`) rather than `rest_of_scope`'s: passes, one `tb.sv`, one
|
||||
target, renamable.
|
||||
- **(k)** a same-named but genuinely *different* file outside the head
|
||||
(`other/tb.sv`, declaring `othertb`, a different inode) — passes: two
|
||||
distinct `tb.sv` paths indexed, `other/tb.sv` present, one `child`
|
||||
target. Confirms `speaks_for`'s identity check (not just the name check)
|
||||
is what keeps a real second file from being dropped — the finding above
|
||||
is specifically about a *self*-match (buffer vs. its own first-time
|
||||
discovery), not a false positive on an unrelated same-named file.
|
||||
|
||||
Both new fixtures pass; the alias-specific behaviour this round targets is
|
||||
correct. The regression is orthogonal to the alias matrix and sits in the
|
||||
interaction with mid-scan `didOpen`.
|
||||
|
||||
**Stats — measured, and the "still 0" expectation does not hold.**
|
||||
`scanprofile` on opentitan, candidate build (`cargo build --release
|
||||
--locked -p lucisv_server`), `--tries 1`, guarded:
|
||||
|
||||
| cell (harness label) | total open buffers | `stats` | `walk_dirs` | `discovery` ms |
|
||||
|---|---:|---:|---:|---:|
|
||||
| workspace, cold | 1 (`tb.sv` only) | **58** | 2 | 208.5 |
|
||||
| workspace, warm | 1 | **58** | 2 | 169.1 |
|
||||
| workspace warm, "1 open buffer" | 2 | **58** | 3 | 200.4 |
|
||||
| workspace warm, "10 open buffers" | 11 | **58** | 3 | 199.0 |
|
||||
| workspace warm, "100 open buffers" | 101 | **58** | 3 | 197.7 |
|
||||
| default / depth0, cold+warm | 1 | 0 | 0–1 | ≤2.6 |
|
||||
|
||||
**With only `tb.sv` open, `stats` is 58, not 0.** The dev's original F1
|
||||
work-log number (0 at "0 or 1 open buffers") was measured *before* finding
|
||||
(f)'s patch, when `Aliased` ran only inside the head's ~124-file
|
||||
neighbourhood and `tb.sv` had no other same-named file there to match. Now
|
||||
that `rest_of_scope` runs the same check across the **~3 850-file rest of
|
||||
the workspace**, opentitan's convention of naming testbenches `tb.sv`
|
||||
pervasively across many IP verification trees means 58 genuinely different
|
||||
`tb.sv` files are found tree-wide, each costing one name-match + one
|
||||
`dir_id` stat (correctly not filtered, since none is actually this buffer's
|
||||
identity — consistent with fixture (k) above). This is the *correct*,
|
||||
intended cost of extending the gate to the whole workspace, and at ~0.06 ms
|
||||
total (the dev's own per-stat estimate) it is not a performance concern —
|
||||
but it is **not** "still 0" as I'd been asked to confirm, and the number
|
||||
being flat at 58 across 1/2/11/101 total buffers (rather than growing with
|
||||
buffer count) is because the extra opened files are additional RTL modules
|
||||
whose names ("aes.sv", "aes_alert_sender.sv", …) do not happen to collide
|
||||
with anything elsewhere in the tree — an artifact of which files
|
||||
`rtl_files()` happens to pick, not a bound the code enforces. Reporting the
|
||||
actual measurement rather than confirming the assumption.
|
||||
|
||||
**Controls, candidate vs. the round's own targets (§61/F1), same opentitan
|
||||
tree, guarded, `--tries 3`:** first useful definition cold 79.3/79.6/81.1 ms
|
||||
(median 79.6, vs. the F1 table's 81.9 — within noise); warm 115.4/116.2/
|
||||
116.4 ms (median 116.2, vs. 117.5 — within noise); warm settled 1001.3 ms
|
||||
(vs. ~1 039–1 134 across the F1 table's buffer cells — at or below, no
|
||||
regression); cold settled 2 764.8 ms (vs. 2 886.0 — below). All within the
|
||||
±10% band asked for. **The regression above does not show up in these
|
||||
numbers** because none of these phases opens a second buffer mid-scan
|
||||
during a still-pending discovery — it is a correctness gap, not a
|
||||
performance one, and the perf harness does not exercise the code path that
|
||||
has it.
|
||||
|
||||
**Gates.** `cargo fmt --all -- --check`: clean. Guarded `cargo clippy
|
||||
--workspace --all-targets --locked -- -D warnings`: clean, no new
|
||||
`#[allow]`. Guarded `cargo test --workspace --locked`: **1 failed** (above);
|
||||
every other crate green (`lucisv` 36+113, `lucisv_core` 111,
|
||||
`vlog_formatter`+tests 315, `vlog_linter`+tests 667, `vlog_parser`+tests
|
||||
508, `vlog_refactor`+tests 550, `vlog_semantic`+tests 328 — all 0 failed);
|
||||
`lucisv_server`: **1 663 passed, 1 failed, 36 ignored** of 1 700. Production
|
||||
line count, `state/discover.rs` (no local test module): **409** non-blank/
|
||||
non-comment (raw 787 lines — the finding-(f) patch added the `Aliased`
|
||||
struct and its use in `rest_of_scope`; still comfortably under 600).
|
||||
|
||||
**opentitan.** `git -C .../opentitan status --porcelain` checked before and
|
||||
after every phase: always exactly the three known pre-existing modified
|
||||
files (`hw/ip/aes/dv/tb/tb.sv`, both `ast.sv`s), never anything else.
|
||||
**Guard:** every cargo/build/test/perf invocation, main clone and the
|
||||
undiffed control clone, ran through `tools/guard.sh -m 8 -t …`; zero kills.
|
||||
No lingering background processes at session end beyond the user's own
|
||||
pre-existing VS Code `lucisv-server --stdio` (0.51.0, not something this
|
||||
session started). All experiments — the workspace-test isolation, the two
|
||||
instrumented probes (reverted, diffed clean), the sabotage, fixtures (j)/
|
||||
(k), the release build and perf phases — ran in `/private/tmp/…/scratchpad/
|
||||
qa-62b/repo` (the diffed clone) or `/private/tmp/…/scratchpad/qa-62b-base/
|
||||
repo` (an undiffed control), never the main tree.
|
||||
|
||||
**Not repeated, per the task's own instruction: the previous QA's
|
||||
reproduction-on-both-binaries check and the conflict-follow-through
|
||||
sabotage** — the diff does not touch `has_preceding_alias`, `precedes_a_
|
||||
target`, or `Scan::wants_rescan`'s call site, and both were already
|
||||
verified in the prior pass.
|
||||
|
||||
**TODO §62.1's QA line stays unchecked.** Recommend: fix the self-match gap
|
||||
in `rest_of_scope` (two candidate directions above, a decision for the
|
||||
dev), add a fixture that opens a second buffer mid-split-discovery and
|
||||
asserts the new module is indexed (not just that a request is answered or
|
||||
that reordering happened), and re-run this QA pass including the matrix
|
||||
above (already green and reusable) plus the new fixture.
|
||||
|
||||
### 2026-09-09 — QA (Sonnet), TODO §62.1 third pass: PASS
|
||||
|
||||
**Verdict: PASS.** The lead's fix for the self-match gap is exactly the
|
||||
minimal direction (a) the previous pass left open: `rest_of_scope`
|
||||
(`crates/lucisv_server/src/state/discover.rs:686-690`) now computes
|
||||
`another_spelling = !spoken_for.contains(found.path.as_path())` and asks
|
||||
`aliased.speaks_for` only when `another_spelling` is true — the gate is never
|
||||
asked about a path that is an open buffer's *own* spelling, so a buffer
|
||||
opened mid-scan for the first time still lands in `scan.work`, while a
|
||||
second, different path reaching the same identity is still dropped. Read
|
||||
against the two prior findings ((f) and the self-match regression): both
|
||||
scenarios are now handled by one condition, not two competing ones.
|
||||
|
||||
**Gates, guarded, fresh clone** (`git archive 3ceba21` + `git apply` of the
|
||||
working-tree diff, under my scratchpad, never the main tree — the lead was
|
||||
running the full gate chain there concurrently, so no timing was taken).
|
||||
`cargo fmt --all -- --check`: clean. `cargo clippy --all-targets --locked --
|
||||
-D warnings`: clean, no new `#[allow]` in the diff (checked by grep, not
|
||||
just by eye). `cargo test -p lucisv_server --bin lucisv-server --locked`:
|
||||
**1 664 passed, 0 failed, 36 ignored** — the whole server binary green,
|
||||
including `state::tests::a_file_opened_mid_scan_lengthens_the_neighbourhood_
|
||||
it_jumps_into` (the second pass's regression, now `ok`) and all 39
|
||||
startup-adjacent tests (31 of them in `server::tests::startup::` itself, all
|
||||
`ok`), matching the task's expected 1 664/0/36 exactly.
|
||||
|
||||
**Sabotage 1 (the fix under review).** Reverted `rest_of_scope`'s gate to
|
||||
the second pass's own bug — `if seen.contains(&found.path) ||
|
||||
aliased.speaks_for(&found.path, &mut stats)`, dropping the `another_spelling
|
||||
&&` guard — rebuilt, reran: `a_file_opened_mid_scan_lengthens_the_
|
||||
neighbourhood_it_jumps_into` **fails** (`left: true, right: false` at
|
||||
segment index 4) and a new fixture of mine (below) fails the same way
|
||||
(`uart_pkg` unit count `0` instead of `1`). Restored; diffed byte-identical
|
||||
against the shipped patch afterwards.
|
||||
|
||||
**Sabotage 2 (the gate itself, reconfirming the second pass's own
|
||||
sabotage).** Removed the whole `aliased.speaks_for(...)` disjunct from
|
||||
`rest_of_scope`, leaving only `seen.contains`, rebuilt, reran the shipped
|
||||
`a_same_named_file_symlink_outside_the_head_is_not_a_second_copy_of_the_
|
||||
buffer`: **fails** exactly as before — startup indexes three files
|
||||
(`alias_dir/tb.sv` sneaks back in), rescan indexes two, `"the startup scan
|
||||
and a whole rescan must agree"` fails. Restored; byte-identical.
|
||||
|
||||
**Two new attacks, both added to `state/mod.rs`'s test module in the clone
|
||||
(QA-only, not shipped — a `Tree::link` helper had to be added there too,
|
||||
also QA-only):**
|
||||
- `a_buffer_opened_mid_scan_with_its_own_alias_elsewhere_is_indexed_once_
|
||||
not_dropped`: `neighbourhood_tree` plus `other/uart.sv -> ../ip/uart/rtl/
|
||||
uart.sv` (same basename as the buffer's own file, reachable only by the
|
||||
remaining walk once `uart.sv` becomes a buffer). After the scan:
|
||||
`units("uart_pkg").len() == 1`, exactly one `uart.sv` in the index (the
|
||||
buffer's own spelling `ip/uart/rtl/uart.sv`), and `other/uart.sv` is the
|
||||
one dropped. This is the case Sabotage 1 breaks (see above) — the own
|
||||
path and the genuine alias are told apart correctly by the fix.
|
||||
- `a_buffer_opened_mid_scan_whose_path_was_already_seen_is_unchanged`: opens
|
||||
a second buffer at `ip/aes/rtl/aes.sv`, already inside the head's own
|
||||
neighbourhood and therefore already in `pending.seen` by the time it
|
||||
becomes a buffer. `seen.contains` short-circuits before `Aliased` is ever
|
||||
consulted; `units("aes_pkg")` and `units("tb_pkg")` both stay at 1, one
|
||||
`aes.sv` in the index — unaffected by this round's gate, as expected.
|
||||
|
||||
Both pass against the shipped fix; both were run under Sabotage 1 too (the
|
||||
first fails as noted above; the second is unaffected by Sabotage 1, since
|
||||
`seen.contains` alone already protects it — consistent with the mechanism).
|
||||
|
||||
**The matrix (a)-(k), fresh clone, same method as the prior two passes.**
|
||||
All of (a)-(i) reconfirmed via the shipped suite (`an_alias_sorting_before/
|
||||
after_its_target`, `several_aliases_of_one_directory`, `an_alias_of_an_
|
||||
ancestor`, `an_ancestor_cycle` — covers (b) — `an_ignored_alias`, `an_open_
|
||||
unsaved_buffer`, `a_genuine_duplicate_declaration`, `an_alias_beside_the_
|
||||
open_folder` — covers (i) — and `a_same_named_file_symlink_outside_the_
|
||||
head` — (f), attacked above). Six more QA-only fixtures appended to a
|
||||
scratch copy of `server/tests/startup.rs` to cover what nothing shipped
|
||||
names directly:
|
||||
- (a) `qa_an_alias_to_a_directory_outside_the_workspace_root_is_followed_
|
||||
and_pinned` — followed, one target, renamable; pinned, not asserted
|
||||
correct.
|
||||
- (e) `qa_a_broken_symlink_beside_the_open_folder_does_not_crash_and_
|
||||
contributes_nothing` — no panic, contributes no file.
|
||||
- (g) `qa_a_file_level_symlink_under_a_different_name_stays_two_files` — a
|
||||
different name is out of the gate's scope by design; stays two paths.
|
||||
- (h) `qa_genuine_duplicates_behind_an_alias_of_a_different_directory_stay_
|
||||
ambiguous` — `link_a -> a` beside a genuinely different `b`; still
|
||||
refused ambiguous.
|
||||
- (j) `qa_a_same_named_file_symlink_inside_the_head_folder_is_the_heads_
|
||||
own_gate` — exercises `overlay_buffers`'s gate; one `tb.sv`, renamable.
|
||||
- (k) `qa_a_same_named_but_genuinely_different_file_outside_the_head_is_
|
||||
kept` — a different inode under the same basename; kept as two files, one
|
||||
`child` target — confirms identity, not just name, is what the gate
|
||||
relies on.
|
||||
|
||||
All eleven matrix letters pass. `cargo test -p lucisv_server --bin
|
||||
lucisv-server --locked -- qa_` (my prefix, which also matched 62 pre-existing
|
||||
`qa_`-named tests elsewhere in the tree): **68 passed, 0 failed, 11
|
||||
ignored** — nothing else disturbed.
|
||||
|
||||
**opentitan, real tree, counts only (no timing taken per the task's
|
||||
instruction).** Built the candidate release binary in the clone. `scanprofile
|
||||
--tries 1`: `workspace warm, "1 open buffer"` cell — `stats=58, walk_dirs=3,
|
||||
buffers=2, conflict=0, rescan_requested=0`; `workspace, cold`/`warm` (0
|
||||
extra buffers) — `stats=58, walk_dirs=2`; `10`/`100`-buffer cells — `stats=58`
|
||||
again; `default scope` and `depth0` cells — `stats=0`. Matches the second
|
||||
pass's disclosed number exactly (58, not 0, because the gate now runs
|
||||
tree-wide over same-named files across opentitan's pervasive `tb.sv`
|
||||
naming) — not re-litigated as a regression, per the task's framing.
|
||||
|
||||
**The mid-scan `didOpen` on the real tree.** A standalone script (`lspclient.
|
||||
Session`, `workspace: {scope: "workspace", scopeDepth: 0}`, cold store) opened
|
||||
`hw/ip/aes/dv/tb/tb.sv`, then — 50 ms later — `hw/ip/uart/rtl/uart.sv`,
|
||||
waited for quiet, and asked `textDocument/documentSymbol` on `uart.sv`:
|
||||
`['uart']` — the module resolves. The server's own `--verbose` log shows
|
||||
exactly one `indexing: .../hw/ip/uart/rtl/uart.sv` line, not two. Re-run
|
||||
against a build with Sabotage 1 applied: **identical result, no
|
||||
difference observed** — the 50 ms window did not land inside the vulnerable
|
||||
call (`open_next`'s `discover_the_rest` is one synchronous walk-and-filter
|
||||
call per `didOpen`, fast enough on this tree that wall-clock racing is not a
|
||||
reliable way to hit it; the deterministic `state/mod.rs` unit tests above,
|
||||
which control `scan_step` by hand rather than by clock, are the ones that
|
||||
actually exercise and break under Sabotage 1). Reporting this honestly
|
||||
rather than claiming the wire-level script proves what only the unit-level
|
||||
sabotage actually proved — the opentitan requirement asked for was "the
|
||||
module resolves after settle," which it does; it was not a reliable
|
||||
vehicle for the sabotage itself.
|
||||
|
||||
**opentitan status.** `git -C .../opentitan status --porcelain` checked
|
||||
before and after every phase (`scanprofile`, both mid-scan script runs):
|
||||
always exactly the three known pre-existing modified files
|
||||
(`hw/ip/aes/dv/tb/tb.sv`, both `ast.sv`s), never anything else.
|
||||
|
||||
**Guard.** Every cargo/build/test/perf/script invocation — main-tree reads
|
||||
aside, no main-tree writes — ran through `tools/guard.sh -m 8 -t …`; zero
|
||||
kills. No lingering background processes or poll loops at session end
|
||||
(`ps aux` shows only the user's own pre-existing 0.51.0 VS Code
|
||||
`lucisv-server --stdio`, not anything this session started). All
|
||||
experiments — both sabotages (each restored and diffed byte-identical
|
||||
against the shipped patch immediately after), the new `state/mod.rs`
|
||||
fixtures (with a QA-only `Tree::link` added there), the six new `startup.rs`
|
||||
matrix fixtures, the release build, `scanprofile`, and the mid-scan `didOpen`
|
||||
script — ran in `/private/tmp/…/scratchpad/qa-62c/repo`, never the main
|
||||
tree, which was never modified (`git diff --stat` on the three touched files
|
||||
matches the session-start snapshot exactly, confirmed before finishing).
|
||||
|
||||
**TODO §62.1's QA line is now checked.** Nothing further recommended for
|
||||
this fix; N1-N3 and closing remain as filed in TODO.md.
|
||||
|
||||
## Review
|
||||
|
||||
**2026-09-08 (lead).** Accepted. Read `state/discover.rs`, the two walk
|
||||
@@ -831,3 +1574,44 @@ Docs applied at merge: topo (`lucisv_server ──▶ lucisv_core` walk
|
||||
entries; the `state::discover` module; the two-phase startup and
|
||||
`OPENING_FILE_WAIT`); folders-and-config's Assumptions amended; the
|
||||
local-record load and the double subtree walk to the loop-3 list.
|
||||
|
||||
**2026-09-09 (lead, F1 — the 0.52.0 review's finding).** Accepted after
|
||||
two passes and a lead fix.
|
||||
|
||||
- The finding was real and the reviewer's fixture reproduces it on
|
||||
0.52.0 exactly as written: two spellings of one directory, two
|
||||
definition targets, a valid rename refused until a rescan. The cause
|
||||
was the two walks of the split discovery keeping separate visited
|
||||
sets — the `(dev, ino)` identity contract held inside each walk and
|
||||
not between them.
|
||||
- The other agent's implementation had the right shape (one tracker
|
||||
shared across both walks; a pre-check that falls back to the single
|
||||
canonical walk when an alias sorts before the open folder; the
|
||||
`HEAD_WALK_MAX` fallback no longer unioning the head) and two
|
||||
shortfalls the finishing lane closed: it stat'd every discovered file
|
||||
once per open buffer (the second stat §61.3 had removed, times the
|
||||
buffer count), now gated on the file name so `stats` is 0 again on
|
||||
opentitan; and a conflict the remaining walk detects was recorded and
|
||||
ignored, now turned into exactly one ordinary rescan so startup and
|
||||
rescan converge on the canonical spelling in the case no pre-check can
|
||||
see. Nine fixtures assert index paths, definitions, prepareRename and
|
||||
diagnostics agree across startup, rescan and restart, the genuine
|
||||
duplicate still refused word for word.
|
||||
- QA's second pass found the gate applied to the head walk and not to
|
||||
the remaining walk: a same-named file symlink outside the open folder
|
||||
still doubled the buffer. Fixed by the lead — both walks ask the same
|
||||
`Aliased` question — with QA's fixture shipped. QA's third pass then
|
||||
caught the lead's own regression: the gate in the remaining walk
|
||||
matched a buffer opened mid-scan against its own file and dropped it,
|
||||
so that module vanished from the index (a pre-existing test said so).
|
||||
Fixed the same day: the gate is asked only about a path that is not a
|
||||
buffer's own — the own spelling always lands, only other spellings are
|
||||
dropped. Two QA findings on one gate is the record of what a lead fix
|
||||
without its own QA costs; both are pinned now.
|
||||
- The harness half (F2/F3) is the other agent's with two more bugs the
|
||||
finishing lane found (a quiet-control row that could not record; a
|
||||
scan duration used as an offset); a brand-new store now primes
|
||||
untimed and the completion stamp is the scan's own end event.
|
||||
- Out of scope, written down: a file-level symlink under a *different*
|
||||
name is two files; a buffer opened mid-scan is not put through the
|
||||
alias test (unchanged since 0.51.0).
|
||||
@@ -834,6 +834,106 @@ wrong) and one documentation inaccuracy (`includes.rs`'s cited line count).
|
||||
|
||||
TODO §61.4's QA line ticked below.
|
||||
|
||||
### 2026-09-09 — independent 0.52.0 review: load-probe corrections needed
|
||||
|
||||
The publication improvement was independently reproduced against 0.51.0:
|
||||
with two open buffers and 35 requests every 100 ms per process, three properly
|
||||
warmed processes per version, median server scan duration fell 4,247 → 1,771 ms,
|
||||
publishes 34 → 4, all 105 requests answered and all equal to the settled
|
||||
target. The full-window request median fell 1,947 → 2.03 ms; this includes
|
||||
post-scan responses. Cross-folder probes returned the settled target in all
|
||||
750 candidate responses, versus 399 premature empty answers in the reference.
|
||||
|
||||
**Two harness findings, F2/F3 (P2), open:** `load_cell` labels a fresh store
|
||||
warm without priming it (a separate proof measured 3,974 misses and 1,684 ms
|
||||
parsing on the first nominally warm run, versus 3,974 hits and zero misses on
|
||||
the second). Also, `settled_at` mistakes `wait_quiet`'s positive entry-time
|
||||
delta for new scan activity. Candidate `settled_ms` follows the 3.4-second
|
||||
request window even though the scan ends at about 1.77 seconds, and all 105
|
||||
responses are mislabeled mid-scan. The review therefore uses a warmed rerun
|
||||
and `publication.scan_total`, not the erroneous completion/partition fields.
|
||||
|
||||
No implementation was changed. [Full review and repair gates](../../performance_052_review.md),
|
||||
[raw evidence](../../perf/review-052-20260909/README.md). These findings do not
|
||||
assert that all previous warm runs were unprimed or invalidate the measured
|
||||
publication-count reduction.
|
||||
|
||||
**2026-09-09, later — F2 and F3 are fixed** (dev, in the F1 lane; the harness
|
||||
half of the same round). `phases_r4.prime` runs one untimed session before a
|
||||
warm cell's first timed trial and `cell_status` refuses a warm cell whose trial
|
||||
found nothing in the store: with a brand-new `--storage`, both timed trials now
|
||||
report 3 975 hits and 0 misses. `Session.scan_completed_at` is stamped in the
|
||||
reader thread on the indexing bar's own `$/progress` `end`, so `settled_ms`
|
||||
reads 1 774 ms for a scan the server's own trace calls 1 768 ms — not the
|
||||
3 406 ms of the request window — and the responses partition 32 mid-scan /
|
||||
38 after-settle instead of every one of them mid-scan. Widening the window
|
||||
3 500 → 5 000 ms leaves completion at 1 781/1 791 ms and grows only the
|
||||
after-settle count (38 → 64), which is the review's own check. Details and
|
||||
numbers: `docs/perf/take5-tracking.md`, the F2/F3 rows.
|
||||
|
||||
### 2026-09-09 — QA (Sonnet), TODO §62.2: PASS
|
||||
|
||||
**Verdict: PASS.** Read the diff (`tools/perf/lspclient.py`,
|
||||
`tools/perf/phases_r4.py`) and reran both harness fixes against the
|
||||
candidate server on opentitan, guarded, from the main tree.
|
||||
|
||||
**F2, a brand-new `--storage`, 2 independent tries (fresh directories
|
||||
both times), `scanloadprobe` (the fast one-warm-cell loop):**
|
||||
|
||||
| Try | cache_hits | cache_misses | status |
|
||||
|---|---|---|---|
|
||||
| 1 | [3975, 3975] | [0, 0] | ok |
|
||||
| 2 | [3974, 3974] | [0, 0] | ok |
|
||||
|
||||
Both timed trials hit on both tries — `phases_r4.prime`'s untimed session
|
||||
does fill the store before the first timed measurement, and `cell_status`
|
||||
found nothing to refuse. (I did not additionally force a warm cell to
|
||||
report a real miss to see the "error" path fire — the diff's own
|
||||
`cell_status` branch is a direct, three-line read: `if cache == "warm" and
|
||||
any(hits == 0 ...)`, unambiguous by inspection.)
|
||||
|
||||
**F3, the same runs' scan-completion accounting:**
|
||||
|
||||
| Try | scan_completed_ms | server trace `scan_total` | scan_ends | mid_scan / after_settle |
|
||||
|---|---|---|---|---|
|
||||
| 1 | 1494.31 / 1494.86 | 1485.73 / 1486.24 | 1 / 1 | 30 / 40 |
|
||||
| 2 | 1753.85 / 1745.77 | 1744.80 / 1736.47 | 1 / 1 | (not recorded) |
|
||||
|
||||
`scan_completed_ms` sits within 9 ms of the server's own reported
|
||||
`scan_total` in both tries (well inside the ±20 ms the task asked to
|
||||
check), exactly one `end` per session, and responses split sanely between
|
||||
mid-scan and after-settle rather than all landing in one bucket.
|
||||
|
||||
**The widened window.** Copied `tools/perf/phases_r4.py` into my scratchpad
|
||||
and changed `WINDOW_MS["warm"]` 3500 → 5000 only there (never in the main
|
||||
tree), reran `scanloadprobe` against the candidate with a third fresh
|
||||
`--storage`: `scan_completed_ms` ≈ 1745–1751 ms — unmoved in kind from the
|
||||
3500 ms-window runs above (same corpus, same cursor, unrelated to how long
|
||||
the offered-load window ran) — while `after_settle_answers` grew 40 → 64,
|
||||
`mid_scan_answers` stayed in the same 30s band (36). Matches the review's
|
||||
own acceptance: completion stable, after-settle count grows with the
|
||||
window.
|
||||
|
||||
**The quiet-control row.** `load_cell`'s `record(**dict(got, ms=...))`
|
||||
call for `rate=0` was exercised as a side effect of every `scanloadprobe`
|
||||
run above's cell status line (`quiet control` is not itself a separate
|
||||
call in `scanloadprobe`, so I additionally re-read the `record(...)` call
|
||||
site at `tools/perf/phases_r4.py` — the merge is `dict(got, ms=...)` then
|
||||
splatted, and `got` (from `summary()`) carries no key that collides with
|
||||
the explicit `phase=`/`row=`/`fresh_process=`/`result_count=`/`rate_ms=`/
|
||||
`open_buffers=`/`note=` keywords also passed, so the `record(**got)`
|
||||
duplicate-keyword bug the tracker names as historical cannot recur here);
|
||||
no exception in any of the runs above, which all reach that call.
|
||||
|
||||
**Gates.** Covered under the §62.1 entry above (same guarded `cargo fmt`/
|
||||
`clippy`/`test --workspace` run; this feature's own files —
|
||||
`tools/perf/*.py` — are not compiled). **opentitan** unchanged
|
||||
throughout (checked alongside the §62.1 runs). **Guard**: every bench
|
||||
invocation ran through `tools/guard.sh -m 8 -t 1800 --`; no kills; no
|
||||
lingering processes.
|
||||
|
||||
**TODO §62.2's QA line is ticked.**
|
||||
|
||||
## Review
|
||||
|
||||
**2026-09-08 (lead).** Accepted, with one fix made by the lead and one
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -22,13 +22,35 @@ predicate, and three handlers.
|
||||
|
||||
- **The workspace index is the authority on what can be named from another
|
||||
file.** `nav::leaves_this_file` decides whether a references request walks
|
||||
the workspace by asking `WorkspaceIndex::units` / `::member` about the name
|
||||
under the cursor — not by re-deriving `is_unit`/`is_exported`, which are
|
||||
private to `vlog_semantic` and would be language knowledge in the protocol
|
||||
layer. Consequence: a declaration the index has not seen yet (a buffer
|
||||
edited but not saved, when the file is new) is answered in-file until the
|
||||
next rebuild. That is the same staleness window every other cross-file
|
||||
answer already has, documented in `docs/features/lucisv-server/README.md`.
|
||||
the workspace by asking `WorkspaceIndex::units` / `::member_in(…,
|
||||
Surface::Hierarchical)` about the name under the cursor — not by re-deriving
|
||||
`is_unit`/`is_exported`, which are private to `vlog_semantic` and would be
|
||||
language knowledge in the protocol layer. **The surface matters** (amended
|
||||
2026-09-12, §64.1): the question is which declarations a *use* in another
|
||||
file can reach, and a hierarchical path may name anything a module declares
|
||||
(IEEE 1800 §23.6) where a connection list may name only its ports and
|
||||
parameters (§23.3). Asking `::member` — the connection surface — was what
|
||||
made `assign w = u_x.sig;` in another file invisible to `references` while
|
||||
a rename was already editing it. The connection answer is the first, whole
|
||||
part of the hierarchical one, so nothing else moved; see
|
||||
`docs/features/references-hierarchical-surface/README.md`. Consequence: a
|
||||
declaration the index has not seen yet (a buffer edited but not saved, when
|
||||
the file is new) is answered in-file until the next rebuild. That is the
|
||||
same staleness window every other cross-file answer already has, documented
|
||||
in `docs/features/lucisv-server/README.md`.
|
||||
- **A stale index can omit a location; it can never point at a wrong one**
|
||||
(added 2026-09-12, §64.1 rework, QA findings 1–3). Until then this feature's
|
||||
staleness story stopped at the sentence above, which undersold it: a span
|
||||
recorded at index time and rendered against a **closed** file's current
|
||||
bytes — a `references_to` posting, or the `include_declaration` fallback —
|
||||
had no agreement check, so an external edit to that file (another tool,
|
||||
`git checkout`, a build step: none of the five events that drop a cached
|
||||
view) could put a true-looking `Location` on a line that no longer holds the
|
||||
name. `nav::closed_locations` now applies `hover::spells_exactly` to every
|
||||
closed-file span before emitting it and drops the ones that no longer spell
|
||||
the target's name — the same guarantee `hover-declarations` gives a snippet.
|
||||
Open buffers are not guarded and pay nothing: their spans come from the very
|
||||
text they are rendered against.
|
||||
- **A references answer is an indexed lookup.** Each `FileFacts` record stores
|
||||
compact facts for references to externally reachable declarations. The
|
||||
finished `WorkspaceIndex` resolves those facts once into declaration-to-use
|
||||
@@ -230,6 +252,33 @@ decision.
|
||||
|
||||
## Work log
|
||||
|
||||
### 2026-09-12 — dev (TODO §64.1: the gate asks the hierarchical surface)
|
||||
|
||||
`leaves_this_file` and `indexed_def_in_file` — this feature's two index
|
||||
questions — asked `WorkspaceIndex::member`, the **connection** surface. Since
|
||||
`hierarchical-tail` (0.45.0) a module's net, variable and instance live on the
|
||||
**hierarchical** surface only, so both functions judged such a declaration
|
||||
unable to leave its file: `references` from the declaration fell to the
|
||||
single-file answer and never saw a cross-file `u_x.sig` tail or a `bind`
|
||||
connection expression, and a request that *did* go cross-file could not
|
||||
re-identify the declaring buffer's own in-file uses. Both now ask
|
||||
`member_in(owner, name, Surface::Hierarchical)`. Every connection-surface
|
||||
answer is byte-identical (the connection records come first and whole from
|
||||
that read); the `nav` harness rows are unchanged in count and within noise in
|
||||
time. The closed-declaring-file half of the completeness problem, the new
|
||||
`nav::declaring_file_uses`, the fixture sweep and the attack cases are all
|
||||
written up in `docs/features/references-hierarchical-surface/README.md`, which
|
||||
is this change's feature README. `documentHighlight`'s "a document answer even
|
||||
for a cross-file name" assumption was untouched and is now pinned from both
|
||||
ends (`definition_and_document_highlight_over_a_hierarchical_tail_are_unchanged`).
|
||||
|
||||
**Rework the same day**, on QA's findings 1–3: the closed-file path reads each
|
||||
closed file exactly once per request, with `text_of` rather than the
|
||||
`file_view` cache, and every index-time span about a closed file is guarded by
|
||||
`hover::spells_exactly` before it is rendered. That is the new Assumptions
|
||||
bullet above; the derivation and the flipped QA tests are in
|
||||
`docs/features/references-hierarchical-surface/README.md`.
|
||||
|
||||
### 2026-08-28 — documentHighlight answered nothing on a cross-file name
|
||||
|
||||
**The report.** `performance.md` §7: `documentHighlight` returned 0 results at
|
||||
|
||||
@@ -0,0 +1,596 @@
|
||||
# rename-bind-occurrences — a `bind` file's own occurrence of a renamed name
|
||||
|
||||
TODO §63.1, from §61.5's QA finding `task_834abda3`
|
||||
(`docs/features/perf5r-scope-reuse/README.md`, QA log item 6). Reference tree
|
||||
`2675131`, branch `master`.
|
||||
|
||||
## Goal
|
||||
|
||||
Renaming `entropy_masking_req` — a net declared in opentitan's
|
||||
`hw/ip/aes/rtl/aes.sv` — edited `aes.sv` and left
|
||||
`hw/ip/aes/dv/sva/aes_bind.sv`'s `.entropy_masking_req(entropy_masking_req)`
|
||||
alone, **without a word**. Renaming `seed_en` (declared in
|
||||
`aes_prng_clearing.sv`) left the same file's two-level tail
|
||||
`u_aes_core.u_aes_prng_clearing.seed_en` alone, also without a word — while
|
||||
§49's hierarchical tail from an ordinary instantiating file
|
||||
(`u_entropy_src_main_sm.state_q` in `entropy_src_core.sv`) was edited. The
|
||||
whole-scope engine is the refusal authority, so a silent miss is a wrong
|
||||
answer: after such a rename the design no longer elaborates.
|
||||
|
||||
The contract this lane reaches: an occurrence in a `bind` directive's
|
||||
connection is **edited** when the engine resolves it to the renamed
|
||||
declaration — a bare name in the bind target's scope, or a hierarchical path
|
||||
rooted at that target — through the same rungs an instantiating file's
|
||||
occurrences use; **warned about**, with file and line, when the engine cannot
|
||||
resolve it; **never silent**.
|
||||
|
||||
## What dropped the bind file
|
||||
|
||||
Selection was not the culprit and the rungs were not short. Two **engine**
|
||||
steps were, and both are in `vlog_semantic`:
|
||||
|
||||
1. **`resolve::in_bind_target` asked the wrong member surface.** A bare name
|
||||
in a `bind`'s connection expression already carried
|
||||
`Target::BindScope { target }` (bind-semantics, 2026-09-02). When the
|
||||
target module is declared in another file — which is every real bind — the
|
||||
resolver handed the workspace
|
||||
`ExternalCandidate { paths: ["aes"], surface: Surface::Connection }`. A
|
||||
module's **connection** surface is its ports, parameters, properties and
|
||||
sequences (`workspace/hierarchy.rs::surface_of`); its nets, variables and
|
||||
instances live on the **hierarchical** surface. So
|
||||
`member_chain(index, "aes", "entropy_masking_req", Connection)` answered
|
||||
nothing, the overlay recorded `StillUnresolved`, and
|
||||
`Scope::collect_occurrences` — which edits exactly the references the
|
||||
overlay resolved to the target declaration — skipped it.
|
||||
|
||||
The same single-segment path is why it was *silent* as well as unedited.
|
||||
`warnings::unresolved_unit` names the unit a candidate was searched in by
|
||||
splitting the recorded path at its `::`; a path of `"aes"` has none, so the
|
||||
`unresolved_candidate_warnings` scan had no unit to report and said
|
||||
nothing. (The `unaccounted` scan could not cover it either: that one runs
|
||||
only over files the rename actually edited.)
|
||||
|
||||
2. **A hierarchical tail in a `bind` was resolved from the scope the
|
||||
directive is *written* in.** `u_aes_core.u_aes_prng_clearing.seed_en`
|
||||
reaches the resolver as `Target::MemberOf { head: "u_aes_core", mids:
|
||||
["u_aes_prng_clearing"] }`, and `resolve::head_site` looks the head up on
|
||||
the writing scope's lexical chain. A bind module declares nothing, so the
|
||||
head resolved to nothing, `member_site` returned `None` — *no reference at
|
||||
all*, not even an unresolved one — and every later link was dropped with
|
||||
it. Nothing to edit, and nothing for any warning scan to see.
|
||||
|
||||
The probe that settled it (run at `2675131`, the five-file fixture of
|
||||
`crates/vlog_refactor/tests/rename_bind.rs`, printing every reference of the
|
||||
bind file with its resolution and its overlay answer):
|
||||
|
||||
```
|
||||
2: "entropy_masking_req" ExternalCandidate { paths: ["aes_reseed_if"], Connection } -> Resolved(Port) <- the `.port` half
|
||||
3: "entropy_masking_req" ExternalCandidate { paths: ["aes"], Connection } -> StillUnresolved <- the expression half
|
||||
5: "u_aes_core" ExternalCandidate { paths: ["aes"], Connection } -> StillUnresolved <- the tail's head
|
||||
<- and no reference at all
|
||||
for `u_aes_prng_clearing`
|
||||
or for `seed_en`
|
||||
```
|
||||
|
||||
**The selection rungs were checked and are sound.** `aes_bind.sv` is wanted by
|
||||
`Workspace::rename_sources_traced`'s `Rung::Reference`: `fan_out_of` puts the
|
||||
declaration's container (`aes`, from `index.hierarchical_declarations`) into
|
||||
`containers`, then asks `want_declaration` for every `units("aes")`, whose
|
||||
`references_to` postings include the `bind aes …` head — a
|
||||
`Target::Module` reference the binder has always recorded. So no rung was
|
||||
added, `module_select::hierarchical_users` is untouched, and
|
||||
`WorkspaceIndex::files_mentioning` was not needed. This is confirmed
|
||||
end-to-end by the three opentitan renames under all three reuse modes (Work
|
||||
log, 2026-09-11).
|
||||
|
||||
## Assumptions
|
||||
|
||||
- **IEEE 1800-2017 §23.11 / §23.6.** A `bind`'s connection expressions
|
||||
elaborate in the *target* scope, and a hierarchical path may name anything
|
||||
the scope it walks into declares — not only what a connection list could
|
||||
name. The whole fix is that second half: a bind connection is a
|
||||
hierarchical reach, so it is asked of the hierarchical surface.
|
||||
- **The target's own scope answers before the writing scope**, and only a
|
||||
miss the target settles falls back. That ordering is bind-semantics'
|
||||
(2026-09-02) and is unchanged here; this lane changes *which* surface the
|
||||
target is asked about and *how* a path is spelled, never the order.
|
||||
- **A hierarchical target path is a place the index can often reach.**
|
||||
`bind tb.u_aes chk u (…)` is `tb::u_aes` — one `member_unit_in` hop over
|
||||
`tb`'s instance `u_aes`, which is exactly what `external::fold_path`
|
||||
already does for `pkt_t::hdr::addr`. Where the index cannot take a hop (a
|
||||
generate index, `gen[0]`, has no record at all) the path answers nothing
|
||||
and the miss is reported rather than guessed at.
|
||||
- The `.port` half of a `bind` connection still names the **bound** module's
|
||||
port and is untouched. Every fixture here renames a name that is spelled on
|
||||
both halves, so a fix that edited both would fail loudly.
|
||||
- A bind file is an ordinary edited file to `check/after.rs`: it is absorbed
|
||||
into the after-index and its after-print is compared like any other. No
|
||||
change was needed there and none was made.
|
||||
|
||||
## Handshakes
|
||||
|
||||
**`vlog_refactor ──▶ vlog_semantic` (amended, additive in the AST, wider in
|
||||
the answer).** The rename engine reads the same `Resolution`/
|
||||
`ExternalResolutions` it always did; what changed is what the resolver
|
||||
produces for a `bind` connection:
|
||||
|
||||
| | before | after |
|
||||
|---|---|---|
|
||||
| bare name, target elsewhere | `ExternalCandidate { paths: ["aes"], Connection }` | `ExternalCandidate { paths: ["aes::name"], Hierarchical }` |
|
||||
| bare name, target in this file | `Resolved` / `None` | unchanged |
|
||||
| hierarchical tail in a bind | *no reference recorded* | `Target::BindMember` → `Resolved`, or `ExternalCandidate { paths: ["aes::u_core::…::name"], Hierarchical }` |
|
||||
| multi-segment bind target | connections resolved in the **writing** scope | resolved in the target scope, spelled `tb::u_aes` |
|
||||
|
||||
The path spelling is the `unit::name` one `external::follow_one` already
|
||||
reads, so no workspace-layer code changed: `follow_one` folds the hops and
|
||||
`member_chain` does the lookup, exactly as for a `u_x.sig` tail.
|
||||
|
||||
**`lucisv_server ──▶ vlog_refactor` — unchanged.** `rename_traced_with`,
|
||||
`rename_preflight` and the source selectors keep their signatures and their
|
||||
answers. Refusal parity with `rename_preflight` stays one-directional and in
|
||||
the safe direction: a cursor on a bind file's hierarchical tail used to have
|
||||
no reference at all, so the preflight refused it with `NOTHING_HERE`; it now
|
||||
carries an external candidate, which the preflight *defers* (`Ok(())`). The
|
||||
preflight refuses strictly less than before and never more.
|
||||
|
||||
**Topology rows the lead must edit** (`docs/topo.md` is not this lane's
|
||||
file):
|
||||
|
||||
1. `§2.9-15` / the `bind-semantics ◀──▶ workspace-index / index-persistence`
|
||||
handshake row: **`FACTS_FORMAT` 19 → 20** (2026-09-11). No new field — the
|
||||
same fields carry a different answer: a bind connection's recorded path is
|
||||
now `target::name` on the hierarchical surface, so a 0.53.0 store would
|
||||
answer definition, find-references and this rename as though the bind file
|
||||
did not mention the name. The store rebuilds once. The bump's own
|
||||
paragraph is in `crates/vlog_semantic/src/facts.rs`.
|
||||
2. The `vlog_refactor ──▶ vlog_semantic` row: a bind's connection expression
|
||||
is a reference on the target's **hierarchical** surface, and a bind's
|
||||
hierarchical path is rooted at the target (`Target::BindMember`), so
|
||||
`references`, `definition`, `hover` and `rename` all answer over bind
|
||||
files where they answered nothing before.
|
||||
3. `§2.9-33`'s closing note stands unamended: the rung it closed
|
||||
(`module_sources_reaching`) is not what this lane needed, and
|
||||
`module_select.rs` is untouched.
|
||||
|
||||
**Files edited outside this lane's stated list, flagged rather than silent**
|
||||
(§63.1 named `vlog_semantic/src/{resolve.rs,workspace/}` "only if a resolver
|
||||
rung is genuinely missing"; these three are in `vlog_semantic/src` but not in
|
||||
that list):
|
||||
|
||||
- `crates/vlog_semantic/src/bind/mod.rs` — the new `Target::BindMember`
|
||||
variant and one more arm in the single funnel (`use_member`) that already
|
||||
redirects a bind connection's bare names. The tail case cannot be fixed in
|
||||
`resolve.rs` alone: the resolver has no way to learn the bind target of a
|
||||
`Target::MemberOf`, because the pending use does not carry it.
|
||||
- `crates/vlog_semantic/src/bind/item.rs` — `bind_bind` now sets the bind
|
||||
target for a multi-segment target path too, through the new
|
||||
`bind_target_path` (the `::`-joined spelling the index reads). It still
|
||||
records **no reference** for such a path, as before.
|
||||
- `crates/vlog_semantic/src/facts.rs` — the `FACTS_FORMAT` bump above. Not
|
||||
bumping it would leave a stale store answering thinner, which is the exact
|
||||
failure every earlier bump exists to prevent.
|
||||
|
||||
## Status / TODO
|
||||
|
||||
- [x] the reproduction pinned first — `crates/vlog_refactor/tests/rename_bind.rs`,
|
||||
seven fixtures (bare-name connection, positional connection, two-level
|
||||
tail, `: u_x` instance-list target, hierarchical target path, `bind`
|
||||
inside `if (…) begin : gen … end`, and a bind whose target module is not
|
||||
in the workspace). All seven asserted today's silent miss at `2675131`
|
||||
before a line of the fix was written, and all seven flipped with it.
|
||||
- [x] the fix: `Target::BindMember` + the hierarchical surface + the
|
||||
`target::name` path spelling; unresolvable occurrences reported through
|
||||
the sentence `unresolved_candidate_warnings` already uses; the step
|
||||
that dropped `aes_bind.sv` named above.
|
||||
- [x] parity: `renamewarn` and the paired phases (`renametrace`,
|
||||
`tailrename`, `rename`, `refactor`) against the `2675131` baseline —
|
||||
28 (phase, row) keys, every difference a `bind` file's new edit or
|
||||
warning and listed above; the eight rename shapes within noise, the
|
||||
tail rename 326.2 ms median (gate ≤ 330).
|
||||
- [x] the three QA renames over the real opentitan tree, all three reuse
|
||||
modes: identical answers, `aes_bind.sv` edited in both bind cases.
|
||||
- [x] a fixture row for the shape: `tools/perf/phases_p2.py`'s `RENAMES`
|
||||
gains `bind: entropy_masking_req -> masking_req_x` (and
|
||||
`phases_r3b.py`'s `WARNED` gains `bind`), so the harness measures this
|
||||
lane's shape from now on.
|
||||
- [x] QA
|
||||
|
||||
## Work log
|
||||
|
||||
**2026-09-11 (dev), the reproduction.** Seven fixtures in
|
||||
`crates/vlog_refactor/tests/rename_bind.rs`, over a five-file in-memory
|
||||
workspace shaped like the real one (`aes` declaring the net and instantiating
|
||||
`aes_core`, which instantiates `aes_prng_clearing`; `aes_reseed_if` as the
|
||||
bound checker, with ports deliberately spelled like the renamed names so a fix
|
||||
that edited the `.port` half would fail loudly; and the bind file). All seven
|
||||
failed at `2675131` exactly as §61.5's QA described — no edit, no warning. The
|
||||
probe quoted above was run from the same fixture and is what named the two
|
||||
engine steps.
|
||||
|
||||
**2026-09-11 (dev), the fix.**
|
||||
|
||||
- `crates/vlog_semantic/src/resolve.rs`
|
||||
- `in_bind_target` records `paths: ["{target}::{name}"]` on
|
||||
`Surface::Hierarchical` instead of `paths: ["{target}"]` on
|
||||
`Surface::Connection`. This is both halves of finding 1: the surface makes
|
||||
the lookup find a module's internal net, and the `::` gives the warning
|
||||
scan a unit to name when it does not.
|
||||
- new `bind_member`: the spine of a bind's hierarchical path, rooted at the
|
||||
target — the target's own scope when this file declares it, else the
|
||||
target as the unit the workspace answers hierarchical members of — with
|
||||
`head` as simply one more link.
|
||||
- `member_of`'s tail lookup and `member_site`'s per-link hop are lifted to
|
||||
`member_at` and `descend` so that `bind_member` walks *the same* code. A
|
||||
second spelling of either would eventually answer one name two ways. The
|
||||
`direct` flag carries the one thing the split would otherwise lose: only a
|
||||
plain `head.member` may report an `InheritedCandidate`.
|
||||
- `crates/vlog_semantic/src/bind/mod.rs` — `Target::BindMember { target,
|
||||
head, mids }`, produced by one more arm of the existing `use_member` funnel
|
||||
(the same place `Target::Lexical` already became `Target::BindScope`).
|
||||
- `crates/vlog_semantic/src/bind/item.rs` — `bind_target_path`, and
|
||||
`bind_bind` setting the bind target from it. A multi-segment target
|
||||
(`tb.u_aes`) used to leave `bind_target` unset, which silently resolved its
|
||||
connections in the writing scope; it is now `tb::u_aes`, a path the index
|
||||
either walks or reports.
|
||||
- `crates/vlog_semantic/src/facts.rs` — `FACTS_FORMAT` 19 → 20, with its
|
||||
paragraph.
|
||||
|
||||
Nothing in `crates/vlog_refactor/src` needed to change: the warning sentence
|
||||
the contract asks for is the one `unresolved_candidate_warnings` already
|
||||
emits, and it starts firing for bind files as soon as the recorded path has a
|
||||
unit in it.
|
||||
|
||||
Two more fixtures beside the seven: a new name the bind target already
|
||||
declares is refused, and a rename applied and then reversed restores the bind
|
||||
file **byte for byte** (the new resolution is stable under its own edit).
|
||||
`check/after.rs` is untouched and needed nothing: an edited bind file is
|
||||
absorbed into the after-index and re-printed like any other edited file.
|
||||
|
||||
**2026-09-11/12 (dev), the three QA renames on the real tree.**
|
||||
`the_three_qa_renames_agree_across_reuse_modes_and_edit_the_bind_file`
|
||||
(`#[ignore]`d, `crates/vlog_refactor/tests/rename_bind.rs`), over the real
|
||||
opentitan checkout — 3 975 `.sv`/`.svh` files, read and never written —
|
||||
through `rename_traced` / `rename_traced_with`, each rename asked three ways
|
||||
(no records, every record, every second record). **Identical edits and
|
||||
identical warnings in all three modes, all three renames**, and the two bind
|
||||
cases now edit `aes_bind.sv`:
|
||||
|
||||
| rename | files | edits | warnings | `aes_bind.sv` | parses (none / all / half) |
|
||||
|---|---|---|---|---|---|
|
||||
| `WidthPRDSBox` → `WidthPRDSBoxX` | 6 | 32 | 3 | — (correctly) | 3 980 / 13 / 1 997 |
|
||||
| `entropy_masking_req` → `masking_req_x` | 2 | 6 | 9 | **×2** | 3 976 / 10 / 1 993 |
|
||||
| `seed_en` → `seed_en_x` | 2 | 4 | 1 | **×1** | 3 976 / 38 / 2 005 |
|
||||
|
||||
The two `aes_bind.sv` edits for `entropy_masking_req` are the expression
|
||||
halves of the two `bind aes …` directives (the second inside
|
||||
`if (\`EN_MASKING) begin : gen_prng_bind`); the four `.entropy_masking_req(`
|
||||
**port** halves are correctly left alone, because they name
|
||||
`aes_reseed_if`/`aes_masking_reseed_if`'s ports. The one `seed_en` edit is the
|
||||
two-level tail `u_aes_core.u_aes_prng_clearing.seed_en`.
|
||||
`git -C ~/repo/opentitan status --porcelain` after every run: the three known
|
||||
files and nothing else.
|
||||
|
||||
**2026-09-12 (dev), the parity measurement.** Two release `lucisv-server`
|
||||
binaries — the baseline built from `2675131` in a scratch worktree (the
|
||||
0.53.0 preserved binary is the CLI, not a server), the candidate from this
|
||||
tree — over the real opentitan tree, through `tools/guard.sh -m 8 -t 1800`,
|
||||
order alternated. Phases `renametrace`, `tailrename`, `rename`, `refactor`
|
||||
(three tries each, four sessions per binary on `renametrace`) plus
|
||||
`renamewarn`. Raw evidence, both binaries, the run script and the comparison
|
||||
script are preserved in `~/.cache/lucisv-perf/63-1/` (its own README lists
|
||||
them and quotes the reproduction).
|
||||
|
||||
*Answers.* 28 (phase, row) keys compared field by field on `fingerprint`,
|
||||
`status`, `message`, `result_count`, `edits`, `files`, `created` and
|
||||
`titles`. **Every difference is a `bind` file's new edit or warning, and
|
||||
there is nothing else:**
|
||||
|
||||
| where | difference |
|
||||
|---|---|
|
||||
| `renametrace` `bind: entropy_masking_req` (the new fixture row) | `files` 1 → 2, `edits` 4 → 6, `titles` gains `aes_bind.sv`; `fingerprint` moves with them |
|
||||
| `renamewarn` `tail: state_q` | **+1 sentence**: `state_q` at `aes_bind.sv:58` could not be resolved — `aes::u_aes_core::u_aes_cipher_core::gen_masks::u_aes_prng_masking::u_prim_bivium::state_q`. The path goes through the generate block `gen_masks`, which the index has no record of, so the miss is *reported* where it used to be silent |
|
||||
| `renamewarn` `common port: clk_i` | **+2 sentences** — `top_darjeeling_bind.sv:22` and `top_earlgrey_bind.sv:25`, both `<top>_pd_aon::u_pwrmgr::clk_i`; and **one re-worded**: `hw/ip/rom_ctrl/dv/tb/tb.sv:83`, a `.clk_i (clk_i)` inside `bind dut.gen_fsm_scramble_enabled.u_checker_fsm.u_compare …`, said `uvm_pkg::clk_i` and now says the bind target's own path. Warned before, warned after; **no edit moved** |
|
||||
| everything else | identical, including `ordinary: aes`, `conflict`, `new name many uses spell`, `duplicate module`, `no symbol`, all fifteen `refactor` rows and both `rename` rows |
|
||||
|
||||
Warning-sentence totals: base 1 758, candidate 1 764 — and 1 758 − 8 (the new
|
||||
`bind:` row's own sentences) = **1 750**, the count §61.5 measured, so the
|
||||
pre-existing four renames' sentence set is the same set it was.
|
||||
|
||||
*Timings* (median of four sessions per binary, orders alternated):
|
||||
|
||||
| row | base | candidate | Δ |
|
||||
|---|---|---|---|
|
||||
| `tail: state_q -> state_q_x` | 321.9 | **326.2** | +1.3 % |
|
||||
| `tailrename` (the dedicated phase) | 322.9 | 322.6 | −0.1 % |
|
||||
| `common port: clk_i -> clk_ix` | 2 885.3 | 2 908.1 | +0.8 % |
|
||||
| `conflict: state_q -> state_d` | 269.5 | 271.6 | +0.8 % |
|
||||
| `duplicate module: rstmgr_por` | 724.2 | 740.6 | +2.3 % |
|
||||
| `new name many uses spell` | 2 281.6 | 2 297.6 | +0.7 % |
|
||||
| `ordinary: aes -> aes_renamed` | 91.6 | 91.6 | 0.0 % |
|
||||
| `unique internal: cipher_alert` | 18.2 | 17.9 | −1.9 % |
|
||||
| `no symbol: whole scope then refuse` | 0.19 | 0.23 | (+0.04 ms) |
|
||||
| `bind:` (new row) | 22.6 | 24.2 | +1.6 ms, inside both binaries' own spread |
|
||||
|
||||
The eight original shapes are within noise and **the tail rename's median is
|
||||
326.2 ms, under the 330 ms gate** (322.6 ms on the dedicated `tailrename`
|
||||
phase). The first round's two apparent outliers — `duplicate module` +28 %
|
||||
and `tail` +4.4 % — were each a single noisy session (`duplicate module`
|
||||
sampled 1 300/1 401 ms once and 719/748/733 in the other three); the second,
|
||||
order-alternated round is what the table above is taken from, and the noisy
|
||||
samples are left in the raw file rather than dropped.
|
||||
|
||||
**2026-09-12 (dev), the gates.** `cargo fmt --all -- --check` clean;
|
||||
`cargo clippy --all-targets --workspace` clean through the guard, with no new
|
||||
`#[allow]`; `cargo test --workspace` through the guard **4 395 passed, 0
|
||||
failed, 46 ignored**. The lane's only test additions are the ten in
|
||||
`crates/vlog_refactor/tests/rename_bind.rs` (nine plus one `#[ignore]`d) and
|
||||
none were removed or renamed, so the count before the lane was 4 386 / 45.
|
||||
`git -C ~/repo/opentitan status --porcelain` lists the three known files and
|
||||
nothing else, checked after every phase and at the end.
|
||||
|
||||
*The one behaviour this measurement was watching for.* Making a multi-segment
|
||||
bind target a real scope means a bare name in such a connection no longer
|
||||
falls back to the scope the directive is *written* in. The whole opentitan
|
||||
tree produces exactly one instance of that — `rom_ctrl`'s `tb.sv:83` above —
|
||||
and it was an unresolved warning before and is an unresolved warning now. No
|
||||
edit was lost anywhere in 28 rows.
|
||||
|
||||
## QA log
|
||||
|
||||
**2026-09-12 (QA). Verdict: PASS.** Gates, the dev's ten fixtures re-run at
|
||||
`2675131`, six new attack fixtures, one preflight-parity fixture, one
|
||||
wire-level LSP fixture, an independent re-derivation of the parity evidence
|
||||
and the three opentitan renames, and the corpus/opentitan byte-identity
|
||||
gates. Two findings, neither blocking (§63.1's contract holds and nothing the
|
||||
fix touches misbehaves); both are noted below and neither's file is in
|
||||
§63.1's stated list.
|
||||
|
||||
**1. Gates**, all through `tools/guard.sh -m 8 -t 1800`, no guard kill: `cargo
|
||||
test --workspace` **4 403 passed, 0 failed, 46 ignored** (4 395 the dev
|
||||
reported, +6 attack fixtures in `rename_bind.rs`, +1 wire-level fixture in
|
||||
`nav.rs`, +1 preflight-parity fixture in `preflight_oracle.rs`); `cargo
|
||||
clippy --all-targets --workspace` clean, no new `#[allow]`; `cargo fmt --all
|
||||
-- --check` clean.
|
||||
|
||||
**2. The dev's ten fixtures, re-run against a fresh clone of `2675131`**
|
||||
(`crates/vlog_refactor/tests/rename_bind.rs` copied in, nothing else
|
||||
changed): **8 of 9 non-`#[ignore]`d fixtures fail at baseline exactly as
|
||||
claimed**, and flip green on this tree. The tenth,
|
||||
`a_new_name_the_bind_target_already_declares_is_refused`, **passes at
|
||||
baseline unmodified** — finding 1 below. The `#[ignore]`d real-tree fixture
|
||||
is inert without `LUCISV_BIND_ROOT` at both revisions, so it proves nothing
|
||||
either way by itself; verified directly instead (item 6).
|
||||
|
||||
**3. Six new attack fixtures added to `rename_bind.rs`**, each run at both
|
||||
this tree and the `2675131` clone:
|
||||
|
||||
- `a_bind_connections_bare_name_naming_the_targets_port_is_still_renamed`
|
||||
(task 3a) — a bind connection bare-naming the target's **port** (`clk_i`)
|
||||
is still renamed, and the checker's own `.port` half of the same name is
|
||||
untouched. Passes at both revisions (`hierarchy::member`'s connection-first
|
||||
read means a port was never at risk from the surface widening) — a
|
||||
regression guard, not a reproduction.
|
||||
- `a_bind_connection_resolves_in_the_target_not_a_same_named_decoy_in_the_writing_scope`
|
||||
(task 3b) — the writing module declares its own `entropy_masking_req`; the
|
||||
connection must still resolve `aes`'s net, not the decoy. **Fails at
|
||||
baseline** (same finding-1 cause: `in_bind_target` asked the connection
|
||||
surface for a net and found nothing, silently), passes here.
|
||||
- `a_new_name_the_two_level_tails_terminal_scope_already_declares_is_refused`
|
||||
(task 3c) — the bare-name path's collision refusal exercised one link
|
||||
further down the spine, through `bind_member`/`member_at`/`descend` rather
|
||||
than `in_bind_target`. Passes at both revisions: the same same-scope
|
||||
refusal `check::verify`'s watched-files/resolution-identity pass already
|
||||
applies (see finding 1) covers the new code path exactly as it covers the
|
||||
old one — no gap specific to `bind_member`. On `rename_preflight`'s
|
||||
one-directional parity: unaffected either way, since the collision refusal
|
||||
is `check::verify`'s (workspace-only), never a `rename_preflight` refusal.
|
||||
- `an_escaped_identifier_bind_target_is_still_resolved` (task 3d) — `bind
|
||||
\aes.escaped …`. **Fails at baseline** (silently: no edit, no warning —
|
||||
the escaped target is a single segment, same finding-1 cause), passes
|
||||
here.
|
||||
- `a_bind_with_no_connections_naming_the_renamed_signal_is_untouched`
|
||||
(task 3e) — empty connection list plus a `defparam`. Passes at both
|
||||
revisions; confirms the funnel does not misfire on a connection list with
|
||||
nothing in it.
|
||||
- `a_bind_target_reached_through_a_generate_block_is_warned_about_never_guessed`
|
||||
(task 3f) — `bind tb.gen[0].u_aes …`. **Fails at baseline** (silently — the
|
||||
multi-segment target left `bind_target` unset, finding 2's bug), passes
|
||||
here with a warning naming the file and the unresolved path. The real
|
||||
opentitan tree has exactly this shape
|
||||
(`hw/ip/rom_ctrl/rtl/rom_ctrl.sv:365`, `begin : gen_fsm_scramble_enabled`,
|
||||
bound from `tb.sv:83`) — see item 5.
|
||||
|
||||
**4. `rename_preflight` one-directional parity (task 3c's second half).**
|
||||
Added `a_binds_connection_expressions_defer_rather_than_invent_a_refusal` to
|
||||
`crates/vlog_refactor/tests/preflight_oracle.rs` (the existing per-byte
|
||||
equality oracle between `rename_preflight` and the whole-workspace `rename`,
|
||||
which previously had no `bind` fixture at all): sweeps every byte of a bind
|
||||
file with both a bare-name and a two-level-tail connection, asserting the
|
||||
oracle's own invariant (a preflight refusal must never be one the workspace
|
||||
disagrees with) holds throughout, then names the exact byte Handshakes calls
|
||||
out — the tail's `seed_en` — and asserts `rename_preflight` returns `Ok(())`
|
||||
there. **Fails at the `2675131` clone** (`NOTHING_HERE` — no reference was
|
||||
recorded there before this lane, so `symbol_at` also finds nothing) and
|
||||
passes here, confirming the Handshakes table's claim precisely: refuses
|
||||
strictly less than before, never more.
|
||||
|
||||
**5. The rom_ctrl re-worded sentence, read against the real file.**
|
||||
`hw/ip/rom_ctrl/dv/tb/tb.sv:83` is `.clk_i (clk_i)` inside `bind
|
||||
dut.gen_fsm_scramble_enabled.u_checker_fsm.u_compare rom_ctrl_compare_bound_if
|
||||
#(...) u_bound_if (...)`; `gen_fsm_scramble_enabled` is confirmed a generate
|
||||
block (`rom_ctrl.sv:365`, `if (!SecDisableScrambling) begin :
|
||||
gen_fsm_scramble_enabled`). Base's sentence named `uvm_pkg::clk_i` — a
|
||||
nonsensical search path, the writing scope's `import uvm_pkg::*` leaking in
|
||||
through finding 2's bug — candidate's names
|
||||
`dut::gen_fsm_scramble_enabled::u_checker_fsm::u_compare::clk_i`, the real
|
||||
attempted path, correctly reported as unresolved because the index has no
|
||||
record of a generate block. The re-wording is correct; both are warnings, no
|
||||
edit moved, matching the dev's characterization exactly.
|
||||
|
||||
**6. Parity evidence re-derived directly from `~/.cache/lucisv-perf/63-1/`**
|
||||
(read-only): `python3 compare.py paired.jsonl` reproduces **28 (phase, row)
|
||||
keys, 4 field mismatches, all four confined to the `bind:
|
||||
entropy_masking_req` row** (fingerprint/edits/files/titles — the new edit
|
||||
itself), matching the dev's table verbatim. `compare.py`'s own timing column
|
||||
prints `-` for every row — a script bug (it expects `ms` as a scalar; the
|
||||
harness records it as a list of per-try samples) — so timings were
|
||||
recomputed directly from the raw `ms` arrays: tail rename 322.5 ms (base) →
|
||||
327.3 ms (cand), **under the 330 ms gate**, everything else within noise,
|
||||
matching the dev's table within sampling variance. `warn.jsonl`: raw
|
||||
sentence totals reproduce **1 758 → 1 764** exactly; the raw counts carry a
|
||||
2× duplication (the harness's own artifact — every distinct sentence appears
|
||||
twice, confirmed by exact-value-multiplicity histograms on the `common port`
|
||||
row), and the **deduplicated** picture is 3 new distinct sentences (tail +1,
|
||||
common port +2, matching the dev's per-row breakdown) plus the one reworded
|
||||
sentence verified in item 5. `opentitan.status` after each phase: the three
|
||||
known files, nothing else, confirmed six times over.
|
||||
|
||||
**7. The three opentitan renames, re-run directly** (not just the evidence
|
||||
file): `LUCISV_BIND_ROOT=$HOME/repo/opentitan tools/guard.sh -m 8 -t 1800 --
|
||||
cargo test --release -p vlog_refactor --test rename_bind -- --ignored
|
||||
--nocapture`. Exact match to the dev's table: `WidthPRDSBox` 6 files/32
|
||||
edits/3 warnings, parses 3980/13/1997; `entropy_masking_req` 2 files/6
|
||||
edits/9 warnings, parses 3976/10/1993, `aes_bind.sv` edited ×2; `seed_en` 2
|
||||
files/4 edits/1 warning, parses 3976/38/2005, `aes_bind.sv` edited ×1. The
|
||||
in-test assertions (all three reuse modes agree; `.entropy_masking_req(`
|
||||
port halves untouched) held. `git -C ~/repo/opentitan status --porcelain`
|
||||
before and after: only the three known files, verified.
|
||||
|
||||
**8. Corpus and opentitan byte-identity gates**, both binaries built
|
||||
`--release --locked` (candidate from this tree, baseline from a fresh
|
||||
`2675131` clone): `tools/corpus_check.sh` — **identical outcome tables**
|
||||
between both binaries (10 ok-unchanged / 804 would-reformat / 6 parse-error /
|
||||
0 verification-error / 0 crash, exit 0 both). `target/release/lucisv --check`
|
||||
over `/Users/guoliangchen/repo/opentitan/hw/ip` (1 805 `.sv`/`.svh` files):
|
||||
**identical per-file exit-code classification both binaries** (30 clean /
|
||||
1 771 would-reformat / 4 parse-error / 0 crash) — stronger than that,
|
||||
`lucisv --stdout` on every file hashed (SHA-256) with both binaries:
|
||||
**byte-identical formatted output for all 1 805 files**, confirming the
|
||||
formatter moved not at all, as expected (no `vlog_formatter` file is in the
|
||||
diff). `git -C ~/repo/opentitan status --porcelain` after: only the three
|
||||
known files.
|
||||
|
||||
**9. Definition/references/hover over a bind file (task 4).** Added
|
||||
`a_binds_connection_expression_is_reachable_by_definition_not_yet_by_references`
|
||||
to `crates/lucisv_server/src/nav.rs` (no prior wire-level bind or
|
||||
hierarchical-tail test existed there; modelled on the existing
|
||||
`a_port_is_reachable_from_a_connection_in_another_file`). `definition` from
|
||||
the bind file's expression half correctly jumps to the target's net (never
|
||||
to the checker's `.port` half of the same name) — the overlay carries the
|
||||
resolved `Def` straight through. `references`, in **both** directions, does
|
||||
**not** currently see it — finding 2 below, filed as a standalone,
|
||||
out-of-scope issue rather than a §63.1 defect.
|
||||
|
||||
**10. `FACTS_FORMAT` 19 → 20 (task 3g).** No new test needed:
|
||||
`crates/lucisv_server/src/index_cache.rs:835`,
|
||||
`a_store_from_any_previous_facts_format_is_dropped_not_misread`, loops `for
|
||||
format in 1..FACTS_FORMAT` rather than testing one hardcoded number (written
|
||||
that way after a QA finding on the `detail_span` bump specifically so it
|
||||
could not go stale), so it already covers 20 without any code change and
|
||||
already ran green in the gate above.
|
||||
|
||||
---
|
||||
|
||||
### Finding 1 (low severity, not blocking) — a dev fixture that passes
|
||||
unmodified at `2675131`
|
||||
|
||||
`crates/vlog_refactor/tests/rename_bind.rs`,
|
||||
`a_new_name_the_bind_target_already_declares_is_refused`: renames
|
||||
`entropy_masking_req` to `masking_req` where **`aes.sv` itself** — the file
|
||||
being edited — already declares a sibling `logic masking_req;`. This is an
|
||||
ordinary same-file naming collision (`check::verify`'s watched-files /
|
||||
resolution-identity pass, `crates/vlog_refactor/src/check/mod.rs:41`),
|
||||
refused independently of whether the bind file is understood at all — it
|
||||
passes at `2675131` byte-for-byte, confirmed by re-running the copied test
|
||||
file there. It is a legitimate collision-refusal check (and, per item 3
|
||||
above, the same mechanism does extend correctly to the new
|
||||
`bind_member`/`descend` code path — see the new
|
||||
`a_new_name_the_two_level_tails_terminal_scope_already_declares_is_refused`),
|
||||
but its Status/TODO line ("a new name the bind target already declares is
|
||||
refused") and Work-log description overstate what it demonstrates: it does
|
||||
not exercise the fix. No code change needed — it is a correct test of a
|
||||
correct (pre-existing) behavior, just not of *this* behavior. Suggest
|
||||
re-wording its doc comment in a future pass; not fixed here since editing
|
||||
another dev's fixture text without a legitimate copy-edit reason is outside
|
||||
"small unambiguous" territory.
|
||||
|
||||
### Finding 2 (out of scope, not blocking) — cross-file `references` cannot
|
||||
see a hierarchical-surface-only declaration, `bind` or not
|
||||
|
||||
`crates/lucisv_server/src/nav.rs`: `leaves_this_file` (line ~170) and
|
||||
`indexed_def_in_file` (line ~254, shared with `hover.rs` per its own doc
|
||||
comment) both decide whether a declaration can be referenced from another
|
||||
file by calling `WorkspaceIndex::member(unit, name)` — the **connection**
|
||||
surface only (`workspace/index.rs:82`; ports and parameters). A module's net,
|
||||
variable or instance lives on the **hierarchical** surface only
|
||||
(`workspace/hierarchy.rs`, since 2026-09-05) and so both functions treat such
|
||||
a declaration as incapable of leaving its file. Two concrete symptoms,
|
||||
reproduced in the new `nav.rs` test (item 9):
|
||||
|
||||
- `references` from the *declaration* of a hierarchically-reached net
|
||||
(`leaves_this_file` returns `false`) falls straight to the single-file
|
||||
fallback and never sees a cross-file use, `bind` connection or ordinary
|
||||
`u_x.sig` hierarchical tail alike.
|
||||
- `references` from a *use* that does resolve cross-file (a `bind`
|
||||
connection, `leaves_this_file` returns `true` because the live reference
|
||||
already carries a resolved candidate) still cannot re-identify an **open
|
||||
buffer's own in-file** use of the same declaration, because
|
||||
`indexed_def_in_file` maps the live symbol back to its persisted `Def` the
|
||||
same wrong way.
|
||||
|
||||
Confirmed **not** specific to `bind`: a throwaway probe
|
||||
(`module leaf; logic sig; ... endmodule` / `module top; leaf u_leaf(); wire
|
||||
w; assign w = u_leaf.sig; endmodule`, no bind involved) reproduces the exact
|
||||
same gap and was removed after confirming it (not part of the committed
|
||||
diff). This predates §63.1 by roughly two weeks (the hierarchical-surface
|
||||
feature, 2026-09-05) and is not introduced by this lane's fix — the fix
|
||||
correctly widens what the *resolver* and the *rename engine* see (confirmed
|
||||
throughout this log); `nav.rs` is not in §63.1's stated file list
|
||||
(`crates/lucisv_server/src/{rename.rs,rename_trace.rs,module_select.rs,
|
||||
state/}` only) and was not touched by the dev. Filed as a standalone
|
||||
follow-up rather than fixed here — the fix is a `WorkspaceIndex::member_in`
|
||||
(with `Surface::Hierarchical`) swap in both call sites and needs its own
|
||||
fixture sweep across `definition`/`references`/`hover`/`documentHighlight`,
|
||||
which is more than a "small unambiguous fix."
|
||||
|
||||
## Review
|
||||
|
||||
**Lead review, 2026-09-12 — accepted.** The dev's diagnosis is the one
|
||||
worth having: selection was never the problem, the resolver was — a bind
|
||||
connection's bare name asked the target's *connection* surface (ports and
|
||||
parameters), which cannot hold an internal net, and a hierarchical path in
|
||||
a bind was rooted in the writing scope, which declares nothing. Both fixes
|
||||
are the smallest true ones: the path spelling `target::name` on the
|
||||
hierarchical surface reuses `follow_one` untouched, and `Target::BindMember`
|
||||
walks `descend`/`member_at` lifted out of `member_of` rather than a second
|
||||
spine walk (the lifting is a pure move; the `direct` flag preserves the
|
||||
`InheritedCandidate` rule for `head.member` exactly). The three files edited
|
||||
outside the stated list are accepted: the tail case is unfixable in
|
||||
`resolve.rs` alone, and not bumping `FACTS_FORMAT` would ship a stale store
|
||||
answering thinner — the exact failure the bump discipline exists for.
|
||||
|
||||
Parity is what the brief asked for: every one of the 28-key differences is a
|
||||
bind file's new edit or warning, 1 758 − 8 = 1 750 reproduces §61.5's count,
|
||||
the one re-worded sentence (rom_ctrl `tb.sv:83`, a multi-segment bind
|
||||
target) is more correct than before, and the tail rename held under the
|
||||
330 ms gate. QA's fresh-clone check that the fixtures fail at `2675131`
|
||||
is the proof the fixtures are load-bearing.
|
||||
|
||||
Rulings on QA's findings:
|
||||
|
||||
- **Finding 1** (a fixture that passes at `2675131`): kept as a regression
|
||||
guard, not a defect — the README's Work log may not claim it flipped.
|
||||
The fixture stays; its doc comment is amended by the lead to say what
|
||||
it actually pins (an ordinary same-file collision surviving a bind
|
||||
edit).
|
||||
- **Finding 2** (`nav.rs`'s `leaves_this_file`/`indexed_def_in_file` ask
|
||||
the connection surface, so cross-file `references` misses every
|
||||
hierarchical-surface-only declaration, bind or not): pre-existing since
|
||||
the hierarchical-surface feature, outside this lane's files, correctly
|
||||
not fixed here. Filed in TODO's loop-3 list as the next navigation item
|
||||
(QA task `task_d8afe80f`); QA's wire-level test in `nav.rs` pins the
|
||||
definition half now and documents the references half.
|
||||
|
||||
Topo rows amended by the lead: the `FACTS_FORMAT` line (**20**) and a new
|
||||
`rename-bind-occurrences ◀──▶ workspace-index / index-persistence /
|
||||
bind-semantics / refactor-rename` handshake row; §2.9-33 unchanged.
|
||||
@@ -69,6 +69,12 @@ output). `NetDelay` now owns both of its gaps, `before_hash` and
|
||||
`lucisv_server::state::Workspace::walked_files` is the server's only caller
|
||||
and needed no change — its `sort`/`dedup` still runs, and now has less to
|
||||
do. `vlog_linter` uses `walk::is_excluded` only, which is untouched.
|
||||
**Amended 2026-09-09 (review finding F1):** the visited set is now a value a
|
||||
caller may own and share between two walks (`DirectoryTracker`,
|
||||
`collect_files_tracked`, `collect_files_below_tracked`), because the server's
|
||||
startup scan discovers its scope in two walks and the enter-once rule has to
|
||||
hold *between* them. The policy is unchanged and the old entries are
|
||||
wrappers; see the work log below.
|
||||
- **`vlog_parser::ast::NetDelay` → `vlog_formatter`** (topo §2.9-27, struck).
|
||||
Two new public fields, `before_hash` and `after_hash`, both
|
||||
`Vec<Comment>`. The only constructor is `Parser::parse_net_delay`; the only
|
||||
@@ -282,6 +288,36 @@ together with the warning channel the walk lacks. The opentitan
|
||||
reporting a same-directory symlink alias once — the intended change, noted
|
||||
in 0.43.0's release notes.
|
||||
|
||||
**2026-09-09 — the identity is now shared across walks (review finding F1).**
|
||||
43.1's contract — *each directory is entered once, by identity, and its files
|
||||
are reported under the first path that reached it* — was a contract about one
|
||||
`Walk`. The 0.52.0 startup scan discovers its scope in two walks (the user's
|
||||
own folder, then the rest of the workspace: `docs/features/perf5r-first-answer/README.md`),
|
||||
and two `Walk`s meant two `visited` sets, so a symlinked directory reached by
|
||||
both was reported twice under two spellings and the index held every module in
|
||||
it twice — a valid rename refused as ambiguous
|
||||
([the review](../../performance_052_review.md#f1--p2--split-startup-discovery-duplicates-modules-behind-directory-aliases)).
|
||||
|
||||
The set is now a value a caller may own: `Walk::visited` became
|
||||
`Walk.tracker: &mut DirectoryTracker`, and `collect_files_tracked` /
|
||||
`collect_files_below_tracked` take one. The **policy is unchanged** — the same
|
||||
`(dev, ino)` identity, the same enter-once rule, the same silent skip, the
|
||||
same dangling-link handling, and `collect_files_with`/`collect_files_below`
|
||||
still make a tracker of their own so a single walk behaves byte for byte as it
|
||||
did. What is new is a second answer for the caller that shares one:
|
||||
`DirStatus::PrecedenceConflict` says "already entered, under a path this one
|
||||
sorts *before*" — which is the case where the enter-once rule and a walk of
|
||||
the root would pick different spellings. A single walk never sees it (it meets
|
||||
the first spelling first, by construction); only a split does, and the server
|
||||
answers it with one ordinary rescan rather than by guessing.
|
||||
|
||||
Two `lucisv_core` unit tests pin the tracker itself
|
||||
(`tracker_detects_precedence_conflict_when_alias_sorts_before`,
|
||||
`tracker_allows_alias_sorting_after_without_conflict`); nine server fixtures
|
||||
in `server/tests/startup.rs` pin what the server does about it, cycles
|
||||
included — `sub/up -> ..` still terminates, still names each file once, and
|
||||
now agrees with a plain walk about how it spells them.
|
||||
|
||||
## QA log
|
||||
|
||||
**2026-09-05 — QA (Sonnet).** Built `target/release/{lucisv,lucisv_server}` once
|
||||
|
||||
@@ -1318,3 +1318,108 @@ the only thing noticing an unwatched `lucisv.toml` change).
|
||||
the store open; the two-phase discovery walks the open folder twice (+2.5–
|
||||
5 % on the 1/10-buffer settle); `format::indent_width` over an already-read
|
||||
`FileConfig`; the `absorb` whole-index merge as the next publication lever.
|
||||
|
||||
### 2026-09-09 — the 0.52.0 review (TODO §62)
|
||||
|
||||
An independent review of 0.52.0 (`docs/performance_052_review.md`,
|
||||
evidence `docs/perf/review-052-20260909/`) confirmed the review-round
|
||||
numbers and found one correctness defect and two harness defects. All
|
||||
three are fixed in 0.53.0; no performance number moved.
|
||||
|
||||
- **F1 — directory aliases in the split startup scan.** The open folder's
|
||||
walk and the rest-of-workspace walk kept separate visited sets, so a
|
||||
directory reachable by two spellings (`a_alias -> z_real`) was indexed
|
||||
twice at startup: two definition targets and a valid rename refused as
|
||||
ambiguous until a rescan. Fixed: one directory-identity tracker shared
|
||||
across both walks; a pre-check that takes the single canonical walk
|
||||
when an alias sorts before the open folder or an ancestor; an alias
|
||||
found only by the remaining walk requests one ordinary rescan so the
|
||||
spellings converge; the open-buffer alias gate applied to both walks
|
||||
and stat'ing only same-named files (`stats` 0 on opentitan). Nine
|
||||
fixtures assert startup, rescan and restart agree on index paths,
|
||||
definitions, prepareRename and diagnostics; a genuine duplicate is
|
||||
still refused. First answer, settle, discovery and the buffer cells
|
||||
are within noise of 0.52.0 (`docs/features/perf5r-first-answer/README.md`).
|
||||
- **F2/F3 — the load probe.** A warm `scanload` cell now primes an empty
|
||||
store untimed and records per-trial cache hits (a warm trial with none
|
||||
is an error); scan completion is stamped from the scan's own end event
|
||||
and responses are partitioned by it, not by the request window. The
|
||||
0.52.0 review's whole-window numbers stand; its `settled_ms`/mid-scan
|
||||
fields at 0.52.0 do not.
|
||||
- **N1–N3** (the dirty-buffer parse on the first action after an edit,
|
||||
the retained-analysis parse work and the 31 ms facts decode, the
|
||||
whole-index merge per publication) are filed with the review's
|
||||
baselines and deferred to loop 3.
|
||||
|
||||
### 2026-09-12 — loop 3, round 1 (TODO §63)
|
||||
|
||||
**§63.1 is a correctness lane, not a performance one**, recorded here
|
||||
because its parity ran through this harness: a `bind` file's own
|
||||
occurrence of a renamed name is now edited (resolvable) or warned about
|
||||
(not), never silent — the resolver had asked the bind target's
|
||||
*connection* surface for a bare name and rooted a bind's hierarchical
|
||||
path in the writing scope (`FACTS_FORMAT` 19 → 20). `renamewarn` 1 758 →
|
||||
1 764 sentences, 1 758 − 8 = 1 750 held; every one of the 28 paired keys
|
||||
that moved is a bind file's new edit or warning; tail rename 326 ms
|
||||
(gate ≤ 330). `docs/features/rename-bind-occurrences/README.md`.
|
||||
|
||||
**§63.2 — the first request after an edit (N1 of the 0.52.0 review).**
|
||||
The 40 267-line pinmux cell — one-character `didChange`, then the
|
||||
all-family `codeAction` menu — **109 → 88 ms paired (−19.2 % dev;
|
||||
−19.6 % / −16.3 % on QA's re-take, order alternated)**; the
|
||||
unchanged-repeat cell and every other `offeredit`/`offerkinds`/`flush`/
|
||||
`diagnostics` row within noise; cold-scan RSS ~25 MiB lower, warm flat.
|
||||
The flush is now split on the `timing: codeaction` line
|
||||
(`rebuild{lex parse defines analyze external lines publish documents}`),
|
||||
which is what named the cost: **lex 29 ms and parse 26 ms of a 100 ms
|
||||
flush**, and *no* second lint and *no* second analysis of the revision
|
||||
(the snapshot and `with_semantics` already had those). Three changes, all
|
||||
in `vlog_parser`: the lexer's two phases fused (the intermediate
|
||||
`Vec<RawTok>` gone; `tokenize` 27.8 → 24.7 ms), `Parser::skip` for the
|
||||
178 `bump()` sites that discarded the token (`parse_tolerant` 17.5 →
|
||||
16.0 ms), and a first-byte test in front of the 42-entry operator table
|
||||
(`tokenize` 24.7 → **11.6 ms**, the single largest win). Token stream,
|
||||
parse diagnostics, AST and symbol table digested per file over 4 807
|
||||
files, re-derived by QA against a rebuilt 1b8723c: 0 differ; the five
|
||||
gap fuzzers at their pinned counts; `format --stdout` byte-identical over
|
||||
corpus and opentitan `hw/ip`; diagnostics and menus identical on the
|
||||
edited buffer (87 lines). **Filed, not fixed** (TODO loop-3 list): the
|
||||
token clone into `parse_tolerant` (3.9 ms — the parser mutates the
|
||||
stream it is given, so it cannot be handed over while `Document::tokens`
|
||||
is read for comments), `analyze` (9.4 ms), `resolve_external` (4.7 ms),
|
||||
and ~6 ms dropping the previous revision's products on the request path.
|
||||
`docs/features/perf-first-after-edit/README.md`; evidence
|
||||
`~/.cache/lucisv-perf/63-2/`.
|
||||
### 2026-09-12 — loop 3, round 2 (TODO §64)
|
||||
|
||||
**§64.1 is a correctness lane, not a performance one**, recorded here
|
||||
because it moves one harness row on purpose. `textDocument/references`
|
||||
now judges a declaration's cross-file reach on the **hierarchical**
|
||||
surface (`nav::leaves_this_file` / `indexed_def_in_file` ask
|
||||
`member_in(…, Surface::Hierarchical)` instead of `member`), so a module's
|
||||
net, variable or instance — which a `bind` connection or a `u_x.sig`
|
||||
tail names from another file — is answered workspace-wide instead of
|
||||
silently in-file. Two costs, both measured on the real opentitan tree:
|
||||
|
||||
- **A local net's `references` in a 40 267-line open buffer** now walks
|
||||
the indexed path (two map probes plus the name-prefiltered pass over
|
||||
open buffers) instead of returning the in-file answer directly:
|
||||
**1.22 → 1.54 ms median** (QA, throwaway worktree at 9d1eb16 for the
|
||||
before). Accepted: the gate still saves the walk for every name the
|
||||
index holds nowhere.
|
||||
- **A cross-file request into a *closed* declaring file** (the shape that
|
||||
used to answer incompletely) parses exactly that file once, fresh from
|
||||
disk: 0.1–0.2 ms → **0.4–1.5 ms** on `state_q` from
|
||||
`entropy_src_core.sv` with `entropy_src_main_sm.sv` shut — the price
|
||||
of the in-file uses that answer used to omit. The index deliberately
|
||||
posts no `Local` reference for a hierarchical-only member (the §49
|
||||
ruling: a reference table sized by every RTL body for a rarely-asked
|
||||
answer), so the one-file re-analysis is the same trade the rename
|
||||
already makes.
|
||||
|
||||
Every connection-surface row of the `nav` harness is unchanged in result
|
||||
count and within noise in time (`aes` 14 locations / 9 files, `.clk_i`
|
||||
12 / 9). Every closed-file span is now guarded by `hover::spells_exactly`
|
||||
before it is rendered — one slice compare per location, unmeasurable —
|
||||
so a stale index can omit a location but never point at a wrong line
|
||||
(QA findings 1–4). `docs/features/references-hierarchical-surface/README.md`.
|
||||
@@ -0,0 +1,73 @@
|
||||
# Independent 0.52.0 review evidence — 2026-09-09
|
||||
|
||||
[Review, findings and assessment](../../performance_052_review.md) ·
|
||||
[Tracking file](../take5-tracking.md)
|
||||
|
||||
Candidate: `3ceba21bb2ef4404a188b076301b170af862075b` (0.52.0).
|
||||
Reference: `126a6bcdac99e940534c87bce94a5269cdc53ae4` (0.51.0), exported with
|
||||
`git archive` into scratch storage and freshly built. Both use the current
|
||||
0.52.0 harness. No build or test overlapped benchmark timing. Every run used
|
||||
the repository's 8 GiB / 1,800-second guard.
|
||||
|
||||
## Evidence files
|
||||
|
||||
- `provenance.json`: commits, compiler/OS, binary hashes, corpus state/hashes, build commands and exclusions.
|
||||
- `validation.json`: 4,374 passed / 0 failed / 45 ignored, 84 paired outcome rows with zero differences, final corpus checks and reproduced finding IDs. Passing the existing suite does not close the new reproductions.
|
||||
- `results.jsonl`: full paired LSP sample arrays, fingerprints, statuses, rename traces, RSS and cross-folder fixed-load results.
|
||||
- `load-retest.jsonl`: **use these rows for the normal warm loaded-scan comparison**. The initial normal `scanloadprobe` rows in `results.jsonl` are excluded because their fresh store made the first nominally warm trial cold (F2). The rerun uses the populated stores left by the completed cold/warm matrix.
|
||||
- `runs.jsonl`: all 20 initial paired phase commands, times, load samples, exits and corpus hash/status checks.
|
||||
- `verification-runs.jsonl`: corrected warm-load commands, two reproductions, fmt, clippy and full workspace-test commands/exits.
|
||||
- `symlink-results.jsonl`: initial three-session-per-version definition reproduction.
|
||||
- `symlink-lifecycle.log`: another three sessions per version, comparing definition and prepareRename at startup and after a whole rescan without source changes (F1).
|
||||
- `warm-priming-proof.log`: full scan traces for two nominally warm sessions, showing 0 hits / 3,974 misses on the first and 3,974 hits / 0 misses on the second (F2).
|
||||
- `build-*.log`, `fmt.log`, `clippy.log`, `tests.log`: freshness and correctness-check output.
|
||||
- `run.py`, `verify.py`, `symlink_probe.py`, `symlink_lifecycle.py`, `warm_priming_probe.py`: actual scratch scripts. They contain machine-specific paths and are evidence, not project tooling.
|
||||
|
||||
Raw phase console logs, the archived reference source/build and caches remain
|
||||
under `/tmp/lucisv-perf-review-20260909`. They are not copied wholesale into
|
||||
the repository. Corpus source was never written; workspace edits were captured
|
||||
or discarded. The symlink fixture is separate from OpenTitan.
|
||||
|
||||
## Measurement cautions
|
||||
|
||||
**F3:** do not use `scanload.settled_ms` or its `mid_scan_*`/after-settle
|
||||
classification as reliable scan-only measurements. The candidate's trace
|
||||
finishes around 1.77 s but the harness reports 3.41 s, the end of its request
|
||||
window. This review uses `publication[].scan_total` and wire waits over the
|
||||
entire fixed window. Raw fields are retained unchanged so the bug is reviewable.
|
||||
|
||||
Ordinary request arrays are first request plus three repeats; scan, RSS and
|
||||
first-after-edit arrays are three trials. Queue rows have explicit leader and
|
||||
follower values. Rename stage fields describe the last traced request, not a
|
||||
median CPU profile. RSS is KiB; report MiB by dividing by 1,024. The sampled
|
||||
request peaks are whole-process RSS, not allocation totals. A command-offer
|
||||
placeholder of zero is not execution; `capture` is an edit delivered to
|
||||
applyEdit but declined by the client; `refused` is no edit.
|
||||
|
||||
Cross-folder load cells offer a fixed window: 9 s cold or 3.5 s warm, with one
|
||||
request every 100 ms. Three sessions therefore contribute 270 or 105 responses
|
||||
per cell. `requests_offered` is per session; `requests_answered` is aggregated.
|
||||
Three processes are insufficient for population tail-percentile claims even
|
||||
when their pooled request count is larger.
|
||||
|
||||
## Reproduce a finding
|
||||
|
||||
Use the commits and paths in `provenance.json`, or adjust the scratch scripts
|
||||
to point to freshly built binaries on another machine. Run them through the
|
||||
guard from the repository root:
|
||||
|
||||
```sh
|
||||
tools/guard.sh -m 8 -t 1800 -- python3 /tmp/lucisv-perf-review-20260909/symlink_lifecycle.py
|
||||
```
|
||||
|
||||
The script creates its fixture under scratch storage, opens the real-path
|
||||
testbench, waits for startup, requests definition and prepareRename, sends a
|
||||
two-file watched-change notification to trigger a whole rescan, and asks
|
||||
again. It prints the actual responses; the candidate's false duplicate
|
||||
refusal is the finding, not an expected feature behavior.
|
||||
|
||||
`warm_priming_probe.py` requires its proof directory not to exist. Choose a
|
||||
new scratch proof directory for a rerun; it deliberately does not silently
|
||||
reuse or delete an earlier proof. The normal benchmark driver similarly needs
|
||||
the F2 priming correction before its warm-load rows can be trusted on fresh
|
||||
storage. Exact accepted and excluded commands are retained in the run logs.
|
||||
@@ -0,0 +1,2 @@
|
||||
Compiling lucisv_server v0.52.0 (/Users/guoliangchen/repo/verilogrustformatter/crates/lucisv_server)
|
||||
Finished `release` profile [optimized] target(s) in 57.30s
|
||||
@@ -0,0 +1,27 @@
|
||||
Compiling proc-macro2 v1.0.107
|
||||
Compiling unicode-ident v1.0.24
|
||||
Compiling quote v1.0.47
|
||||
Compiling serde_core v1.0.229
|
||||
Compiling serde v1.0.229
|
||||
Compiling crossbeam-utils v0.8.22
|
||||
Compiling serde_json v1.0.140
|
||||
Compiling vlog_parser v0.51.0 (/tmp/lucisv-perf-review-20260909/reference/crates/vlog_parser)
|
||||
Compiling ryu v1.0.23
|
||||
Compiling itoa v1.0.18
|
||||
Compiling memchr v2.8.3
|
||||
Compiling bitflags v1.3.2
|
||||
Compiling lucisv_core v0.51.0 (/tmp/lucisv-perf-review-20260909/reference/crates/lucisv_core)
|
||||
Compiling fluent-uri v0.1.4
|
||||
Compiling log v0.4.33
|
||||
Compiling crossbeam-channel v0.5.16
|
||||
Compiling syn v3.0.3
|
||||
Compiling vlog_semantic v0.51.0 (/tmp/lucisv-perf-review-20260909/reference/crates/vlog_semantic)
|
||||
Compiling vlog_formatter v0.51.0 (/tmp/lucisv-perf-review-20260909/reference/crates/vlog_formatter)
|
||||
Compiling serde_derive v1.0.229
|
||||
Compiling serde_repr v0.1.21
|
||||
Compiling vlog_linter v0.51.0 (/tmp/lucisv-perf-review-20260909/reference/crates/vlog_linter)
|
||||
Compiling vlog_refactor v0.51.0 (/tmp/lucisv-perf-review-20260909/reference/crates/vlog_refactor)
|
||||
Compiling lsp-server v0.10.0
|
||||
Compiling lsp-types v0.97.0
|
||||
Compiling lucisv_server v0.51.0 (/tmp/lucisv-perf-review-20260909/reference/crates/lucisv_server)
|
||||
Finished `release` profile [optimized] target(s) in 1m 07s
|
||||
@@ -0,0 +1,9 @@
|
||||
Checking vlog_parser v0.52.0 (/Users/guoliangchen/repo/verilogrustformatter/crates/vlog_parser)
|
||||
Checking lucisv_core v0.52.0 (/Users/guoliangchen/repo/verilogrustformatter/crates/lucisv_core)
|
||||
Checking vlog_semantic v0.52.0 (/Users/guoliangchen/repo/verilogrustformatter/crates/vlog_semantic)
|
||||
Checking vlog_formatter v0.52.0 (/Users/guoliangchen/repo/verilogrustformatter/crates/vlog_formatter)
|
||||
Checking vlog_refactor v0.52.0 (/Users/guoliangchen/repo/verilogrustformatter/crates/vlog_refactor)
|
||||
Checking vlog_linter v0.52.0 (/Users/guoliangchen/repo/verilogrustformatter/crates/vlog_linter)
|
||||
Checking lucisv_server v0.52.0 (/Users/guoliangchen/repo/verilogrustformatter/crates/lucisv_server)
|
||||
Checking lucisv v0.52.0 (/Users/guoliangchen/repo/verilogrustformatter/crates/lucisv)
|
||||
Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 04s
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
{"phase": "scanload", "row": "definition every 100 ms, warm cache, 1 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 105, "requests_offered": 35, "rate_ms": 100, "open_buffers": 2, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [0.23437500931322575, 0.2786249970085919, 0.27879205299541354, 0.3429169883020222, 0.3560000332072377, 0.3707500291056931, 0.37225004052743316, 0.37745898589491844, 0.3807920147664845, 0.38191705243662, 0.38962496910244226, 0.3909170045517385, 0.3945829812437296, 0.39591704262420535, 0.39795797783881426, 0.419457966927439, 0.41983299888670444, 0.4202499985694885, 0.4267499898560345, 0.4297500126995146, 0.4308749921619892, 0.4320830339565873, 0.43708295561373234, 0.4479580093175173, 0.45666599180549383, 0.45683298958465457, 0.47037500189617276, 0.47979201190173626, 0.4801250179298222, 0.48170797526836395, 0.482875038869679, 0.4948750138282776, 0.5013329791836441, 0.6397910183295608, 0.6407910259440541, 0.6412909715436399, 0.7084590033628047, 0.7254999945871532, 0.7357920403592288, 0.7520000217482448, 0.9683750104159117, 0.9921250166371465, 1.0569170117378235, 1.2750829919241369, 1.375459018163383, 1.3993330067023635, 1.4586250181309879, 1.4692499535158277, 1.521750004030764, 1.6809169901534915, 1.774792035575956, 1.875291985925287, 2.033584052696824, 2.128041989635676, 2.6053329929709435, 2.644082996994257, 3.567832987755537, 10.479416989255697, 19.887125003151596, 20.610582956578583, 51.07304098783061, 51.93137499736622, 64.53425000654534, 70.25124999927357, 77.52504100790247, 79.93495900882408, 84.3826670316048, 86.70937502756715, 97.64420898864046, 109.81295898091048, 119.40683302236721, 120.58512499788776, 150.113333016634, 151.45741601008922, 163.3421669830568, 170.30383396195248, 175.4463340039365, 181.4691670006141, 183.25004196958616, 184.164458012674, 198.05016601458192, 208.9190420228988, 219.84766598325223, 220.00158298760653, 250.87466702098027, 252.19029100844637, 262.700000021141, 269.08900000853464, 275.53670800989494, 283.8588749873452, 297.9642499703914, 319.6956670144573, 319.85254102619365, 397.69845799310133, 418.8561250339262, 419.87824998795986, 499.8401670018211, 518.8152500195429, 519.4051250000484, 597.5716249668039, 619.3727909703739, 621.6692919842899, 699.8402920435183, 720.6624170066789, 721.715291030705], "latency_median_ms": 2.033584052696824, "latency_max_ms": 721.715291030705, "mid_scan_median_ms": 2.033584052696824, "mid_scan_max_ms": 721.715291030705, "requests_sent": [35, 35, 35], "requests_answered": 105, "mid_scan_answers": 105, "after_settle_answers": 0, "unanswered_requests": 0, "mismatched_answers": 0, "unsettled_answers": 0, "settled_ms": [3406.4717919682153, 3407.3735430138186, 3406.602292030584], "tick_jitter_ms": 6.958250014577061, "publication": [{"publish_absorb": 452.75, "publish_candidates": 180.64, "publish_includes": 12.97, "publish_overlay": 0.61, "publish_total": 646.97, "publishes": 4, "published": 3519, "first_publish": 470.96, "scan_total": 1778.28}, {"publish_absorb": 476.16, "publish_candidates": 185.16, "publish_includes": 13.28, "publish_overlay": 0.67, "publish_total": 675.27, "publishes": 4, "published": 3494, "first_publish": 494.98, "scan_total": 1771.43}, {"publish_absorb": 446.83, "publish_candidates": 179.34, "publish_includes": 13.07, "publish_overlay": 0.65, "publish_total": 639.89, "publishes": 4, "published": 3513, "first_publish": 474.04, "scan_total": 1764.97}], "ts": "2026-09-09T01:22:08", "label": "0.52.0-review", "schema": 2, "units": "ms"}
|
||||
{"phase": "scanload", "row": "definition every 100 ms, warm cache, 1 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 105, "requests_offered": 35, "rate_ms": 100, "open_buffers": 2, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [241.55699997209013, 247.57100001443177, 275.5369999795221, 342.0218749670312, 346.5159999905154, 375.6269169971347, 440.8285000245087, 446.021625015419, 475.64991598483175, 540.7515830011107, 545.7169159781188, 576.1033750022762, 640.0489169755019, 646.3882910320535, 674.5119580300525, 739.6939580212347, 747.1998329856433, 774.6847500093281, 840.0745829567313, 847.3092500353232, 874.2899590288289, 941.5772079955786, 947.2306670504622, 973.9954579854384, 1041.8655420071445, 1046.7767500085756, 1075.9012500056997, 1141.7389169801027, 1146.351124974899, 1173.6330830026418, 1241.659208026249, 1246.7039580224082, 1273.9923750050366, 1340.223999985028, 1347.8122499655, 1374.1556670283899, 1440.9779999987222, 1446.6565829934552, 1473.9422079874203, 1541.2526250001974, 1546.17737501394, 1574.431375018321, 1640.8938340027817, 1647.3738750210032, 1674.7713339864276, 1739.9268340086564, 1746.503665985074, 1773.5807499848306, 1840.233499999158, 1846.9760829466395, 1873.2641249662265, 1939.728458004538, 1947.2075829980895, 1974.8794579645619, 2039.1076660016552, 2045.1457920134999, 2074.0201660082676, 2139.1950830002315, 2147.0947500201873, 2174.096333037596, 2239.5964169991203, 2247.3798339487985, 2274.172290985007, 2339.4442080170847, 2346.7091250349768, 2375.15783298295, 2440.894625033252, 2446.697583014611, 2474.30229105521, 2540.1668330305256, 2546.162332990207, 2574.7746669803746, 2639.975374971982, 2645.9845830104314, 2675.508540996816, 2739.6694580093026, 2745.4706669668667, 2774.191749980673, 2839.1245410311967, 2845.5262079951353, 2873.318500001915, 2940.369332965929, 2946.829541993793, 2973.2182910083793, 3040.314667043276, 3047.5078329909593, 3073.755874997005, 3141.1920840037055, 3146.8377920100465, 3174.6075420523994, 3239.4263750175014, 3246.957624971401, 3274.9790839734487, 3341.0877080168575, 3347.254416963551, 3373.97424998926, 3441.0788330133073, 3445.548250048887, 3474.267208017409, 3540.4448750196025, 3545.773416000884, 3573.324542026967, 3641.424166969955, 3647.3766670096666, 3675.449041998945], "latency_median_ms": 1947.2075829980895, "latency_max_ms": 3675.449041998945, "mid_scan_median_ms": 1947.2075829980895, "mid_scan_max_ms": 3675.449041998945, "requests_sent": [35, 35, 35], "requests_answered": 105, "mid_scan_answers": 105, "after_settle_answers": 0, "unanswered_requests": 0, "mismatched_answers": 0, "unsettled_answers": 0, "settled_ms": [4255.203042004723, 4257.531625917181, 4287.717750063166], "tick_jitter_ms": 2.676916017662734, "publication": [{"publish_absorb": 2416.7, "publish_candidates": 682.01, "publish_includes": 49.98, "publish_overlay": 5.02, "publish_total": 3153.7099999999996, "publishes": 34, "published": 1807, "first_publish": 280.81, "scan_total": 4244.26}, {"publish_absorb": 2421.9, "publish_candidates": 681.68, "publish_includes": 50.02, "publish_overlay": 5.08, "publish_total": 3158.68, "publishes": 34, "published": 1808, "first_publish": 280.18, "scan_total": 4246.99}, {"publish_absorb": 2467.32, "publish_candidates": 682.1, "publish_includes": 51.98, "publish_overlay": 5.06, "publish_total": 3206.46, "publishes": 34, "published": 1808, "first_publish": 267.64, "scan_total": 4276.15}], "ts": "2026-09-09T01:22:26", "label": "0.51.0-reference", "schema": 2, "units": "ms"}
|
||||
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"date": "2026-09-09",
|
||||
"candidate_commit": "3ceba21bb2ef4404a188b076301b170af862075b",
|
||||
"reference_commit": "126a6bcdac99e940534c87bce94a5269cdc53ae4",
|
||||
"reference_method": "git archive into scratch directory; guarded fresh release build",
|
||||
"compiler": "rustc 1.97.1 (8bab26f4f 2026-07-14) (Homebrew)\nbinary: rustc\ncommit-hash: 8bab26f4f68e0e26f0bb7960be334d5b520ea452\ncommit-date: 2026-07-14\nhost: aarch64-apple-darwin\nrelease: 1.97.1\nLLVM version: 22.1.8",
|
||||
"os": "ProductName:\t\tmacOS\nProductVersion:\t\t27.0\nBuildVersion:\t\t26A5425a",
|
||||
"machine": "arm64",
|
||||
"python": "3.14.7",
|
||||
"logical_cpus": 10,
|
||||
"binary_sha256": {
|
||||
"/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server": "d9b177f254315c2f9ec40f386cc5218aafd9d3474d4e8762b499f113654d55f1",
|
||||
"/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server": "11a212b3f8771adcfc4d435d58f20ab02fe9f59f47fd99cf09d43f1f3d739336"
|
||||
},
|
||||
"corpus_commit": "00981352642fb65ef2b6c47143a0f6bb31fd4a97",
|
||||
"corpus_status": "M hw/ip/aes/dv/tb/tb.sv\n M hw/top_darjeeling/ip/ast/rtl/ast.sv\n M hw/top_earlgrey/ip/ast/rtl/ast.sv",
|
||||
"corpus_modified_sha256": {
|
||||
"hw/ip/aes/dv/tb/tb.sv": "09ae059220caa7667bb22acdd3157647b55d36de96ff2ca55a801bbbcd08146e",
|
||||
"hw/top_darjeeling/ip/ast/rtl/ast.sv": "2b63f9d7bc0068388e47a80383eaf048183cf5868b1cfd4692eac325393d2803",
|
||||
"hw/top_earlgrey/ip/ast/rtl/ast.sv": "15efd90c99030c6a43486ef1ed622897b967ad5153697d6b2c2c21cfb6eba35f"
|
||||
},
|
||||
"guard": {
|
||||
"memory_gib": 8,
|
||||
"seconds": 1800
|
||||
},
|
||||
"notes": [
|
||||
"Current 0.52.0 harness drives both binaries.",
|
||||
"Builds finished before any timing. All phases sequential; no benchmark/test concurrency.",
|
||||
"Corpus edits discarded and caches isolated in scratch storage.",
|
||||
"No remote fetch or checkout mutation. Initial repository status clean."
|
||||
],
|
||||
"excluded_measurements": [
|
||||
"results.jsonl: scanload rows without cross-folder in the row name (initial scanloadprobe runs); the first warm trial lacked a populated r4-load store. Use load-retest.jsonl instead.",
|
||||
"All scanload settled_ms, mid_scan_median_ms, mid_scan_max_ms, mid_scan_answers, after_settle_answers fields are not used as reliable completion/partition metrics (F3)."
|
||||
],
|
||||
"build_commands": [
|
||||
[
|
||||
"tools/guard.sh",
|
||||
"-m",
|
||||
"8",
|
||||
"-t",
|
||||
"1800",
|
||||
"--",
|
||||
"cargo",
|
||||
"build",
|
||||
"--release",
|
||||
"--locked",
|
||||
"-p",
|
||||
"lucisv_server",
|
||||
"--manifest-path",
|
||||
"Cargo.toml"
|
||||
],
|
||||
[
|
||||
"tools/guard.sh",
|
||||
"-m",
|
||||
"8",
|
||||
"-t",
|
||||
"1800",
|
||||
"--",
|
||||
"cargo",
|
||||
"build",
|
||||
"--release",
|
||||
"--locked",
|
||||
"-p",
|
||||
"lucisv_server",
|
||||
"--manifest-path",
|
||||
"/tmp/lucisv-perf-review-20260909/reference/Cargo.toml"
|
||||
]
|
||||
],
|
||||
"test_results": {
|
||||
"passed": 4374,
|
||||
"failed": 0,
|
||||
"ignored": 45,
|
||||
"result_blocks": 59
|
||||
},
|
||||
"corpus_after_all_checks_unchanged": true,
|
||||
"binary_hashes_after_all_checks_unchanged": true
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
{"phase": "offerkinds", "row": "tb-comment None", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": null, "load": [5.0712890625, 6.9306640625, 6.75439453125], "ms": [1.9282500143162906, 0.493000028654933, 0.21929200738668442, 0.18204195657745004], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:29", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment []", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": [], "load": [5.0712890625, 6.9306640625, 6.75439453125], "ms": [0.08808297570794821, 0.07833295967429876, 0.04891701973974705, 0.04008301766589284], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:29", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment ['quickfix']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": ["quickfix"], "load": [5.0712890625, 6.9306640625, 6.75439453125], "ms": [0.26566704036667943, 0.21970801753923297, 0.18358399393036962, 0.23770902771502733], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:29", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment ['refactor.extract']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.extract"], "load": [5.0712890625, 6.9306640625, 6.75439453125], "ms": [0.2045410219579935, 0.12845901073887944, 0.06900000153109431, 0.04654203075915575], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:29", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment ['refactor.inline']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.inline"], "load": [5.0712890625, 6.9306640625, 6.75439453125], "ms": [0.05179096478968859, 0.063000014051795, 0.11837499914690852, 0.05725002847611904], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:29", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment ['refactor.rewrite.lucisv.ports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.rewrite.lucisv.ports"], "load": [5.0712890625, 6.9306640625, 6.75439453125], "ms": [0.1402500201947987, 0.09391701314598322, 0.14045799616724253, 0.1211669878102839], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:29", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment ['source.organizeImports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": ["source.organizeImports"], "load": [5.0712890625, 6.9306640625, 6.75439453125], "ms": [0.0607079709880054, 0.03862503217533231, 0.03545801155269146, 0.031791976653039455], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:29", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance None", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": null, "load": [5.1455078125, 6.9150390625, 6.74951171875], "ms": [4.584999987855554, 4.051957977935672, 3.7545409868471324, 3.612500033341348], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:09:32", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance []", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": [], "load": [5.1455078125, 6.9150390625, 6.74951171875], "ms": [0.12579199392348528, 0.0785829615779221, 0.07804197957739234, 0.060333055444061756], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:32", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance ['quickfix']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": ["quickfix"], "load": [5.1455078125, 6.9150390625, 6.74951171875], "ms": [0.44899998465552926, 0.3641669754870236, 0.35441602813079953, 0.3295839997008443], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:32", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance ['refactor.extract']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": ["refactor.extract"], "load": [5.1455078125, 6.9150390625, 6.74951171875], "ms": [0.0665830448269844, 0.061375030782073736, 0.04995899507775903, 0.09795802179723978], "status": "ok", "result_count": 1, "ts": "2026-09-09T01:09:32", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance ['refactor.inline']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": ["refactor.inline"], "load": [5.1455078125, 6.9150390625, 6.74951171875], "ms": [0.0740840332582593, 0.047291978262364864, 0.04662497667595744, 0.040207989513874054], "status": "ok", "result_count": 1, "ts": "2026-09-09T01:09:32", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance ['refactor.rewrite.lucisv.ports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": ["refactor.rewrite.lucisv.ports"], "load": [5.1455078125, 6.9150390625, 6.74951171875], "ms": [3.1582920346409082, 2.8589580324478447, 2.9202920268289745, 3.103042021393776], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:32", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance ['source.organizeImports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": ["source.organizeImports"], "load": [5.1455078125, 6.9150390625, 6.74951171875], "ms": [0.12320803944021463, 0.06208301056176424, 0.053791969548910856, 0.07720803841948509], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:32", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment None", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": null, "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [1.3690409832634032, 1.1132080107927322, 1.0387920192442834, 1.0371250100433826], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:36", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment []", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": [], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [0.08533295476809144, 0.06483402103185654, 0.04983402322977781, 0.0468340003862977], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:36", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment ['quickfix']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": ["quickfix"], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [1.1663340264931321, 1.2232500012032688, 1.1855000047944486, 1.142042048741132], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:36", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment ['refactor.extract']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.extract"], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [0.0706670107319951, 0.06149994442239404, 0.0705840066075325, 0.052499992307275534], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:36", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment ['refactor.inline']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.inline"], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [0.071291986387223, 0.04237500252202153, 0.03883300814777613, 0.03649998689070344], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:36", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment ['refactor.rewrite.lucisv.ports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.rewrite.lucisv.ports"], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [0.05395803600549698, 0.03854196984320879, 0.049667025450617075, 0.03912497777491808], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:36", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment ['source.organizeImports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": ["source.organizeImports"], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [0.04291697405278683, 0.044625019654631615, 0.04333403194323182, 0.04395801806822419], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:36", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment None", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": null, "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [2.081208978779614, 2.016332990024239, 1.8178750178776681, 1.7115840455517173], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:39", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment []", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": [], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [0.10237499373033643, 0.06420904537662864, 0.05641602911055088, 0.05687499651685357], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:39", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment ['quickfix']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": ["quickfix"], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [1.5573750133626163, 1.661374990362674, 1.5634170267730951, 1.4038340304978192], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:39", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment ['refactor.extract']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.extract"], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [0.07491599535569549, 0.08695904398337007, 0.06758299423381686, 0.05783402593806386], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:39", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment ['refactor.inline']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.inline"], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [0.06170797860249877, 0.053750001825392246, 0.06033299723640084, 0.0687920255586505], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:39", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment ['refactor.rewrite.lucisv.ports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.rewrite.lucisv.ports"], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [0.06587500683963299, 0.048916961532086134, 0.047707988414913416, 0.049708003643900156], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:39", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment ['source.organizeImports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": ["source.organizeImports"], "load": [5.2939453125, 6.916015625, 6.7509765625], "ms": [0.07333297980949283, 0.05887501174584031, 0.054791977163404226, 0.0451250234618783], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:39", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment None", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": null, "load": [5.35009765625, 6.900390625, 6.74609375], "ms": [25.831834005657583, 24.26745800767094, 24.51866597402841, 24.205999972764403], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:42", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment []", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": [], "load": [5.35009765625, 6.900390625, 6.74609375], "ms": [0.09516597492620349, 0.05691696424037218, 0.03875000402331352, 0.03129197284579277], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:42", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment ['quickfix']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": ["quickfix"], "load": [5.35009765625, 6.900390625, 6.74609375], "ms": [23.996290983632207, 24.26624996587634, 24.21162504469976, 24.31587496539578], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:42", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment ['refactor.extract']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.extract"], "load": [5.35009765625, 6.900390625, 6.74609375], "ms": [0.09320798562839627, 0.06279197987169027, 0.058375007938593626, 0.0503340270370245], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:42", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment ['refactor.inline']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.inline"], "load": [5.35009765625, 6.900390625, 6.74609375], "ms": [0.048666028305888176, 0.0416660332120955, 0.0785409938544035, 0.14483300037682056], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:42", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment ['refactor.rewrite.lucisv.ports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.rewrite.lucisv.ports"], "load": [5.35009765625, 6.900390625, 6.74609375], "ms": [0.1807910157367587, 0.07395795546472073, 0.06245903205126524, 0.06058404687792063], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:42", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment ['source.organizeImports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": ["source.organizeImports"], "load": [5.35009765625, 6.900390625, 6.74609375], "ms": [0.061583006754517555, 0.05404202966019511, 0.07225002627819777, 0.05083298310637474], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:42", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment None", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": null, "load": [5.48193359375, 6.90185546875, 6.74755859375], "ms": [1.1078329989686608, 0.32133300555869937, 0.22008299129083753, 0.17808302072808146], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:48", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment []", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": [], "load": [5.48193359375, 6.90185546875, 6.74755859375], "ms": [0.10195799404755235, 0.06629200652241707, 0.054875039495527744, 0.04529103171080351], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:48", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment ['quickfix']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": ["quickfix"], "load": [5.48193359375, 6.90185546875, 6.74755859375], "ms": [0.4765419871546328, 0.22708403412252665, 0.15837501268833876, 0.1877500326372683], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:48", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment ['refactor.extract']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.extract"], "load": [5.48193359375, 6.90185546875, 6.74755859375], "ms": [0.06579200271517038, 0.047083012759685516, 0.04954100586473942, 0.05099998088553548], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:48", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment ['refactor.inline']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.inline"], "load": [5.48193359375, 6.90185546875, 6.74755859375], "ms": [0.09745795978233218, 0.07141695823520422, 0.06966700311750174, 0.0636249897070229], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:48", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment ['refactor.rewrite.lucisv.ports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.rewrite.lucisv.ports"], "load": [5.48193359375, 6.90185546875, 6.74755859375], "ms": [0.059165991842746735, 0.04516699118539691, 0.03866699989885092, 0.049083027988672256], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:48", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "tb-comment ['source.organizeImports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "only": ["source.organizeImports"], "load": [5.48193359375, 6.90185546875, 6.74755859375], "ms": [0.046083005145192146, 0.06849999772384763, 0.10412500705569983, 0.04370900569483638], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:48", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance None", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": null, "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [3.441042033955455, 2.898292033933103, 3.575833048671484, 3.190334013197571], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:09:52", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance []", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": [], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [0.11799996718764305, 0.0743749551475048, 0.05408300785347819, 0.04170899046584964], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:52", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance ['quickfix']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": ["quickfix"], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [0.16474997391924262, 0.10470801498740911, 0.11637498391792178, 0.09270902955904603], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:52", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance ['refactor.extract']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": ["refactor.extract"], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [0.11237501166760921, 0.11420802911743522, 0.08416594937443733, 0.15366700245067477], "status": "ok", "result_count": 1, "ts": "2026-09-09T01:09:52", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance ['refactor.inline']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": ["refactor.inline"], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [0.07387500954791903, 0.10183302219957113, 0.06145797669887543, 0.056165968999266624], "status": "ok", "result_count": 1, "ts": "2026-09-09T01:09:52", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance ['refactor.rewrite.lucisv.ports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": ["refactor.rewrite.lucisv.ports"], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [2.856415987480432, 2.6895839837379754, 2.868750016205013, 2.9005000251345336], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:52", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-reg-instance ['source.organizeImports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "only": ["source.organizeImports"], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [0.08145900210365653, 0.05520798731595278, 0.044791027903556824, 0.03716698847711086], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:52", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment None", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": null, "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [1.2475409894250333, 0.43991697020828724, 0.2523339935578406, 0.21608301904052496], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:55", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment []", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": [], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [0.08662499021738768, 0.06312498589977622, 0.06245903205126524, 0.055582961067557335], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:55", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment ['quickfix']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": ["quickfix"], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [0.18845894373953342, 0.14116702368482947, 0.1670410274527967, 0.15691597945988178], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:55", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment ['refactor.extract']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.extract"], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [0.12037501437589526, 0.08174998220056295, 0.05562498699873686, 0.05724997026845813], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:55", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment ['refactor.inline']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.inline"], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [0.07424998329952359, 0.04620797699317336, 0.06983400089666247, 0.05783297820016742], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:55", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment ['refactor.rewrite.lucisv.ports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.rewrite.lucisv.ports"], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [0.059083045925945044, 0.04016701132059097, 0.09741599205881357, 0.04087499110028148], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:55", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "aes-core-comment ['source.organizeImports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_core.sv", "position": {"line": 0, "character": 2}, "only": ["source.organizeImports"], "load": [5.20263671875, 6.8203125, 6.7197265625], "ms": [0.10295899119228125, 0.06287498399615288, 0.05124998278915882, 0.03937497967854142], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:55", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment None", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": null, "load": [5.02587890625, 6.7568359375, 6.69775390625], "ms": [1.0873330174945295, 0.7634589564986527, 0.6050000083632767, 0.433207955211401], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:58", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment []", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": [], "load": [5.02587890625, 6.7568359375, 6.69775390625], "ms": [0.1058329944498837, 0.08004199480637908, 0.056334014516323805, 0.0527920201420784], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:58", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment ['quickfix']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": ["quickfix"], "load": [5.02587890625, 6.7568359375, 6.69775390625], "ms": [0.2137920237146318, 0.18258305499330163, 0.15999999595806003, 0.17479195958003402], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:58", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment ['refactor.extract']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.extract"], "load": [5.02587890625, 6.7568359375, 6.69775390625], "ms": [0.07766601629555225, 0.05858403164893389, 0.054708041716367006, 0.07137499051168561], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:58", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment ['refactor.inline']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.inline"], "load": [5.02587890625, 6.7568359375, 6.69775390625], "ms": [0.07000000914558768, 0.07470801938325167, 0.06466597551479936, 0.052292016334831715], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:58", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment ['refactor.rewrite.lucisv.ports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.rewrite.lucisv.ports"], "load": [5.02587890625, 6.7568359375, 6.69775390625], "ms": [0.0688339932821691, 0.05204096669331193, 0.05183299072086811, 0.0636249897070229], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:58", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "spi-comment ['source.organizeImports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/spi_device/rtl/spi_device.sv", "position": {"line": 0, "character": 2}, "only": ["source.organizeImports"], "load": [5.02587890625, 6.7568359375, 6.69775390625], "ms": [0.05641701864078641, 0.08274998981505632, 0.2233749837614596, 0.203792005777359], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:09:58", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment None", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": null, "load": [4.86328125, 6.6943359375, 6.67578125], "ms": [2.0860839867964387, 0.48016704386100173, 0.2994579845108092, 0.316707999445498], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:10:02", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment []", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": [], "load": [4.86328125, 6.6943359375, 6.67578125], "ms": [0.09029201464727521, 0.07112504681572318, 0.21000002743676305, 0.11354201706126332], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:10:02", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment ['quickfix']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": ["quickfix"], "load": [4.86328125, 6.6943359375, 6.67578125], "ms": [0.21208403632044792, 0.18095801351591945, 0.20987499738112092, 0.22983300732448697], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:10:02", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment ['refactor.extract']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.extract"], "load": [4.86328125, 6.6943359375, 6.67578125], "ms": [0.06600003689527512, 0.10249996557831764, 0.20412495359778404, 0.10166695574298501], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:10:02", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment ['refactor.inline']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.inline"], "load": [4.86328125, 6.6943359375, 6.67578125], "ms": [0.057375000324100256, 0.05366699770092964, 0.06616703467443585, 0.0541660119779408], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:10:02", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment ['refactor.rewrite.lucisv.ports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": ["refactor.rewrite.lucisv.ports"], "load": [4.86328125, 6.6943359375, 6.67578125], "ms": [0.17104099970310926, 0.07899996126070619, 0.06683298852294683, 0.0675840419717133], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:10:02", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerkinds", "row": "pinmux-comment ['source.organizeImports']", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "only": ["source.organizeImports"], "load": [4.86328125, 6.6943359375, 6.67578125], "ms": [0.04795799031853676, 0.04116696072742343, 0.044832995627075434, 0.04008400719612837], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:10:02", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerqueue", "row": "pinmux comment -> aes definition, pipeline 1", "ms": [0.8687080116942525, 0.8434589835815132], "leader_ms": 0.8687080116942525, "follower_ms": 0.8434589835815132, "status": "ok", "message": null, "result_count": 0, "follower_result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "note": "ms is [leader, follower], not repeats", "ts": "2026-09-09T01:10:05", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerqueue", "row": "pinmux comment -> aes definition, pipeline 2", "ms": [0.28304196894168854, 0.2654170384630561], "leader_ms": 0.28304196894168854, "follower_ms": 0.2654170384630561, "status": "ok", "message": null, "result_count": 0, "follower_result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "note": "ms is [leader, follower], not repeats", "ts": "2026-09-09T01:10:05", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerqueue", "row": "pinmux comment -> aes definition, pipeline 3", "ms": [0.3007500199601054, 0.2912500058300793], "leader_ms": 0.3007500199601054, "follower_ms": 0.2912500058300793, "status": "ok", "message": null, "result_count": 0, "follower_result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "note": "ms is [leader, follower], not repeats", "ts": "2026-09-09T01:10:05", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerqueue", "row": "pinmux comment -> aes definition, pipeline 1", "ms": [27.79579203343019, 27.77458296623081], "leader_ms": 27.79579203343019, "follower_ms": 27.77458296623081, "status": "ok", "message": null, "result_count": 0, "follower_result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "note": "ms is [leader, follower], not repeats", "ts": "2026-09-09T01:10:10", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerqueue", "row": "pinmux comment -> aes definition, pipeline 2", "ms": [24.377333000302315, 24.367875012103468], "leader_ms": 24.377333000302315, "follower_ms": 24.367875012103468, "status": "ok", "message": null, "result_count": 0, "follower_result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "note": "ms is [leader, follower], not repeats", "ts": "2026-09-09T01:10:10", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offerqueue", "row": "pinmux comment -> aes definition, pipeline 3", "ms": [24.435000028461218, 24.425624986179173], "leader_ms": 24.435000028461218, "follower_ms": 24.425624986179173, "status": "ok", "message": null, "result_count": 0, "follower_result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "note": "ms is [leader, follower], not repeats", "ts": "2026-09-09T01:10:10", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "pinmux-comment, first offer after didChange", "ms": [140.83441701950505, 137.8427500021644, 134.88454197067767], "status": "ok", "message": null, "result_count": 0, "result_counts": [0, 0, 0], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "load": [5.9599609375, 6.86865234375, 6.7373046875], "note": "each try is the first codeAction after its own didChange: the document is rebuilt, so nothing from the previous revision can be reused", "ts": "2026-09-09T01:10:15", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "pinmux-comment, repeated offer on the unchanged buffer", "titles": [], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "load": [5.9599609375, 6.86865234375, 6.7373046875], "note": "the same cursor and session as the row above, with no didChange between the tries", "ms": [24.3462499929592, 24.63841700227931, 23.784333025105298, 23.86854198994115], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:10:15", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "aes-reg-instance, first offer after didChange", "ms": [7.0216250023804605, 5.721417022868991, 7.452749996446073], "status": "ok", "message": null, "result_count": 2, "result_counts": [2, 2, 2], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "load": [5.802734375, 6.82080078125, 6.72119140625], "note": "each try is the first codeAction after its own didChange: the document is rebuilt, so nothing from the previous revision can be reused", "ts": "2026-09-09T01:10:18", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "aes-reg-instance, repeated offer on the unchanged buffer", "titles": ["lucisv: extract selection into module\u2026", "lucisv: inline `aes_reg_top` here"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "load": [5.802734375, 6.82080078125, 6.72119140625], "note": "the same cursor and session as the row above, with no didChange between the tries", "ms": [5.01037499634549, 4.5472909696400166, 4.70308301737532, 4.0991660207509995], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:10:18", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "tb-comment, first offer after didChange", "ms": [1.0847499943338335, 0.8207920473068953, 0.7546659908257425], "status": "ok", "message": null, "result_count": 0, "result_counts": [0, 0, 0], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "load": [5.978515625, 6.84033203125, 6.728515625], "note": "each try is the first codeAction after its own didChange: the document is rebuilt, so nothing from the previous revision can be reused", "ts": "2026-09-09T01:10:22", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "tb-comment, repeated offer on the unchanged buffer", "titles": [], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "load": [5.978515625, 6.84033203125, 6.728515625], "note": "the same cursor and session as the row above, with no didChange between the tries", "ms": [0.44724997133016586, 0.3376249806024134, 0.2398340147919953, 0.2550830249674618], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:10:22", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "pinmux-comment, first offer after didChange", "ms": [116.39108299277723, 113.5977499652654, 112.88149998290464], "status": "ok", "message": null, "result_count": 0, "result_counts": [0, 0, 0], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "load": [5.89990234375, 6.8095703125, 6.71826171875], "note": "each try is the first codeAction after its own didChange: the document is rebuilt, so nothing from the previous revision can be reused", "ts": "2026-09-09T01:10:26", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "pinmux-comment, repeated offer on the unchanged buffer", "titles": [], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/top_darjeeling/ip_autogen/pinmux/rtl/pinmux_reg_top.sv", "position": {"line": 0, "character": 2}, "load": [5.89990234375, 6.8095703125, 6.71826171875], "note": "the same cursor and session as the row above, with no didChange between the tries", "ms": [0.4027499817311764, 0.2316250465810299, 0.2471250481903553, 0.18354103667661548], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:10:26", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "aes-reg-instance, first offer after didChange", "ms": [6.09770801384002, 8.55158397462219, 5.045500001870096], "status": "ok", "message": null, "result_count": 2, "result_counts": [2, 2, 2], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "load": [5.89990234375, 6.8095703125, 6.71826171875], "note": "each try is the first codeAction after its own didChange: the document is rebuilt, so nothing from the previous revision can be reused", "ts": "2026-09-09T01:10:29", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "aes-reg-instance, repeated offer on the unchanged buffer", "titles": ["lucisv: extract selection into module\u2026", "lucisv: inline `aes_reg_top` here"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 103, "character": 2}, "load": [5.89990234375, 6.8095703125, 6.71826171875], "note": "the same cursor and session as the row above, with no didChange between the tries", "ms": [4.244667012244463, 3.879832976963371, 3.9809580193832517, 3.8547919830307364], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:10:29", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "tb-comment, first offer after didChange", "ms": [2.404582977760583, 0.9817919926717877, 0.8292499696835876], "status": "ok", "message": null, "result_count": 0, "result_counts": [0, 0, 0], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "load": [5.74755859375, 6.7626953125, 6.7021484375], "note": "each try is the first codeAction after its own didChange: the document is rebuilt, so nothing from the previous revision can be reused", "ts": "2026-09-09T01:10:32", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "offeredit", "row": "tb-comment, repeated offer on the unchanged buffer", "titles": [], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/dv/tb/tb.sv", "position": {"line": 0, "character": 2}, "load": [5.74755859375, 6.7626953125, 6.7021484375], "note": "the same cursor and session as the row above, with no didChange between the tries", "ms": [0.17487496370449662, 0.15174999134615064, 0.19766698824241757, 0.1948749995790422], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:10:32", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "tail: state_q -> state_q_x", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "b39defb212655f29e68c0e15b88dda405d2779a24c4b522a1798b6f44c9a04f7", "peak_rss_kib": 610208.0, "file": "hw/ip/entropy_src/rtl/entropy_src_main_sm.sv", "new_name": "state_q_x", "titles": ["entropy_src_core.sv", "entropy_src_main_sm.sv"], "note": "{\"rungs_request\": 1, \"rungs_declaration\": 95, \"rungs_reference\": 122, \"rungs_instantiation\": 19, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 1, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 113, \"indirect_instantiation\": 19, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 1, \"verify_total\": 73.3, \"verify_tokens\": 4.2, \"verify_watched\": 106, \"verify_watched_bytes\": 1919528, \"verify_before\": 14.4, \"verify_rebuild\": 37.5, \"verify_after\": 7.9, \"verify_checks\": 0.0, \"parses_index\": 135, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 2, \"parses_after\": 0, \"index_lead\": 0.4, \"index_kept\": 107.3, \"index_other\": 0.0, \"index_reused\": 31.4, \"index_merge\": 23.5, \"index_kept_files\": 134, \"index_kept_bytes\": 2892477, \"index_other_files\": 103, \"index_other_bytes\": 1652269, \"index_reused_files\": 238, \"index_reused_bytes\": 4554326, \"warnings_defines\": 1.9, \"warnings_macro_uses\": 42.4, \"warnings_sva\": 2.6, \"warnings_unfinished\": 0.4, \"warnings_unaccounted\": 0.1, \"warnings_scanned\": 135, \"select\": 14.1, \"selected\": 238, \"fallback\": false, \"bytes\": 4554326, \"edited\": 2, \"index\": 163.0, \"locate\": 0.0, \"edits\": 11.6, \"warnings\": 50.5, \"parses\": 137}", "ms": [359.1919590253383, 327.24062498891726, 324.5032500126399, 324.597500031814], "status": "ok", "result_count": 1, "edits": 5, "files": 2, "created": 0, "trace_rungs_request": 1, "trace_rungs_declaration": 95, "trace_rungs_reference": 122, "trace_rungs_instantiation": 19, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 1, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 113, "trace_indirect_instantiation": 19, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 1, "trace_verify_total": 73.3, "trace_verify_tokens": 4.2, "trace_verify_watched": 106, "trace_verify_watched_bytes": 1919528, "trace_verify_before": 14.4, "trace_verify_rebuild": 37.5, "trace_verify_after": 7.9, "trace_verify_checks": 0.0, "trace_parses_index": 135, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 2, "trace_parses_after": 0, "trace_index_lead": 0.4, "trace_index_kept": 107.3, "trace_index_other": 0.0, "trace_index_reused": 31.4, "trace_index_merge": 23.5, "trace_index_kept_files": 134, "trace_index_kept_bytes": 2892477, "trace_index_other_files": 103, "trace_index_other_bytes": 1652269, "trace_index_reused_files": 238, "trace_index_reused_bytes": 4554326, "trace_warnings_defines": 1.9, "trace_warnings_macro_uses": 42.4, "trace_warnings_sva": 2.6, "trace_warnings_unfinished": 0.4, "trace_warnings_unaccounted": 0.1, "trace_warnings_scanned": 135, "trace_select": 14.1, "trace_selected": 238, "trace_fallback": false, "trace_bytes": 4554326, "trace_edited": 2, "trace_index": 163.0, "trace_locate": 0.0, "trace_edits": 11.6, "trace_warnings": 50.5, "trace_parses": 137, "ts": "2026-09-09T01:10:40", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "ordinary: aes -> aes_renamed", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "fa7e31c78382176d5f96d661228ce82328df8bc77bd6d8575dd38717814cb26c", "peak_rss_kib": 459808.0, "file": "hw/ip/aes/dv/tb/tb.sv", "new_name": "aes_renamed", "titles": ["aes.sv", "aes_bind.sv", "aes_cov_bind.sv", "aes_tb.sv", "aes_wrap.sv", "darjeeling_pd_main.sv", "earlgrey_pd_main.sv", "englishbreakfast_pd_main.sv", "tb.sv"], "note": "{\"rungs_request\": 1, \"rungs_declaration\": 4, \"rungs_reference\": 8, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 0, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 1, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 0, \"verify_total\": 46.8, \"verify_tokens\": 15.1, \"verify_watched\": 12, \"verify_watched_bytes\": 398160, \"verify_before\": 4.6, \"verify_rebuild\": 22.7, \"verify_after\": 2.9, \"verify_checks\": 0.0, \"parses_index\": 13, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 9, \"parses_after\": 0, \"index_lead\": 0.2, \"index_kept\": 16.1, \"index_other\": 0.0, \"index_reused\": 3.6, \"index_merge\": 2.6, \"index_kept_files\": 12, \"index_kept_bytes\": 396735, \"index_other_files\": 0, \"index_other_bytes\": 0, \"index_reused_files\": 13, \"index_reused_bytes\": 400051, \"warnings_defines\": 0.2, \"warnings_macro_uses\": 7.3, \"warnings_sva\": 0.2, \"warnings_unfinished\": 0.0, \"warnings_unaccounted\": 0.1, \"warnings_scanned\": 13, \"select\": 8.2, \"selected\": 13, \"fallback\": false, \"bytes\": 400051, \"edited\": 9, \"index\": 22.6, \"locate\": 0.1, \"edits\": 2.4, \"warnings\": 8.3, \"parses\": 22}", "ms": [102.21650003222749, 93.63725001458079, 93.02333300001919, 91.25554200727493], "status": "ok", "result_count": 1, "edits": 14, "files": 9, "created": 0, "trace_rungs_request": 1, "trace_rungs_declaration": 4, "trace_rungs_reference": 8, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 0, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 1, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 0, "trace_verify_total": 46.8, "trace_verify_tokens": 15.1, "trace_verify_watched": 12, "trace_verify_watched_bytes": 398160, "trace_verify_before": 4.6, "trace_verify_rebuild": 22.7, "trace_verify_after": 2.9, "trace_verify_checks": 0.0, "trace_parses_index": 13, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 9, "trace_parses_after": 0, "trace_index_lead": 0.2, "trace_index_kept": 16.1, "trace_index_other": 0.0, "trace_index_reused": 3.6, "trace_index_merge": 2.6, "trace_index_kept_files": 12, "trace_index_kept_bytes": 396735, "trace_index_other_files": 0, "trace_index_other_bytes": 0, "trace_index_reused_files": 13, "trace_index_reused_bytes": 400051, "trace_warnings_defines": 0.2, "trace_warnings_macro_uses": 7.3, "trace_warnings_sva": 0.2, "trace_warnings_unfinished": 0.0, "trace_warnings_unaccounted": 0.1, "trace_warnings_scanned": 13, "trace_select": 8.2, "trace_selected": 13, "trace_fallback": false, "trace_bytes": 400051, "trace_edited": 9, "trace_index": 22.6, "trace_locate": 0.1, "trace_edits": 2.4, "trace_warnings": 8.3, "trace_parses": 22, "ts": "2026-09-09T01:10:44", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "unique internal: cipher_alert -> cipher_alert_x", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "5f53e977da59093f59ac3153a59036de64ff2fc041017271d8ebbd9ba41ba1e1", "peak_rss_kib": 434560.0, "file": "hw/ip/aes/rtl/aes_core.sv", "new_name": "cipher_alert_x", "titles": ["aes_core.sv"], "note": "{\"rungs_request\": 1, \"rungs_declaration\": 0, \"rungs_reference\": 2, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 1, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 2, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 1, \"verify_total\": 5.4, \"verify_tokens\": 1.9, \"verify_watched\": 1, \"verify_watched_bytes\": 48933, \"verify_before\": 0.5, \"verify_rebuild\": 2.7, \"verify_after\": 0.2, \"verify_checks\": 0.0, \"parses_index\": 1, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 1, \"parses_after\": 0, \"index_lead\": 2.0, \"index_kept\": 0.0, \"index_other\": 0.0, \"index_reused\": 0.5, \"index_merge\": 0.3, \"index_kept_files\": 0, \"index_kept_bytes\": 0, \"index_other_files\": 3, \"index_other_bytes\": 19542, \"index_reused_files\": 4, \"index_reused_bytes\": 68475, \"warnings_defines\": 0.0, \"warnings_macro_uses\": 0.8, \"warnings_sva\": 0.0, \"warnings_unfinished\": 0.0, \"warnings_unaccounted\": 0.0, \"warnings_scanned\": 1, \"select\": 6.6, \"selected\": 4, \"fallback\": false, \"bytes\": 68475, \"edited\": 1, \"index\": 2.8, \"locate\": 0.2, \"edits\": 0.0, \"warnings\": 0.9, \"parses\": 2}", "ms": [28.592207992915064, 21.334541030228138, 18.542082980275154, 16.863790981005877], "status": "ok", "result_count": 1, "edits": 3, "files": 1, "created": 0, "trace_rungs_request": 1, "trace_rungs_declaration": 0, "trace_rungs_reference": 2, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 1, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 2, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 1, "trace_verify_total": 5.4, "trace_verify_tokens": 1.9, "trace_verify_watched": 1, "trace_verify_watched_bytes": 48933, "trace_verify_before": 0.5, "trace_verify_rebuild": 2.7, "trace_verify_after": 0.2, "trace_verify_checks": 0.0, "trace_parses_index": 1, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 1, "trace_parses_after": 0, "trace_index_lead": 2.0, "trace_index_kept": 0.0, "trace_index_other": 0.0, "trace_index_reused": 0.5, "trace_index_merge": 0.3, "trace_index_kept_files": 0, "trace_index_kept_bytes": 0, "trace_index_other_files": 3, "trace_index_other_bytes": 19542, "trace_index_reused_files": 4, "trace_index_reused_bytes": 68475, "trace_warnings_defines": 0.0, "trace_warnings_macro_uses": 0.8, "trace_warnings_sva": 0.0, "trace_warnings_unfinished": 0.0, "trace_warnings_unaccounted": 0.0, "trace_warnings_scanned": 1, "trace_select": 6.6, "trace_selected": 4, "trace_fallback": false, "trace_bytes": 68475, "trace_edited": 1, "trace_index": 2.8, "trace_locate": 0.2, "trace_edits": 0.0, "trace_warnings": 0.9, "trace_parses": 2, "ts": "2026-09-09T01:10:47", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "common port: clk_i -> clk_ix", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "31aadc134628bf567da7423a8fc20dda98a76fec4abd9ffa6392f80d4923420a", "peak_rss_kib": 1863968.0, "file": "hw/ip/entropy_src/rtl/entropy_src_main_sm.sv", "new_name": "clk_ix", "titles": ["entropy_src_core.sv", "entropy_src_main_sm.sv"], "note": "{\"rungs_request\": 0, \"rungs_declaration\": 0, \"rungs_reference\": 0, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 0, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 0, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 0, \"verify_total\": 719.3, \"verify_tokens\": 4.1, \"verify_watched\": 1200, \"verify_watched_bytes\": 19257967, \"verify_before\": 218.7, \"verify_rebuild\": 273.2, \"verify_after\": 138.0, \"verify_checks\": 0.0, \"parses_index\": 1249, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 2, \"parses_after\": 0, \"index_lead\": 0.4, \"index_kept\": 859.0, \"index_other\": 0.0, \"index_reused\": 222.0, \"index_merge\": 202.7, \"index_kept_files\": 1248, \"index_kept_bytes\": 19867243, \"index_other_files\": 2727, \"index_other_bytes\": 15936487, \"index_reused_files\": 3976, \"index_reused_bytes\": 35813310, \"warnings_defines\": 13.4, \"warnings_macro_uses\": 374.3, \"warnings_sva\": 15.3, \"warnings_unfinished\": 4.0, \"warnings_unaccounted\": 0.2, \"warnings_scanned\": 1249, \"select\": 254.2, \"selected\": 3976, \"fallback\": true, \"bytes\": 35813310, \"edited\": 2, \"index\": 1289.0, \"locate\": 0.1, \"edits\": 100.4, \"warnings\": 434.9, \"parses\": 1251}", "ms": [3049.7538750059903, 2961.388874973636, 2883.6807499756105, 2881.177250004839], "status": "ok", "result_count": 1, "edits": 2, "files": 2, "created": 0, "trace_rungs_request": 0, "trace_rungs_declaration": 0, "trace_rungs_reference": 0, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 0, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 0, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 0, "trace_verify_total": 719.3, "trace_verify_tokens": 4.1, "trace_verify_watched": 1200, "trace_verify_watched_bytes": 19257967, "trace_verify_before": 218.7, "trace_verify_rebuild": 273.2, "trace_verify_after": 138.0, "trace_verify_checks": 0.0, "trace_parses_index": 1249, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 2, "trace_parses_after": 0, "trace_index_lead": 0.4, "trace_index_kept": 859.0, "trace_index_other": 0.0, "trace_index_reused": 222.0, "trace_index_merge": 202.7, "trace_index_kept_files": 1248, "trace_index_kept_bytes": 19867243, "trace_index_other_files": 2727, "trace_index_other_bytes": 15936487, "trace_index_reused_files": 3976, "trace_index_reused_bytes": 35813310, "trace_warnings_defines": 13.4, "trace_warnings_macro_uses": 374.3, "trace_warnings_sva": 15.3, "trace_warnings_unfinished": 4.0, "trace_warnings_unaccounted": 0.2, "trace_warnings_scanned": 1249, "trace_select": 254.2, "trace_selected": 3976, "trace_fallback": true, "trace_bytes": 35813310, "trace_edited": 2, "trace_index": 1289.0, "trace_locate": 0.1, "trace_edits": 100.4, "trace_warnings": 434.9, "trace_parses": 1251, "ts": "2026-09-09T01:11:02", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "conflict: state_q -> state_d", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "96f32d4243b1dc541a3e1e90a29a077520688efcc3f8e6c278c5c5f83cdb146b", "peak_rss_kib": 527264.0, "file": "hw/ip/entropy_src/rtl/entropy_src_main_sm.sv", "new_name": "state_d", "titles": [], "note": "{\"rungs_request\": 1, \"rungs_declaration\": 98, \"rungs_reference\": 122, \"rungs_instantiation\": 19, \"rungs_macro\": 0, \"rungs_speller\": 1, \"rungs_open\": 1, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 112, \"indirect_instantiation\": 19, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 1, \"verify_total\": 67.4, \"verify_tokens\": 4.3, \"verify_watched\": 111, \"verify_watched_bytes\": 1962908, \"verify_before\": 14.6, \"verify_rebuild\": 38.4, \"verify_after\": 1.0, \"verify_checks\": 0.0, \"parses_index\": 142, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 2, \"parses_after\": 0, \"index_lead\": 0.3, \"index_kept\": 112.1, \"index_other\": 0.0, \"index_reused\": 31.7, \"index_merge\": 24.0, \"index_kept_files\": 141, \"index_kept_bytes\": 2988561, \"index_other_files\": 100, \"index_other_bytes\": 1572093, \"index_reused_files\": 242, \"index_reused_bytes\": 4570234, \"warnings_defines\": 0.0, \"warnings_macro_uses\": 0.0, \"warnings_sva\": 0.0, \"warnings_unfinished\": 0.0, \"warnings_unaccounted\": 0.0, \"warnings_scanned\": 0, \"select\": 14.9, \"selected\": 242, \"fallback\": false, \"bytes\": 4570234, \"edited\": 2, \"index\": 168.6, \"locate\": 0.0, \"edits\": 12.5, \"warnings\": 0.0, \"parses\": 144}", "ms": [287.52633300609887, 275.6854579783976, 269.93208297062665, 272.1635830239393], "status": "refused", "result_count": 0, "message": "lucisv: renaming `state_q` to `state_d` would change what `state_d` means in entropy_src_core.sv; the rename was abandoned.", "edits": 0, "files": 0, "created": 0, "trace_rungs_request": 1, "trace_rungs_declaration": 98, "trace_rungs_reference": 122, "trace_rungs_instantiation": 19, "trace_rungs_macro": 0, "trace_rungs_speller": 1, "trace_rungs_open": 1, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 112, "trace_indirect_instantiation": 19, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 1, "trace_verify_total": 67.4, "trace_verify_tokens": 4.3, "trace_verify_watched": 111, "trace_verify_watched_bytes": 1962908, "trace_verify_before": 14.6, "trace_verify_rebuild": 38.4, "trace_verify_after": 1.0, "trace_verify_checks": 0.0, "trace_parses_index": 142, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 2, "trace_parses_after": 0, "trace_index_lead": 0.3, "trace_index_kept": 112.1, "trace_index_other": 0.0, "trace_index_reused": 31.7, "trace_index_merge": 24.0, "trace_index_kept_files": 141, "trace_index_kept_bytes": 2988561, "trace_index_other_files": 100, "trace_index_other_bytes": 1572093, "trace_index_reused_files": 242, "trace_index_reused_bytes": 4570234, "trace_warnings_defines": 0.0, "trace_warnings_macro_uses": 0.0, "trace_warnings_sva": 0.0, "trace_warnings_unfinished": 0.0, "trace_warnings_unaccounted": 0.0, "trace_warnings_scanned": 0, "trace_select": 14.9, "trace_selected": 242, "trace_fallback": false, "trace_bytes": 4570234, "trace_edited": 2, "trace_index": 168.6, "trace_locate": 0.0, "trace_edits": 12.5, "trace_warnings": 0.0, "trace_parses": 144, "ts": "2026-09-09T01:11:07", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "new name many uses spell: cipher_alert -> clk_i", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "96f32d4243b1dc541a3e1e90a29a077520688efcc3f8e6c278c5c5f83cdb146b", "peak_rss_kib": 1699984.0, "file": "hw/ip/aes/rtl/aes_core.sv", "new_name": "clk_i", "titles": [], "note": "{\"rungs_request\": 0, \"rungs_declaration\": 0, \"rungs_reference\": 0, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 0, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 0, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 0, \"verify_total\": 661.5, \"verify_tokens\": 1.7, \"verify_watched\": 1200, \"verify_watched_bytes\": 19257967, \"verify_before\": 310.8, \"verify_rebuild\": 271.7, \"verify_after\": 3.5, \"verify_checks\": 0.0, \"parses_index\": 1249, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 1, \"parses_after\": 0, \"index_lead\": 2.3, \"index_kept\": 861.1, \"index_other\": 0.0, \"index_reused\": 222.8, \"index_merge\": 201.7, \"index_kept_files\": 1248, \"index_kept_bytes\": 19827890, \"index_other_files\": 2727, \"index_other_bytes\": 15936487, \"index_reused_files\": 3976, \"index_reused_bytes\": 35813310, \"warnings_defines\": 0.0, \"warnings_macro_uses\": 0.0, \"warnings_sva\": 0.0, \"warnings_unfinished\": 0.0, \"warnings_unaccounted\": 0.0, \"warnings_scanned\": 0, \"select\": 264.2, \"selected\": 3976, \"fallback\": true, \"bytes\": 35813310, \"edited\": 1, \"index\": 1294.3, \"locate\": 0.3, \"edits\": 2.2, \"warnings\": 0.0, \"parses\": 1250}", "ms": [2459.582125011366, 2338.0812499672174, 2282.9822920029983, 2284.597833000589], "status": "refused", "result_count": 0, "message": "lucisv: renaming `cipher_alert` to `clk_i` would change what the set of declarations means in aes_core.sv; the rename was abandoned.", "edits": 0, "files": 0, "created": 0, "trace_rungs_request": 0, "trace_rungs_declaration": 0, "trace_rungs_reference": 0, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 0, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 0, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 0, "trace_verify_total": 661.5, "trace_verify_tokens": 1.7, "trace_verify_watched": 1200, "trace_verify_watched_bytes": 19257967, "trace_verify_before": 310.8, "trace_verify_rebuild": 271.7, "trace_verify_after": 3.5, "trace_verify_checks": 0.0, "trace_parses_index": 1249, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 1, "trace_parses_after": 0, "trace_index_lead": 2.3, "trace_index_kept": 861.1, "trace_index_other": 0.0, "trace_index_reused": 222.8, "trace_index_merge": 201.7, "trace_index_kept_files": 1248, "trace_index_kept_bytes": 19827890, "trace_index_other_files": 2727, "trace_index_other_bytes": 15936487, "trace_index_reused_files": 3976, "trace_index_reused_bytes": 35813310, "trace_warnings_defines": 0.0, "trace_warnings_macro_uses": 0.0, "trace_warnings_sva": 0.0, "trace_warnings_unfinished": 0.0, "trace_warnings_unaccounted": 0.0, "trace_warnings_scanned": 0, "trace_select": 264.2, "trace_selected": 3976, "trace_fallback": true, "trace_bytes": 35813310, "trace_edited": 1, "trace_index": 1294.3, "trace_locate": 0.3, "trace_edits": 2.2, "trace_warnings": 0.0, "trace_parses": 1250, "ts": "2026-09-09T01:11:20", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "duplicate module: rstmgr_por -> rstmgr_por_x", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "96f32d4243b1dc541a3e1e90a29a077520688efcc3f8e6c278c5c5f83cdb146b", "peak_rss_kib": 733184.0, "file": "hw/top_darjeeling/ip_autogen/rstmgr/rtl/rstmgr.sv", "new_name": "rstmgr_por_x", "titles": [], "note": "{\"rungs_request\": 0, \"rungs_declaration\": 0, \"rungs_reference\": 0, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 0, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 0, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 0, \"verify_total\": 0.0, \"verify_tokens\": 0.0, \"verify_watched\": 0, \"verify_watched_bytes\": 0, \"verify_before\": 0.0, \"verify_rebuild\": 0.0, \"verify_after\": 0.0, \"verify_checks\": 0.0, \"parses_index\": 14, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 0, \"parses_after\": 0, \"index_lead\": 1.3, \"index_kept\": 4.7, \"index_other\": 0.0, \"index_reused\": 220.1, \"index_merge\": 203.2, \"index_kept_files\": 13, \"index_kept_bytes\": 87644, \"index_other_files\": 3962, \"index_other_bytes\": 35700552, \"index_reused_files\": 3976, \"index_reused_bytes\": 35813310, \"warnings_defines\": 0.0, \"warnings_macro_uses\": 0.0, \"warnings_sva\": 0.0, \"warnings_unfinished\": 0.0, \"warnings_unaccounted\": 0.0, \"warnings_scanned\": 0, \"select\": 259.7, \"selected\": 3976, \"fallback\": true, \"bytes\": 35813310, \"edited\": 0, \"index\": 435.7, \"locate\": 0.3, \"edits\": 0.0, \"warnings\": 0.0, \"parses\": 14}", "ms": [786.3199580460787, 781.5626250230707, 754.0115410229191, 730.4007500060834], "status": "refused", "result_count": 0, "message": "lucisv: `rstmgr_por` is declared in more than one indexed file; lucisv will not guess which declaration this rename means.", "edits": 0, "files": 0, "created": 0, "trace_rungs_request": 0, "trace_rungs_declaration": 0, "trace_rungs_reference": 0, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 0, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 0, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 0, "trace_verify_total": 0.0, "trace_verify_tokens": 0.0, "trace_verify_watched": 0, "trace_verify_watched_bytes": 0, "trace_verify_before": 0.0, "trace_verify_rebuild": 0.0, "trace_verify_after": 0.0, "trace_verify_checks": 0.0, "trace_parses_index": 14, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 0, "trace_parses_after": 0, "trace_index_lead": 1.3, "trace_index_kept": 4.7, "trace_index_other": 0.0, "trace_index_reused": 220.1, "trace_index_merge": 203.2, "trace_index_kept_files": 13, "trace_index_kept_bytes": 87644, "trace_index_other_files": 3962, "trace_index_other_bytes": 35700552, "trace_index_reused_files": 3976, "trace_index_reused_bytes": 35813310, "trace_warnings_defines": 0.0, "trace_warnings_macro_uses": 0.0, "trace_warnings_sva": 0.0, "trace_warnings_unfinished": 0.0, "trace_warnings_unaccounted": 0.0, "trace_warnings_scanned": 0, "trace_select": 259.7, "trace_selected": 3976, "trace_fallback": true, "trace_bytes": 35813310, "trace_edited": 0, "trace_index": 435.7, "trace_locate": 0.3, "trace_edits": 0.0, "trace_warnings": 0.0, "trace_parses": 14, "ts": "2026-09-09T01:11:26", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "no symbol: whole scope then refuse", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "peak_rss_kib": 427232.0, "file": "hw/ip/aes/dv/tb/tb.sv", "note": "{\"rungs_request\": 0, \"rungs_declaration\": 0, \"rungs_reference\": 0, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 0, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 0, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 0, \"verify_total\": 0.0, \"verify_tokens\": 0.0, \"verify_watched\": 0, \"verify_watched_bytes\": 0, \"verify_before\": 0.0, \"verify_rebuild\": 0.0, \"verify_after\": 0.0, \"verify_checks\": 0.0, \"parses_index\": 0, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 0, \"parses_after\": 0, \"index_lead\": 0.0, \"index_kept\": 0.0, \"index_other\": 0.0, \"index_reused\": 0.0, \"index_merge\": 0.0, \"index_kept_files\": 0, \"index_kept_bytes\": 0, \"index_other_files\": 0, \"index_other_bytes\": 0, \"index_reused_files\": 0, \"index_reused_bytes\": 0, \"warnings_defines\": 0.0, \"warnings_macro_uses\": 0.0, \"warnings_sva\": 0.0, \"warnings_unfinished\": 0.0, \"warnings_unaccounted\": 0.0, \"warnings_scanned\": 0, \"select\": 0.0, \"selected\": 0, \"fallback\": false, \"bytes\": 0, \"edited\": 0, \"index\": 0.0, \"locate\": 0.0, \"edits\": 0.0, \"warnings\": 0.0, \"parses\": 0, \"preflight\": true}", "ms": [2.702499972656369, 0.37045800127089024, 0.19737501861527562, 0.2185420016758144], "status": "refused", "result_count": 0, "message": "lucisv: there is no symbol to rename at this position.", "trace_rungs_request": 0, "trace_rungs_declaration": 0, "trace_rungs_reference": 0, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 0, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 0, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 0, "trace_verify_total": 0.0, "trace_verify_tokens": 0.0, "trace_verify_watched": 0, "trace_verify_watched_bytes": 0, "trace_verify_before": 0.0, "trace_verify_rebuild": 0.0, "trace_verify_after": 0.0, "trace_verify_checks": 0.0, "trace_parses_index": 0, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 0, "trace_parses_after": 0, "trace_index_lead": 0.0, "trace_index_kept": 0.0, "trace_index_other": 0.0, "trace_index_reused": 0.0, "trace_index_merge": 0.0, "trace_index_kept_files": 0, "trace_index_kept_bytes": 0, "trace_index_other_files": 0, "trace_index_other_bytes": 0, "trace_index_reused_files": 0, "trace_index_reused_bytes": 0, "trace_warnings_defines": 0.0, "trace_warnings_macro_uses": 0.0, "trace_warnings_sva": 0.0, "trace_warnings_unfinished": 0.0, "trace_warnings_unaccounted": 0.0, "trace_warnings_scanned": 0, "trace_select": 0.0, "trace_selected": 0, "trace_fallback": false, "trace_bytes": 0, "trace_edited": 0, "trace_index": 0.0, "trace_locate": 0.0, "trace_edits": 0.0, "trace_warnings": 0.0, "trace_parses": 0, "trace_preflight": true, "ts": "2026-09-09T01:11:29", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "tail: state_q -> state_q_x", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "b39defb212655f29e68c0e15b88dda405d2779a24c4b522a1798b6f44c9a04f7", "peak_rss_kib": 614656.0, "file": "hw/ip/entropy_src/rtl/entropy_src_main_sm.sv", "new_name": "state_q_x", "titles": ["entropy_src_core.sv", "entropy_src_main_sm.sv"], "note": "{\"rungs_request\": 1, \"rungs_declaration\": 95, \"rungs_reference\": 122, \"rungs_instantiation\": 19, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 1, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 113, \"indirect_instantiation\": 19, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 1, \"verify_total\": 74.4, \"verify_tokens\": 4.3, \"verify_watched\": 106, \"verify_watched_bytes\": 1919528, \"verify_before\": 14.2, \"verify_rebuild\": 38.4, \"verify_after\": 7.9, \"verify_checks\": 0.0, \"parses_index\": 238, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 2, \"parses_after\": 0, \"select\": 13.8, \"selected\": 238, \"fallback\": false, \"bytes\": 4554326, \"edited\": 2, \"index\": 228.5, \"locate\": 0.0, \"edits\": 12.3, \"warnings\": 51.2, \"parses\": 240}", "ms": [429.2307500145398, 393.72162497602403, 391.3822500035167, 391.78733399603516], "status": "ok", "result_count": 1, "edits": 5, "files": 2, "created": 0, "trace_rungs_request": 1, "trace_rungs_declaration": 95, "trace_rungs_reference": 122, "trace_rungs_instantiation": 19, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 1, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 113, "trace_indirect_instantiation": 19, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 1, "trace_verify_total": 74.4, "trace_verify_tokens": 4.3, "trace_verify_watched": 106, "trace_verify_watched_bytes": 1919528, "trace_verify_before": 14.2, "trace_verify_rebuild": 38.4, "trace_verify_after": 7.9, "trace_verify_checks": 0.0, "trace_parses_index": 238, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 2, "trace_parses_after": 0, "trace_select": 13.8, "trace_selected": 238, "trace_fallback": false, "trace_bytes": 4554326, "trace_edited": 2, "trace_index": 228.5, "trace_locate": 0.0, "trace_edits": 12.3, "trace_warnings": 51.2, "trace_parses": 240, "ts": "2026-09-09T01:11:37", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "ordinary: aes -> aes_renamed", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "fa7e31c78382176d5f96d661228ce82328df8bc77bd6d8575dd38717814cb26c", "peak_rss_kib": 461952.0, "file": "hw/ip/aes/dv/tb/tb.sv", "new_name": "aes_renamed", "titles": ["aes.sv", "aes_bind.sv", "aes_cov_bind.sv", "aes_tb.sv", "aes_wrap.sv", "darjeeling_pd_main.sv", "earlgrey_pd_main.sv", "englishbreakfast_pd_main.sv", "tb.sv"], "note": "{\"rungs_request\": 1, \"rungs_declaration\": 4, \"rungs_reference\": 8, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 0, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 1, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 0, \"verify_total\": 47.3, \"verify_tokens\": 14.8, \"verify_watched\": 12, \"verify_watched_bytes\": 398160, \"verify_before\": 4.2, \"verify_rebuild\": 23.4, \"verify_after\": 3.2, \"verify_checks\": 0.0, \"parses_index\": 13, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 9, \"parses_after\": 0, \"select\": 8.3, \"selected\": 13, \"fallback\": false, \"bytes\": 400051, \"edited\": 9, \"index\": 22.9, \"locate\": 0.1, \"edits\": 2.3, \"warnings\": 8.4, \"parses\": 22}", "ms": [103.15541597083211, 92.31041703606024, 91.90749999834225, 91.97866701288149], "status": "ok", "result_count": 1, "edits": 14, "files": 9, "created": 0, "trace_rungs_request": 1, "trace_rungs_declaration": 4, "trace_rungs_reference": 8, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 0, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 1, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 0, "trace_verify_total": 47.3, "trace_verify_tokens": 14.8, "trace_verify_watched": 12, "trace_verify_watched_bytes": 398160, "trace_verify_before": 4.2, "trace_verify_rebuild": 23.4, "trace_verify_after": 3.2, "trace_verify_checks": 0.0, "trace_parses_index": 13, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 9, "trace_parses_after": 0, "trace_select": 8.3, "trace_selected": 13, "trace_fallback": false, "trace_bytes": 400051, "trace_edited": 9, "trace_index": 22.9, "trace_locate": 0.1, "trace_edits": 2.3, "trace_warnings": 8.4, "trace_parses": 22, "ts": "2026-09-09T01:11:41", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "unique internal: cipher_alert -> cipher_alert_x", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "5f53e977da59093f59ac3153a59036de64ff2fc041017271d8ebbd9ba41ba1e1", "peak_rss_kib": 436512.0, "file": "hw/ip/aes/rtl/aes_core.sv", "new_name": "cipher_alert_x", "titles": ["aes_core.sv"], "note": "{\"rungs_request\": 1, \"rungs_declaration\": 0, \"rungs_reference\": 2, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 1, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 2, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 1, \"verify_total\": 5.5, \"verify_tokens\": 1.9, \"verify_watched\": 1, \"verify_watched_bytes\": 48933, \"verify_before\": 0.4, \"verify_rebuild\": 2.7, \"verify_after\": 0.2, \"verify_checks\": 0.0, \"parses_index\": 4, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 1, \"parses_after\": 0, \"select\": 6.4, \"selected\": 4, \"fallback\": false, \"bytes\": 68475, \"edited\": 1, \"index\": 3.4, \"locate\": 0.2, \"edits\": 0.0, \"warnings\": 0.9, \"parses\": 5}", "ms": [34.129833977203816, 21.798916975967586, 18.88545899419114, 17.188500030897558], "status": "ok", "result_count": 1, "edits": 3, "files": 1, "created": 0, "trace_rungs_request": 1, "trace_rungs_declaration": 0, "trace_rungs_reference": 2, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 1, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 2, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 1, "trace_verify_total": 5.5, "trace_verify_tokens": 1.9, "trace_verify_watched": 1, "trace_verify_watched_bytes": 48933, "trace_verify_before": 0.4, "trace_verify_rebuild": 2.7, "trace_verify_after": 0.2, "trace_verify_checks": 0.0, "trace_parses_index": 4, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 1, "trace_parses_after": 0, "trace_select": 6.4, "trace_selected": 4, "trace_fallback": false, "trace_bytes": 68475, "trace_edited": 1, "trace_index": 3.4, "trace_locate": 0.2, "trace_edits": 0.0, "trace_warnings": 0.9, "trace_parses": 5, "ts": "2026-09-09T01:11:44", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "common port: clk_i -> clk_ix", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "31aadc134628bf567da7423a8fc20dda98a76fec4abd9ffa6392f80d4923420a", "peak_rss_kib": 1879200.0, "file": "hw/ip/entropy_src/rtl/entropy_src_main_sm.sv", "new_name": "clk_ix", "titles": ["entropy_src_core.sv", "entropy_src_main_sm.sv"], "note": "{\"rungs_request\": 0, \"rungs_declaration\": 0, \"rungs_reference\": 0, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 0, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 0, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 0, \"verify_total\": 728.7, \"verify_tokens\": 4.3, \"verify_watched\": 1200, \"verify_watched_bytes\": 19257967, \"verify_before\": 222.9, \"verify_rebuild\": 276.7, \"verify_after\": 138.9, \"verify_checks\": 0.0, \"parses_index\": 3975, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 2, \"parses_after\": 0, \"select\": 255.6, \"selected\": 3976, \"fallback\": true, \"bytes\": 35813310, \"edited\": 2, \"index\": 1865.9, \"locate\": 0.1, \"edits\": 102.2, \"warnings\": 444.7, \"parses\": 3977}", "ms": [3631.98983395705, 3527.5039579719305, 3475.931875000242, 3482.873166038189], "status": "ok", "result_count": 1, "edits": 2, "files": 2, "created": 0, "trace_rungs_request": 0, "trace_rungs_declaration": 0, "trace_rungs_reference": 0, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 0, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 0, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 0, "trace_verify_total": 728.7, "trace_verify_tokens": 4.3, "trace_verify_watched": 1200, "trace_verify_watched_bytes": 19257967, "trace_verify_before": 222.9, "trace_verify_rebuild": 276.7, "trace_verify_after": 138.9, "trace_verify_checks": 0.0, "trace_parses_index": 3975, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 2, "trace_parses_after": 0, "trace_select": 255.6, "trace_selected": 3976, "trace_fallback": true, "trace_bytes": 35813310, "trace_edited": 2, "trace_index": 1865.9, "trace_locate": 0.1, "trace_edits": 102.2, "trace_warnings": 444.7, "trace_parses": 3977, "ts": "2026-09-09T01:12:02", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "conflict: state_q -> state_d", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "96f32d4243b1dc541a3e1e90a29a077520688efcc3f8e6c278c5c5f83cdb146b", "peak_rss_kib": 514672.0, "file": "hw/ip/entropy_src/rtl/entropy_src_main_sm.sv", "new_name": "state_d", "titles": [], "note": "{\"rungs_request\": 1, \"rungs_declaration\": 98, \"rungs_reference\": 122, \"rungs_instantiation\": 19, \"rungs_macro\": 0, \"rungs_speller\": 1, \"rungs_open\": 1, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 112, \"indirect_instantiation\": 19, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 1, \"verify_total\": 64.8, \"verify_tokens\": 4.2, \"verify_watched\": 111, \"verify_watched_bytes\": 1962908, \"verify_before\": 14.1, \"verify_rebuild\": 36.9, \"verify_after\": 1.0, \"verify_checks\": 0.0, \"parses_index\": 242, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 2, \"parses_after\": 0, \"select\": 14.4, \"selected\": 242, \"fallback\": false, \"bytes\": 4570234, \"edited\": 2, \"index\": 217.5, \"locate\": 0.0, \"edits\": 11.9, \"warnings\": 0.0, \"parses\": 244}", "ms": [355.68770801182836, 324.15045803645626, 318.635290954262, 317.3258330207318], "status": "refused", "result_count": 0, "message": "lucisv: renaming `state_q` to `state_d` would change what `state_d` means in entropy_src_core.sv; the rename was abandoned.", "edits": 0, "files": 0, "created": 0, "trace_rungs_request": 1, "trace_rungs_declaration": 98, "trace_rungs_reference": 122, "trace_rungs_instantiation": 19, "trace_rungs_macro": 0, "trace_rungs_speller": 1, "trace_rungs_open": 1, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 112, "trace_indirect_instantiation": 19, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 1, "trace_verify_total": 64.8, "trace_verify_tokens": 4.2, "trace_verify_watched": 111, "trace_verify_watched_bytes": 1962908, "trace_verify_before": 14.1, "trace_verify_rebuild": 36.9, "trace_verify_after": 1.0, "trace_verify_checks": 0.0, "trace_parses_index": 242, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 2, "trace_parses_after": 0, "trace_select": 14.4, "trace_selected": 242, "trace_fallback": false, "trace_bytes": 4570234, "trace_edited": 2, "trace_index": 217.5, "trace_locate": 0.0, "trace_edits": 11.9, "trace_warnings": 0.0, "trace_parses": 244, "ts": "2026-09-09T01:12:07", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "new name many uses spell: cipher_alert -> clk_i", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "96f32d4243b1dc541a3e1e90a29a077520688efcc3f8e6c278c5c5f83cdb146b", "peak_rss_kib": 1617488.0, "file": "hw/ip/aes/rtl/aes_core.sv", "new_name": "clk_i", "titles": [], "note": "{\"rungs_request\": 0, \"rungs_declaration\": 0, \"rungs_reference\": 0, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 0, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 0, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 0, \"verify_total\": 671.0, \"verify_tokens\": 1.7, \"verify_watched\": 1200, \"verify_watched_bytes\": 19257967, \"verify_before\": 318.1, \"verify_rebuild\": 272.3, \"verify_after\": 3.7, \"verify_checks\": 0.0, \"parses_index\": 3975, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 1, \"parses_after\": 0, \"select\": 258.7, \"selected\": 3976, \"fallback\": true, \"bytes\": 35813310, \"edited\": 1, \"index\": 1872.4, \"locate\": 0.3, \"edits\": 2.3, \"warnings\": 0.0, \"parses\": 3976}", "ms": [3070.1524579781108, 2962.2283750213683, 2906.755500007421, 2867.969457991421], "status": "refused", "result_count": 0, "message": "lucisv: renaming `cipher_alert` to `clk_i` would change what the set of declarations means in aes_core.sv; the rename was abandoned.", "edits": 0, "files": 0, "created": 0, "trace_rungs_request": 0, "trace_rungs_declaration": 0, "trace_rungs_reference": 0, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 0, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 0, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 0, "trace_verify_total": 671.0, "trace_verify_tokens": 1.7, "trace_verify_watched": 1200, "trace_verify_watched_bytes": 19257967, "trace_verify_before": 318.1, "trace_verify_rebuild": 272.3, "trace_verify_after": 3.7, "trace_verify_checks": 0.0, "trace_parses_index": 3975, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 1, "trace_parses_after": 0, "trace_select": 258.7, "trace_selected": 3976, "trace_fallback": true, "trace_bytes": 35813310, "trace_edited": 1, "trace_index": 1872.4, "trace_locate": 0.3, "trace_edits": 2.3, "trace_warnings": 0.0, "trace_parses": 3976, "ts": "2026-09-09T01:12:22", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "duplicate module: rstmgr_por -> rstmgr_por_x", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "96f32d4243b1dc541a3e1e90a29a077520688efcc3f8e6c278c5c5f83cdb146b", "peak_rss_kib": 918416.0, "file": "hw/top_darjeeling/ip_autogen/rstmgr/rtl/rstmgr.sv", "new_name": "rstmgr_por_x", "titles": [], "note": "{\"rungs_request\": 0, \"rungs_declaration\": 0, \"rungs_reference\": 0, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 0, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 0, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 0, \"verify_total\": 0.0, \"verify_tokens\": 0.0, \"verify_watched\": 0, \"verify_watched_bytes\": 0, \"verify_before\": 0.0, \"verify_rebuild\": 0.0, \"verify_after\": 0.0, \"verify_checks\": 0.0, \"parses_index\": 3975, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 0, \"parses_after\": 0, \"select\": 252.8, \"selected\": 3976, \"fallback\": true, \"bytes\": 35813310, \"edited\": 0, \"index\": 1891.3, \"locate\": 0.3, \"edits\": 0.0, \"warnings\": 0.0, \"parses\": 3975}", "ms": [2251.112958008889, 2206.4846249995753, 2207.0510829798877, 2180.649332993198], "status": "refused", "result_count": 0, "message": "lucisv: `rstmgr_por` is declared in more than one indexed file; lucisv will not guess which declaration this rename means.", "edits": 0, "files": 0, "created": 0, "trace_rungs_request": 0, "trace_rungs_declaration": 0, "trace_rungs_reference": 0, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 0, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 0, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 0, "trace_verify_total": 0.0, "trace_verify_tokens": 0.0, "trace_verify_watched": 0, "trace_verify_watched_bytes": 0, "trace_verify_before": 0.0, "trace_verify_rebuild": 0.0, "trace_verify_after": 0.0, "trace_verify_checks": 0.0, "trace_parses_index": 3975, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 0, "trace_parses_after": 0, "trace_select": 252.8, "trace_selected": 3976, "trace_fallback": true, "trace_bytes": 35813310, "trace_edited": 0, "trace_index": 1891.3, "trace_locate": 0.3, "trace_edits": 0.0, "trace_warnings": 0.0, "trace_parses": 3975, "ts": "2026-09-09T01:12:34", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "renametrace", "row": "no symbol: whole scope then refuse", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "peak_rss_kib": 914448.0, "file": "hw/ip/aes/dv/tb/tb.sv", "note": "{\"rungs_request\": 0, \"rungs_declaration\": 0, \"rungs_reference\": 0, \"rungs_instantiation\": 0, \"rungs_macro\": 0, \"rungs_speller\": 0, \"rungs_open\": 0, \"indirect_request\": 0, \"indirect_declaration\": 0, \"indirect_reference\": 0, \"indirect_instantiation\": 0, \"indirect_macro\": 0, \"indirect_speller\": 0, \"indirect_open\": 0, \"verify_total\": 0.0, \"verify_tokens\": 0.0, \"verify_watched\": 0, \"verify_watched_bytes\": 0, \"verify_before\": 0.0, \"verify_rebuild\": 0.0, \"verify_after\": 0.0, \"verify_checks\": 0.0, \"parses_index\": 3975, \"parses_locate\": 0, \"parses_edits\": 0, \"parses_before\": 0, \"parses_rebuild\": 0, \"parses_after\": 0, \"select\": 0.0, \"selected\": 3976, \"fallback\": true, \"bytes\": 35813310, \"edited\": 0, \"index\": 1891.5, \"locate\": 0.1, \"edits\": 0.0, \"warnings\": 0.0, \"parses\": 3975}", "ms": [2244.7303340304643, 2204.6456660027616, 2205.368582974188, 2177.3032499477267], "status": "refused", "result_count": 0, "message": "lucisv: there is no symbol to rename at this position.", "trace_rungs_request": 0, "trace_rungs_declaration": 0, "trace_rungs_reference": 0, "trace_rungs_instantiation": 0, "trace_rungs_macro": 0, "trace_rungs_speller": 0, "trace_rungs_open": 0, "trace_indirect_request": 0, "trace_indirect_declaration": 0, "trace_indirect_reference": 0, "trace_indirect_instantiation": 0, "trace_indirect_macro": 0, "trace_indirect_speller": 0, "trace_indirect_open": 0, "trace_verify_total": 0.0, "trace_verify_tokens": 0.0, "trace_verify_watched": 0, "trace_verify_watched_bytes": 0, "trace_verify_before": 0.0, "trace_verify_rebuild": 0.0, "trace_verify_after": 0.0, "trace_verify_checks": 0.0, "trace_parses_index": 3975, "trace_parses_locate": 0, "trace_parses_edits": 0, "trace_parses_before": 0, "trace_parses_rebuild": 0, "trace_parses_after": 0, "trace_select": 0.0, "trace_selected": 3976, "trace_fallback": true, "trace_bytes": 35813310, "trace_edited": 0, "trace_index": 1891.5, "trace_locate": 0.1, "trace_edits": 0.0, "trace_warnings": 0.0, "trace_parses": 3975, "ts": "2026-09-09T01:12:46", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "scan", "row": "default, cold cache", "ms": [92.21495903329924, 107.13670798577368, 91.90629201475531], "settled_ms": [92.21495903329924, 107.13670798577368, 91.90629201475531], "fresh_process": true, "result_count": 3, "note": "0 files indexed | 124 files indexed | nothing in flight during the scan", "ts": "2026-09-09T01:12:51", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "default, warm cache", "ms": [53.92179201589897, 46.04308295529336, 41.25883401138708], "settled_ms": [53.92179201589897, 46.04308295529336, 41.25883401138708], "fresh_process": true, "result_count": 3, "note": "0 files indexed | 124 files indexed, 123 from cache | nothing in flight during the scan", "ts": "2026-09-09T01:12:56", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "empty-index, cold cache", "ms": [105.30445899348706, 103.75137499067932, 108.87637495761737], "settled_ms": [105.30445899348706, 103.75137499067932, 108.87637495761737], "fresh_process": true, "result_count": 3, "note": "0 files indexed | 124 files indexed | nothing in flight during the scan", "ts": "2026-09-09T01:13:01", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "empty-index, warm cache", "ms": [45.0200840132311, 43.97104197414592, 41.873250040225685], "settled_ms": [45.0200840132311, 43.97104197414592, 41.873250040225685], "fresh_process": true, "result_count": 3, "note": "124 files indexed, 123 from cache | nothing in flight during the scan", "ts": "2026-09-09T01:13:06", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "depth0, cold cache", "ms": [7.711249985732138, 8.780958014540374, 10.425499989651144], "settled_ms": [7.711249985732138, 8.780958014540374, 10.425499989651144], "fresh_process": true, "result_count": 3, "note": "0 files indexed | 1 file indexed | nothing in flight during the scan", "ts": "2026-09-09T01:13:10", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "depth0, warm cache", "ms": [7.134040992241353, 9.76633297977969, 10.451290989294648], "settled_ms": [7.134040992241353, 9.76633297977969, 10.451290989294648], "fresh_process": true, "result_count": 3, "note": "0 files indexed | 1 file indexed | nothing in flight during the scan", "ts": "2026-09-09T01:13:15", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "workspace, cold cache", "ms": [2896.5727079776116, 2884.8891250090674, 2880.1893750205636], "settled_ms": [2896.5727079776116, 2884.8891250090674, 2880.1893750205636], "fresh_process": true, "result_count": 3, "note": "3976 files indexed, 3 skipped | nothing in flight during the scan", "ts": "2026-09-09T01:13:28", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "workspace, warm cache", "ms": [1110.262457979843, 1068.6567079974338, 1073.9933750010096], "settled_ms": [1110.262457979843, 1068.6567079974338, 1073.9933750010096], "fresh_process": true, "result_count": 3, "note": "3976 files indexed, 3975 from cache, 3 skipped | nothing in flight during the scan", "ts": "2026-09-09T01:13:36", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "workspace, cold cache, first useful answer", "ms": [276.73141699051484, 278.63349998369813, 279.1064159828238], "first_answer_ms": [276.73141699051484, 278.63349998369813, 279.1064159828238], "settled_ms": [2903.118457994424, 2916.8199590058066, 2931.6357920179144], "fresh_process": true, "status": "ok", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "message": null, "result_count": 1, "result_counts": [1, 1, 1], "note": "ms is the definition sent during the scan; a 0 result count means the answer arrived before the index could give one. settled_ms is that session's own scan, perturbed by serving the request", "ts": "2026-09-09T01:13:50", "label": "0.51.0-reference", "schema": 2, "units": "ms"}
|
||||
{"phase": "scan", "row": "workspace, warm cache, first useful answer", "ms": [294.1113749984652, 295.10295897489414, 294.5136670023203], "first_answer_ms": [294.1113749984652, 295.10295897489414, 294.5136670023203], "settled_ms": [1082.7908339560963, 1085.090084001422, 1084.30279197637], "fresh_process": true, "status": "ok", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "message": null, "result_count": 1, "result_counts": [1, 1, 1], "note": "ms is the definition sent during the scan; a 0 result count means the answer arrived before the index could give one. settled_ms is that session's own scan, perturbed by serving the request", "ts": "2026-09-09T01:13:58", "label": "0.51.0-reference", "schema": 2, "units": "ms"}
|
||||
{"phase": "scan", "row": "default, cold cache", "ms": [96.67558304499835, 111.83595901820809, 94.76049995282665], "settled_ms": [96.67558304499835, 111.83595901820809, 94.76049995282665], "fresh_process": true, "result_count": 3, "note": "0 files indexed | 124 files indexed | nothing in flight during the scan", "ts": "2026-09-09T01:14:04", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "default, warm cache", "ms": [56.957875029183924, 47.349958040285856, 46.934207959566265], "settled_ms": [56.957875029183924, 47.349958040285856, 46.934207959566265], "fresh_process": true, "result_count": 3, "note": "0 files indexed | 124 files indexed, 123 from cache | nothing in flight during the scan", "ts": "2026-09-09T01:14:09", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "empty-index, cold cache", "ms": [110.82133301533759, 100.80170800210908, 106.90266598248854], "settled_ms": [110.82133301533759, 100.80170800210908, 106.90266598248854], "fresh_process": true, "result_count": 3, "note": "124 files indexed | nothing in flight during the scan", "ts": "2026-09-09T01:14:13", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "empty-index, warm cache", "ms": [35.27233301429078, 47.46295895893127, 50.83083303179592], "settled_ms": [35.27233301429078, 47.46295895893127, 50.83083303179592], "fresh_process": true, "result_count": 3, "note": "124 files indexed, 123 from cache | nothing in flight during the scan", "ts": "2026-09-09T01:14:18", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "depth0, cold cache", "ms": [6.20275002438575, 8.890166995115578, 8.290541998576373], "settled_ms": [6.20275002438575, 8.890166995115578, 8.290541998576373], "fresh_process": true, "result_count": 3, "note": "1 file indexed | nothing in flight during the scan", "ts": "2026-09-09T01:14:23", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "depth0, warm cache", "ms": [9.672541986219585, 12.35333300428465, 13.59712501289323], "settled_ms": [9.672541986219585, 12.35333300428465, 13.59712501289323], "fresh_process": true, "result_count": 3, "note": "0 files indexed | 1 file indexed | nothing in flight during the scan", "ts": "2026-09-09T01:14:27", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "workspace, cold cache", "ms": [2913.358584046364, 2886.6533340187743, 2886.046791973058], "settled_ms": [2913.358584046364, 2886.6533340187743, 2886.046791973058], "fresh_process": true, "result_count": 3, "note": "3976 files indexed, 3 skipped | nothing in flight during the scan", "ts": "2026-09-09T01:14:41", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "workspace, warm cache", "ms": [1058.0805420177057, 1064.7187079885043, 1083.7782500311732], "settled_ms": [1058.0805420177057, 1064.7187079885043, 1083.7782500311732], "fresh_process": true, "result_count": 3, "note": "3976 files indexed, 3975 from cache, 3 skipped | nothing in flight during the scan", "ts": "2026-09-09T01:14:49", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok"}
|
||||
{"phase": "scan", "row": "workspace, cold cache, first useful answer", "ms": [84.42629198543727, 82.43237499846146, 85.15745803015307], "first_answer_ms": [84.42629198543727, 82.43237499846146, 85.15745803015307], "settled_ms": [2996.103417011909, 2864.957375044469, 2927.270332991611], "fresh_process": true, "status": "ok", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "message": null, "result_count": 1, "result_counts": [1, 1, 1], "note": "ms is the definition sent during the scan; a 0 result count means the answer arrived before the index could give one. settled_ms is that session's own scan, perturbed by serving the request", "ts": "2026-09-09T01:15:02", "label": "0.52.0-review", "schema": 2, "units": "ms"}
|
||||
{"phase": "scan", "row": "workspace, warm cache, first useful answer", "ms": [120.29304099269211, 118.48579195793718, 118.49116702796891], "first_answer_ms": [120.29304099269211, 118.48579195793718, 118.49116702796891], "settled_ms": [1067.8267090115696, 1107.2501249727793, 1102.342874975875], "fresh_process": true, "status": "ok", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "message": null, "result_count": 1, "result_counts": [1, 1, 1], "note": "ms is the definition sent during the scan; a 0 result count means the answer arrived before the index could give one. settled_ms is that session's own scan, perturbed by serving the request", "ts": "2026-09-09T01:15:10", "label": "0.52.0-review", "schema": 2, "units": "ms"}
|
||||
{"phase": "rss", "row": "server RSS after workspace scan, cold cache", "units": "KiB", "rss_kib": [503632.0, 501264.0, 503824.0], "peak_rss_kib": [503632.0, 501264.0, 503824.0], "store_kib": 45404, "fresh_process": true, "result_count": 3, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "note": "idle RSS a second after the scan settled; peak from `ps -o rss=` sampled at 50 ms; no latency in this row", "ts": "2026-09-09T01:15:27", "label": "0.52.0-review", "schema": 2, "status": "ok"}
|
||||
{"phase": "rss", "row": "server RSS after workspace scan, warm cache", "units": "KiB", "rss_kib": [428000.0, 428608.0, 428032.0], "peak_rss_kib": [428000.0, 428608.0, 428032.0], "store_kib": 45404, "fresh_process": true, "result_count": 3, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "note": "idle RSS a second after the scan settled; peak from `ps -o rss=` sampled at 50 ms; no latency in this row", "ts": "2026-09-09T01:15:38", "label": "0.52.0-review", "schema": 2, "status": "ok"}
|
||||
{"phase": "rss", "row": "server RSS after workspace scan, cold cache", "units": "KiB", "rss_kib": [502304.0, 501808.0, 505712.0], "peak_rss_kib": [502304.0, 501808.0, 505712.0], "store_kib": 45404, "fresh_process": true, "result_count": 3, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "note": "idle RSS a second after the scan settled; peak from `ps -o rss=` sampled at 50 ms; no latency in this row", "ts": "2026-09-09T01:15:56", "label": "0.51.0-reference", "schema": 2, "status": "ok"}
|
||||
{"phase": "rss", "row": "server RSS after workspace scan, warm cache", "units": "KiB", "rss_kib": [430048.0, 428992.0, 429824.0], "peak_rss_kib": [430048.0, 428992.0, 429824.0], "store_kib": 45404, "fresh_process": true, "result_count": 3, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "note": "idle RSS a second after the scan settled; peak from `ps -o rss=` sampled at 50 ms; no latency in this row", "ts": "2026-09-09T01:16:07", "label": "0.51.0-reference", "schema": 2, "status": "ok"}
|
||||
{"phase": "scanload", "row": "definition every 100 ms, warm cache, 1 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 105, "requests_offered": 35, "rate_ms": 100, "open_buffers": 2, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [231.02662502788007, 272.09970902185887, 331.03475003736094, 340.92241601319984, 369.39124995842576, 430.9707919601351, 440.27550000464544, 469.78204196784645, 530.8990830089897, 540.1587910018861, 569.5378750097007, 630.5581249762326, 640.1443749782629, 671.7419580090791, 731.8317499593832, 739.0144579694606, 770.2299589873292, 832.5662499992177, 838.3662080159411, 870.1959579484537, 932.8641250031069, 940.040957997553, 969.7758330148645, 1031.0971660073847, 1039.0954170143232, 1071.4224579860456, 1130.5584160145372, 1140.0499579613097, 1171.6288750176318, 1232.7175000100397, 1239.933791977819, 1269.8522499995306, 1332.8708750195801, 1339.6738750161603, 1370.3380840015598, 1430.838499974925, 1439.9789590388536, 1469.619415991474, 1531.3660000101663, 1538.9199169585481, 1569.6899999747984, 1631.8986659753136, 1639.9600409786217, 1670.0302499812096, 1732.8165840008296, 1739.4487090059556, 1770.040458010044, 1830.7587080053054, 1839.7049169871025, 1870.1480000163428, 1931.5903329988942, 1939.2652499955148, 1970.9985830122605, 2031.8161670002155, 2038.5732920258306, 2071.1795419920236, 2131.9097920204513, 2139.734208001755, 2169.8138340143487, 2232.7430410077795, 2238.7706249719486, 2269.540250010323, 2330.260500020813, 2339.9529170128517, 2371.424290991854, 2430.893625016324, 2438.0488749593496, 2469.0436249948107, 2531.3126249820925, 2539.099332992919, 2569.7709579835646, 2631.048333016224, 2639.473250019364, 2669.6615829714574, 2730.802041012794, 2739.449583052192, 2770.3413339913823, 2830.8503750013188, 2838.9876669971272, 2870.1325000147335, 2930.2297080284916, 2939.758874999825, 2970.087166002486, 3032.330791989807, 3039.64408300817, 3069.535666028969, 3131.768374994863, 3140.2731670532376, 3170.615667011589, 3232.2637080214918, 3238.4166659903713, 3269.410874985624, 3332.262041978538, 3339.3877079943195, 3368.84916695999, 3430.7034999947064, 3439.3887919723056, 3468.9126249868423, 3532.510709017515, 3539.43108295789, 3569.068040989805, 3632.623917015735, 3638.7511249631643, 3671.2672500289045, 3740.291874972172], "latency_median_ms": 1970.9985830122605, "latency_max_ms": 3740.291874972172, "mid_scan_median_ms": 1970.9985830122605, "mid_scan_max_ms": 3740.291874972172, "requests_sent": [35, 35, 35], "requests_answered": 105, "mid_scan_answers": 105, "after_settle_answers": 0, "unanswered_requests": 0, "mismatched_answers": 0, "unsettled_answers": 0, "settled_ms": [5449.216000037268, 4283.975166967139, 4251.313499931712], "tick_jitter_ms": 2.73800001014024, "publication": [{"publish_absorb": 1943.89, "publish_candidates": 555.04, "publish_includes": 52.54, "publish_overlay": 5.24, "publish_total": 2556.71, "publishes": 35, "published": 1807, "first_publish": 172.45, "scan_total": 5435.57}, {"publish_absorb": 2423.5, "publish_candidates": 717.32, "publish_includes": 53.01, "publish_overlay": 5.25, "publish_total": 3199.08, "publishes": 34, "published": 1807, "first_publish": 267.32, "scan_total": 4276.19}, {"publish_absorb": 2406.18, "publish_candidates": 693.44, "publish_includes": 52.27, "publish_overlay": 5.15, "publish_total": 3157.04, "publishes": 34, "published": 1807, "first_publish": 275.31, "scan_total": 4243.78}], "ts": "2026-09-09T01:16:27", "label": "0.51.0-reference", "schema": 2, "units": "ms"}
|
||||
{"phase": "scanload", "row": "definition every 100 ms, warm cache, 1 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 105, "requests_offered": 35, "rate_ms": 100, "open_buffers": 2, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [0.2507920144125819, 0.254875048995018, 0.2752500004135072, 0.36295794416218996, 0.3658750210888684, 0.36633398849517107, 0.37595804315060377, 0.3797499812208116, 0.38595800288021564, 0.38662500446662307, 0.3871670342050493, 0.39129104698076844, 0.39199995808303356, 0.4087500274181366, 0.4116250202059746, 0.4124999977648258, 0.42108300840482116, 0.42679201578721404, 0.4311670199967921, 0.43145898962393403, 0.4496669862419367, 0.458541966509074, 0.4627919988706708, 0.4814580315724015, 0.48895797226577997, 0.49579201731830835, 0.5095829837955534, 0.5250420072115958, 0.6151669658720493, 0.6951250252313912, 0.7722079753875732, 1.1667080107145011, 1.2279170332476497, 1.2295409687794745, 1.2410409981384873, 1.2829999905079603, 1.2955829733982682, 1.3219169923104346, 1.4695830177515745, 1.5291669988073409, 1.767750014550984, 2.201541035901755, 2.298375009559095, 2.323874970898032, 2.4139999877661467, 2.4449999909847975, 2.7526660123839974, 2.9757089796476066, 2.9851250001229346, 3.46829101908952, 16.16749999811873, 56.933583051431924, 57.05958401085809, 63.06950002908707, 65.63550001010299, 85.42033302364871, 85.74033301556483, 86.31454198621213, 91.15687501616776, 92.75670803617686, 102.7654999634251, 104.0377079625614, 114.4633749499917, 156.94762498605996, 157.04829100286588, 162.06729202531278, 167.66520804958418, 184.46358299115673, 186.2744580139406, 187.62683303793892, 190.6358340056613, 192.6114580128342, 203.79220903851092, 203.98637501057237, 216.29620797466487, 257.43712502298877, 257.4719170224853, 265.0065829511732, 285.87370802415535, 286.47783404449, 291.2995829829015, 293.3724169852212, 304.28579199360684, 315.87270798627287, 386.30954100517556, 403.1678750179708, 415.92470899922773, 486.33124999469146, 504.24404203658924, 514.9935000226833, 586.5473749581724, 601.8317090347409, 615.8681670203805, 685.2300420287065, 704.1380000300705, 716.2059170077555, 785.5232919682749, 886.2317090388387, 985.2439580135979, 1084.3474169960245, 1184.8837499856018, 1285.2690410218202, 1386.270124989096, 1486.5427910117432, 1586.5333330002613], "latency_median_ms": 57.05958401085809, "latency_max_ms": 1586.5333330002613, "mid_scan_median_ms": 57.05958401085809, "mid_scan_max_ms": 1586.5333330002613, "requests_sent": [35, 35, 35], "requests_answered": 105, "mid_scan_answers": 105, "after_settle_answers": 0, "unanswered_requests": 0, "mismatched_answers": 0, "unsettled_answers": 0, "settled_ms": [4032.0170000195503, 3407.352709036786, 3408.2122499821708], "tick_jitter_ms": 5.591708060819656, "publication": [{"publish_absorb": 764.26, "publish_candidates": 275.96, "publish_includes": 19.26, "publish_overlay": 1.3, "publish_total": 1060.78, "publishes": 7, "published": 3676, "first_publish": 660.76, "scan_total": 4018.68}, {"publish_absorb": 470.51, "publish_candidates": 183.67, "publish_includes": 13.52, "publish_overlay": 0.65, "publish_total": 668.35, "publishes": 4, "published": 3441, "first_publish": 493.11, "scan_total": 1781.58}, {"publish_absorb": 474.3, "publish_candidates": 192.46, "publish_includes": 12.97, "publish_overlay": 0.66, "publish_total": 680.39, "publishes": 4, "published": 3482, "first_publish": 492.07, "scan_total": 1785.99}], "ts": "2026-09-09T01:16:43", "label": "0.52.0-review", "schema": 2, "units": "ms"}
|
||||
{"phase": "scanload", "row": "cross-folder definition every 100 ms, cold cache, 0 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 270, "requests_offered": 90, "rate_ms": 100, "open_buffers": 1, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [0.20474998746067286, 0.22149999858811498, 0.22633298067376018, 0.22674998035654426, 0.25866698706522584, 0.335542019456625, 0.33662497298792005, 0.342374958563596, 0.3535420401021838, 0.3541670157574117, 0.35570800537243485, 0.3559160395525396, 0.35924999974668026, 0.3604159574024379, 0.3625419922173023, 0.36291603464633226, 0.363041996024549, 0.36533299135044217, 0.3654159954749048, 0.36862498382106423, 0.3690419835038483, 0.36987499333918095, 0.3708339645527303, 0.37237495416775346, 0.3729589516296983, 0.37399999564513564, 0.3751249751076102, 0.3754580393433571, 0.37633400643244386, 0.3767090383917093, 0.3768749884329736, 0.3773330245167017, 0.37820899160578847, 0.37854205584153533, 0.37920899922028184, 0.3792499774135649, 0.37929200334474444, 0.37933303974568844, 0.3802499850280583, 0.38045895053073764, 0.3809579648077488, 0.38179202238097787, 0.3837919794023037, 0.38491602754220366, 0.38595800288021564, 0.38762501208111644, 0.3892919630743563, 0.39054203080013394, 0.39091601502150297, 0.39245799416676164, 0.39425003342330456, 0.3957499866373837, 0.39666699012741446, 0.3969999961555004, 0.39712502621114254, 0.3975420258939266, 0.39787503192201257, 0.3987079835496843, 0.40020799497142434, 0.400707998778671, 0.4023329820483923, 0.40495803114026785, 0.4065419780090451, 0.40675001218914986, 0.40691602043807507, 0.4069579881615937, 0.4075420438311994, 0.40791602805256844, 0.4095829790458083, 0.41024998063221574, 0.4107080167159438, 0.413707981351763, 0.4164170240983367, 0.41691696969792247, 0.4177080118097365, 0.419542018789798, 0.4201669944450259, 0.42033300269395113, 0.42212504195049405, 0.4242919967509806, 0.4248339682817459, 0.4274160019122064, 0.4309579962864518, 0.43233297765254974, 0.43258402729406953, 0.44362503103911877, 0.44470897410064936, 0.4504999960772693, 0.462208001408726, 0.4670420312322676, 0.46729197492823005, 0.4699170240201056, 0.4777089925482869, 0.48991700168699026, 0.4908330156467855, 0.49841601867228746, 0.5057909875176847, 0.5127500044181943, 0.5805420223623514, 0.5873749614693224, 0.5931250052526593, 0.6327499868348241, 0.6843330338597298, 0.7296249968931079, 0.759792048484087, 0.7769999792799354, 0.8421249804086983, 0.8471250184811652, 0.8660839521326125, 0.8999169804155827, 0.9412500075995922, 0.9451250080019236, 0.9730419842526317, 1.0114579927176237, 1.0394169948995113, 1.074250030796975, 1.1261670151725411, 1.1672499822452664, 1.1826250120066106, 1.1919999960809946, 1.1953340144827962, 1.1954579968005419, 1.2069999938830733, 1.2120829778723419, 1.2217919575050473, 1.2232079752720892, 1.2319170054979622, 1.2464590254239738, 1.2742499820888042, 1.2877089902758598, 1.2995409779250622, 1.3074579765088856, 1.3085830141790211, 1.3187919976189733, 1.3228750322014093, 1.3254169607535005, 1.3257079990580678, 1.3427499798126519, 1.348958001472056, 1.3496670289896429, 1.3552919845096767, 1.373290957417339, 1.3737920089624822, 1.3811249518767, 1.3877080054953694, 1.4210829976946115, 1.4228749787434936, 1.4255410060286522, 1.4413330354727805, 1.4820420183241367, 1.484000007621944, 1.4983330038376153, 1.4985839952714741, 1.5417920076288283, 1.5435419627465308, 1.55533297220245, 1.5656249597668648, 1.5688749845139682, 1.5930410008877516, 1.6286669997498393, 1.6395000275224447, 1.6602500109001994, 1.6760409926064312, 1.6874169814400375, 1.7006249981932342, 1.7213340033777058, 1.7252079560421407, 1.7261250177398324, 1.7387500265613198, 1.742499996908009, 1.743166008964181, 1.7470000311732292, 1.7499999958090484, 1.7636249540373683, 1.8167499802075326, 1.8392089987173676, 1.8726250273175538, 1.9636250217445195, 1.9641669932752848, 1.9680000259540975, 2.0008329884149134, 2.0903749973513186, 2.1107920329086483, 2.1733749890699983, 2.1801249822601676, 2.326708985492587, 2.3330420372076333, 2.4499999708496034, 2.465625002514571, 2.5036250008270144, 2.567416988313198, 2.6513339835219085, 2.6877920026890934, 2.7570000384002924, 2.9014170286245644, 3.0343750258907676, 3.4132080036215484, 3.4826669725589454, 3.908999962732196, 4.281750007066876, 4.511666018515825, 4.662249993998557, 5.844958999659866, 6.637290993239731, 8.537958026863635, 8.620499982498586, 9.497040999121964, 13.173083018045872, 13.2913330453448, 14.414749981369823, 17.024791974108666, 17.170417006127536, 22.697874985Line truncated
|
||||
{"phase": "scanload", "row": "cross-folder definition every 100 ms, cold cache, 10 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 270, "requests_offered": 90, "rate_ms": 100, "open_buffers": 11, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [0.30983303440734744, 0.3370419726707041, 0.35729201044887304, 0.36687497049570084, 0.37174997851252556, 0.37699996028095484, 0.3802920109592378, 0.38333400152623653, 0.38454204332083464, 0.38716697599738836, 0.3905409830622375, 0.39079098496586084, 0.39125001057982445, 0.39250002009794116, 0.3927499637939036, 0.3927919897250831, 0.3927919897250831, 0.3944169729948044, 0.39504095911979675, 0.39529200876131654, 0.3957919543609023, 0.3969580284319818, 0.39720896165817976, 0.3973339917138219, 0.39770902367308736, 0.39775000186637044, 0.39787503192201257, 0.39916601963341236, 0.4005000228062272, 0.40133402217179537, 0.40241697570309043, 0.4077079938724637, 0.4082500236108899, 0.40924997301772237, 0.4146249848417938, 0.41516695637255907, 0.41799998143687844, 0.4189580213278532, 0.4190829931758344, 0.4197079688310623, 0.42033399222418666, 0.4225000157020986, 0.42279198532924056, 0.42395800119265914, 0.425292004365474, 0.4265420138835907, 0.4267080221325159, 0.42799999937415123, 0.4300840082578361, 0.4306669579818845, 0.43291598558425903, 0.43337501119822264, 0.43641700176522136, 0.4408329841680825, 0.4409999819472432, 0.44237502152100205, 0.4467919934540987, 0.44741597957909107, 0.44875004095956683, 0.45324995880946517, 0.45416696229949594, 0.45774999307468534, 0.45904202852398157, 0.4615000216290355, 0.4622919950634241, 0.4653329961001873, 0.46720902901142836, 0.47083396930247545, 0.4742500022985041, 0.4751670057885349, 0.475957989692688, 0.48041599802672863, 0.4877499886788428, 0.48779096687212586, 0.4997500218451023, 0.5112919607199728, 0.5207500071264803, 0.5226670182310045, 0.5446249851956964, 0.553040998056531, 0.5556250107474625, 0.5634579574689269, 0.584208988584578, 0.5941659910604358, 0.5979160196147859, 0.6147499661892653, 0.6167909596115351, 0.6177910254336894, 0.6242080125957727, 0.6294170161709189, 0.6585000082850456, 0.6617920007556677, 0.685208011418581, 0.7040839991532266, 0.7118330104276538, 0.7658330141566694, 0.7750410004518926, 0.7893750444054604, 0.7909999694675207, 0.8316250168718398, 0.8324579684995115, 0.8532500360161066, 0.9313340415246785, 0.9760410175658762, 1.0762079618871212, 1.2182919890619814, 1.221290964167565, 1.2397499522194266, 1.2471670052036643, 1.2690420262515545, 1.3246249873191118, 1.340750022791326, 1.3515420141629875, 1.38766597956419, 1.4245000202208757, 1.4327910030260682, 1.4412080054171383, 1.4444999978877604, 1.46266701631248, 1.4721660409122705, 1.4892079634591937, 1.4954999787732959, 1.5902910381555557, 1.5985410427674651, 1.607084006536752, 1.6452079871669412, 1.64695899002254, 1.6876250156201422, 1.7329580150544643, 1.7848749994300306, 1.8157500308007002, 1.8334159976802766, 1.8654169980436563, 1.9495830056257546, 2.0004999823868275, 2.024749992415309, 2.0325829973444343, 2.0814170129597187, 2.120583027135581, 2.181417017709464, 2.2225420107133687, 2.2851249668747187, 2.3669590009376407, 2.3923339904285967, 2.500667003914714, 2.5042080087587237, 2.507208031602204, 2.5184580008499324, 2.523000002838671, 2.6686249766498804, 2.711333043407649, 2.772292005829513, 2.85274995258078, 2.8778749983757734, 2.9494999907910824, 2.9971670010127127, 3.046875004656613, 3.2251669908873737, 3.2452080049552023, 3.304417012259364, 3.400582994800061, 3.6621250328607857, 3.8219999987632036, 4.026332986541092, 4.794790991581976, 5.849041976034641, 6.338791979942471, 7.691999955568463, 14.305416960269213, 16.713917022570968, 18.137291015591472, 19.85200005583465, 20.210040966048837, 26.58591599902138, 30.635958013590425, 34.43729202263057, 37.48991701286286, 39.7868329891935, 46.27154103945941, 56.808458000887185, 61.78120902040973, 62.26433295523748, 63.64629196468741, 88.9579170034267, 89.34254199266434, 95.10308300377801, 105.09333299705759, 107.09433298325166, 117.04608297441155, 117.6811249461025, 133.5414579953067, 141.11837500240654, 145.95749997533858, 156.75395802827552, 162.67208300996572, 163.51245797704905, 163.76908303936943, 188.09583398979157, 189.94449998717755, 193.4614999918267, 204.7862090403214, 207.31595798861235, 213.70245900470763, 214.99179198872298, 234.83412497444078, 239.55479101277888, 248.0264589539729, 257.06808298127726, 261.8468749569729, 262.2977909632027, 262.5469579943456, 286.16537497146055, 288.01099996780977, 288.8112089713104,Line truncated
|
||||
{"phase": "scanload", "row": "cross-folder definition every 100 ms, warm cache, 0 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 105, "requests_offered": 35, "rate_ms": 100, "open_buffers": 1, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [0.1567089930176735, 0.17258297884836793, 0.1823750208131969, 0.25870901299640536, 0.2644580090418458, 0.36449998151510954, 0.36574999103322625, 0.3720829845406115, 0.3748340532183647, 0.37875003181397915, 0.38124999264255166, 0.3813749644905329, 0.38241699803620577, 0.383291975595057, 0.3884999896399677, 0.39187498623505235, 0.40145800448954105, 0.4021669737994671, 0.40433299727737904, 0.4044999950565398, 0.41087501449510455, 0.41108299046754837, 0.4130000015720725, 0.413333997130394, 0.4136249772273004, 0.4182499833405018, 0.4194590146653354, 0.4242080030962825, 0.4327499773353338, 0.43404201278463006, 0.43474999256432056, 0.4431669949553907, 0.4461670177988708, 0.4463749937713146, 0.4469580017030239, 0.44883304508402944, 0.45658304588869214, 0.4680419806391001, 0.47883298248052597, 0.5232089897617698, 0.5246659857220948, 0.5428750300779939, 0.5557909607887268, 0.5991249927319586, 0.7135000196285546, 0.7223749998956919, 0.7272089715115726, 0.8579160203225911, 1.209291978739202, 1.3354999828152359, 1.4036669745109975, 1.4447080320678651, 1.4527919702231884, 1.5151670086197555, 1.607124984730035, 1.6437500016763806, 1.8583749770186841, 2.0522080012597144, 2.193042018916458, 2.610374998766929, 2.73574999300763, 2.846500021405518, 5.394583975430578, 6.07674999628216, 17.992291948758066, 22.500499966554344, 42.14462504023686, 53.77991701243445, 58.73687501298264, 62.88029096322134, 64.46104100905359, 68.37300001643598, 69.29458299418911, 71.31700002355501, 73.76408303389326, 77.44875003118068, 91.45237499615178, 106.47966695250943, 117.42566601606086, 122.7285839850083, 143.3283329824917, 154.95533298235387, 159.0279579977505, 162.34554204856977, 163.19733299314976, 169.55983301158994, 169.74654200021178, 171.22979200212285, 173.7276670173742, 179.29766600718722, 192.81229202169925, 207.69812498474494, 243.17854194669053, 253.59558296622708, 263.5240840027109, 268.47504096804187, 272.7592080482282, 273.0323339928873, 278.23041699593887, 292.0156249892898, 305.3441250231117, 343.2315409881994, 355.6066660094075, 375.48070901539177, 379.6020420268178], "latency_median_ms": 1.4527919702231884, "latency_max_ms": 379.6020420268178, "mid_scan_median_ms": 1.4527919702231884, "mid_scan_max_ms": 379.6020420268178, "requests_sent": [35, 35, 35], "requests_answered": 105, "mid_scan_answers": 105, "after_settle_answers": 0, "unanswered_requests": 0, "mismatched_answers": 0, "unsettled_answers": 0, "settled_ms": [3407.0167089812458, 3410.8658749610186, 3406.7385410307907], "tick_jitter_ms": 5.397125030867755, "publication": [{"publish_absorb": 401.18, "publish_candidates": 173.44, "publish_includes": 13.0, "publish_overlay": 0.36, "publish_total": 587.98, "publishes": 5, "published": 3436, "first_publish": 120.52, "scan_total": 1701.39}, {"publish_absorb": 331.32, "publish_candidates": 139.03, "publish_includes": 11.15, "publish_overlay": 0.34, "publish_total": 481.84, "publishes": 4, "published": 3081, "first_publish": 118.75, "scan_total": 1536.76}, {"publish_absorb": 400.81, "publish_candidates": 171.16, "publish_includes": 13.23, "publish_overlay": 0.36, "publish_total": 585.56, "publishes": 5, "published": 3456, "first_publish": 118.22, "scan_total": 1687.39}], "ts": "2026-09-09T01:18:02", "label": "0.52.0-review", "schema": 2, "units": "ms"}
|
||||
{"phase": "scanload", "row": "cross-folder definition every 100 ms, warm cache, 10 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 105, "requests_offered": 35, "rate_ms": 100, "open_buffers": 11, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [0.2995419781655073, 0.36920898128300905, 0.3736250218935311, 0.37712499033659697, 0.3893329994753003, 0.3900409792549908, 0.3937500296160579, 0.41191698983311653, 0.41683303425088525, 0.4172499757260084, 0.41916698683053255, 0.42216700967401266, 0.42983301682397723, 0.44733297545462847, 0.4491670406423509, 0.4497499903663993, 0.4505419638007879, 0.4556670319288969, 0.46545802615582943, 0.47637498937547207, 0.4775419947691262, 0.517958018463105, 0.5207500071264803, 0.5358750349842012, 0.5608749925158918, 0.5793749587610364, 0.5881660035811365, 0.589708040934056, 0.6294999620877206, 0.6559999892488122, 0.6595830200240016, 0.7256660028360784, 0.8640410378575325, 0.9828750044107437, 1.304500037804246, 1.3474579900503159, 1.413875026628375, 1.4257910079322755, 1.4327919925563037, 1.4707499649375677, 1.5054999967105687, 1.5845000161789358, 1.5974999987520278, 1.8340839887969196, 1.9388750079087913, 1.9652079790830612, 1.9924999796785414, 2.091667032800615, 2.192125015426427, 2.3298750165849924, 2.576208033133298, 3.8130839820951223, 9.627292049117386, 10.309334029443562, 11.340291996020824, 35.95295798731968, 43.56899997219443, 67.1394580276683, 70.5937499878928, 76.90470904344693, 86.34304197039455, 100.13583302497864, 104.83595903497189, 109.47245801799, 111.3881670171395, 111.64237500634044, 131.83370896149427, 142.8550000418909, 165.45312496600673, 169.5360830053687, 174.75624999497086, 187.0386659866199, 200.70391695480794, 202.87862495752051, 210.3013750165701, 211.4611670258455, 212.0887089986354, 233.8570419815369, 241.73633399186656, 267.42375001776963, 270.5379169783555, 275.0038750236854, 285.7787079992704, 301.1213330319151, 309.6685410127975, 310.35241700010374, 335.9032919979654, 385.5018329923041, 410.56766599649563, 434.6805409877561, 487.36441700020805, 511.1273330403492, 534.6575410221703, 587.2191250091419, 611.5488329669461, 635.8172500040382, 686.5012499620207, 711.7035000119358, 733.7996250134893, 786.4580830209889, 811.6557910107076, 834.1072909533978, 887.8402920090593, 912.226666987408, 935.9836250077933], "latency_median_ms": 9.627292049117386, "latency_max_ms": 935.9836250077933, "mid_scan_median_ms": 93.2394374976866, "mid_scan_max_ms": 935.9836250077933, "requests_sent": [35, 35, 35], "requests_answered": 105, "mid_scan_answers": 88, "after_settle_answers": 17, "unanswered_requests": 0, "mismatched_answers": 0, "unsettled_answers": 0, "settled_ms": [3414.8414590163156, 3411.4109999500215, 1714.3974580103531], "tick_jitter_ms": 4.853875027038157, "publication": [{"publish_absorb": 584.21, "publish_candidates": 218.45, "publish_includes": 15.06, "publish_overlay": 3.37, "publish_total": 821.09, "publishes": 5, "published": 3644, "first_publish": 455.71, "scan_total": 1962.48}, {"publish_absorb": 589.67, "publish_candidates": 227.47, "publish_includes": 14.66, "publish_overlay": 3.31, "publish_total": 835.11, "publishes": 5, "published": 3577, "first_publish": 453.08, "scan_total": 1989.54}, {"publish_absorb": 425.04, "publish_candidates": 178.03, "publish_includes": 12.39, "publish_overlay": 2.43, "publish_total": 617.89, "publishes": 4, "published": 3244, "first_publish": 499.65, "scan_total": 1703.0}], "ts": "2026-09-09T01:18:18", "label": "0.52.0-review", "schema": 2, "units": "ms"}
|
||||
{"phase": "scanload", "row": "cross-folder definition every 100 ms, cold cache, 0 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 270, "requests_offered": 90, "rate_ms": 100, "open_buffers": 1, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [9.902124991640449, 10.340040957089514, 10.616042010951787, 22.2932500182651, 23.17745902109891, 25.093042000662535, 32.31020801467821, 34.17783399345353, 36.73487500054762, 37.10945800412446, 37.140625005122274, 39.037459006067365, 41.09216696815565, 45.823332970030606, 47.85100003937259, 54.68316696351394, 55.404125014320016, 57.97408299986273, 58.836374955717474, 62.380584015045315, 63.21670801844448, 64.11545805167407, 64.65700000990182, 68.94033396383747, 70.02041599480435, 71.02074997965246, 71.06916705379263, 71.84799999231473, 73.54337500873953, 73.76087503507733, 74.9115829821676, 76.5977919800207, 78.02445802371949, 78.11358396429569, 78.71583302039653, 78.77341599669307, 79.56245803507045, 80.36583400098607, 80.4101669928059, 80.86512499721721, 81.91404095850885, 82.29991601547226, 82.66950002871454, 83.45495798857883, 83.7867499794811, 83.92108301632106, 85.03516699420288, 85.23691701702774, 85.43437503976747, 85.49024997046217, 85.72933299001306, 86.40499995090067, 86.91891597118229, 87.58845902048051, 88.1728749955073, 88.21699995314702, 88.39762501884252, 88.51129101822153, 90.50724998814985, 91.40500001376495, 91.48658404592425, 92.35129202716053, 92.88879198720679, 92.89891697699204, 92.94633299577981, 92.97058399533853, 93.1052920059301, 93.22491701459512, 93.30479195341468, 94.42141698673368, 94.95887497905642, 95.17824999056756, 95.35841702017933, 95.46820801915601, 95.47904197825119, 95.94995900988579, 96.0554169723764, 96.22308297548443, 96.26812499482185, 96.40537499217317, 96.61700000287965, 97.11925004376099, 97.12937497533858, 97.32412500306964, 97.41849999409169, 97.48870803741738, 97.63412503525615, 97.68000000622123, 97.70887502236292, 97.8191249887459, 97.87066699936986, 97.93595899827778, 98.22325001005083, 98.47858402645215, 98.54566701687872, 98.85624999878928, 99.1745840292424, 99.51433399692178, 99.68670801026747, 99.70341698499396, 100.00020900042728, 100.02937499666587, 100.02995899412781, 100.04245804157108, 100.25141696678475, 100.47062498051673, 100.56333401007578, 100.58312502223998, 100.65420804312453, 100.82325001712888, 101.37779201613739, 101.7637500190176, 102.01987496111542, 102.06549998838454, 102.17554197879508, 102.56441700039431, 102.6337500079535, 102.95125003904104, 102.97695797635242, 103.00500004086643, 103.29733300022781, 103.68308302713558, 103.757124976255, 103.99470804259181, 104.04420900158584, 104.10029097693041, 104.14316697278991, 104.35429197968915, 104.35658297501504, 104.80116697726771, 104.91241596173495, 104.95158296544105, 105.39924999466166, 106.36249999515712, 106.42679099692032, 106.6551249823533, 106.89729102887213, 106.89845896558836, 107.16545803006738, 107.48775000683963, 107.64308302896097, 108.03720896365121, 108.17570798099041, 108.61404100432992, 108.90716704307124, 109.02274999534711, 109.03570899972692, 109.07679196679965, 109.42029202124104, 109.71345799043775, 109.79629104258493, 109.84841600293294, 110.11154198786244, 110.57020799489692, 110.6995830195956, 111.01520800730214, 111.03195900795981, 111.03754199575633, 111.08987499028444, 111.12729198066518, 111.35487497085705, 111.44095798954368, 111.64083302719519, 112.00345802353695, 112.08024999359623, 112.14445903897285, 112.59324999991804, 112.73483303375542, 112.80195799190551, 113.13004198018461, 113.20254195015877, 113.86216699611396, 113.87333302991465, 113.88779198750854, 114.08149998169392, 114.25145802786574, 114.28316595265642, 114.30666700471193, 114.87383302301168, 115.44000002322719, 115.6363749760203, 116.20345897972584, 116.24716699589044, 116.73141596838832, 116.73908401280642, 117.07812501117587, 117.14137502713129, 118.51104197558016, 119.12933300482109, 119.44983300054446, 119.60916599491611, 120.20429200492799, 120.42283295886591, 120.45120797120035, 120.76920800609514, 120.83033297676593, 121.53358396608382, 122.62758304132149, 123.52154101245105, 125.31479197787121, 126.85050000436604, 127.04187497729436, 127.08387500606477, 127.41695798467845, 127.52749997889623, 127.88216699846089, 128.0113750253804, 128.78487503621727, 129.35466703493148, 129.83937497483566, 129.93595900479704, 130.18787500914186, 130.81549998605624, 131.55774999177083, 131.71712501207367, 131.85233296826482, 136.42591598909348, 136.98545895749703, 137.199042015708Line truncated
|
||||
{"phase": "scanload", "row": "cross-folder definition every 100 ms, cold cache, 10 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 270, "requests_offered": 90, "rate_ms": 100, "open_buffers": 11, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [335.74629097711295, 351.9685410428792, 361.7872910108417, 436.1903340322897, 450.64200001070276, 462.3638750053942, 537.0929580531083, 551.2578340130858, 561.5836659562774, 637.1752499835566, 652.9722500126809, 661.7090840009041, 736.8382080458105, 750.9314999915659, 762.0219580130652, 836.098832951393, 850.7772920420393, 861.2403749721125, 936.1467079725116, 950.924834003672, 961.6388329886831, 1036.666292056907, 1050.789333996363, 1061.6964590153657, 1134.976709028706, 1151.3806660077535, 1161.6623749723658, 1235.4647500324063, 1251.331165956799, 1262.5051669892855, 1336.8653330253437, 1352.5381250074133, 1361.712499987334, 1434.553833969403, 1453.097500023432, 1462.4552500317805, 1535.2574580465443, 1551.0733330156654, 1560.5822910438292, 1636.1803750041872, 1650.3649160149507, 1660.5697919731028, 1736.7307919776067, 1752.9838330228813, 1761.341916047968, 1836.5692910156213, 1851.1388340266421, 1860.4713749955408, 1936.8341660010628, 1951.8172919633798, 1962.0588749530725, 2036.9501669774763, 2052.606332988944, 2062.866166990716, 2136.9384579593316, 2151.1245000292547, 2160.258124989923, 2236.4027090370655, 2251.535875024274, 2260.2882910287008, 2334.7892920137383, 2351.7933749826625, 2361.9327500346117, 2436.7287079803646, 2452.03612500336, 2460.1993749965914, 2534.561541979201, 2552.803083031904, 2561.2569169607013, 2634.696041001007, 2651.343417004682, 2660.55241698632, 2736.4757080213167, 2751.4027080032974, 2760.564249998424, 2836.0392909962684, 2851.03129199706, 2860.690000001341, 2935.699583031237, 2950.104999996256, 2960.808083007578, 3035.130958945956, 3052.327666024212, 3060.855708026793, 3135.3868329897523, 3150.8257089881226, 3160.465083026793, 3235.545625037048, 3252.2037499584258, 3260.0273749558255, 3335.622207960114, 3350.1388329896145, 3362.3819159693085, 3435.717415995896, 3450.4259579698555, 3462.3161670169793, 3534.327791945543, 3551.6020829672925, 3561.8043749709614, 3635.847500001546, 3651.9291659933515, 3660.8253750018775, 3735.834957973566, 3751.119041990023, 3760.7715419726446, 3835.8214999898337, 3852.3707089480013, 3861.0295420512557, 3935.972916020546, 3952.2335839574225, 3961.5827500238083, 4036.1124590272084, 4050.8453749935143, 4062.064333993476, 4136.53008302208, 4151.65745903505, 4161.061082966626, 4234.56112499116, 4249.953665945213, 4261.988916958217, 4334.784250007942, 4350.1046250457875, 4361.916207999457, 4434.790125000291, 4451.016917009838, 4459.975999954622, 4535.127500013914, 4551.052875001915, 4561.625790956896, 4636.227999988478, 4651.573707989883, 4661.608667054679, 4734.10458303988, 4752.478415961377, 4761.7021659971215, 4834.567292011343, 4852.371957967989, 4861.618166032713, 4934.934791002888, 4950.29137498932, 4959.832750027999, 5034.84416694846, 5050.135708996095, 5059.938499995042, 5134.383374999743, 5150.64979204908, 5161.724624980707, 5234.324791003019, 5250.175666995347, 5261.034708004445, 5336.349499993958, 5352.110082982108, 5360.941874969285, 5436.137166980188, 5451.938499987591, 5460.516208957415, 5536.146625003312, 5550.955416983925, 5561.64616701426, 5635.494499991182, 5650.373124983162, 5660.847416962497, 5735.971832997166, 5750.328625028487, 5759.625124977902, 5835.67054203013, 5850.075749971438, 5860.600541986059, 5935.748916992452, 5952.0846249652095, 5961.269500025082, 6035.470750008244, 6051.5090840053745, 6061.692541989032, 6135.092667012941, 6151.113583007827, 6161.9017500197515, 6234.673833008856, 6250.1529170549475, 6261.178332963027, 6334.493833011948, 6350.415916997008, 6359.344583004713, 6434.55033301143, 6450.561375007965, 6460.448333004024, 6534.61316699395, 6550.55587500101, 6561.3799169659615, 6634.737292013597, 6650.008541007992, 6659.567583992612, 6734.620917006396, 6750.328458962031, 6760.721541999374, 6834.66870803386, 6851.530292013194, 6860.454749956261, 6934.099042031448, 6952.039625030011, 6959.739916026592, 7033.839791023638, 7051.724791992456, 7059.883916983381, 7135.669874958694, 7151.214708050247, 7160.776167002041, 7234.227417036891, 7251.2259999639355, 7259.151500009466, 7335.687457991298, 7351.7887920024805, 7360.632415977307, 7434.30637504207, 7450.542458042037, 7460.5222920072265, 7535.302457981743, 7549.733499996364, 7560.988833953161, 7634.430457954295, 7651.1622500256635, 7659.22620799392Line truncated
|
||||
{"phase": "scanload", "row": "cross-folder definition every 100 ms, warm cache, 0 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 105, "requests_offered": 35, "rate_ms": 100, "open_buffers": 1, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [8.513291017152369, 11.442125018220395, 12.872666004113853, 76.23354200040922, 76.31550001678988, 81.47733402438462, 82.56333303870633, 83.7337090051733, 84.72541702212766, 84.82645801268518, 84.92162497714162, 85.51645802799612, 87.48149999883026, 87.49133296078071, 88.42720795655623, 90.84254200570285, 93.97200000239536, 95.2837910153903, 95.64212500117719, 95.79679102171212, 96.48095798911527, 97.31587499845773, 97.7104589692317, 98.02520804805681, 98.66770799271762, 98.9327909774147, 100.29308299999684, 100.76791699975729, 101.10033303499222, 101.34108300553635, 101.37787502026185, 101.54699999839067, 101.93033301038668, 105.4825410246849, 107.4730419786647, 109.47445797501132, 109.68079202575609, 109.70870801247656, 110.58504099491984, 110.72158301249146, 114.05054200440645, 114.19520899653435, 115.08333298843354, 116.50779203046113, 116.99279199820012, 118.19325003307313, 118.2911250507459, 122.54924996523187, 122.89016600698233, 123.42962494585663, 123.96112503483891, 125.28491602279246, 127.27191601879895, 127.64533399604261, 130.29279198963195, 132.18741700984538, 134.1168750077486, 134.126249991823, 136.49312499910593, 138.40866700047627, 139.75083304103464, 142.4806250142865, 144.7386249783449, 145.521208003629, 147.74429198587313, 149.14729201700538, 150.63629194628447, 152.63079199939966, 153.0972920008935, 156.06504201423377, 157.84966695355251, 158.5612500202842, 159.38783303136006, 163.85599999921396, 164.79541698936373, 165.45358300209045, 167.76574996765703, 170.40729196742177, 170.94570898916572, 174.81820797547698, 175.1023749820888, 176.07629200210795, 180.17962499288842, 180.74187502497807, 180.8608749997802, 184.17195801157504, 185.63754198839888, 186.6147500113584, 188.66854201769456, 190.0606660055928, 191.27537502208725, 192.07662501139566, 195.47370803775266, 196.9412500038743, 199.61499999044463, 200.48254198627546, 201.30316604627296, 203.65920796757564, 205.54445800371468, 207.62016699882224, 208.53337500011548, 209.34441598365083, 288.89537503710017, 303.5131670185365, 305.71375001454726], "latency_median_ms": 127.27191601879895, "latency_max_ms": 305.71375001454726, "mid_scan_median_ms": 127.27191601879895, "mid_scan_max_ms": 305.71375001454726, "requests_sent": [35, 35, 35], "requests_answered": 105, "mid_scan_answers": 105, "after_settle_answers": 0, "unanswered_requests": 0, "mismatched_answers": 0, "unsettled_answers": 12, "settled_ms": [4105.060499976389, 4136.745374009479, 4203.156500996556], "tick_jitter_ms": 2.624417014885694, "publication": [{"publish_absorb": 2365.93, "publish_candidates": 616.22, "publish_includes": 51.27, "publish_overlay": 2.46, "publish_total": 3035.8799999999997, "publishes": 33, "published": 1861, "first_publish": 281.79, "scan_total": 4096.56}, {"publish_absorb": 2379.36, "publish_candidates": 636.7, "publish_includes": 50.72, "publish_overlay": 2.45, "publish_total": 3069.23, "publishes": 33, "published": 1860, "first_publish": 263.35, "scan_total": 4126.52}, {"publish_absorb": 2435.46, "publish_candidates": 642.64, "publish_includes": 51.03, "publish_overlay": 2.47, "publish_total": 3131.6, "publishes": 34, "published": 1859, "first_publish": 277.67, "scan_total": 4195.38}], "ts": "2026-09-09T01:19:51", "label": "0.51.0-reference", "schema": 2, "units": "ms"}
|
||||
{"phase": "scanload", "row": "cross-folder definition every 100 ms, warm cache, 10 extra buffer(s)", "fresh_process": true, "status": "ok", "message": null, "result_count": 105, "requests_offered": 35, "rate_ms": 100, "open_buffers": 11, "note": "ms is every request's own wait, sorted, across all tries; the arrival rate is wall-clock and independent of the responses (`tick_jitter_ms` is the largest slip); `publication` is each try's first traced scan \u2014 the four publish_* stages, the publish count and the files published; `mismatched_answers` is the coherence contract of docs/features/index-scope/README.md, `unsettled_answers` the review \u00a72 gate (every answer, empty ones included, equal to the settled one)", "ms": [226.20341699803248, 241.39650003053248, 271.0190420038998, 326.0454999981448, 342.26066700648516, 368.59662499045953, 424.6195000014268, 442.2450000420213, 468.7907920451835, 524.4040419929661, 541.9453749782406, 568.753416009713, 625.2409999724478, 641.9290840276517, 668.817957979627, 725.5809999769554, 741.6812080191448, 769.7975840419531, 825.5425000097603, 841.4298749994487, 868.5702080256306, 925.7162499707192, 941.3640000275336, 968.4813329949975, 1026.1333329835907, 1039.744374982547, 1069.9023330234922, 1125.8545409655198, 1141.3147920393385, 1168.9767920179293, 1225.8606659597717, 1241.5034580044448, 1269.3024579784833, 1326.0361250140704, 1340.0207090307958, 1369.5688750012778, 1426.2369999778457, 1440.6650839955546, 1469.5063750259578, 1524.385875032749, 1541.6793749900535, 1570.564249996096, 1625.3879999858327, 1642.1471670037135, 1669.5357079734094, 1725.0406249659136, 1740.206750051584, 1769.6382910362445, 1825.250750000123, 1840.3770829900168, 1868.4078750084154, 1925.3137079649605, 1940.7753749983385, 1970.4457079642452, 2025.6511659827083, 2040.7403749995865, 2068.381874996703, 2123.9959170343354, 2142.0173750375398, 2170.1701669953763, 2224.2987499921583, 2241.965666995384, 2267.0772920246236, 2323.862958000973, 2341.871041979175, 2369.6067499695346, 2424.045916995965, 2441.2017079885118, 2469.0970000228845, 2524.6080000069924, 2540.580125001725, 2568.7733750091866, 2624.219916004222, 2640.973749978002, 2669.201167009305, 2724.7269169893116, 2740.3815000434406, 2768.9377079950646, 2824.7620839974843, 2839.9895830079913, 2868.495417002123, 2924.243541958276, 2939.602416998241, 2970.3808749909513, 3026.1651659966446, 3041.0785830463283, 3070.2625829726458, 3124.8390420223586, 3139.5699169952422, 3170.6455829553306, 3225.3422920475714, 3240.330583998002, 3269.8907500016503, 3325.589958985802, 3340.089374978561, 3368.367124989163, 3425.539707997814, 3441.8976670131087, 3468.500499962829, 3526.063041004818, 3539.5341250114143, 3568.935749994125, 3626.2147499946877, 3641.9260410475545, 3670.666290970985], "latency_median_ms": 1940.7753749983385, "latency_max_ms": 3670.666290970985, "mid_scan_median_ms": 1940.7753749983385, "mid_scan_max_ms": 3670.666290970985, "requests_sent": [35, 35, 35], "requests_answered": 105, "mid_scan_answers": 105, "after_settle_answers": 0, "unanswered_requests": 0, "mismatched_answers": 0, "unsettled_answers": 105, "settled_ms": [4220.629334042314, 4275.046957947779, 4244.135040964466], "tick_jitter_ms": 3.8492910098284483, "publication": [{"publish_absorb": 2420.6, "publish_candidates": 663.82, "publish_includes": 50.22, "publish_overlay": 19.98, "publish_total": 3154.62, "publishes": 34, "published": 1807, "first_publish": 263.8, "scan_total": 4203.5}, {"publish_absorb": 2422.37, "publish_candidates": 703.05, "publish_includes": 51.54, "publish_overlay": 20.9, "publish_total": 3197.8599999999997, "publishes": 34, "published": 1807, "first_publish": 266.04, "scan_total": 4258.06}, {"publish_absorb": 2410.72, "publish_candidates": 678.44, "publish_includes": 51.64, "publish_overlay": 20.77, "publish_total": 3161.5699999999997, "publishes": 34, "published": 1808, "first_publish": 266.93, "scan_total": 4231.64}], "ts": "2026-09-09T01:20:09", "label": "0.51.0-reference", "schema": 2, "units": "ms"}
|
||||
{"phase": "refactor", "row": "expand-wildcard offer", "titles": ["lucisv: expand .* (32 connections)", "lucisv: extract selection into module\u2026"], "shapes": ["data", "command"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/kmac/fpv/tb/sha3_fpv.sv", "position": {"line": 54, "character": 4}, "ms": [4.856499959714711, 2.038917038589716, 1.6384579939767718, 1.6377920401282609], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:20:13", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "expand-wildcard resolve: lucisv: expand .* (32 connections)", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "8f3a26dd147b2b8031ee2af6e47f52228c91d69fea1ab9a5b885e8b653c56115", "ms": [75.03170799463987, 56.26808403758332, 55.418417032342404, 54.370458994526416], "status": "ok", "result_count": 1, "edits": 1, "files": 1, "created": 0, "ts": "2026-09-09T01:20:13", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "expand-wildcard offer is a command: lucisv: extract selection into module\u2026", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.extractModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:13", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "organize-imports offer", "titles": ["lucisv: organize imports (removes 1, sorts 1)", "lucisv: extract selection into module\u2026"], "shapes": ["data", "command"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_sbox_canright_masked.sv", "position": {"line": 42, "character": 2}, "ms": [4.029750009067357, 3.460415988229215, 3.4175420296378434, 3.51687497459352], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:20:16", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "organize-imports resolve: lucisv: organize imports (removes 1, sorts 1)", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "0ee027e37d070d54804a9a08169e8b8c5669ed7b81d9915e6637949d208bfa91", "ms": [9.7159169963561, 8.239208022132516, 7.986999989952892, 7.797166996169835], "status": "ok", "result_count": 1, "edits": 1, "files": 1, "created": 0, "ts": "2026-09-09T01:20:16", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "organize-imports offer is a command: lucisv: extract selection into module\u2026", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.extractModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:16", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "inline-module offer", "titles": ["lucisv: extract selection into module\u2026", "lucisv: inline `tlul_cmd_intg_gen` here"], "shapes": ["command", "command"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_wrap.sv", "position": {"line": 66, "character": 2}, "ms": [0.9933750261552632, 0.612374977208674, 0.6608749972656369, 0.582791049964726], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:20:20", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "inline-module offer is a command: lucisv: extract selection into module\u2026", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.extractModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:20", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "inline-module offer is a command: lucisv: inline `tlul_cmd_intg_gen` here", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.inlineModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:20", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "port-actions offer", "titles": ["lucisv: connect 2 missing ports", "lucisv: extract selection into module\u2026"], "shapes": ["data", "command"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_wrap.sv", "position": {"line": 78, "character": 2}, "ms": [2.08212505094707, 1.1158339912071824, 1.870499982032925, 1.207916997373104], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:20:23", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "port-actions resolve: lucisv: connect 2 missing ports", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "4b534a16bca7abd205bd16458820936d4dc0c4cea9c963c5374c29a47b13fffb", "ms": [161.33249999256805, 142.7456249948591, 132.87641695933416, 132.62791599845514], "status": "ok", "result_count": 1, "edits": 2, "files": 1, "created": 0, "ts": "2026-09-09T01:20:23", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "port-actions offer is a command: lucisv: extract selection into module\u2026", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.extractModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:23", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "ansi-header (no offer expected) offer", "titles": [], "shapes": [], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 8, "character": 0}, "ms": [0.6442079902626574, 0.4128750297240913, 0.43245794950053096, 0.3673749743029475], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:20:27", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "extract-module offer (selection)", "titles": ["lucisv: extract selection into module\u2026"], "shapes": ["command"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 220, "character": 0}, "note": "selection 220:0-222:53", "ms": [2.6587090105749667, 0.5566250183619559, 0.5232089897617698, 0.4752080421894789], "status": "ok", "result_count": 1, "ts": "2026-09-09T01:20:30", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "extract-module offer is a command: lucisv: extract selection into module\u2026", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.extractModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:30", "label": "0.51.0-reference", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "expand-wildcard offer", "titles": ["lucisv: expand .* (32 connections)", "lucisv: extract selection into module\u2026"], "shapes": ["data", "command"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/kmac/fpv/tb/sha3_fpv.sv", "position": {"line": 54, "character": 4}, "ms": [1.682459027506411, 1.080457994248718, 1.0803749901242554, 1.00733304861933], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:20:34", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "expand-wildcard resolve: lucisv: expand .* (32 connections)", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "8f3a26dd147b2b8031ee2af6e47f52228c91d69fea1ab9a5b885e8b653c56115", "ms": [71.55108300503343, 54.28687500534579, 53.77562501234934, 53.80616703769192], "status": "ok", "result_count": 1, "edits": 1, "files": 1, "created": 0, "ts": "2026-09-09T01:20:34", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "expand-wildcard offer is a command: lucisv: extract selection into module\u2026", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.extractModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:34", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "organize-imports offer", "titles": ["lucisv: organize imports (removes 1, sorts 1)", "lucisv: extract selection into module\u2026"], "shapes": ["data", "command"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_sbox_canright_masked.sv", "position": {"line": 42, "character": 2}, "ms": [5.887124978471547, 6.326834030915052, 10.169624991249293, 9.62525000795722], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:20:37", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "organize-imports resolve: lucisv: organize imports (removes 1, sorts 1)", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "0ee027e37d070d54804a9a08169e8b8c5669ed7b81d9915e6637949d208bfa91", "ms": [14.393708028364927, 10.427791974507272, 8.306875010021031, 8.056457969360054], "status": "ok", "result_count": 1, "edits": 1, "files": 1, "created": 0, "ts": "2026-09-09T01:20:37", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "organize-imports offer is a command: lucisv: extract selection into module\u2026", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.extractModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:37", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "inline-module offer", "titles": ["lucisv: extract selection into module\u2026", "lucisv: inline `tlul_cmd_intg_gen` here"], "shapes": ["command", "command"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_wrap.sv", "position": {"line": 66, "character": 2}, "ms": [0.5479159881360829, 0.2696249866858125, 0.3247920540161431, 0.2489580074325204], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:20:41", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "inline-module offer is a command: lucisv: extract selection into module\u2026", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.extractModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:41", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "inline-module offer is a command: lucisv: inline `tlul_cmd_intg_gen` here", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.inlineModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:41", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "port-actions offer", "titles": ["lucisv: connect 2 missing ports", "lucisv: extract selection into module\u2026"], "shapes": ["data", "command"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes_wrap.sv", "position": {"line": 78, "character": 2}, "ms": [0.9376669768244028, 0.6111669936217368, 0.5560829886235297, 0.5026250146329403], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:20:44", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "port-actions resolve: lucisv: connect 2 missing ports", "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "fingerprint": "4b534a16bca7abd205bd16458820936d4dc0c4cea9c963c5374c29a47b13fffb", "ms": [132.0979169686325, 127.92104197433218, 130.39050000952557, 130.16649999190122], "status": "ok", "result_count": 1, "edits": 2, "files": 1, "created": 0, "ts": "2026-09-09T01:20:44", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "port-actions offer is a command: lucisv: extract selection into module\u2026", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.extractModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:44", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "ansi-header (no offer expected) offer", "titles": [], "shapes": [], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 8, "character": 0}, "ms": [0.6773339700885117, 0.2851660246960819, 0.2228749799542129, 0.24008401669561863], "status": "ok", "result_count": 0, "ts": "2026-09-09T01:20:48", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "extract-module offer (selection)", "titles": ["lucisv: extract selection into module\u2026"], "shapes": ["command"], "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 220, "character": 0}, "note": "selection 220:0-222:53", "ms": [1.9001670298166573, 0.3470000228844583, 0.1950410078279674, 0.15654199523851275], "status": "ok", "result_count": 1, "ts": "2026-09-09T01:20:51", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "refactor", "row": "extract-module offer is a command: lucisv: extract selection into module\u2026", "ms": [0.0], "result_count": 1, "client": {"resolveSupport": true, "applyEdit": false, "createFiles": false}, "command": "lucisv.extractModule", "note": "timed by the `execute` phase, not by resolve", "ts": "2026-09-09T01:20:51", "label": "0.52.0-review", "schema": 2, "units": "ms", "status": "ok", "fresh_process": false}
|
||||
{"phase": "execute", "row": "extract-module offer", "client": {"resolveSupport": true, "applyEdit": true, "createFiles": true}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 220, "character": 0}, "titles": ["lucisv: extract selection into module\u2026"], "shapes": ["command"], "ms": [1.0923329973593354, 0.6979579920880497, 0.4639580147340894, 0.41924999095499516], "status": "ok", "result_count": 1, "ts": "2026-09-09T01:20:55", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "execute", "row": "extract-module: lucisv: extract selection into module\u2026", "ms": [174.1382500040345, 150.16983303939924, 145.6700830021873, 146.66933397529647], "status": "capture", "message": "perf capture: the benchmark client never writes", "result_count": 1, "client": {"resolveSupport": true, "applyEdit": true, "createFiles": true}, "command": "lucisv.extractModule", "arguments": 3, "total_ms": [174.1775830159895, 150.20600002026185, 145.69983299588785, 146.70116698835045], "deliver_ms": [0.01529202563688159, 0.01370901009067893, 0.010917021427303553, 0.012416974641382694], "fingerprint": "090e92e7736e0a5a93557d75befa65a5bea0c2f44494d71dc67e3f8d70d05835", "warnings": ["lucisv: `aes_extracted` was written to a new file, `aes_extracted.sv`. (and 2 more \u2014 see the lucisv log)"], "note": "ms is executeCommand -> applyEdit: the edit computation. applyEdit label 'lucisv: lucisv.extractModule'", "edits": 2, "files": 2, "created": 1, "ts": "2026-09-09T01:20:55", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "execute", "row": "inline-module offer", "client": {"resolveSupport": true, "applyEdit": true, "createFiles": true}, "file": "hw/ip/aes/rtl/aes_wrap.sv", "position": {"line": 66, "character": 2}, "titles": ["lucisv: extract selection into module\u2026", "lucisv: inline `tlul_cmd_intg_gen` here"], "shapes": ["command", "command"], "ms": [1.8940420122817159, 0.7072500302456319, 0.5643750191666186, 0.5397089989855886], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:20:59", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "execute", "row": "inline-module: lucisv: extract selection into module\u2026", "ms": [835.7801670208573, 807.4812090490013, 803.160791983828, 806.56983301742], "status": "refused", "message": "lucisv: the selection drives `h2d_intg`, and something outside it passes the same name to a task or function, which may drive it too; lucisv will not make it an output over that.", "result_count": 0, "client": {"resolveSupport": true, "applyEdit": true, "createFiles": true}, "command": "lucisv.extractModule", "arguments": 3, "total_ms": [835.7801670208573, 807.4812090490013, 803.160791983828, 806.56983301742], "deliver_ms": null, "fingerprint": null, "warnings": [], "note": "no edit was pushed, so ms is the whole executeCommand round trip", "edits": 0, "files": 0, "created": 0, "ts": "2026-09-09T01:21:02", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "execute", "row": "inline-module: lucisv: inline `tlul_cmd_intg_gen` here", "ms": [7.2315839934162796, 6.213875021785498, 6.317083025351167, 5.685417039785534], "status": "refused", "message": "lucisv: `tlul_cmd_intg_gen` uses a `generate` construct, whose block names are reachable through the hierarchy (`u_tlul_cmd_intg_gen.gen.x`) and would become names of `M`'s own; lucisv will not inline it.", "result_count": 0, "client": {"resolveSupport": true, "applyEdit": true, "createFiles": true}, "command": "lucisv.inlineModule", "arguments": 2, "total_ms": [7.2315839934162796, 6.213875021785498, 6.317083025351167, 5.685417039785534], "deliver_ms": null, "fingerprint": null, "warnings": [], "note": "no edit was pushed, so ms is the whole executeCommand round trip", "edits": 0, "files": 0, "created": 0, "ts": "2026-09-09T01:21:02", "label": "0.52.0-review", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "execute", "row": "extract-module offer", "client": {"resolveSupport": true, "applyEdit": true, "createFiles": true}, "file": "hw/ip/aes/rtl/aes.sv", "position": {"line": 220, "character": 0}, "titles": ["lucisv: extract selection into module\u2026"], "shapes": ["command"], "ms": [2.516667009331286, 1.024707977194339, 1.3964169775135815, 0.6415829993784428], "status": "ok", "result_count": 1, "ts": "2026-09-09T01:21:06", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "execute", "row": "extract-module: lucisv: extract selection into module\u2026", "ms": [178.08345798403025, 150.63129202462733, 148.5303749796003, 147.98329200129956], "status": "capture", "message": "perf capture: the benchmark client never writes", "result_count": 1, "client": {"resolveSupport": true, "applyEdit": true, "createFiles": true}, "command": "lucisv.extractModule", "arguments": 3, "total_ms": [178.11804095981643, 150.67979198647663, 148.60950002912432, 148.02891702856869], "deliver_ms": [0.011041003745049238, 0.02704199869185686, 0.029875023756176233, 0.02195802517235279], "fingerprint": "090e92e7736e0a5a93557d75befa65a5bea0c2f44494d71dc67e3f8d70d05835", "warnings": ["lucisv: `aes_extracted` was written to a new file, `aes_extracted.sv`. (and 2 more \u2014 see the lucisv log)"], "note": "ms is executeCommand -> applyEdit: the edit computation. applyEdit label 'lucisv: lucisv.extractModule'", "edits": 2, "files": 2, "created": 1, "ts": "2026-09-09T01:21:06", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "execute", "row": "inline-module offer", "client": {"resolveSupport": true, "applyEdit": true, "createFiles": true}, "file": "hw/ip/aes/rtl/aes_wrap.sv", "position": {"line": 66, "character": 2}, "titles": ["lucisv: extract selection into module\u2026", "lucisv: inline `tlul_cmd_intg_gen` here"], "shapes": ["command", "command"], "ms": [5.88275003246963, 1.3801250024698675, 1.6199999954551458, 1.1981670395471156], "status": "ok", "result_count": 2, "ts": "2026-09-09T01:21:10", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "execute", "row": "inline-module: lucisv: extract selection into module\u2026", "ms": [827.52095797332, 790.144250029698, 788.2610830129124, 794.3716250010766], "status": "refused", "message": "lucisv: the selection drives `h2d_intg`, and something outside it passes the same name to a task or function, which may drive it too; lucisv will not make it an output over that.", "result_count": 0, "client": {"resolveSupport": true, "applyEdit": true, "createFiles": true}, "command": "lucisv.extractModule", "arguments": 3, "total_ms": [827.52095797332, 790.144250029698, 788.2610830129124, 794.3716250010766], "deliver_ms": null, "fingerprint": null, "warnings": [], "note": "no edit was pushed, so ms is the whole executeCommand round trip", "edits": 0, "files": 0, "created": 0, "ts": "2026-09-09T01:21:13", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
{"phase": "execute", "row": "inline-module: lucisv: inline `tlul_cmd_intg_gen` here", "ms": [7.030457956716418, 6.090875016525388, 5.8352499618195, 5.980540998280048], "status": "refused", "message": "lucisv: `tlul_cmd_intg_gen` uses a `generate` construct, whose block names are reachable through the hierarchy (`u_tlul_cmd_intg_gen.gen.x`) and would become names of `M`'s own; lucisv will not inline it.", "result_count": 0, "client": {"resolveSupport": true, "applyEdit": true, "createFiles": true}, "command": "lucisv.inlineModule", "arguments": 2, "total_ms": [7.030457956716418, 6.090875016525388, 5.8352499618195, 5.980540998280048], "deliver_ms": null, "fingerprint": null, "warnings": [], "note": "no edit was pushed, so ms is the whole executeCommand round trip", "edits": 0, "files": 0, "created": 0, "ts": "2026-09-09T01:21:13", "label": "0.51.0-reference", "schema": 2, "units": "ms", "fresh_process": false}
|
||||
@@ -0,0 +1,20 @@
|
||||
import subprocess,os,json,time,hashlib
|
||||
from pathlib import Path
|
||||
root=Path('/Users/guoliangchen/repo/verilogrustformatter'); out=Path('/tmp/lucisv-perf-review-20260909'); corpus=Path('/Users/guoliangchen/repo/opentitan')
|
||||
old=str(out/'reference/target/release/lucisv-server')
|
||||
bins={'0.51.0-reference':old,'0.52.0-review':str(root/'target/release/lucisv-server')}
|
||||
def state():
|
||||
s=subprocess.check_output(['git','-C',str(corpus),'status','--porcelain'],text=True)
|
||||
return s,{p:hashlib.sha256((corpus/p).read_bytes()).hexdigest() for p in ['hw/ip/aes/dv/tb/tb.sv','hw/top_darjeeling/ip/ast/rtl/ast.sv','hw/top_earlgrey/ip/ast/rtl/ast.sv']}
|
||||
initial=state()
|
||||
for i,phase in enumerate(['offerkinds','offerqueue','offeredit','renametrace','scan','rss','scanloadprobe','scanloadcross','refactor','execute']):
|
||||
labels=list(bins) if i%2==0 else list(reversed(bins))
|
||||
for label in labels:
|
||||
cmd=['tools/guard.sh','-m','8','-t','1800','--','python3','tools/perf/bench.py',phase,'--server',bins[label],'--label',label,'--opentitan',str(corpus),'--storage',str(out/'caches'/label),'--out',str(out/'results.jsonl'),'--tries','3']
|
||||
r=dict(phase=phase,label=label,command=cmd,start=time.time(),load_before=os.getloadavg())
|
||||
print('START',phase,label,flush=True)
|
||||
with (out/(phase+'-'+label+'.log')).open('w') as f:p=subprocess.run(cmd,cwd=root,env=dict(os.environ,PYTHONDONTWRITEBYTECODE='1'),stdout=f,stderr=subprocess.STDOUT)
|
||||
r.update(exit=p.returncode,end=time.time(),load_after=os.getloadavg(),corpus_unchanged=state()==initial)
|
||||
with (out/'runs.jsonl').open('a') as f:f.write(json.dumps(r)+'\n')
|
||||
print('END',phase,label,p.returncode,flush=True)
|
||||
if p.returncode or not r['corpus_unchanged']:raise RuntimeError(r)
|
||||
@@ -0,0 +1,20 @@
|
||||
{"phase": "offerkinds", "label": "0.51.0-reference", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "offerkinds", "--server", "/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server", "--label", "0.51.0-reference", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.51.0-reference", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934163.9507682, "load_before": [5.1650390625, 6.98046875, 6.77099609375], "exit": 0, "end": 1788934183.659245, "load_after": [5.35009765625, 6.900390625, 6.74609375], "corpus_unchanged": true}
|
||||
{"phase": "offerkinds", "label": "0.52.0-review", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "offerkinds", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.52.0-review", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.52.0-review", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934183.7768419, "load_before": [5.35009765625, 6.900390625, 6.74609375], "exit": 0, "end": 1788934202.40133, "load_after": [4.86328125, 6.6943359375, 6.67578125], "corpus_unchanged": true}
|
||||
{"phase": "offerqueue", "label": "0.52.0-review", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "offerqueue", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.52.0-review", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.52.0-review", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934202.5280929, "load_before": [4.86328125, 6.6943359375, 6.67578125], "exit": 0, "end": 1788934206.886931, "load_after": [5.4345703125, 6.7822265625, 6.70654296875], "corpus_unchanged": true}
|
||||
{"phase": "offerqueue", "label": "0.51.0-reference", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "offerqueue", "--server", "/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server", "--label", "0.51.0-reference", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.51.0-reference", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934207.02068, "load_before": [5.4345703125, 6.7822265625, 6.70654296875], "exit": 0, "end": 1788934211.369911, "load_after": [5.9599609375, 6.86865234375, 6.7373046875], "corpus_unchanged": true}
|
||||
{"phase": "offeredit", "label": "0.51.0-reference", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "offeredit", "--server", "/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server", "--label", "0.51.0-reference", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.51.0-reference", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934211.502112, "load_before": [5.9599609375, 6.86865234375, 6.7373046875], "exit": 0, "end": 1788934222.4556859, "load_after": [5.978515625, 6.84033203125, 6.728515625], "corpus_unchanged": true}
|
||||
{"phase": "offeredit", "label": "0.52.0-review", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "offeredit", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.52.0-review", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.52.0-review", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934222.5621262, "load_before": [5.978515625, 6.84033203125, 6.728515625], "exit": 0, "end": 1788934233.511609, "load_after": [5.74755859375, 6.7626953125, 6.7021484375], "corpus_unchanged": true}
|
||||
{"phase": "renametrace", "label": "0.52.0-review", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "renametrace", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.52.0-review", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.52.0-review", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934233.624834, "load_before": [5.74755859375, 6.7626953125, 6.7021484375], "exit": 0, "end": 1788934290.385715, "load_after": [5.0947265625, 6.37841796875, 6.5595703125], "corpus_unchanged": true}
|
||||
{"phase": "renametrace", "label": "0.51.0-reference", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "renametrace", "--server", "/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server", "--label", "0.51.0-reference", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.51.0-reference", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934290.497727, "load_before": [5.0947265625, 6.37841796875, 6.5595703125], "exit": 0, "end": 1788934366.829311, "load_after": [3.87353515625, 5.6357421875, 6.25439453125], "corpus_unchanged": true}
|
||||
{"phase": "scan", "label": "0.51.0-reference", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "scan", "--server", "/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server", "--label", "0.51.0-reference", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.51.0-reference", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934366.928801, "load_before": [3.87353515625, 5.6357421875, 6.25439453125], "exit": 0, "end": 1788934439.322835, "load_after": [4.4677734375, 5.47900390625, 6.1455078125], "corpus_unchanged": true}
|
||||
{"phase": "scan", "label": "0.52.0-review", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "scan", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.52.0-review", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.52.0-review", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934439.4233239, "load_before": [4.4677734375, 5.47900390625, 6.1455078125], "exit": 0, "end": 1788934510.867989, "load_after": [4.39306640625, 5.193359375, 5.97998046875], "corpus_unchanged": true}
|
||||
{"phase": "rss", "label": "0.52.0-review", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "rss", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.52.0-review", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.52.0-review", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934510.962989, "load_before": [4.39306640625, 5.193359375, 5.97998046875], "exit": 0, "end": 1788934539.531492, "load_after": [4.2470703125, 5.0908203125, 5.91552734375], "corpus_unchanged": true}
|
||||
{"phase": "rss", "label": "0.51.0-reference", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "rss", "--server", "/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server", "--label", "0.51.0-reference", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.51.0-reference", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934539.6351821, "load_before": [4.2470703125, 5.0908203125, 5.91552734375], "exit": 0, "end": 1788934568.203514, "load_after": [3.87060546875, 4.9208984375, 5.82470703125], "corpus_unchanged": true}
|
||||
{"phase": "scanloadprobe", "label": "0.51.0-reference", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "scanloadprobe", "--server", "/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server", "--label", "0.51.0-reference", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.51.0-reference", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934568.3059351, "load_before": [3.87060546875, 4.9208984375, 5.82470703125], "exit": 0, "end": 1788934587.887279, "load_after": [4.56494140625, 4.99365234375, 5.82861328125], "corpus_unchanged": true}
|
||||
{"phase": "scanloadprobe", "label": "0.52.0-review", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "scanloadprobe", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.52.0-review", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.52.0-review", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934588.0167758, "load_before": [4.56494140625, 4.99365234375, 5.82861328125], "exit": 0, "end": 1788934604.39112, "load_after": [5.30078125, 5.13916015625, 5.86572265625], "corpus_unchanged": true}
|
||||
{"phase": "scanloadcross", "label": "0.52.0-review", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "scanloadcross", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.52.0-review", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.52.0-review", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934604.5086, "load_before": [5.30078125, 5.13916015625, 5.86572265625], "exit": 0, "end": 1788934698.6455839, "load_after": [4.8388671875, 4.93994140625, 5.70556640625], "corpus_unchanged": true}
|
||||
{"phase": "scanloadcross", "label": "0.51.0-reference", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "scanloadcross", "--server", "/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server", "--label", "0.51.0-reference", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.51.0-reference", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934698.75788, "load_before": [4.8388671875, 4.93994140625, 5.70556640625], "exit": 0, "end": 1788934809.883633, "load_after": [4.57666015625, 4.986328125, 5.63720703125], "corpus_unchanged": true}
|
||||
{"phase": "refactor", "label": "0.51.0-reference", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "refactor", "--server", "/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server", "--label", "0.51.0-reference", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.51.0-reference", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934809.995477, "load_before": [4.57666015625, 4.986328125, 5.63720703125], "exit": 0, "end": 1788934830.940748, "load_after": [4.8779296875, 5.0205078125, 5.63330078125], "corpus_unchanged": true}
|
||||
{"phase": "refactor", "label": "0.52.0-review", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "refactor", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.52.0-review", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.52.0-review", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934831.072156, "load_before": [4.8779296875, 5.0205078125, 5.63330078125], "exit": 0, "end": 1788934851.975531, "load_after": [5.02880859375, 5.0234375, 5.6142578125], "corpus_unchanged": true}
|
||||
{"phase": "execute", "label": "0.52.0-review", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "execute", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.52.0-review", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.52.0-review", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934852.0846488, "load_before": [5.02880859375, 5.0234375, 5.6142578125], "exit": 0, "end": 1788934863.005026, "load_after": [4.99853515625, 5.02099609375, 5.6064453125], "corpus_unchanged": true}
|
||||
{"phase": "execute", "label": "0.51.0-reference", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "execute", "--server", "/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server", "--label", "0.51.0-reference", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.51.0-reference", "--out", "/tmp/lucisv-perf-review-20260909/results.jsonl", "--tries", "3"], "start": 1788934863.116577, "load_before": [4.99853515625, 5.02099609375, 5.6064453125], "exit": 0, "end": 1788934874.024811, "load_after": [5.1455078125, 5.052734375, 5.6103515625], "corpus_unchanged": true}
|
||||
@@ -0,0 +1,6 @@
|
||||
{"label": "0.51.0", "trial": 0, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "prepare": {"jsonrpc": "2.0", "id": 3, "result": {"placeholder": "child", "range": {"end": {"character": 16, "line": 0}, "start": {"character": 11, "line": 0}}}}, "after_rescan": {"jsonrpc": "2.0", "id": 4, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "prepare_after_rescan": {"jsonrpc": "2.0", "id": 5, "result": {"placeholder": "child", "range": {"end": {"character": 16, "line": 0}, "start": {"character": 11, "line": 0}}}}, "logs": ["timing: textDocument/didOpen handled in 0.25 ms", "timing: configuration answered in 0.35 ms", "timing: scan started: 3 files", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 3 files (0 skipped, 0 from cache) in 1.18 ms", "timing: scan 1 stages (whole, 3 files): discovery=0.21 order=0.00 cache_open=0.03 read=0.06 lookup=0.00 decode=0.00 parse=0.03 encode=0.02 store_write=0.32 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.01 compact=0.32 candidates=0.00 includes=0.00 overlay=0.00 total=1.16 since_start=0.46 ms", "timing: scan 1 counts (whole): read=3 read_kib=0 skipped=0 hits=0 misses=2 buffers=1 records=3 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 1 memory (whole): store_before_kib=0 store_after_kib=0 cache_entries=3 cache_encoded_kib=0 index_files=3 unit_names=2 unit_defs=3 members=0 hier_members=2 reference_keys=1 reference_sites=2 defines=0 instantiations=2 fact_words=7 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=3 work_kib=0", "timing: textDocument/definition answered in 0.31 ms", "timing: textDocument/prepareRename answered in 0.03 ms", "timing: scan started: 3 files", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 3 files (0 skipped, 2 from cache) in 1.72 ms", "timing: scan 2 stages (whole, 3 files): discovery=0.55 order=0.01 cache_open=0.08 read=0.22 lookup=0.00 decode=0.05 parse=0.00 encode=0.01 store_write=0.00 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.03 compact=0.03 candidates=0.02 includes=0.02 overlay=0.00 total=1.28 since_start=508.73 ms", "timing: scan 2 counts (whole): read=3 read_kib=0 skipped=0 hits=2 misses=0 buffers=1 records=0 repeats=1 decoded_kib=0 written_kib=0 opens=1 compactions=0 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 2 memory (whole): store_before_kib=0 store_after_kib=0 cache_entries=3 cache_encoded_kib=0 index_files=3 unit_names=2 unit_defs=3 members=0 hier_members=2 reference_keys=1 reference_sites=2 defines=0 instantiations=2 fact_words=7 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=3 work_kib=0", "timing: workspace/didChangeWatchedFiles handled in 2.95 ms", "timing: textDocument/definition answered in 0.03 ms", "timing: textDocument/prepareRename answered in 0.01 ms"]}
|
||||
{"label": "0.51.0", "trial": 1, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "prepare": {"jsonrpc": "2.0", "id": 3, "result": {"placeholder": "child", "range": {"end": {"character": 16, "line": 0}, "start": {"character": 11, "line": 0}}}}, "after_rescan": {"jsonrpc": "2.0", "id": 4, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "prepare_after_rescan": {"jsonrpc": "2.0", "id": 5, "result": {"placeholder": "child", "range": {"end": {"character": 16, "line": 0}, "start": {"character": 11, "line": 0}}}}, "logs": ["timing: configuration answered in 0.16 ms", "timing: scan started: 2 files", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 2 files (0 skipped, 0 from cache) in 2.89 ms", "timing: scan 1 stages (whole, 2 files): discovery=0.34 order=0.00 cache_open=0.02 read=0.14 lookup=0.00 decode=0.00 parse=0.16 encode=0.01 store_write=1.16 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.02 compact=0.76 candidates=0.01 includes=0.00 overlay=0.00 total=2.84 since_start=0.43 ms", "timing: scan 1 counts (whole): read=2 read_kib=0 skipped=0 hits=0 misses=2 buffers=0 records=2 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=0", "timing: scan 1 memory (whole): store_before_kib=0 store_after_kib=0 cache_entries=2 cache_encoded_kib=0 index_files=2 unit_names=2 unit_defs=2 members=0 hier_members=1 reference_keys=1 reference_sites=1 defines=0 instantiations=1 fact_words=4 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=2 work_kib=0", "timing: textDocument/didOpen handled in 0.37 ms", "timing: textDocument/definition answered in 0.07 ms", "timing: textDocument/prepareRename answered in 0.02 ms", "timing: scan started: 3 files", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 3 files (0 skipped, 2 from cache) in 1.80 ms", "timing: scan 2 stages (whole, 3 files): discovery=0.37 order=0.01 cache_open=0.06 read=0.15 lookup=0.00 decode=0.03 parse=0.00 encode=0.01 store_write=0.10 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.03 compact=0.73 candidates=0.01 includes=0.01 overlay=0.01 total=1.75 since_start=508.33 ms", "timing: scan 2 counts (whole): read=3 read_kib=0 skipped=0 hits=2 misses=0 buffers=1 records=1 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 2 memory (whole): store_before_kib=0 store_after_kib=0 cache_entries=3 cache_encoded_kib=0 index_files=3 unit_names=2 unit_defs=3 members=0 hier_members=2 reference_keys=1 reference_sites=2 defines=0 instantiations=2 fact_words=7 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=3 work_kib=0", "timing: workspace/didChangeWatchedFiles handled in 2.44 ms", "timing: textDocument/definition answered in 0.01 ms", "timing: textDocument/prepareRename answered in 0.01 ms"]}
|
||||
{"label": "0.51.0", "trial": 2, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "prepare": {"jsonrpc": "2.0", "id": 3, "result": {"placeholder": "child", "range": {"end": {"character": 16, "line": 0}, "start": {"character": 11, "line": 0}}}}, "after_rescan": {"jsonrpc": "2.0", "id": 4, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "prepare_after_rescan": {"jsonrpc": "2.0", "id": 5, "result": {"placeholder": "child", "range": {"end": {"character": 16, "line": 0}, "start": {"character": 11, "line": 0}}}}, "logs": ["timing: textDocument/didOpen handled in 0.22 ms", "timing: configuration answered in 0.36 ms", "timing: scan started: 3 files", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 3 files (0 skipped, 0 from cache) in 1.43 ms", "timing: scan 1 stages (whole, 3 files): discovery=0.27 order=0.00 cache_open=0.02 read=0.08 lookup=0.00 decode=0.00 parse=0.04 encode=0.02 store_write=0.35 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.01 compact=0.44 candidates=0.01 includes=0.00 overlay=0.00 total=1.40 since_start=0.49 ms", "timing: scan 1 counts (whole): read=3 read_kib=0 skipped=0 hits=0 misses=2 buffers=1 records=3 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 1 memory (whole): store_before_kib=0 store_after_kib=0 cache_entries=3 cache_encoded_kib=0 index_files=3 unit_names=2 unit_defs=3 members=0 hier_members=2 reference_keys=1 reference_sites=2 defines=0 instantiations=2 fact_words=7 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=3 work_kib=0", "timing: textDocument/definition answered in 0.19 ms", "timing: textDocument/prepareRename answered in 0.03 ms", "timing: scan started: 3 files", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 3 files (0 skipped, 2 from cache) in 2.28 ms", "timing: scan 2 stages (whole, 3 files): discovery=1.54 order=0.01 cache_open=0.14 read=0.09 lookup=0.00 decode=0.03 parse=0.00 encode=0.01 store_write=0.00 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.01 absorb=0.03 compact=0.02 candidates=0.01 includes=0.01 overlay=0.00 total=2.22 since_start=514.82 ms", "timing: scan 2 counts (whole): read=3 read_kib=0 skipped=0 hits=2 misses=0 buffers=1 records=0 repeats=1 decoded_kib=0 written_kib=0 opens=1 compactions=0 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 2 memory (whole): store_before_kib=0 store_after_kib=0 cache_entries=3 cache_encoded_kib=0 index_files=3 unit_names=2 unit_defs=3 members=0 hier_members=2 reference_keys=1 reference_sites=2 defines=0 instantiations=2 fact_words=7 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=3 work_kib=0", "timing: workspace/didChangeWatchedFiles handled in 3.29 ms", "timing: textDocument/definition answered in 0.02 ms", "timing: textDocument/prepareRename answered in 0.01 ms"]}
|
||||
{"label": "0.52.0", "trial": 0, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}, {"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv"}]}, "prepare": {"jsonrpc": "2.0", "id": 3, "error": {"code": -32803, "message": "lucisv: `child` is declared in more than one indexed file; lucisv will not guess which declaration this rename means."}}, "after_rescan": {"jsonrpc": "2.0", "id": 4, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "prepare_after_rescan": {"jsonrpc": "2.0", "id": 5, "result": {"placeholder": "child", "range": {"end": {"character": 16, "line": 0}, "start": {"character": 11, "line": 0}}}}, "logs": ["timing: configuration answered in 0.16 ms", "timing: textDocument/didOpen handled in 0.56 ms", "timing: scan started: 2 files (the folder first), interleaved", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 4 files (0 skipped, 0 from cache) in 3.18 ms", "timing: scan 1 stages (whole, 4 files): discovery=0.67 config=0.13 walk=0.41 filelist=0.00 sort=0.00 cap=0.00 buffers=0.02 order=0.00 cache_open=0.03 read=0.19 lookup=0.00 decode=0.00 parse=0.08 encode=0.02 store_write=1.10 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.02 compact=0.75 candidates=0.01 includes=0.01 overlay=0.01 total=3.13 since_start=1.03 ms", "timing: scan 1 counts (whole): read=4 read_kib=0 walk_dirs=2 stats=0 skipped=0 hits=0 misses=3 buffers=1 records=4 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 1 memory (whole): store_before_kib=1 store_after_kib=1 cache_entries=4 cache_encoded_kib=0 index_files=4 unit_names=2 unit_defs=4 members=0 hier_members=2 reference_keys=0 reference_sites=0 defines=0 instantiations=2 fact_words=8 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=4 work_kib=0", "timing: textDocument/definition answered in 0.09 ms", "timing: textDocument/prepareRename answered in 0.02 ms", "timing: scan started: 3 files", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 3 files (0 skipped, 2 from cache) in 0.96 ms", "timing: scan 2 stages (whole, 3 files): discovery=0.48 config=0.06 walk=0.25 filelist=0.00 sort=0.00 cap=0.00 buffers=0.03 order=0.01 cache_open=0.07 read=0.10 lookup=0.00 decode=0.02 parse=0.00 encode=0.01 store_write=0.00 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.02 compact=0.02 candidates=0.01 includes=0.01 overlay=0.01 total=0.93 since_start=512.26 ms", "timing: scan 2 counts (whole): read=3 read_kib=0 walk_dirs=1 stats=0 skipped=0 hits=2 misses=0 buffers=1 records=0 repeats=1 decoded_kib=0 written_kib=0 opens=1 compactions=0 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 2 memory (whole): store_before_kib=1 store_after_kib=1 cache_entries=4 cache_encoded_kib=0 index_files=3 unit_names=2 unit_defs=3 members=0 hier_members=2 reference_keys=1 reference_sites=2 defines=0 instantiations=2 fact_words=7 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=3 work_kib=0", "timing: workspace/didChangeWatchedFiles handled in 1.90 ms", "timing: textDocument/definition answered in 0.03 ms", "timing: textDocument/prepareRename answered in 0.01 ms"]}
|
||||
{"label": "0.52.0", "trial": 1, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}, {"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv"}]}, "prepare": {"jsonrpc": "2.0", "id": 3, "error": {"code": -32803, "message": "lucisv: `child` is declared in more than one indexed file; lucisv will not guess which declaration this rename means."}}, "after_rescan": {"jsonrpc": "2.0", "id": 4, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "prepare_after_rescan": {"jsonrpc": "2.0", "id": 5, "result": {"placeholder": "child", "range": {"end": {"character": 16, "line": 0}, "start": {"character": 11, "line": 0}}}}, "logs": ["timing: textDocument/didOpen handled in 0.40 ms", "timing: configuration answered in 0.59 ms", "timing: scan started: 2 files (the folder first), interleaved", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 4 files (0 skipped, 0 from cache) in 2.78 ms", "timing: scan 1 stages (whole, 4 files): discovery=0.52 config=0.10 walk=0.31 filelist=0.00 sort=0.00 cap=0.00 buffers=0.01 order=0.00 cache_open=0.02 read=0.19 lookup=0.00 decode=0.00 parse=0.08 encode=0.02 store_write=1.00 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.02 compact=0.66 candidates=0.01 includes=0.01 overlay=0.01 total=2.74 since_start=0.76 ms", "timing: scan 1 counts (whole): read=4 read_kib=0 walk_dirs=2 stats=0 skipped=0 hits=0 misses=3 buffers=1 records=4 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 1 memory (whole): store_before_kib=1 store_after_kib=1 cache_entries=4 cache_encoded_kib=0 index_files=4 unit_names=2 unit_defs=4 members=0 hier_members=2 reference_keys=0 reference_sites=0 defines=0 instantiations=2 fact_words=8 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=4 work_kib=0", "timing: textDocument/definition answered in 0.41 ms", "timing: textDocument/prepareRename answered in 0.07 ms", "timing: scan started: 3 files", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 3 files (0 skipped, 2 from cache) in 1.45 ms", "timing: scan 2 stages (whole, 3 files): discovery=0.62 config=0.04 walk=0.36 filelist=0.00 sort=0.00 cap=0.00 buffers=0.05 order=0.01 cache_open=0.16 read=0.17 lookup=0.00 decode=0.03 parse=0.00 encode=0.03 store_write=0.00 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.02 compact=0.02 candidates=0.02 includes=0.01 overlay=0.01 total=1.38 since_start=513.23 ms", "timing: scan 2 counts (whole): read=3 read_kib=0 walk_dirs=1 stats=0 skipped=0 hits=2 misses=0 buffers=1 records=0 repeats=1 decoded_kib=0 written_kib=0 opens=1 compactions=0 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 2 memory (whole): store_before_kib=1 store_after_kib=1 cache_entries=4 cache_encoded_kib=0 index_files=3 unit_names=2 unit_defs=3 members=0 hier_members=2 reference_keys=1 reference_sites=2 defines=0 instantiations=2 fact_words=7 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=3 work_kib=0", "timing: workspace/didChangeWatchedFiles handled in 2.48 ms", "timing: textDocument/definition answered in 0.02 ms", "timing: textDocument/prepareRename answered in 0.01 ms"]}
|
||||
{"label": "0.52.0", "trial": 2, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}, {"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv"}]}, "prepare": {"jsonrpc": "2.0", "id": 3, "error": {"code": -32803, "message": "lucisv: `child` is declared in more than one indexed file; lucisv will not guess which declaration this rename means."}}, "after_rescan": {"jsonrpc": "2.0", "id": 4, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "prepare_after_rescan": {"jsonrpc": "2.0", "id": 5, "result": {"placeholder": "child", "range": {"end": {"character": 16, "line": 0}, "start": {"character": 11, "line": 0}}}}, "logs": ["timing: configuration answered in 0.26 ms", "timing: textDocument/didOpen handled in 0.53 ms", "timing: scan started: 2 files (the folder first), interleaved", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 4 files (0 skipped, 0 from cache) in 3.10 ms", "timing: scan 1 stages (whole, 4 files): discovery=0.62 config=0.10 walk=0.38 filelist=0.00 sort=0.00 cap=0.00 buffers=0.02 order=0.00 cache_open=0.02 read=0.20 lookup=0.00 decode=0.00 parse=0.09 encode=0.03 store_write=1.11 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.02 compact=0.63 candidates=0.01 includes=0.01 overlay=0.00 total=3.06 since_start=1.10 ms", "timing: scan 1 counts (whole): read=4 read_kib=0 walk_dirs=2 stats=0 skipped=0 hits=0 misses=3 buffers=1 records=4 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 1 memory (whole): store_before_kib=1 store_after_kib=1 cache_entries=4 cache_encoded_kib=0 index_files=4 unit_names=2 unit_defs=4 members=0 hier_members=2 reference_keys=0 reference_sites=0 defines=0 instantiations=2 fact_words=8 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=4 work_kib=0", "timing: textDocument/definition answered in 0.08 ms", "timing: textDocument/prepareRename answered in 0.02 ms", "timing: scan started: 3 files", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "cached: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 3 files (0 skipped, 2 from cache) in 1.46 ms", "timing: scan 2 stages (whole, 3 files): discovery=0.61 config=0.09 walk=0.31 filelist=0.00 sort=0.00 cap=0.00 buffers=0.03 order=0.01 cache_open=0.09 read=0.11 lookup=0.00 decode=0.05 parse=0.00 encode=0.01 store_write=0.00 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.02 compact=0.02 candidates=0.01 includes=0.01 overlay=0.00 total=1.34 since_start=507.71 ms", "timing: scan 2 counts (whole): read=3 read_kib=0 walk_dirs=1 stats=0 skipped=0 hits=2 misses=0 buffers=1 records=0 repeats=1 decoded_kib=0 written_kib=0 opens=1 compactions=0 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 2 memory (whole): store_before_kib=1 store_after_kib=1 cache_entries=4 cache_encoded_kib=0 index_files=3 unit_names=2 unit_defs=3 members=0 hier_members=2 reference_keys=1 reference_sites=2 defines=0 instantiations=2 fact_words=7 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=3 work_kib=0", "timing: workspace/didChangeWatchedFiles handled in 2.47 ms", "timing: textDocument/definition answered in 0.02 ms", "timing: textDocument/prepareRename answered in 0.01 ms"]}
|
||||
@@ -0,0 +1,6 @@
|
||||
{"label": "0.51.0", "trial": 0, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "logs": ["timing: textDocument/didOpen handled in 0.66 ms", "timing: configuration answered in 0.72 ms", "timing: scan started: 3 files", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 3 files (0 skipped, 0 from cache) in 2.38 ms", "timing: scan 1 stages (whole, 3 files): discovery=0.36 order=0.00 cache_open=0.02 read=0.09 lookup=0.00 decode=0.00 parse=0.11 encode=0.06 store_write=0.52 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.12 compact=0.70 candidates=0.01 includes=0.01 overlay=0.03 total=2.33 since_start=0.89 ms", "timing: scan 1 counts (whole): read=3 read_kib=0 skipped=0 hits=0 misses=2 buffers=1 records=3 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 1 memory (whole): store_before_kib=0 store_after_kib=0 cache_entries=3 cache_encoded_kib=0 index_files=3 unit_names=2 unit_defs=3 members=0 hier_members=2 reference_keys=1 reference_sites=2 defines=0 instantiations=2 fact_words=7 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=3 work_kib=0", "timing: textDocument/definition answered in 0.15 ms"]}
|
||||
{"label": "0.51.0", "trial": 1, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "logs": ["timing: textDocument/didOpen handled in 0.27 ms", "timing: configuration answered in 0.40 ms", "timing: scan started: 3 files", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 3 files (0 skipped, 0 from cache) in 2.18 ms", "timing: scan 1 stages (whole, 3 files): discovery=0.31 order=0.00 cache_open=0.02 read=0.14 lookup=0.00 decode=0.00 parse=0.07 encode=0.04 store_write=0.76 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.02 compact=0.55 candidates=0.01 includes=0.00 overlay=0.00 total=2.15 since_start=0.55 ms", "timing: scan 1 counts (whole): read=3 read_kib=0 skipped=0 hits=0 misses=2 buffers=1 records=3 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 1 memory (whole): store_before_kib=0 store_after_kib=0 cache_entries=3 cache_encoded_kib=0 index_files=3 unit_names=2 unit_defs=3 members=0 hier_members=2 reference_keys=1 reference_sites=2 defines=0 instantiations=2 fact_words=7 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=3 work_kib=0", "timing: textDocument/definition answered in 0.04 ms"]}
|
||||
{"label": "0.51.0", "trial": 2, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}]}, "logs": ["timing: configuration answered in 0.21 ms", "timing: scan started: 2 files", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 2 files (0 skipped, 0 from cache) in 2.24 ms", "timing: scan 1 stages (whole, 2 files): discovery=0.25 order=0.00 cache_open=0.02 read=0.07 lookup=0.00 decode=0.00 parse=0.14 encode=0.01 store_write=0.87 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.01 compact=0.67 candidates=0.01 includes=0.00 overlay=0.00 total=2.21 since_start=0.39 ms", "timing: scan 1 counts (whole): read=2 read_kib=0 skipped=0 hits=0 misses=2 buffers=0 records=2 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=0", "timing: scan 1 memory (whole): store_before_kib=0 store_after_kib=0 cache_entries=2 cache_encoded_kib=0 index_files=2 unit_names=2 unit_defs=2 members=0 hier_members=1 reference_keys=1 reference_sites=1 defines=0 instantiations=1 fact_words=4 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=2 work_kib=0", "timing: textDocument/didOpen handled in 0.25 ms", "timing: textDocument/definition answered in 0.09 ms"]}
|
||||
{"label": "0.52.0", "trial": 0, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}, {"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv"}]}, "logs": ["timing: textDocument/didOpen handled in 1.33 ms", "timing: configuration answered in 1.46 ms", "timing: scan started: 2 files (the folder first), interleaved", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 4 files (0 skipped, 0 from cache) in 1.82 ms", "timing: scan 1 stages (whole, 4 files): discovery=0.45 config=0.06 walk=0.24 filelist=0.00 sort=0.02 cap=0.00 buffers=0.03 order=0.00 cache_open=0.04 read=0.08 lookup=0.00 decode=0.00 parse=0.09 encode=0.02 store_write=0.41 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.05 compact=0.42 candidates=0.00 includes=0.01 overlay=0.02 total=1.77 since_start=1.82 ms", "timing: scan 1 counts (whole): read=4 read_kib=0 walk_dirs=2 stats=0 skipped=0 hits=0 misses=3 buffers=1 records=4 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 1 memory (whole): store_before_kib=1 store_after_kib=1 cache_entries=4 cache_encoded_kib=0 index_files=4 unit_names=2 unit_defs=4 members=0 hier_members=2 reference_keys=0 reference_sites=0 defines=0 instantiations=2 fact_words=8 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=4 work_kib=0", "timing: textDocument/definition answered in 0.18 ms"]}
|
||||
{"label": "0.52.0", "trial": 1, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}, {"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv"}]}, "logs": ["timing: configuration answered in 0.21 ms", "timing: textDocument/didOpen handled in 0.57 ms", "timing: scan started: 2 files (the folder first), interleaved", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 4 files (0 skipped, 0 from cache) in 1.58 ms", "timing: scan 1 stages (whole, 4 files): discovery=0.39 config=0.06 walk=0.23 filelist=0.00 sort=0.00 cap=0.00 buffers=0.01 order=0.00 cache_open=0.02 read=0.08 lookup=0.00 decode=0.00 parse=0.05 encode=0.02 store_write=0.38 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.01 compact=0.45 candidates=0.01 includes=0.00 overlay=0.01 total=1.55 since_start=1.09 ms", "timing: scan 1 counts (whole): read=4 read_kib=0 walk_dirs=2 stats=0 skipped=0 hits=0 misses=3 buffers=1 records=4 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 1 memory (whole): store_before_kib=1 store_after_kib=1 cache_entries=4 cache_encoded_kib=0 index_files=4 unit_names=2 unit_defs=4 members=0 hier_members=2 reference_keys=0 reference_sites=0 defines=0 instantiations=2 fact_words=8 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=4 work_kib=0", "timing: textDocument/definition answered in 0.09 ms"]}
|
||||
{"label": "0.52.0", "trial": 2, "answer": {"jsonrpc": "2.0", "id": 2, "result": [{"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv"}, {"range": {"end": {"character": 12, "line": 0}, "start": {"character": 7, "line": 0}}, "uri": "file:///tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv"}]}, "logs": ["timing: configuration answered in 0.20 ms", "timing: textDocument/didOpen handled in 0.40 ms", "timing: scan started: 2 files (the folder first), interleaved", "analyzed: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/tb.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/z_real/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/child.sv", "indexing: /tmp/lucisv-perf-review-20260909/symlink-fixture/a_alias/tb.sv", "timing: scan finished: 4 files (0 skipped, 0 from cache) in 2.19 ms", "timing: scan 1 stages (whole, 4 files): discovery=0.44 config=0.06 walk=0.29 filelist=0.00 sort=0.00 cap=0.00 buffers=0.01 order=0.00 cache_open=0.02 read=0.18 lookup=0.00 decode=0.00 parse=0.07 encode=0.02 store_write=0.50 publish_absorb=0.00 publish_candidates=0.00 publish_includes=0.00 publish_overlay=0.00 gone=0.00 absorb=0.02 compact=0.56 candidates=0.01 includes=0.01 overlay=0.00 total=2.13 since_start=0.84 ms", "timing: scan 1 counts (whole): read=4 read_kib=0 walk_dirs=2 stats=0 skipped=0 hits=0 misses=3 buffers=1 records=4 repeats=0 decoded_kib=0 written_kib=0 opens=1 compactions=1 publishes=0 published=0 first_publish=0.00 overlays=1", "timing: scan 1 memory (whole): store_before_kib=1 store_after_kib=1 cache_entries=4 cache_encoded_kib=0 index_files=4 unit_names=2 unit_defs=4 members=0 hier_members=2 reference_keys=0 reference_sites=0 defines=0 instantiations=2 fact_words=8 fact_word_kib=0 candidate_units=2 candidate_macros=0 candidate_words=3 candidate_word_kib=0 include_edges=0 include_known=4 work_kib=0", "timing: textDocument/definition answered in 0.08 ms"]}
|
||||
@@ -0,0 +1,20 @@
|
||||
import sys,json,pathlib
|
||||
sys.path.insert(0,'/Users/guoliangchen/repo/verilogrustformatter/tools/perf')
|
||||
from lspclient import Session,uri
|
||||
out=pathlib.Path('/tmp/lucisv-perf-review-20260909');root=out/'symlink-fixture';(root/'z_real').mkdir(parents=True,exist_ok=True)
|
||||
(root/'z_real/child.sv').write_text('module child; endmodule\n')
|
||||
(root/'z_real/tb.sv').write_text('module tb; child u(); endmodule\n')
|
||||
link=root/'a_alias'
|
||||
if not link.exists():link.symlink_to('z_real',target_is_directory=True)
|
||||
for label,server in [('0.51.0',out/'reference/target/release/lucisv-server'),('0.52.0',pathlib.Path('/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server'))]:
|
||||
for trial in range(3):
|
||||
with Session(str(server),str(root),str(out/'symlink-cache'/label),scope={'index':{'scope':'workspace','scopeDepth':0}},cold=True,verbose=True) as s:
|
||||
s.initialize();s.did_open(str(root/'z_real/tb.sv'));s.wait_quiet(0.5)
|
||||
params={'textDocument':{'uri':uri(str(root/'z_real/tb.sv'))},'position':{'line':0,'character':12}}
|
||||
answer=s.request('textDocument/definition',params)[1]
|
||||
prepare=s.request('textDocument/prepareRename',params)[1]
|
||||
s.notify('workspace/didChangeWatchedFiles',{'changes':[{'uri':uri(str(root/'z_real/child.sv')),'type':2},{'uri':uri(str(root/'z_real/tb.sv')),'type':2}]})
|
||||
after=s.request('textDocument/definition',params)[1]
|
||||
prepare_after=s.request('textDocument/prepareRename',params)[1]
|
||||
s.drain()
|
||||
print(json.dumps(dict(label=label,trial=trial,answer=answer,prepare=prepare,after_rescan=after,prepare_after_rescan=prepare_after,logs=s.log_messages)),flush=True)
|
||||
@@ -0,0 +1,16 @@
|
||||
import sys,json,pathlib
|
||||
sys.path.insert(0,'/Users/guoliangchen/repo/verilogrustformatter/tools/perf')
|
||||
from lspclient import Session,uri
|
||||
out=pathlib.Path('/tmp/lucisv-perf-review-20260909');root=out/'symlink-fixture';(root/'z_real').mkdir(parents=True,exist_ok=True)
|
||||
(root/'z_real/child.sv').write_text('module child; endmodule\n')
|
||||
(root/'z_real/tb.sv').write_text('module tb; child u(); endmodule\n')
|
||||
link=root/'a_alias'
|
||||
if not link.exists():link.symlink_to('z_real',target_is_directory=True)
|
||||
for label,server in [('0.51.0',out/'reference/target/release/lucisv-server'),('0.52.0',pathlib.Path('/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server'))]:
|
||||
for trial in range(3):
|
||||
with Session(str(server),str(root),str(out/'symlink-cache'/label),scope={'index':{'scope':'workspace','scopeDepth':0}},cold=True,verbose=True) as s:
|
||||
s.initialize();s.did_open(str(root/'z_real/tb.sv'));s.wait_quiet(0.5)
|
||||
params={'textDocument':{'uri':uri(str(root/'z_real/tb.sv'))},'position':{'line':0,'character':12}}
|
||||
answer=s.request('textDocument/definition',params)[1]
|
||||
s.drain()
|
||||
print(json.dumps(dict(label=label,trial=trial,answer=answer,logs=s.log_messages)),flush=True)
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"tests": {
|
||||
"passed": 4374,
|
||||
"failed": 0,
|
||||
"ignored": 45,
|
||||
"result_blocks": 59
|
||||
},
|
||||
"paired_outcome_rows_compared": 84,
|
||||
"outcome_differences": [],
|
||||
"verification_commands_all_succeeded": true,
|
||||
"corpus_unchanged": true,
|
||||
"reproduced_findings": [
|
||||
"F1",
|
||||
"F2",
|
||||
"F3"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{"name": "warm-retest-0.52.0-review", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "scanloadprobe", "--server", "/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server", "--label", "0.52.0-review", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.52.0-review", "--out", "/tmp/lucisv-perf-review-20260909/load-retest.jsonl", "--tries", "3"], "exit": 0, "start": 1788934913.070663, "end": 1788934928.407276}
|
||||
{"name": "warm-retest-0.51.0-reference", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "tools/perf/bench.py", "scanloadprobe", "--server", "/tmp/lucisv-perf-review-20260909/reference/target/release/lucisv-server", "--label", "0.51.0-reference", "--opentitan", "/Users/guoliangchen/repo/opentitan", "--storage", "/tmp/lucisv-perf-review-20260909/caches/0.51.0-reference", "--out", "/tmp/lucisv-perf-review-20260909/load-retest.jsonl", "--tries", "3"], "exit": 0, "start": 1788934928.407598, "end": 1788934946.945303}
|
||||
{"name": "warm-priming-proof", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "/tmp/lucisv-perf-review-20260909/warm_priming_probe.py"], "exit": 0, "start": 1788934946.945431, "end": 1788934957.894967}
|
||||
{"name": "symlink-lifecycle", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "python3", "/tmp/lucisv-perf-review-20260909/symlink_lifecycle.py"], "exit": 0, "start": 1788934957.895423, "end": 1788934961.194865}
|
||||
{"name": "fmt", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "cargo", "fmt", "--all", "--", "--check"], "exit": 0, "start": 1788934961.1951082, "end": 1788934963.357418}
|
||||
{"name": "clippy", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "cargo", "clippy", "--workspace", "--all-targets", "--locked", "--", "-D", "warnings"], "exit": 0, "start": 1788934963.357829, "end": 1788935088.440186}
|
||||
{"name": "tests", "command": ["tools/guard.sh", "-m", "8", "-t", "1800", "--", "cargo", "test", "--workspace", "--locked"], "exit": 0, "start": 1788935088.4404638, "end": 1788935983.462829}
|
||||
@@ -0,0 +1,11 @@
|
||||
import subprocess,pathlib,json,time,os
|
||||
out=pathlib.Path('/tmp/lucisv-perf-review-20260909')
|
||||
commands=[('warm-priming-proof',['python3',str(out/'warm_priming_probe.py')]),('symlink-lifecycle',['python3',str(out/'symlink_lifecycle.py')]),('fmt',['cargo','fmt','--all','--','--check']),('clippy',['cargo','clippy','--workspace','--all-targets','--locked','--','-D','warnings']),('tests',['cargo','test','--workspace','--locked'])]
|
||||
for label,server in [('0.51.0-reference',str(out/'reference/target/release/lucisv-server')),('0.52.0-review','/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server')]:
|
||||
commands.insert(0,('warm-retest-'+label,['python3','tools/perf/bench.py','scanloadprobe','--server',server,'--label',label,'--opentitan','/Users/guoliangchen/repo/opentitan','--storage',str(out/'caches'/label),'--out',str(out/'load-retest.jsonl'),'--tries','3']))
|
||||
for name,args in commands:
|
||||
cmd=['tools/guard.sh','-m','8','-t','1800','--']+args
|
||||
print('START',name,flush=True);started=time.time()
|
||||
with (out/(name+'.log')).open('w') as f:r=subprocess.run(cmd,stdout=f,stderr=subprocess.STDOUT,env=dict(os.environ,PYTHONDONTWRITEBYTECODE='1'))
|
||||
with (out/'verification-runs.jsonl').open('a') as f:f.write(json.dumps(dict(name=name,command=cmd,exit=r.returncode,start=started,end=time.time()))+'\n')
|
||||
print('END',name,r.returncode,flush=True)
|
||||
@@ -0,0 +1,2 @@
|
||||
{"trial": 0, "cache_directory_existed": false, "requested_cold": false, "scans": [{"n": 1, "kind": "whole", "stages": {"discovery": 206.7, "config": 0.01, "walk": 203.31, "filelist": 0.0, "sort": 0.84, "cap": 0.59, "buffers": 0.47, "order": 1.82, "cache_open": 0.02, "read": 118.65, "lookup": 0.71, "decode": 0.0, "parse": 1684.19, "encode": 186.82, "store_write": 116.94, "publish_absorb": 702.03, "publish_candidates": 243.34, "publish_includes": 17.67, "publish_overlay": 1.24, "gone": 0.82, "absorb": 213.51, "compact": 93.7, "candidates": 115.35, "includes": 8.8, "overlay": 0.2, "total": 3810.23, "since_start": 1.53}, "counts": {"read": 3976, "read_kib": 34957, "walk_dirs": 3, "stats": 0, "skipped": 3, "hits": 0, "misses": 3974, "buffers": 2, "records": 3976, "repeats": 0, "decoded_kib": 0, "written_kib": 45260, "opens": 1, "compactions": 1, "publishes": 7, "published": 3461, "first_publish": 545.29, "overlays": 2}, "memory": {"store_before_kib": 45396, "store_after_kib": 45396, "cache_entries": 3976, "cache_encoded_kib": 45260, "index_files": 3976, "unit_names": 3067, "unit_defs": 4013, "members": 91894, "hier_members": 56913, "reference_keys": 59529, "reference_sites": 457666, "defines": 1358, "instantiations": 13894, "fact_words": 345127, "fact_word_kib": 4754, "candidate_units": 50726, "candidate_macros": 658, "candidate_words": 105042, "candidate_word_kib": 1888, "include_edges": 1984, "include_known": 3976, "work_kib": 16}}], "median_ms": 160.1128340116702, "max_ms": 1536.1322090029716}
|
||||
{"trial": 1, "cache_directory_existed": true, "requested_cold": false, "scans": [{"n": 1, "kind": "whole", "stages": {"discovery": 219.99, "config": 0.03, "walk": 216.68, "filelist": 0.0, "sort": 0.84, "cap": 0.46, "buffers": 0.48, "order": 1.87, "cache_open": 89.55, "read": 122.66, "lookup": 47.58, "decode": 194.08, "parse": 0.0, "encode": 0.13, "store_write": 0.0, "publish_absorb": 455.71, "publish_candidates": 180.6, "publish_includes": 12.77, "publish_overlay": 0.64, "gone": 0.78, "absorb": 222.69, "compact": 8.81, "candidates": 118.4, "includes": 9.52, "overlay": 0.18, "total": 1774.44, "since_start": 1.43}, "counts": {"read": 3976, "read_kib": 34957, "walk_dirs": 3, "stats": 0, "skipped": 3, "hits": 3974, "misses": 0, "buffers": 2, "records": 0, "repeats": 2, "decoded_kib": 45237, "written_kib": 0, "opens": 1, "compactions": 0, "publishes": 4, "published": 3519, "first_publish": 474.1, "overlays": 2}, "memory": {"store_before_kib": 45396, "store_after_kib": 45396, "cache_entries": 3976, "cache_encoded_kib": 45260, "index_files": 3976, "unit_names": 3067, "unit_defs": 4013, "members": 91894, "hier_members": 56913, "reference_keys": 59529, "reference_sites": 457666, "defines": 1358, "instantiations": 13894, "fact_words": 345127, "fact_word_kib": 4754, "candidate_units": 50726, "candidate_macros": 658, "candidate_words": 105042, "candidate_word_kib": 1888, "include_edges": 1984, "include_known": 3976, "work_kib": 16}}], "median_ms": 3.2108339946717024, "max_ms": 713.6129999998957}
|
||||
@@ -0,0 +1,13 @@
|
||||
import sys,pathlib,argparse,json,statistics
|
||||
sys.path.insert(0,'/Users/guoliangchen/repo/verilogrustformatter/tools/perf')
|
||||
import harness,phases_r4,sites
|
||||
from lspclient import Session
|
||||
out=pathlib.Path('/tmp/lucisv-perf-review-20260909');store=out/'warm-priming-proof'
|
||||
assert not store.exists(), 'use a new proof directory for a rerun'
|
||||
server='/Users/guoliangchen/repo/verilogrustformatter/target/release/lucisv-server';root='/Users/guoliangchen/repo/opentitan'
|
||||
harness.configure(argparse.Namespace(server=server,label='0.52.0-warm-proof',opentitan=root,storage=str(store.parent),out=str(out/'unused.jsonl'),tries=1))
|
||||
for trial in range(2):
|
||||
existed=store.exists()
|
||||
with Session(server,root,str(store),scope={'index':{'scope':'workspace'}},verbose=True,cold=False) as s:
|
||||
r=phases_r4.one_session(s,100,35,phases_r4.rtl_files(1),harness.at(sites.TB,' aes #(',1,2))
|
||||
print(json.dumps(dict(trial=trial,cache_directory_existed=existed,requested_cold=False,scans=r['scans'],median_ms=statistics.median(a['ms'] for a in r['answers']),max_ms=max(a['ms'] for a in r['answers']))),flush=True)
|
||||
@@ -2706,6 +2706,64 @@ before implementation; no verifier forgiveness may be weakened for speed.
|
||||
- **QA result and lead review link:** pending —
|
||||
`docs/features/perf5r-scope-reuse/README.md`.
|
||||
|
||||
## Independent 0.52.0 review — 2026-09-09
|
||||
|
||||
Reviewed `3ceba21bb2ef4404a188b076301b170af862075b` against a freshly built
|
||||
0.51.0 reference (`126a6bc`) using the same current harness. See
|
||||
[the findings and performance assessment](../performance_052_review.md) and
|
||||
[preserved evidence](review-052-20260909/README.md). No implementation changes
|
||||
were made by this review. The completed lane records above remain historical
|
||||
records; the open findings below are follow-up work.
|
||||
|
||||
**Confirmed gains:** unchanged pinmux menu 24.3 → 0.32 ms; queued definition
|
||||
24.4 → 0.29 ms; no-symbol refusal 2,205 → 0.22 ms / zero parses; tail rename
|
||||
391.8 → 324.6 ms / 240 → 137 parses; duplicate-module refusal 2,206 → 754 ms.
|
||||
First useful definition 278.6 → 84.4 ms cold and 294.5 → 118.5 ms warm in the
|
||||
one-buffer fixture. Properly warmed fixed-load comparison, two open buffers:
|
||||
server scan 4,247 → 1,771 ms, publishes 34 → 4, 105/105 requests answered on
|
||||
both versions. Cross-folder candidate answers match the settled target in
|
||||
750/750 cases.
|
||||
|
||||
**Targets still open:** paired tail rename improvement is 17.1%, below 20%;
|
||||
warm quiet scan 1,065 ms does not reproduce <1 s; cold remains 2.89 s;
|
||||
first-after-edit pinmux is 114 ms; common-port rename 2.88 s at about 1.8 GiB
|
||||
peak process RSS. Refused extraction still costs about 807 ms. Whole-window
|
||||
request latency is valid; the harness's `mid_scan_*` and `settled_ms` fields
|
||||
have finding F3 below and must not be used as scan-only acceptance metrics.
|
||||
|
||||
### Follow-up findings — implementation agent to fill
|
||||
|
||||
Use one full experiment record per fix, including commands, hashes, cache
|
||||
setup, all samples, result parity, guard outcome and correctness tests.
|
||||
|
||||
| ID | Finding / cause | 0.52.0 baseline | Required acceptance | Owner / fix commit | Result / evidence | Status |
|
||||
|---|---|---|---|---|---|---|
|
||||
| F1 (P2) | Separate head/root directory walks lose shared identity; path-only `seen` admits two spellings of one module | Symlink fixture: 2 definitions and false ambiguous prepareRename at startup; 1 definition and accepted prepareRename after unchanged rescan | Startup/rescan/restart agree; alias-before/after-target, multiple aliases, cycle, ignores, unsaved buffer covered; real duplicate modules still ambiguous | dev | `lucisv_core::walk::DirectoryTracker` shared by the neighbourhood walk and the remaining walk (one directory identity entered once between them); `first_scope` falls back to the single canonical walk when an alias precedes the open folder or one of its ancestors, and the `HEAD_WALK_MAX` fallback now **discards** the head instead of unioning it; an alias the pre-check cannot see (`other/link -> z_real`) is met by the remaining walk, refused entry, and answered with one ordinary rescan — the canonical walk — with `conflict=1 rescan_requested=1` on the trace; an open buffer's own file is recognised under an alias by `(dev, ino)` in `overlay_buffers` alone, gated on the file **name** so an ordinary workspace stats nothing. Measured on opentitan: `stats` **0** at 0 and 1 open buffers cold and warm (58 in the 2-buffer cell, = its same-named candidates); pre-check **0.17 ms**/session; `discovery` 179.2 → 162.2 ms; warm scan 1 044 → 1 040 ms, cold 2 879 → 2 886 ms, first useful answer 82.0 → 81.9 cold / 115.6 → 117.5 warm; 100-buffer settle 1 251 → 1 218 ms; warm idle RSS 427 856 → 426 048 KiB. Nine `#[cfg(unix)]` fixtures behind one startup/rescan/restart helper in `crates/lucisv_server/src/server/tests/startup.rs`, including the sibling alias (rescan asserted once) and the genuine duplicate (still refused, same sentence). | Closed |
|
||||
| F2 (P2) | Warm `scanload` does not prime fresh storage | First nominally warm trial: 0 hits / 3,974 misses / 1,684 ms parsing; second: 3,974 hits / 0 misses | Explicit untimed prime or validated complete store; per-trial cache counters; brand-new storage test | dev | `tools/perf/phases_r4.py::prime` runs one untimed session over the same scope and buffers before a warm cell's first timed trial; `cache_hits`/`cache_misses` are recorded **per trial** and `cell_status` fails a warm cell whose trial found nothing in the store. Verified with a brand-new `--storage`, 2 tries: **3 975 / 3 975 hits, 0 / 0 misses** (0.52.0's first nominally warm trial was 0 / 3 974); a second run over the now-populated store: 3 975 / 3 974 hits, 0 misses. | Closed |
|
||||
| F3 (P2) | `settled_at` treats `wait_quiet`'s positive entry delta/request chatter as scan completion | Actual scan about 1.77 s, reported settle about 3.41 s; 105 responses labeled mid-scan, zero after-settle | Timestamp actual scan completion; retain response arrival stamps; correctly partition post-scan responses; extending an already-long request window does not move completed scan time | dev | `tools/perf/lspclient.py` stamps `scan_completed_at` in the reader thread on the indexing bar's own `$/progress` `end` (`timing: scan finished:` for a client with no bar) and keeps every end in `progress_ends`, so a row can show there was exactly one; `settled_at` reads it and its fallback asks "did a notification arrive?" by counting them rather than by testing a clock delta for zero; `summary` partitions responses on it and keeps each answer's arrival offset. Verified warm, 1 extra buffer: `scan_completed_ms` **1 774.7 / 1 507.2 ms** against the server's own trace `total` 1 767.8 / 1 499.9 (was ~3 406 for a 1 770 ms scan), `scan_ends` 1 per session, 32 mid-scan / 38 after-settle out of 70 (was 105 / 0). Widening the window 3 500 → 5 000 ms: completion unmoved at 1 781 / 1 791 ms, mid-scan 36, after-settle 38 → 64. | Closed |
|
||||
|
||||
### Remaining performance experiments — conditional, not implemented
|
||||
|
||||
| ID | Next work to measure | Fixed 0.52.0 review baseline | Candidate commit | Candidate result / memory / parity | Decision |
|
||||
|---|---|---|---|---|---|
|
||||
| N1 | Lexer/parser and dirty-buffer analysis on first action after edit | 113.6 ms first-after-edit, 0.23 ms unchanged repeat in that session | — | — | Pending |
|
||||
| N2 | Retained-analysis parse work and scope decode/merge costs | Tail 324.6 ms; scope 163 ms including 31 ms reuse decode; common port 2,883.7 ms / 1,251 parses | — | — | Pending |
|
||||
| N3 | Quiet scan decode/merge and cost per publication, after F2/F3 | Warm quiet 1,064.7 ms; cold quiet 2,886.6 ms; warmed loaded scan 1,771 ms | — | — | Pending |
|
||||
|
||||
Keep the engine as the refusal authority, content-tied KnownFacts, shared
|
||||
fence rules, lint invalidation and coherent publication contracts. No speed
|
||||
gain justifies weakening `check/` or removing necessary selected sources.
|
||||
|
||||
**Independent gates:** fmt and clippy clean; full default workspace suite
|
||||
**4,385 passed / 0 failed / 45 ignored** — 4,374 at 0.52.0 plus two
|
||||
`DirectoryTracker` unit tests in `lucisv_core` and nine alias fixtures in
|
||||
`lucisv_server`. Recorded outcomes match in 84 paired non-load rows. Corpus
|
||||
(`0098135`, its three known modified files) and release-binary hashes
|
||||
unchanged; no guard kill; load 4.1–6.8 across the timed phases. F1–F3 closed
|
||||
with regression tests and harness fixes in place; the F1 rows are in
|
||||
`~/.cache/lucisv-perf/f1/results.jsonl`, paired against a 0.52.0 server built
|
||||
from `v0.52.0` for this comparison.
|
||||
|
||||
## Experiment record — R3b-2026-09-08 (stage R3b)
|
||||
|
||||
- **Experiment ID / stage / date / owner:** `R3b-2026-09-08` / R3b (TODO
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
# Independent review of 0.52.0 — performance follow-up implementation
|
||||
|
||||
Reviewed 2026-09-09 at `3ceba21bb2ef4404a188b076301b170af862075b`, against 0.51.0 at `126a6bcdac99e940534c87bce94a5269cdc53ae4`.
|
||||
|
||||
**The main performance improvements are reproducible, but this round needs a startup correctness fix and two benchmark fixes.** A split startup scan can index a symlinked directory twice and make a valid rename appear ambiguous. The new loaded-scan harness also mislabels an unprimed first trial as warm and miscomputes its scan-completion/within-scan classification. The latency gains below use properly warmed reruns and server-reported scan durations, avoiding those measurement errors.
|
||||
|
||||
**Status (2026-09-09): F1, F2 and F3 fixed in 0.53.0 (TODO §62; `docs/features/perf5r-first-answer/README.md`, `perf5r-publication/README.md`); N1–N3 deferred to loop 3.** No implementation was changed by this review itself. [The tracking file](perf/take5-tracking.md) records the findings and remaining goals. [Evidence, reproductions and commands](perf/review-052-20260909/README.md) are preserved separately from the implementation agent's results.
|
||||
|
||||
## Findings
|
||||
|
||||
### F1 · P2 · Split startup discovery duplicates modules behind directory aliases
|
||||
|
||||
**Where:** `crates/lucisv_server/src/state/discover.rs`, `first_scope` around lines 445–462 and the path-only filtering in `walked_rest`/`rest_of_scope`; `crates/lucisv_core/src/walk.rs::collect_files_below` creates an independent directory-identity set.
|
||||
|
||||
The regular walker visits each directory identity once and reports files under the first path spelling that reaches it. The new neighbourhood walk and the remaining root walk have separate visited sets. Their results are combined using `HashSet<PathBuf>`, which cannot recognize two paths to the same directory. Copying the ancestor ignore stack preserved exclusions but did not preserve the walk's alias/cycle identity contract.
|
||||
|
||||
**Reproduction**, using only a scratch fixture:
|
||||
|
||||
```text
|
||||
workspace/
|
||||
a_alias -> z_real
|
||||
z_real/
|
||||
child.sv # module child; endmodule
|
||||
tb.sv # module tb; child u(); endmodule
|
||||
```
|
||||
|
||||
Start with `index.scope = "workspace"`, `index.scopeDepth = 0`, and open `z_real/tb.sv`. After the startup scan settles, request definition and prepareRename at `child`.
|
||||
|
||||
| Observation | 0.51.0 | 0.52.0 |
|
||||
|---|---|---|
|
||||
| Definition after startup | One target: `a_alias/child.sv` | Two targets: alias and real path |
|
||||
| prepareRename after startup | Accepted | Refused: `child` is declared in more than one indexed file |
|
||||
| After a whole rescan, without changing source text | One target; rename accepted | One target; rename accepted |
|
||||
|
||||
The initial definition difference reproduced in **3/3 sessions per version**, and the complete startup/rescan lifecycle reproduced in another **3/3 per version**. A watched-file notification naming both fixture files triggered the whole rescan. The source bytes did not change. Thus startup and subsequent scans disagree about the same project, and the effect is user-visible beyond duplicate navigation entries: rename is blocked until a rescan.
|
||||
|
||||
**Required fix:** preserve the root walk's directory identity and path-selection policy across split discovery. Simply keeping a separate path set for each half, or deduplicating declarations by module name, is insufficient. A bounded fallback is acceptable where equivalent discovery cannot yet be guaranteed. The `HEAD_WALK_MAX` fallback also unions the independently discovered head, so increasing or lowering that limit alone does not repair the contract.
|
||||
|
||||
**Acceptance:** compare the actual index paths, definitions, prepareRename results and diagnostics after startup, a whole rescan, and restart. Cover an alias sorting before/after its target, multiple aliases, an ancestor cycle, ignore rules and an open unsaved buffer. Keep legitimate duplicate declarations ambiguous. Record the amended walker/server handshake in [topo.md](topo.md). Add this fixture to the shipped regression tests; the existing successful corpus probes do not cover it.
|
||||
|
||||
### F2 · P2 · A fresh “warm” scanload run includes a cold trial
|
||||
|
||||
**Where:** `tools/perf/phases_r4.py::load_cell`, around lines 239–249.
|
||||
|
||||
The function sets `cold=False` for a warm cell but never primes its storage. `Session.__enter__` creates a missing directory; it does not populate an index cache. Consequently a standalone `scanload` or `scanloadprobe` command with a new `--storage` directory measures a cold first trial and warm later trials under one warm label.
|
||||
|
||||
This happened in the initial paired `scanloadprobe` invocation in this review. A separate two-session proof on 0.52.0, with `cold=False` both times, recorded:
|
||||
|
||||
| Trial | Directory existed beforehand | Index cache hits / misses | Scan parse time |
|
||||
|---|---|---:|---:|
|
||||
| First | No | **0 / 3,974** | **1,684 ms** |
|
||||
| Second | Yes | **3,974 / 0** | **0 ms** |
|
||||
|
||||
The two open buffers account for the rest of the 3,976-file workspace. The initial load-probe rows remain in the evidence but are **excluded from warm comparisons**. `load-retest.jsonl` contains the properly warmed paired replacement. Other cold/warm matrix phases explicitly run their cold cells first; they are not excluded on this basis. This does not establish that every historical implementation run was unprimed; it establishes that the standalone harness cannot enforce its label.
|
||||
|
||||
**Required fix:** perform an untimed prime using the same scope, buffers and corpus before a warm cell, or explicitly validate a complete pre-existing cache. Record cache hits/misses per timed trial and test the command with a brand-new storage directory. Merely creating the directory is not a prime.
|
||||
|
||||
### F3 · P2 · scanload completion and mid-scan fields include the request window
|
||||
|
||||
**Where:** `tools/perf/phases_r4.py::settled_at`, lines 136–139; consumed by `summary` around lines 179–200.
|
||||
|
||||
The candidate's corrected warm runs report actual server scan durations of **1,778 / 1,771 / 1,765 ms**, yet `settled_ms` is **3,406 / 3,407 / 3,407 ms** and all **105** responses are classified as mid-scan, with zero after-settle answers. The fixed request window sends its last request near 3,400 ms, well after these scans end.
|
||||
|
||||
`settled_at` calls `wait_quiet` after the request window and substitutes that call's entry time whenever the returned value is positive. `wait_quiet` initializes `last` with a separate clock read after `started`, so even no new notification usually yields a tiny positive value. It also counts all notifications, including verbose request timing messages. The previously captured scan-only `quiet_at` therefore gets replaced with approximately the end of the offered-load window. This makes the faster server's completion and mid-scan classification wrong.
|
||||
|
||||
**Required fix:** timestamp scan-completion events independently of client request/timing traffic. Distinguish “no new scan event” explicitly rather than testing a clock delta for exact zero. Classify each response using that same completion boundary; retain response arrival timestamps in the raw evidence. Test a scan that finishes well before the fixed window ends, and a longer offered window with the same initial load: scan completion should remain stable while the after-settle count grows.
|
||||
|
||||
**Treatment in this review:** use `publication[].scan_total` for scan duration and ordinary wire latencies over the **entire fixed window** for request wait. Do not use `settled_ms`, `mid_scan_median_ms` or `after_settle_answers` as reliable scan-only metrics. The offered/answered counts and settled-target comparisons remain useful.
|
||||
|
||||
## Paired performance results
|
||||
|
||||
All times are milliseconds unless marked otherwise. Ordinary request cells use the median of three repeats following a first request. Startup/RSS cells use three processes. Rename rows run verbose on both versions so their parse counts and work attribution can be compared. The original 0.51.0 review's numbers are historical context; the comparison below is freshly paired.
|
||||
|
||||
The first-useful-answer target is measured with the one-buffer AES fixture. It is not a bound on every opening set or on the loaded two-buffer case below.
|
||||
|
||||
| Workload | 0.51.0 | 0.52.0 | Assessment |
|
||||
|---|---:|---:|---|
|
||||
| Pinmux comment, unchanged all-family menu | 24.3 | **0.32** | Repeated lint work removed; ≤16 ms goal met |
|
||||
| Definition queued behind that menu | 24.4 | **0.29** | Menu blocking largely removed |
|
||||
| Pinmux first menu after didChange | 137.8 | **113.6** | Improved; substantial dirty-buffer work remains |
|
||||
| Tail `state_q` rename | 391.8 | **324.6** | **17.1% lower**, 240 → 137 parses |
|
||||
| Ordinary `aes` rename | 92.0 | **93.0** | Essentially unchanged |
|
||||
| Common-port `clk_i` rename | 3,482.9 | **2,883.7** | 17.2% lower; still a long blocking command |
|
||||
| Duplicate-module refusal | 2,206.5 | **754.0** | 66% lower; 3,975 → 14 parses |
|
||||
| No-symbol refusal | 2,204.6 | **0.22** | Preflight succeeds; 3,975 → 0 parses |
|
||||
| First useful definition, cold | 278.6 | **84.4** | ≤200 ms goal met at this cursor |
|
||||
| First useful definition, warm | 294.5 | **118.5** | ≤200 ms goal met at this cursor |
|
||||
| Quiet workspace scan, cold | 2,884.9 | **2,886.6** | Unchanged; 2.3 s aspiration remains unmet |
|
||||
| Quiet workspace scan, warm | 1,074.0 | **1,064.7** | Essentially unchanged; sub-second result not reproduced |
|
||||
| Warm idle RSS, MiB | 419.8 | **418.0** | Prior memory gain retained |
|
||||
| Connect-missing-ports resolve | 132.9 | **130.2** | Similar; no broad refactor speedup claimed |
|
||||
| Successful extract edit computation | 148.5 | **146.7** | Similar; captured edit matches |
|
||||
| Refused extraction at inline-site selection | 790.1 | **806.6** | Still about 0.8 s; no demonstrated improvement |
|
||||
|
||||
The initial tail rename on 0.52.0 was 359 ms before the 325 ms repeat median. Common-port peak process RSS remained about **1.8 GiB** (1.79 → 1.78 GiB in these samples). Some refusal peaks rose in this run; for example, the heavily used new-name collision rose about 5%, while no-symbol and duplicate-module refusal peaks fell substantially. These sampled peaks do not establish a leak or statistically significant regression, but they do not support an unconditional claim that every request's peak memory always decreases.
|
||||
|
||||
The implementation ledger already acknowledges the ≥20% **paired** tail-rename goal was missed at 17.4%. This rerun agrees at 17.1%. Comparing against the older 398 ms report to obtain a larger percentage does not replace a paired comparison. The work reduction is useful and worth retaining; label the target honestly.
|
||||
|
||||
### Fixed offered load, with cache warmth corrected
|
||||
|
||||
For the normal definition cursor, **two open buffers**, one request every 100 ms, 35 requests per process, three processes per version:
|
||||
|
||||
| Metric | 0.51.0 | 0.52.0 |
|
||||
|---|---:|---:|
|
||||
| Median request wait, entire fixed window | 1,947 ms | **2.03 ms** |
|
||||
| Worst sampled request wait | 3,675 ms | **722 ms** |
|
||||
| Median server-reported scan duration | 4,247 ms | **1,771 ms** |
|
||||
| Publishes per process | 34 / 34 / 34 | **4 / 4 / 4** |
|
||||
| Requests answered | 105 / 105 offered | **105 / 105 offered** |
|
||||
| Answers differing from settled target | 0 | **0** |
|
||||
|
||||
These support the publication-cadence optimization. The request median includes answers after the candidate has completed its scan; it is not a “median while indexing” claim. The separately measured scan duration and unchanged offered load show why the complete fixed-window experience improves.
|
||||
|
||||
The cross-folder cursor was tested cold and warm with one and eleven open buffers. The candidate answered **750/750** requests and all matched the settled target; the reference produced **399 premature empty answers** among its 750 responses. Non-empty mismatches were zero on both. This confirms the empty-answer retry behavior on the sampled workload.
|
||||
|
||||
Some cross-folder maxima are higher: with one buffer, **277 → 482 ms cold** and **306 → 380 ms warm**. With eleven buffers, the cold maximum instead fell from **9,261 → 1,863 ms**. Correctness and tail delay must be reported together; a fast empty response is not a fast useful definition. The implementation's accepted single-buffer cadence tradeoff remains relevant.
|
||||
|
||||
## Implementation assessment and next actions
|
||||
|
||||
1. **Fix F1 before treating the round as fully closed.** It violates startup/rescan scope equivalence and blocks a valid rename. Preserve the performance work while repairing directory identity and adding the alias regression matrix.
|
||||
2. **Fix F2 and F3 before using scanload to accept the next optimization.** Keep explicit cold/warm setup, true scan completion, full-window latency, within-scan latency and result quality as separate measurements. Recheck any earlier cells whose cache provenance or completion metric is unclear; do not assume all historical numbers are wrong.
|
||||
3. **Keep the lint snapshot.** Its key includes the effective rules/options, line length, tab width, oracle presence and waiver contents; the slot belongs to a document revision and is cleared on overlay refresh after index mutations. The source implements the dependency contract requested in the prior plan. The remaining 114 ms first-edit cost needs buffer parse/analysis work reduction; another unchanged-result cache cannot eliminate it.
|
||||
4. **Keep the engine-owned preflight and content-tied facts reuse.** Preflight avoids index-derived early refusals, preserving the fresh-source authority of the full rename. KnownFacts comes from a store entry tied to the handed source bytes; `check/` is unchanged. The tail trace now attributes about **163 ms to initial scope construction**, including **31 ms of facts decoding**. The common-port command still parses 1,251 files and takes 2.88 s; lexer/parser work on retained analyses is the next significant target. Preserve warning/refusal/output parity and measure peak memory rather than retaining all token streams indiscriminately.
|
||||
5. **Keep startup ordering and publication cadence, subject to F1.** First-answer latency now meets the proposed target. Quiet warm throughput remains around one second, and cold throughput remains 2.9 s. Whole-index absorb/decode/candidate construction are still follow-ups, not completed gains in this review. Reduce publication cost itself before tightening cadence in a way that restores the old merge-per-burst cost.
|
||||
|
||||
## Scope and evidence
|
||||
|
||||
Both release servers were built before timing, using the same compiler and the current harness for both versions. The reference was exported to a scratch directory with `git archive`; no checkout, branch or remote was changed. All benchmark phases ran sequentially under the repository's 8 GiB / 1,800-second guard, with no build/test overlap. OpenTitan stayed at `00981352642fb65ef2b6c47143a0f6bb31fd4a97` with its same three pre-existing modified files; their hashes match the prior review. Edits were captured/discarded, and all caches were outside the corpus.
|
||||
|
||||
This review covers menu filters, queued navigation, first-after-edit requests, eight rename shapes, startup scope/cache cells, RSS, two fixed-load probes, resolved actions and command execution. CLI throughput, the eager non-resolving client and the full 101-buffer load matrix were not remeasured. Three process trials establish practical direction and reproductions, not population tail percentiles or statistical significance.
|
||||
|
||||
**Independent validation:** `cargo fmt --all -- --check` and `cargo clippy --workspace --all-targets --locked -- -D warnings` passed. The default full workspace suite (`cargo test --workspace --locked`) finished with **4,374 passed, 0 failed, 45 ignored**, including doc-test result blocks. The ignored tests were not forced on. No guard limit was hit. All **84 comparable non-load outcome rows** matched on their recorded status, fingerprint, message, titles/shapes, edit/file/create/result counts and warnings where present. This is not a new full rename-warning oracle run; the implementation's wider warning checks remain in its own QA evidence.
|
||||
|
||||
The new alias reproduction fails startup equivalence despite the existing suite passing, demonstrating a coverage gap. Final corpus status/hashes and both release-binary hashes were unchanged. One-minute load samples during the initial paired phases were approximately 3.87–5.98; small timing movements are not treated as established regressions.
|
||||
+6
-5
@@ -136,7 +136,7 @@ what a change on the pointed-to side must not silently break.
|
||||
| `lucisv ──▶ vlog_linter` | depends | The public linter API for `lucisv check` — `lint` + `LintContext`/`ParsedSource`, `apply_fixes`, `select_rules` (the CLI does not call `run` itself). Relies on: rule names stable, linting never panics/writes, findings sorted by `(span.start, span.end, rule)`. `package_exports_in(path, file, tokens, src)` (perf5-p3: the CLI census hands the linter its one `ParsedSource` for the package half as it already did for `module_interfaces`; the text form is a wrapper; an AST gate spares files that declare no package from the one-file index). |
|
||||
| `lucisv ──▶ vlog_parser` | depends | `LineIndex` / `TextRange` for lint report coordinates, plus `PARSE_STACK_SIZE` for both the named `lucisv` thread and rayon workers. (The CLI otherwise reaches the parser through the formatter and linter.) |
|
||||
| `lucisv ──▶ rayon` | depends | The worker pool. Pinned exactly; pool must keep `stack_size(vlog_parser::PARSE_STACK_SIZE)` (currently 16 MiB; recursion-limit handshake) or the parser's depth guarantee regresses to a stack overflow. |
|
||||
| `lucisv_server ──▶ lucisv_core` | depends | Same config discovery and walk as the CLI (that sameness is the point — format-on-save must agree with `lucisv --check`), `filelist::read` (index scope rung 1, `+incdir+` for the include graph), `cache::content_hash` (re-used by the persistent index cache — one FNV-1a, not two). `walk::collect_files_with` (each walked file with the length the walk's own `metadata` call already holds; `None` for an input named rather than walked) and `walk::collect_files_below(root, input, …)` (a subtree walk that carries the ancestor `.gitignore`/`--exclude` stack down and yields nothing when an ancestor the root walk would not enter blocks it) — perf5r-first-answer, 2026-09-08; `collect_files` is unchanged and a wrapper. |
|
||||
| `lucisv_server ──▶ lucisv_core` | depends | Same config discovery and walk as the CLI (that sameness is the point — format-on-save must agree with `lucisv --check`), `filelist::read` (index scope rung 1, `+incdir+` for the include graph), `cache::content_hash` (re-used by the persistent index cache — one FNV-1a, not two). `walk::collect_files_with` (each walked file with the length the walk's own `metadata` call already holds; `None` for an input named rather than walked) and `walk::collect_files_below(root, input, …)` (a subtree walk that carries the ancestor `.gitignore`/`--exclude` stack down and yields nothing when an ancestor the root walk would not enter blocks it) — perf5r-first-answer, 2026-09-08; `collect_files` is unchanged and a wrapper. Amended for F1 (2026-09-09): `walk::DirectoryTracker`, `walk::DirId`, `walk::dir_id`, `walk::collect_files_tracked` and `walk::collect_files_below_tracked` preserve directory identity, precedence ordering, and cycle detection across split discovery phases and deduplicate open buffers against aliased disk paths in `overlay_buffers`. **The tracker's promise (F1, 2026-09-09):** the two walks of one scan enter each directory identity once *between* them, so no file is discovered under two spellings and their union is the set one root walk yields — a `lucisv_core` change that gave `DirectoryTracker::enter` a different answer for a second spelling would silently un-fix F1 (pinned by the nine alias fixtures in `server/tests/startup.rs`). **`has_conflict` is server-visible:** when the remaining walk reaches an identity by a path the root walk would have preferred, `state/mod.rs::land_discovery` reads it, `Scan::wants_rescan` reports it and `server/index.rs` turns it into one ordinary rescan after the scan settles, so startup and rescan converge on the canonical spelling; the CLI still calls `collect_files` and sees none of this. |
|
||||
| `lucisv_server ──▶ vlog_parser` | depends | `tokenize`, `parse_source_tolerant`/`parse_tolerant`, `ParseDiagnostic`, `LineIndex`, `TextRange`, tokens + trivia, `defines`, `KEYWORDS` (completion keyword tier; also the source the hand-maintained VS Code grammar is test-locked to), `PARSE_STACK_SIZE` for the named `lucisv-main` thread, and `stats::parses()` (perf5-p1: a per-thread whole-file parse count, asserted by the code-action tests — a repeated offer on an unchanged buffer parses nothing). |
|
||||
| `lucisv_server ──▶ vlog_semantic` | depends | `analyze`/`Semantics` (every navigation answer), `WorkspaceIndex` (build/incremental update, units/members/defines, `instantiations_of`/`subclasses_of` edge tables, `FileFacts` codec for the persistent cache), `resolve_external` overlay, `index_order`/`IndexBuilder` (watched builds), and `files_mentioning` as a refactoring selector rung (perf5-p2, handshake 33: `module_select::hierarchical_users` — previously the semantic lints' oracle only), and `WorkspaceIndex::table_sizes() -> IndexTableSizes` (perf5-p4: a read-only walk over the tables for the scan trace's memory line — end of scan only, never on a request path; no codec change). |
|
||||
| `lucisv_server ◀──▶ vlog_semantic` | handshake | Two negotiated additions, both 2026-08-28 and both additive: **`Symbol::detail_span` / `Def::detail_span`** (where a non-ANSI port's body declaration completes the header that names it — the server's hover card and `nav::definition` both read it, and they show/jump to it in the same order), and **`Semantics::symbols_named`** (name → declarations, built in `analyze`, in declaration order — the server replaced two scan-every-symbol loops with it and the *first-match tie-break must stay declaration order* or hover's choice between two live declarations of one name changes). `docs/features/port-detail-spans/README.md`. |
|
||||
@@ -221,7 +221,7 @@ incremental update and `fingerprint`, `record` = the `FileFacts` read-off,
|
||||
inheritance edge tables, incremental `update_file`/`remove_file`,
|
||||
reference postings, `files_spelling`, batch `absorb`, declaration `DeclLines`,
|
||||
`fingerprint`); `facts.rs` (`FileFacts` codec for the persistent cache;
|
||||
`FACTS_FORMAT` is **19**);
|
||||
`FACTS_FORMAT` is **20**);
|
||||
`instantiations.rs`, `classes.rs` (the shared walks, lifted from the server
|
||||
so the index census and the request handlers cannot drift); `imports.rs`
|
||||
(`import_usage`, `import_scopes`, `unused_imports`, `Exports`, `PackageExports`)
|
||||
@@ -569,6 +569,7 @@ promise:
|
||||
| `constraint-bodies ◀──▶ class-semantics / class-member-access / index-persistence / semantic-lints` | handshake | **`FACTS_FORMAT` 10 → 11** (2026-09-02): `SymbolKind::Constraint` declared in the class scope (a stand-in `Class` scope for `constraint C::c`, the out-of-body-method mechanism reused); the body opens a scope under the class so every operand binds to the class's properties — rename from a `rand` field's declaration now rewrites its constraint uses, in-file and cross-file; `foreach` vars nest; `Target::InlineConstraint` resolves a `randomize() with { … }` operand against the randomized object's class first and the writing scope second. `Constraint` exported from `Class`. `signals.rs` reads constraint operands instead of routing the body to `opaque_spans` (a constraint reads, never drives). Corpus references +1 646, 84 % answered. Filed: a rename issued *from inside* an out-of-block constraint body whose class is elsewhere is refused by `vlog_refactor` (pre-existing — the same refusal `task C::m` bodies get). |
|
||||
| `covergroup-bodies ◀──▶ class-semantics / class-member-access / index-persistence / semantic-lints` | handshake | **`FACTS_FORMAT` 11 → 12** (2026-09-02): `SymbolKind::{Covergroup, Coverpoint, Cross}` and `ScopeKind::Covergroup`; the covergroup opens a scope whose labelled coverpoints and crosses are symbols (an unlabelled coverpoint declares nothing), `sample()`/`(args)` parameters are visible in the body and nowhere else, every sampled expression, bin value and `iff` binds to the enclosing class's properties. `collect_members` recurses into a covergroup so `cg_inst.cp` resolves cross-file; `member_scope` accepts a `Covergroup` symbol. `signals.rs` reads coverpoint operands (a covergroup samples, never drives). Corpus references +1 139 with 1 135 answered. |
|
||||
| `semantic-lints-on ◀──▶ workspace-index / index-persistence / linter-core / semantic-lints / completion-core / editor-settings` | handshake | **`FACTS_FORMAT` 12 → 13** (2026-09-02): `FileFacts::words`, a per-file sorted dedup'd identifier census from the token stream (macro/directive words included, comments and strings excluded by construction) — the one harvest `vlog_semantic::words` provides, which the server's completion word table is now built from instead of re-lexing every file at startup (scan −28 %). No inverted index: `files_mentioning`/`mentioned_outside` are a linear walk with a binary search per file, `files_spelling`'s own shape. `vlog_linter` gains `MentionOracle` (`LintContext::with_oracle`) and `Rule::needs_workspace()` + `workspace_rules()` beside an unchanged `default_rules()`: `unused-signal` and `undriven-net` say nothing when the oracle says the name is mentioned in another indexed file (the false-negative-safe direction), `multiply-driven` shares the gate but never reads it; the three are on whenever an oracle exists — the server always, the CLI when a multi-file job set is walked (a harvest pre-pass, +36 ms on the corpus over 10 cores, zero when the rules are ignored) — and off for a single file or stdin. The off switch shipped with it (§2.9-4). Store +14 % measured on both corpora; opentitan with the rules on reports 14 findings, spot-checked true. Filed: quick fixes ignore `lucisv.lint.*` (`code_action.rs`). |
|
||||
| `rename-bind-occurrences ◀──▶ workspace-index / index-persistence / bind-semantics / refactor-rename` | handshake | **`FACTS_FORMAT` 19 → 20** (2026-09-11, TODO §63.1): no new field, a different answer in the same fields. A `bind` connection's expression half is a reference on the target's **hierarchical** surface under the `target::name` path (`resolve::in_bind_target` asked the connection surface — ports and parameters — so an internal net such as `bind aes chk u (.req(entropy_masking_req))` resolved to nothing and, with no name on the path, was never warned about); a hierarchical path in a bind connection is rooted at the bind target (`Target::BindMember { target, head, mids }`, one more arm of the `use_member` funnel, walking `descend`/`member_at` shared with `member_of`), and a multi-segment target (`bind tb.u_aes …`) is spelled `tb::u_aes` so `follow_one` folds it hop by hop. So definition, hover, references and rename answer over bind files where they answered nothing; `rename_preflight` refuses strictly less (a bind tail was `NOTHING_HERE`, now an external candidate it defers). A 0.53.0 store rebuilds once. Selection (`rename_sources_traced`'s `Reference` rung, `module_select.rs`) was never the gap; §2.9-33 stands. Known remainder: `nav.rs`'s `leaves_this_file`/`indexed_def_in_file` still ask the connection surface, so cross-file `references` misses hierarchical-surface-only declarations, bind or not (TODO loop-3 list). |
|
||||
| `define-table ◀──▶ macro-expansion` | handshake | What began as free-to-change became contract at M14: params stored **as written**, `NAME()` = `Some(vec![])` — `expand.rs` counts arguments against them and declines on mismatch. |
|
||||
|
||||
### 2.6 Refactor lane (the M-plan)
|
||||
@@ -620,14 +621,14 @@ engine-lane features are listed above; this table is the server-internal web.
|
||||
| `hover-line-index ──▶ hover-declarations / port-detail-spans` | depends | `Def::lines` supplies indexed hover headings (including split-port detail lines); `Workspace::file_view` supplies the guarded snippet and the few non-indexed line lookups. `locate::location` shares that view, so a references list reads a closed file once rather than once per site. |
|
||||
| `cancel-request ──▶ lsp-server pin` | depends | See §1.2; queue/burst exists because the pinned transport is a rendezvous channel. |
|
||||
| `scan-interleave ──▶ cancel-request / work-done-progress` | depends | The same queue is polled between startup-scan files. `publish_scan` lands the index, completion and include batches before dispatch; `must_wait` holds requests queued behind any rescan-triggering message and preserves their order/cancels. Progress still counts the whole scan even when requests are answered before the bar comes down. |
|
||||
| `verbose-timing ◀──▶ editor-packaging / scan-interleave / change-debounce` | handshake | `lucisv.verbose` is an extension-owned spawn setting: false means no arguments and no timing traffic; true means `lucisv-server --verbose`, and changing it restarts the client process. The server writes `MessageType::LOG` lines prefixed `timing:` for request/notification handlers, scan and widen lifecycles, dirty-buffer flushes, one-file reindexes, and requests held behind rescans. The request line precedes its response; notification lines follow their work. Instrumentation is silent by construction when off (one branch, no clock read or formatting), and it observes rather than changes scan/queue ordering. **Amended by perf5-p2 and perf5-p4 (2026-09-07/08):** the `timing: rename trace …` line and the three `timing: scan <n> … : key=value …` lines (`stages`, `counts`, `memory`) plus `timing: configuration answered in X ms` are `key=value` formatted and **are parsed** by `tools/perf/` (`renametrace`, `scanprofile`); their format is pinned by server tests, so the old "nobody parses these lines" assumption no longer holds for those five. `Workspace::begin_scan`/`begin_widen` take `trace: bool` (every pre-existing caller passes `false`), `take_scan_trace()` hands the finished trace to the server; `Candidates::sizes()`, `IncludeGraph::sizes()`, `IndexCache::{work, entry_count, encoded_bytes}` are read-only queries for the memory line; `Server::born` and the `Instant` on `Pending::Configuration` time the config round trip. |
|
||||
| `verbose-timing ◀──▶ editor-packaging / scan-interleave / change-debounce` | handshake | `lucisv.verbose` is an extension-owned spawn setting: false means no arguments and no timing traffic; true means `lucisv-server --verbose`, and changing it restarts the client process. The server writes `MessageType::LOG` lines prefixed `timing:` for request/notification handlers, scan and widen lifecycles, dirty-buffer flushes, one-file reindexes, and requests held behind rescans. The request line precedes its response; notification lines follow their work. Instrumentation is silent by construction when off (one branch, no clock read or formatting), and it observes rather than changes scan/queue ordering. **Amended by perf5-p2 and perf5-p4 (2026-09-07/08):** the `timing: rename trace …` line and the three `timing: scan <n> … : key=value …` lines (`stages`, `counts`, `memory`) plus `timing: configuration answered in X ms` are `key=value` formatted and **are parsed** by `tools/perf/` (`renametrace`, `scanprofile`); their format is pinned by server tests, so the old "nobody parses these lines" assumption no longer holds for those five. `Workspace::begin_scan`/`begin_widen` take `trace: bool` (every pre-existing caller passes `false`), `take_scan_trace()` hands the finished trace to the server; `Candidates::sizes()`, `IncludeGraph::sizes()`, `IndexCache::{work, entry_count, encoded_bytes}` are read-only queries for the memory line; `Server::born` and the `Instant` on `Pending::Configuration` time the config round trip. **(2026-09-12, TODO §63.2)** the `timing: codeaction` line carries a third top-level group, `rebuild{lex parse defines analyze external lines publish documents}` — `Document::new`'s six derivations and the publish inside `flush_dirty`, traced through `crate::lint_trace` — beside `flush{…}` and `action{…}`; the three groups are **siblings by contract** (`tools/perf/phases_p2.py`'s regex flattens one level, and a nested group makes the whole `flush` group vanish from every row with no error), pinned by `lint_trace::tests::the_three_top_level_groups_are_flat_never_nested`. |
|
||||
| `work-done-progress ──▶ indexing-ux` | depends (then) | w-d-p put up the bar; indexing-ux made it count (`IndexEvent` stream); index-persistence added `Cached`. |
|
||||
| `large-file-mode ◀──▶ semantic-tokens-delta` | handshake | The windowed lexing serves `semanticTokens/range`; on a large buffer `full`/`full/delta` must answer an ERROR (`ServerCancelled`/`ContentModified`) or the client stops asking the range provider — two sides pinning one wire behavior. `Document::large` is structurally a full `Document` (all fields valid, empty) so no handler changes — the obligation lands on **future** handlers that read `doc.text` (dispatch-table test enforces). |
|
||||
| `lsp-318-extras ──▶ range-formatting` | depends | `rangesFormatting` is a thin adapter over the same n-range `LineRanges` engine `--lines` uses; hand-rolled params because `lsp-types` 0.97 lacks 3.18. |
|
||||
| `on-type-formatting ──▶ range-formatting, editor-scopes` | depends | `;` goes through `format::range_formatting` unchanged; `\n` answers indent only, computed from `pairs.rs`'s own keyword tables (three items widened to `pub(crate)`) — one reader's answer for "what opens a scope". |
|
||||
| `interactive-latency ──▶ change-debounce, editor-scopes, selection-range, on-type-formatting, completion-core, inline-templates` | depends | Round 2 of the perf work (`docs/perf/README.md`). It measures the flush change-debounce coalesces and the round trip it defers, and it replaces one token *sweep* with one token *binary search* in `selection.rs`, `on_type.rs`, `completion.rs` and `inline.rs`. No answer moved — each swap is pinned against the sweep it replaced at every byte — so none of those five features' contracts changed; what they now share is `state.rs`'s two search primitives and the ordering property of `tokenize`'s output they rest on. |
|
||||
| `interactive-latency ◀──▶ lucisv-server` | handshake | Two free functions, `first_token_reaching` and `first_token_from`, are published from `state.rs` beside `Document::token_at`; that is where the monotonicity argument every caller depends on is written down, and `state::tests::the_token_stream_rises_and_never_overlaps` is the test that fails first if `vlog_parser` ever breaks it. `tests/e2e.rs`'s `Live::finish` now returns its publish count (existing callers ignore it), and `perf::generated_module` has a copy in `tests/e2e.rs` — a binary crate's modules are unreachable from an integration test — which must stay the same shape as the original. |
|
||||
| `references-nav ──▶ workspace-index / hover-line-index` | depends | Cross-file references resolve an indexed target first and consume declaration postings directly; same-file local references stay on `Semantics`. Locations use the shared `FileView`. `documentHighlight` now also follows the document's external overlay for names declared elsewhere, fixing the old “references works, highlight is empty” split without widening highlights beyond the current file. |
|
||||
| `references-nav ──▶ workspace-index / hover-line-index` | depends | Cross-file references resolve an indexed target first and consume declaration postings directly; same-file local references stay on `Semantics`. Since §64.1 (2026-09-12) the two index questions (`leaves_this_file`, `indexed_def_in_file`) ask `member_in(…, Surface::Hierarchical)`, so a module's net/variable/instance named by a `bind` connection or a `u_x.sig` tail is answered workspace-wide; a hierarchical-only declaration in a *closed* file has no `Local` postings, so `nav::declaring_file_uses` parses exactly that file once per request. Every closed-file span and the open-buffer declaration fallback are guarded by `hover::spells_exactly` (now `pub(crate)`): a stale index may omit a location, never mislocate one. Locations for closed files are rendered from one `text_of` read per file per request (not the `FileView` cache, whose entry could differ from the same request's re-analysis). `documentHighlight` now also follows the document's external overlay for names declared elsewhere, fixing the old “references works, highlight is empty” split without widening highlights beyond the current file. |
|
||||
| `selection-range / linked-editing ──▶ spans, name-spans` | depends | Pure arrangements of existing ranges; linked-editing's table documents exactly which constructs carry both spans (and which verbatim ones can't — `program`, property/sequence, covergroup). |
|
||||
| `type-definition ──▶ nav / overlay-promotion / ansi-first-port` | depends + 2 delivered handshakes | Now literally `nav::definition` at the type name's offset; both of its filed requests landed (§2.2, §2.5). |
|
||||
| `hierarchy ◀──▶ inlay-hints` | handshake (shared walk) | The instantiation walk was lifted out of `inlay.rs` into a shared module (now `vlog_semantic::instantiations`) rather than copied — the two answers cannot drift; inlay's 34 tests are the regression net. |
|
||||
@@ -803,7 +804,7 @@ ownership explicitly.
|
||||
| `vlog_formatter/src/fence.rs` | format-fences | range-formatting, shared-fence-filter, CLI `--fix` (`lucisv/src/lint.rs`), server quick fixes (`lucisv_server/src/lint.rs`) | `protected_regions`/`is_protected` are the **only** supported way to ask "may an automatic edit touch these bytes". One answer, **two** front ends — and `vlog_linter` is deliberately not one of them (it stays fence-blind; the filter lives in each front end). Class and statement scopes are supported by statement-fences (§2.9-3 delivered); `range::plan` must merge these protected spans with unselected runs. Port and case-label lists remain outside independent fence scopes. |
|
||||
| `lucisv_server/src/pairs.rs` | editor-scopes | documentHighlight, missing-closer diagnostics, scopePairs rainbow, folding, completion gates, on-type indent, inline-templates, expand-selection (`selection.rs`) | The `RULES` table + no-closer guard list is shared truth. Any keyword added to/removed from `token.rs` requires re-checking it (a word that stops being a keyword silently stops being matched). |
|
||||
| `lucisv_server/src/server/` | lucisv-server; amended by cancel-request, change-debounce, scan-interleave, index-scope, verbose-timing | every request/notification and every rebuild trigger | One ordered loop owns all mutable server state. A startup scan may publish a prefix and answer queued work between files; a request queued behind a rescan trigger is held until that rescan lands, and its cancel travels with it. Never make the distinction time-based: machine load must not change which index a request sees. Verbose timing may observe each wrapper/lifecycle but must be entirely silent when off and must not move protocol ordering. The queue thread only forwards protocol messages and must never parse. |
|
||||
| `lucisv_server/src/state.rs` | lucisv-server; amended by filelist, index-scope, scan-interleave, indexing-ux, incremental-index, index-persistence, hover-line-index, large-file-mode, one-parse (`Document.tree`), editor-settings + folders-and-config (`set_client_settings`/`change_roots`), include-nav (the include graph), completion-core (candidates), file-watching, interactive-latency (`first_token_reaching`/`first_token_from`), refactor performance fan-outs | every handler | `Workspace` is immutable through request handlers except the interior-mutable four-entry/8 MiB `FileView` cache. The scope ladder (filelist > `index.scope: "workspace"` > folder-scope at shipped depth 2; a rootless session never climbs; it reads flat at depth 0 and walks descendants at positive depth (including the default 2)) and open-buffer overlay are contracts. `Scan` has whole/widen shapes but one step/finish path; index/candidate/include prefixes publish together. `module_sources`, `rename_sources`, and `include_sources` must remain supersets of what their engines can edit/refuse over; `rename_sources` falls back to `sources()` when an ambiguous posting prevents a proven bound. `update_one` and a completed scan must equal a fresh build (`fingerprint`). Handlers reading `doc.text` instead of tokens/tree must check `doc.large`. |
|
||||
| `lucisv_server/src/state.rs` | lucisv-server; amended by filelist, index-scope, scan-interleave, indexing-ux, incremental-index, index-persistence, hover-line-index, large-file-mode, one-parse (`Document.tree`), editor-settings + folders-and-config (`set_client_settings`/`change_roots`), include-nav (the include graph), completion-core (candidates), file-watching, interactive-latency (`first_token_reaching`/`first_token_from`), refactor performance fan-outs | every handler | `Workspace` is immutable through request handlers except the interior-mutable four-entry/8 MiB `FileView` cache. The scope ladder (filelist > `index.scope: "workspace"` > folder-scope at shipped depth 2; a rootless session never climbs; it reads flat at depth 0 and walks descendants at positive depth (including the default 2)) and open-buffer overlay are contracts. `Scan` has whole/widen shapes but one step/finish path; index/candidate/include prefixes publish together. `module_sources`, `rename_sources`, and `include_sources` must remain supersets of what their engines can edit/refuse over; `rename_sources` falls back to `sources()` when an ambiguous posting prevents a proven bound. `update_one` and a completed scan must equal a fresh build (`fingerprint`). Handlers reading `doc.text` instead of tokens/tree must check `doc.large`. **(2026-09-12)** `Document::new`'s derivations are individually traced (`lint_trace::Rebuild`), so a stage added to or removed from that constructor wants a `Rebuild` variant beside it. |
|
||||
| `lucisv_server/src/settings.rs` | editor-settings | folders-and-config, indexing-ux, index-scope, index-persistence, inline-templates, will-save-wait-until, filelist, large-file-mode | One parser for both doors (push and pull, via `from_section` re-wrapping). Every key drops garbage independently; defaults that are not "silence" (1 MiB cap, log on, persist on, 4 MiB large-file threshold) are hand-written in `Default`. `set_client_settings` returns whether a reindex is owed — new keys must decide that question explicitly. |
|
||||
| `vlog_semantic/src/workspace/` (+ `facts.rs`) | workspace-index; extended by incremental-index, index-persistence, index-scope, hover-line-index, scan-interleave, member semantics, semantic-lints-on, bind-semantics, SVA bodies and refactor-rename performance | server state, hierarchy/lens/type-hierarchy, refactor, completion, semantic lints | Determinism (same inputs → same index, any order), the `paths` spelling coupling with `resolve.rs`, `FACTS_FORMAT` bumped on any codec change (current 19), edge/posting tables built by the same lifted walks the engines use. `DeclLines` must round-trip and participate in `fingerprint`; `absorb` must equal one build over the resulting record set; `files_spelling` must continue to include unresolved non-empty external/inherited paths or rename loses its dangling-use refusal; `FileFacts::words` is the shared project mention/completion census. |
|
||||
| `vlog_refactor/src/rename/` | refactor-rename; shared by references-nav and the performance wave | server rename/prepareRename/references and port refactor verification | `Scope` remains the whole-scope authority and `collect_occurrences` the one rename/references walk. The fast `prepare_rename_here` answer/refusal and `rename_name_at` target are parity contracts, not alternate semantics. Any new refusal must be expressible on the fast path or force a deferral; any new occurrence shape must be reflected in the server fan-out or trigger its all-sources fallback. |
|
||||
|
||||
@@ -5,6 +5,33 @@ for you. The extension and its bundled language server share one version
|
||||
number; the full engineering notes live in the
|
||||
[project changelog](https://git.luci.ooo/lucio/lucisv/src/branch/master/CHANGELOG.md).
|
||||
|
||||
## 0.55.0 — 2026-09-17
|
||||
|
||||
- Find All References on a module's internal signal now lists every use
|
||||
in other files — a `bind` connection or a `u_x.sig` hierarchical path
|
||||
— from the declaration or from any use, and includes the declaring
|
||||
file's own uses even when that file is not open. Hover shows the live
|
||||
declaration line for such signals too.
|
||||
- When a file changed on disk behind the editor's back, a reference
|
||||
that no longer sits where the index remembers it is left out rather
|
||||
than reported on the wrong line.
|
||||
|
||||
## 0.54.0 — 2026-09-12
|
||||
|
||||
- Rename now edits the `bind` files that name the renamed signal — bare
|
||||
in a connection or through a hierarchical path — and warns about any
|
||||
bind occurrence it cannot resolve instead of staying silent. Go to
|
||||
definition, hover and references answer over bind files too. The index
|
||||
rebuilds once after the update.
|
||||
- The first code-action menu after an edit in a very large file is about
|
||||
a fifth faster; nothing about the answers changed.
|
||||
|
||||
## 0.53.0 — 2026-09-09
|
||||
|
||||
- A workspace with a symlinked directory alias no longer shows two
|
||||
definition targets, or refuses a valid rename as ambiguous, right after
|
||||
opening a file; startup and rescan now agree.
|
||||
|
||||
## 0.52.0 — 2026-09-09
|
||||
|
||||
- **Quicker where it counts:** a cursor move on a huge generated file
|
||||
|
||||
@@ -30,7 +30,7 @@ Install **lucisv — Verilog/SystemVerilog** from the VS Code Extensions view,
|
||||
then open a Verilog or SystemVerilog file. There is no separate server or CLI
|
||||
setup.
|
||||
|
||||
The current release is **0.52.0**. Its platform packages include both
|
||||
The current release is **0.55.0**. Its platform packages include both
|
||||
`lucisv-server` and the `lucisv` command-line tool:
|
||||
|
||||
| Package target | Machines |
|
||||
@@ -374,6 +374,24 @@ Every nesting color is a proper VS Code theme color:
|
||||
}
|
||||
```
|
||||
|
||||
## Release 0.55.0 highlights
|
||||
|
||||
Version 0.55.0 makes Find All References see every cross-file use of a
|
||||
module's internal signals — a `bind` connection or a `u_x.sig` path in
|
||||
another file — and guarantees a stale index can omit a location but
|
||||
never point at the wrong line.
|
||||
|
||||
## Release 0.54.0 highlights
|
||||
|
||||
Version 0.54.0 makes rename edit `bind` files (or warn, never stay
|
||||
silent) and cuts the first request after an edit in a very large file by
|
||||
about a fifth.
|
||||
|
||||
## Release 0.53.0 highlights
|
||||
|
||||
Version 0.53.0 fixes the startup scan indexing a symlink-aliased
|
||||
directory twice.
|
||||
|
||||
## Release 0.52.0 highlights
|
||||
|
||||
Version 0.52.0 is the take-5 review round: cheaper refusals, one lint
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "lucisv",
|
||||
"displayName": "lucisv — Verilog/SystemVerilog",
|
||||
"description": "Fast Verilog/SystemVerilog formatting, linting, navigation, refactoring, semantic highlighting and RTL design intelligence.",
|
||||
"version": "0.52.0",
|
||||
"version": "0.55.0",
|
||||
"publisher": "guoliangchen",
|
||||
"author": "Guoliang Chen",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -88,7 +88,7 @@ apart in `results.jsonl`; run each phase once per binary.
|
||||
| `scanprofile` | §P4a | the startup breakdown, from the server's own `timing: scan <n> stages/counts/memory` lines: workspace cold and warm, the default scope, `scopeDepth 0`, and 1 / 10 / 100 open buffers. **One row per traced scan** — a session at a configured scope pays two (the startup scan runs at the default settings and the pulled scope asks for another), and adding them together would be wrong |
|
||||
| `scanwait` | §P4a | §P0's first-useful-answer rows, re-run under `--verbose`, so the trace of the very session that answered sits in the row: when the first publish landed, how many publishes there were, how long the config round trip took |
|
||||
| `scanserve` | §P4a | a `textDocument/definition` every 200 ms for as long as the scan is still saying anything: the mid-scan latency distribution, and `mismatched_answers` — non-empty answers that named somewhere the settled index does not, which must be 0 (the coherence contract of `docs/features/index-scope/README.md`) |
|
||||
| `actionprofile` | §R1b | one `--verbose` session per cursor, four request shapes each — the first menu of the session, three repeats on the unchanged buffer, a definition queued behind it, and the first menu after each of three `didChange`s — with the server's own `timing: codeaction …` line parsed into `trace_*` fields. Two groups per line: `flush{…}` is the debounced `Document` rebuild and the diagnostics publish inside it, `action{…}` is the handler. A request that lints nothing logs no line, which is why the queued rows say how many the follower logged |
|
||||
| `actionprofile` | §R1b | one `--verbose` session per cursor, four request shapes each — the first menu of the session, three repeats on the unchanged buffer, a definition queued behind it, and the first menu after each of three `didChange`s — with the server's own `timing: codeaction …` line parsed into `trace_*` fields. **Three** groups per line: `flush{…}` is the debounced `Document` rebuild and the diagnostics publish inside it, `rebuild{…}` splits that rebuild into the stages `Document::new` runs — `lex`, `parse`, `defines`, `analyze`, `external`, `lines` — plus the `publish` the flush does with the result and the `documents` it built (TODO §63.2), and `action{…}` is the handler. The groups are **siblings, never nested**: `phases_p2.parse_trace` flattens one level of `name{…}`, which is how all three arrive as `trace_flush_*` / `trace_rebuild_*` / `trace_action_*` row fields with no parser change. A request that lints nothing logs no line, which is why the queued rows say how many the follower logged |
|
||||
| `ruleablation` | §R1b | *which* rules the pinmux quickfix menu's milliseconds are in: one warm session, `lucisv.lint.select` pushed to a single rule per row by `didChangeConfiguration` (a selection change rescans nothing), the unrestricted control taken first **and** last so session drift is visible rather than blamed on a rule |
|
||||
| `snapshotrss` | §R1a | idle and peak RSS with 1 / 10 / 100 open buffers, each sent one quickfix-only `codeAction` so that every open document holds a lint snapshot — the memory bound of `docs/features/perf5r-lint-snapshot/README.md`. `rss_kib` / `peak_rss_kib`, never `ms` |
|
||||
| `renamewarn` | §R3b | every `lucisv: ` warning sentence four renames say, in order, written into the row as `titles` and compared **line by line** between labels. `renametrace` hashes a rename's edits; its warnings are `window/logMessage` notifications and are in no fingerprint, so a reuse that kept every edit and dropped a sentence would otherwise pass |
|
||||
|
||||
+24
-1
@@ -85,6 +85,18 @@ class Session:
|
||||
self.server_requests = [] # every server->client request, answered
|
||||
self.applied = [] # captured workspace/applyEdit pushes, in order
|
||||
self.pending = {} # id -> (method, sent_at) for in-flight requests
|
||||
#: The `perf_counter` instant each indexing bar came *down*, stamped by
|
||||
#: the reader thread where the bytes land. One entry per scan: the
|
||||
#: server puts one bar up per scan and takes it down when that scan
|
||||
#: lands (`server/progress.rs`), and a mid-scan publish sends no `end`.
|
||||
#: A probe reads `scan_completed_at` — the first of them — and checks
|
||||
#: this list's length to prove that first `end` was the scan's.
|
||||
self.progress_ends = []
|
||||
#: When the session's **scan** finished, independent of anything the
|
||||
#: client sent. Review finding F3: a request window's own chatter is
|
||||
#: not a scan event, so the settle instant is taken from the server's
|
||||
#: own end-of-scan message and never from "the last thing we heard".
|
||||
self.scan_completed_at = None
|
||||
#: id -> the `perf_counter` instant the reader thread parsed the
|
||||
#: response. Stamped where the bytes land rather than where a caller
|
||||
#: gets round to looking, so a probe holding many requests in flight
|
||||
@@ -317,9 +329,20 @@ class Session:
|
||||
self.server_requests.append(message["method"])
|
||||
elif "method" in message and "id" not in message:
|
||||
self.notifications.append(message)
|
||||
if message["method"] == "window/logMessage":
|
||||
if message["method"] == "$/progress":
|
||||
params = message.get("params") or {}
|
||||
value = params.get("value") or {}
|
||||
if value.get("kind") == "end":
|
||||
self.progress_ends.append(time.perf_counter())
|
||||
if self.scan_completed_at is None:
|
||||
self.scan_completed_at = self.progress_ends[-1]
|
||||
elif message["method"] == "window/logMessage":
|
||||
text = message.get("params", {}).get("message", "")
|
||||
self.log_messages.append(text)
|
||||
# The `--verbose` line the bar's own `end` is followed by —
|
||||
# the fallback for a client that showed no bar at all.
|
||||
if text.startswith("timing: scan finished:") and self.scan_completed_at is None:
|
||||
self.scan_completed_at = time.perf_counter()
|
||||
found = TIMING_LINE.search(text)
|
||||
if found:
|
||||
self.timings.append((found.group(1), float(found.group(2))))
|
||||
|
||||
@@ -102,6 +102,14 @@ RENAMES = [
|
||||
sites.AES_CORE, "cipher_alert;", 1, 0, "clk_i", None),
|
||||
("duplicate module: rstmgr_por -> rstmgr_por_x",
|
||||
sites.RSTMGR, "rstmgr_por ", 1, 0, "rstmgr_por_x", None),
|
||||
# TODO §63.1's shape: a net declared in `aes.sv` whose only other
|
||||
# occurrence is the expression half of a `bind aes …` connection, in a
|
||||
# file that instantiates nothing in the chain. Before 0.54.0 that
|
||||
# occurrence was neither edited nor warned about, so this row's edit
|
||||
# count is what the lane changed.
|
||||
("bind: entropy_masking_req -> masking_req_x",
|
||||
sites.AES, "entropy_clearing_req, entropy_masking_req;", 1,
|
||||
len("entropy_clearing_req, "), "masking_req_x", sites.AES_BIND),
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ from harness import ARGS, at, phase, record, samples, session, settled, sites
|
||||
#: `(row, file, needle, occurrence, offset, new_name, also_open)` — the renames
|
||||
#: that produce warnings, plus one that produces none as the control. Taken
|
||||
#: from `phases_p2.RENAMES` so the two phases speak about the same requests.
|
||||
WARNED = ["tail", "ordinary", "unique internal", "common port"]
|
||||
WARNED = ["tail", "ordinary", "unique internal", "common port", "bind"]
|
||||
|
||||
|
||||
@phase("renamewarn")
|
||||
|
||||
+86
-16
@@ -126,16 +126,27 @@ def drain_answers(s, answers, origin):
|
||||
|
||||
|
||||
def settled_at(s, quiet_at, origin):
|
||||
"""Milliseconds from `origin` to the session's **last** notification.
|
||||
"""Milliseconds from `origin` to the moment the **scan** ended.
|
||||
|
||||
Not "when the probe stopped asking, minus a quiet window": the offered load
|
||||
runs for a fixed window that may end before the session does or long after
|
||||
it, so both halves are taken into account — the last chatter the send loop
|
||||
saw, and anything `wait_quiet` sees after it.
|
||||
The scan's own event and nothing else (review finding F3). The old form
|
||||
took the last notification of any kind after the request window, and a
|
||||
`--verbose` server logs one line per request — so a probe that offered
|
||||
load for 3.5 s recorded a 3.4 s "settle" for a scan that ended at 1.77 s,
|
||||
and then classified every response as mid-scan. `Session.scan_completed_at`
|
||||
is stamped by the reader thread on the indexing bar's own `end`, which no
|
||||
request can move.
|
||||
|
||||
The fallback is for a session that saw no such event at all — and "nothing
|
||||
more arrived" is asked by counting notifications, never by testing a clock
|
||||
delta for exact zero.
|
||||
"""
|
||||
if s.scan_completed_at is not None:
|
||||
return (s.scan_completed_at - origin) * 1000.0
|
||||
entered = time.perf_counter()
|
||||
before = len(s.notifications)
|
||||
more = s.wait_quiet(QUIET)
|
||||
last = entered + more / 1000.0 if more > 0.0 else quiet_at
|
||||
s.drain()
|
||||
last = entered + more / 1000.0 if len(s.notifications) > before else quiet_at
|
||||
return (last - origin) * 1000.0
|
||||
|
||||
|
||||
@@ -146,17 +157,21 @@ def one_session(s, rate_ms, ticks, extra, params):
|
||||
answers = []
|
||||
sent, jitter, quiet_at = offer(s, rate_ms, ticks, params, origin, answers)
|
||||
unanswered = drain_answers(s, answers, origin)
|
||||
# One measurement under two names: `settled_ms` is the row field every
|
||||
# earlier series carries, and it now holds what it always claimed to —
|
||||
# when this session's scan ended.
|
||||
settle = settled_at(s, quiet_at, origin)
|
||||
settled_answer = s.request("textDocument/definition", params)[1].get("result")
|
||||
scans = traces(s)
|
||||
return {
|
||||
"sent": sent,
|
||||
"jitter": jitter,
|
||||
"settle": settle,
|
||||
"scan_completed_ms": settle,
|
||||
"scan_ends": len(s.progress_ends),
|
||||
"answers": answers,
|
||||
"unanswered": unanswered,
|
||||
"settled_answer": settled_answer,
|
||||
"scans": scans,
|
||||
"scans": traces(s),
|
||||
}
|
||||
|
||||
|
||||
@@ -175,17 +190,28 @@ def publication(scans):
|
||||
return out
|
||||
|
||||
|
||||
def counts_of(run):
|
||||
"""One session's first traced scan's `counts`, or nothing."""
|
||||
scans = run.get("scans") or []
|
||||
return (scans[0].get("counts") if scans else None) or {}
|
||||
|
||||
|
||||
def summary(runs):
|
||||
"""Every session's rows folded into the one the cell records."""
|
||||
latencies = sorted(a["ms"] for run in runs for a in run["answers"])
|
||||
inside = sorted(a["ms"] for run in runs for a in run["answers"]
|
||||
if a["at"] <= run["settle"])
|
||||
if a["at"] <= run["scan_completed_ms"])
|
||||
mid = len(inside)
|
||||
mismatched = sum(1 for run in runs for a in run["answers"]
|
||||
if a["result"] and a["result"] != run["settled_answer"])
|
||||
unsettled = sum(1 for run in runs for a in run["answers"]
|
||||
if a["result"] != run["settled_answer"])
|
||||
answered = len(latencies)
|
||||
# Per **timed trial**, never per cell: a cell whose first trial is the one
|
||||
# that filled the store is exactly what finding F2 was about, and one
|
||||
# number for the cell would hide it again.
|
||||
cache_hits = [counts_of(run).get("hits", 0) for run in runs]
|
||||
cache_misses = [counts_of(run).get("misses", 0) for run in runs]
|
||||
return {
|
||||
"ms": latencies,
|
||||
"latency_median_ms": statistics.median(latencies) if latencies else 0.0,
|
||||
@@ -200,12 +226,16 @@ def summary(runs):
|
||||
"mismatched_answers": mismatched,
|
||||
"unsettled_answers": unsettled,
|
||||
"settled_ms": [run["settle"] for run in runs],
|
||||
"scan_completed_ms": [run["scan_completed_ms"] for run in runs],
|
||||
"scan_ends": [run["scan_ends"] for run in runs],
|
||||
"cache_hits": cache_hits,
|
||||
"cache_misses": cache_misses,
|
||||
"tick_jitter_ms": max((run["jitter"] for run in runs), default=0.0),
|
||||
"publication": [publication(run["scans"]) for run in runs],
|
||||
}
|
||||
|
||||
|
||||
def cell_status(got):
|
||||
def cell_status(got, cache=None):
|
||||
"""A cell is a finding when an answer disagreed or a request went missing."""
|
||||
if not got["ms"]:
|
||||
return "error", "no request was answered at all"
|
||||
@@ -214,6 +244,13 @@ def cell_status(got):
|
||||
got["mismatched_answers"])
|
||||
if got["unanswered_requests"]:
|
||||
return "error", "%d requests were never answered" % got["unanswered_requests"]
|
||||
# Finding F2: a warm label is a claim about the store, so it is checked
|
||||
# rather than asserted. A trial that parsed everything read nothing from
|
||||
# the store, and a cell that quotes it beside three warm ones is the
|
||||
# measurement error the review found, not a slow server.
|
||||
if cache == "warm" and any(hits == 0 for hits in got.get("cache_hits", [])):
|
||||
return "error", ("a warm trial found nothing in the store: hits %r, misses %r"
|
||||
% (got.get("cache_hits"), got.get("cache_misses")))
|
||||
return "ok", None
|
||||
|
||||
|
||||
@@ -224,7 +261,12 @@ NOTE = (
|
||||
"four publish_* stages, the publish count and the files published; "
|
||||
"`mismatched_answers` is the coherence contract of "
|
||||
"docs/features/index-scope/README.md, `unsettled_answers` the review §2 "
|
||||
"gate (every answer, empty ones included, equal to the settled one)"
|
||||
"gate (every answer, empty ones included, equal to the settled one); "
|
||||
"`scan_completed_ms` (and `settled_ms`, the same measurement) is the "
|
||||
"server's own end-of-scan event, so `mid_scan_*` counts responses that "
|
||||
"really did arrive inside the scan; `cache_hits`/`cache_misses` are per "
|
||||
"timed trial, and a warm cell whose trial found nothing in the store is a "
|
||||
"finding rather than a number (F2/F3)"
|
||||
)
|
||||
|
||||
QUIET_NOTE = (
|
||||
@@ -234,25 +276,53 @@ QUIET_NOTE = (
|
||||
)
|
||||
|
||||
|
||||
#: Where every `scanload` session's index store lives, under `--storage`.
|
||||
STORE = "r4-load"
|
||||
|
||||
|
||||
def prime(extra):
|
||||
"""Fill the store, untimed, before a warm cell measures anything.
|
||||
|
||||
Finding F2: `Session.__enter__` *creates* the storage directory, which is
|
||||
not the same as filling it, so a `scanload` run pointed at a fresh
|
||||
`--storage` measured a cold first trial under a warm label (0 hits and
|
||||
3 974 misses, 1 684 ms of parsing, against 3 974 hits and none on the
|
||||
next). This is the missing half: one whole session over the same scope and
|
||||
the same buffers, its time thrown away, so every timed trial afterwards
|
||||
reads a store that has all of it.
|
||||
|
||||
Not a substitute for the check — `cell_status` still refuses a warm cell
|
||||
whose trials found nothing in the store, because a store that exists is
|
||||
not evidence that it is complete.
|
||||
"""
|
||||
with session("workspace", cold=False, verbose=True, storage_name=STORE) as s:
|
||||
s.initialize()
|
||||
open_buffers(s, extra)
|
||||
s.wait_quiet(QUIET)
|
||||
|
||||
|
||||
def load_cell(cache, buffers, rate, params, where=""):
|
||||
"""One cell: `--tries` fresh sessions under the same fixed offered load."""
|
||||
extra = rtl_files(buffers)
|
||||
ticks = WINDOW_MS[cache] // rate if rate else 0
|
||||
store = os.path.join(ARGS.storage, STORE)
|
||||
if cache == "warm" and not (os.path.isdir(store) and os.listdir(store)):
|
||||
prime(extra)
|
||||
runs = []
|
||||
for _ in range(ARGS.tries):
|
||||
with session("workspace", cold=(cache == "cold"), verbose=True,
|
||||
storage_name="r4-load") as s:
|
||||
storage_name=STORE) as s:
|
||||
runs.append(one_session(s, rate, ticks, extra, params))
|
||||
got = summary(runs)
|
||||
if not rate:
|
||||
# `ms` is the settle time here, and `settled_ms` is already in `got`.
|
||||
record(phase="scanload",
|
||||
row="quiet control, %s cache, %d extra buffer(s)" % (cache, buffers),
|
||||
fresh_process=True, result_count=0, rate_ms=0,
|
||||
ms=got["settled_ms"], settled_ms=got["settled_ms"],
|
||||
publication=got["publication"], open_buffers=buffers + 1,
|
||||
note=QUIET_NOTE)
|
||||
open_buffers=buffers + 1, note=QUIET_NOTE,
|
||||
**dict(got, ms=got["settled_ms"]))
|
||||
return
|
||||
status, message = cell_status(got)
|
||||
status, message = cell_status(got, cache)
|
||||
got["ms"] = got["ms"] or [0.0]
|
||||
record(phase="scanload",
|
||||
row="%sdefinition every %d ms, %s cache, %d extra buffer(s)"
|
||||
|
||||
Reference in new issue
Block a user