Skip to content

Lane cost failures include captured parser diagnostics - #854

Merged
zlareb1 merged 1 commit into
mainfrom
test/lane-cost-diagnostics
Nov 18, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
test/lane-cost-diagnostics

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Related: #841

Changelog category (leave one):

  • CI Fix or Improvement

Why

A lane cost check can fail after its parser stops an oversized input. The child process exits successfully with timing data, so the assertion discards the parser diagnostics captured on stderr. Include that output in the failed cost assertion to distinguish an incomplete parse from a completed walk.

Scope and risk

One assertion message includes the final 4,000 characters of its existing captured child stderr. The child reads synthetic test inputs. No timing, parser limit, fixture, test selection or pass condition changes. This improves failure reporting; it does not fix or qualify the observed scaling failure.

Compatibility, rollout and rollback

  • Wire: no changes.
  • Operator steps: none.
  • Rollback: reverting removes the additional failure output; there is no stored data.

Tests

  • Ruff lint and formatting pass for the changed file; git diff --check passes.
  • A syntax and AST comparison confirms that only the cost assertion's message changes. Every assertion condition, input, import, limit and control-flow statement is identical.
  • No local test or application import was run for this message-only change. All 42 PR CI checks and all three applicable workflows pass, including all six unit shards, coverage, benchmarks and both Postgres integration jobs.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (Codex wrote the diff); the assertion message and unchanged gate conditions were checked.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed.
  • No generated contract changes.
  • No migration changes.
  • No plugin behavior changes.
  • No frontend changes.
  • This description names operator steps and wire changes.
  • Repository text contains no deployment details or private content.
  • Commits are signed off.

@zlareb1
zlareb1 merged commit b68071e into main Nov 18, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant