You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests: fail on merge-conflict markers in tracked files #195
A merge of release/5.x into the #194 branch committed conflict markers into CLAUDE.md (e62d28f), and every check passed: unit, integration, convention tests and the CI gate. ClaudeMdConsistencyTests, ChangelogConsistencyTests and DocumentationLinkTests read the files and assert on their content, but none of them notices a <<<<<<< line. A changelog conflict resolved this way would publish the markers as release notes, since release.yml and the packed releaseNotes take the section verbatim.
The same session also showed the quieter failure behind it. Two earlier conflict resolutions in CLAUDE.md duplicated the tail of a line, and that duplication reached release/5.x with #193. It was repaired in f895850. No test can tell a garbled sentence from a correct one, but markers it can catch.
Change
A convention test that fails on any tracked text file with a line starting <<<<<<< , ======= on a line of its own, or >>>>>>> , naming the file and line. It reads git ls-files so that build output stays out of it. A Markdown or YAML line that is legitimately ======= (a setext heading) would need excluding by extension, so the test should state which files it covers.
Tests
The test itself, guarded per verify-the-guard: commit a marker into a scratch file in a test checkout, or point the reader at a seeded file, and see it fail.
Activity