Skip to content

Lab: corpus diff treats trees that fail the same way on both sides as excluded, not NOT COMPARABLE #39

Done

Description

@mareklangiewicz

Lab issue (neospector lua/myemmylab*.lua). Part of #17.

Problem

In #37, corpus diff up-41366714-1117 bareq-52142e59-1117 --against v0251-1117 printed full per-line results and totals, then ended:

  REFUSED async.nvim: up-41366714-1117 crash, bareq-52142e59-1117 crash
  REFUSED mason.nvim: up-41366714-1117 refused, bareq-52142e59-1117 refused
  REFUSED neotest: up-41366714-1117 crash, bareq-52142e59-1117 crash
  REFUSED neovim-runtime: up-41366714-1117 crash, bareq-52142e59-1117 crash
  REFUSED tuis.nvim: up-41366714-1117 crash, bareq-52142e59-1117 crash
corpus diff: NOT COMPARABLE

with exit 2. Every refused tree failed the same way on both sides: upstream main crashes on four, and mason.nvim is the excluded blowup. So the remaining 54 trees compare cleanly. On any upstream-based diff, exit 2 reads as a failure, and a script that checks the exit code gets it wrong.

Want

  • A tree with the same outcome on A and B (both crash, both refused, …) counts as excluded: one summary line (corpus diff: 5 tree(s) excluded, same outcome on both sides: …), exit 0.
  • Exit 2 stays for trees whose outcome differs between A and B (one finished, the other crashed or timed out). That's a real change worth flagging.
  • AGENTS.md "corpus diff exit 2 means not comparable" stays true under the new meaning.

Activity

  1. mareklangiewicz commented on Nov 17, 2026

    @mareklangiewicz
    OwnerAuthor

    Related noise, seen in both corpus diffs on 2026-11-17 (up-41366714-1117 against nilparam-0286155e-1117 and against memo-43f8b0ea-1117): assign-type-mismatch lines that move between runs of the same binary (#9). Three runs of main 4136671 on blink.cmp, diffview.nvim, nui.nvim and nvim-lspconfig each reported different lines (nui tree/init.lua 240 once, 239 twice). Each diff needed that manual 3× re-run to tell noise from change.

    Idea for the same fix as this issue: corpus run --repeat=N (or a second base run the same day), and corpus diff tags a line flaky when the base runs disagree on it.

  2. mareklangiewicz commented on Nov 26, 2026

    @mareklangiewicz
    OwnerAuthor

    Done in myvi 82e5b16 (neospector myemmylab.lua + CLI + tree), docs in fork 1b8eb83 (measuring.md). Neither is pushed yet.

    • A tree with the same non-finished outcome on both sides lands in Diff.excluded and prints one line, corpus diff: N tree(s) excluded, same outcome on both sides: …, with exit 0.
    • Still refused (exit 2): an outcome that differs between A and B, unknown on both (a gate base without a report can hide a change), and a diff where no tree compared at all.
    • Tests: 4 new emmylab/diff nodes; 3 were red before the change (the unknown one is a guard that already held). Neospector gndx gate: PASS.
    • Real control: corpus diff up-14607355-1124 upnamed-1124 on the old code: 6 REFUSED (async.nvim, bufferline.nvim, neotest, neovim-runtime, tuis.nvim: crash; mason.nvim: refused), NOT COMPARABLE, exit 2. On the new code: the same 11 changed lines, 6 tree(s) excluded, exit 0.
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

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions