Skip to content

chore: record WB-59 and close it in the local backlog - #83

Merged
matheusPavaneli merged 2 commits into
mainfrom
WB-59-wb-finish-counts-every-line-of
Sep 27, 2026
Merged

matheusPavaneli merged 2 commits into
mainfrom
WB-59-wb-finish-counts-every-line-of

Conversation

@matheusPavaneli

Copy link
Copy Markdown
Owner

What

Two wb finish defects, both found while using it:

  • a file rewritten with CRLF measured as every line changed
  • a regression test that could not run on its own was reported as one that does not catch the bug

Why

WB-59.

  • CRLF: gitctx.lines_changed ran git diff --numstat without --ignore-cr-at-eol. In a repo that does not convert line endings, a CRLF rewrite on Windows of a 2-line fix measured 66 lines (seen recording the demo). wb finish would send that ticket to the standard route as outgrown, and wb impl check would call a light plan oversize.
  • Regression message: closing this very ticket with wb finish blocked on tests/test_gitctx.py passes without the fix too. The real cause was that the file fails to import on its own, without the PYTHONPATH=lib the suite supplies.

How

  • lines_changed passes --ignore-cr-at-eol.
  • light.check tells a test that fails with the fix (it prints the last line of its output and names the environment as the way out) from one that passes without it.
  • This change was committed by wb finish WB-59 --commit itself: 4 files, 1 suite run, 2 regression tests proven on the base.

Verification

  • wb finish ran the suite (python -m unittest discover -s tests -q) and proved both regression tests fail on the base and pass here.
  • New tests: a CRLF rewrite with one changed line measures 2 (fails without the fix); a test failing with the fix is reported as such, never as weak.

Risk and rollback

Revert to undo.

@matheusPavaneli
matheusPavaneli merged commit 1144da2 into main Sep 27, 2026
10 checks passed
@matheusPavaneli
matheusPavaneli deleted the WB-59-wb-finish-counts-every-line-of branch September 27, 2026 03:36
@matheusPavaneli matheusPavaneli mentioned this pull request Sep 27, 2026
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