Skip to content

Lab and gates (gndx emmylua, Lua-side gates) #17

Open
24 of 39 issues completed
Open

Description

@mareklangiewicz

Parent issue for the tooling we use to judge emmylua builds: the gndx emmylua lab (neospector lua/myemmylab*.lua in myvi) and the Lua-side gates in luagnd/neospector.

gndx emmylua --help is the reference for the commands. AGENTS.md has the rules for using them.

Sub-issues

Sub-issues

24 of 39 Issues completed
Loading 39 sub-issues

Activity

  1. 21 remaining items

  2. mareklangiewicz commented on Nov 24, 2026

    @mareklangiewicz
    OwnerAuthor

    Refactor queue item 4 done, and #85 with it (neospector myvi d652ac2 and 84577ca; unpushed). That empties the queue.

    • 4. The red-change test clash is checked for every red kind, once, in red_run. It reads each of tree.paths in the scratch tree before and after tree.apply, so the carried uncommitted tests count, and runs lab.red_test_clash before cargo. A lost test is an error and a changed one is a warning. lab.test_fns now also returns each test's body, so a test the red change leaves unchanged is no clash. The old --red-at check warned whenever COMMIT's file had the test, even an identical one. The filters parameter on RedResolve is gone. red_paths' default was left alone: a revert works on whole files, and the check now covers an inline mod tests.
      • Driven: --red-at=53405821^:…/type_mismatch_test.rs (that commit added the hang test) stops before cargo with the error. A --red-patch that adds a comment line inside that test's body warns, then goes on to cargo. That cargo unit did not start: it waited 300 s for headroom, 8.0 G available against 8.0 G needed. The verdict path after it is unchanged code. The scratch worktree is clean afterwards.
    • lab: test --red-*: a filter red only by an ntest timeout reads NOT RED when another filter failed #85: see its closing comment.
    • Gate: gndx gate PASS (1275 nodes, emmylua CLEAN, lsp CLEAN, mini 0 fails).

    Seen on the way, not fixed: luagnd's default gnd.log line renders a structured record as L I table: 0x… (Log.format → tostring). hoststat's headroom-wait record (ctx.log:i { kind = …, need, available }) printed that way during the cargo wait. gnd.udata.str gives the same address, so the fix is a choice of how a record renders on the console (one-line k=v, or gnd.json). That choice is Marek's.

  3. mareklangiewicz commented on Nov 24, 2026

    @mareklangiewicz
    OwnerAuthor

    Retro items from the 2026-11-24 handoff, (a) to (f): filed as #87 to #92, all closed. Nothing is pushed yet.

    Design note from Marek: the lab code must not couple to neospector. It may move to a luagnd lab module or a separate lualab library. None of the above added a neospector dependency; the lab still needs only gnd.*/gndx.* and mycorpusprobe.

  4. mareklangiewicz commented on Dec 4, 2026

    @mareklangiewicz
    OwnerAuthor

    Lab: a blind spot of the gate's determinism step (corpus repeat), recorded, not changed (Marek, 2026-12-04).

    It reruns the binary on the same checkouts, so on one filesystem it reruns the same readdir order. Until fork 5fb08c9 the workspace walk was unsorted, and file ids (which decide first-match member lookups) followed readdir order: fixed per ext4 filesystem, new on each fresh CI runner. So guh.nvim (35 undefined-field) and plenary.nvim (17 param-type-mismatch) flipped between CI corpus runs of one binary (corpus diff gate-f8edf85a-1204 rerun-f8edf85a-1204: 50 lines) while determinism passed, and 5 local reruns agreed.

    Reproduced locally by recreating a tree on tmpfs (which lists in creation order) in shuffled orders: per seed, guh 2 or 37 undefined-field, plenary 25 or 8 expected Future. After 5fb08c9 (WalkDir::sort_by_file_name): 37 and 25 on every seed and in place; two full CI runs of it, ci-5fb08c9a-1204 and rerun-5fb08c9a-1204: 0 changed lines.

    If the step is ever to catch an order dependence again: run one repeat on a tmpfs copy created in a shuffled order. The semantic half (which same-key member wins) is #113.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions