Skip to content

fix: use the "\0" escape instead of raw NUL bytes in source files - #145

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:fix/nul-escape
Nov 16, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:fix/nul-escape

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Closes #125.

What changes

  • src/git/git-diff.ts and packages/diffci-cli/src/client/failure-baseline.ts now split on the "\0" escape instead of a raw NUL byte. It is the same string at run time, so there is no behaviour change.
  • New tests/source-text.test.ts reads every .ts file under src/ and packages/diffci-cli/src/ as a buffer and fails if one contains a 0x00 byte. It names the files and says to use "\0".
  • release-files.json lists the new test so npm run audit:boundary passes.

Validation

  • With the old sources, the new test fails and names src/git/git-diff.ts and packages/diffci-cli/src/client/failure-baseline.ts. With the fix, it passes.
  • git ls-files --eol src packages/diffci-cli/src shows no i/-text entry, and rg CONFIG_PATTERNS src now finds src/git/git-diff.ts.
  • npm run typecheck, npm test (1067 pass, 0 fail), npm run build and npm run audit:boundary all pass.

Not covered

The test only walks .ts files in those two source trees, as the issue asks. It does not check tests, scripts or .mjs files.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T07:53:24.120168Z fe4868f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adityankale190895
adityankale190895 merged commit d21eddd into DiffCI:main Nov 16, 2026
13 checks passed
adityankale190895 added a commit that referenced this pull request Nov 16, 2026
Rewrite the README entry as prose grouped by area, covering #145-#150 that the
credit job appended as raw titles, and credit #149/#150 next to the
no-runnable-command table.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
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.

Replace the literal NUL bytes in git-diff.ts and failure-baseline.ts with the \0 escape

2 participants