Skip to content

Tests: fail on merge-conflict markers in tracked files #195

Open

Description

@CaffeinatedCoder

Problem

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

  1. added this to the 5.6.0 milestone on Oct 23, 2026
  2. added
    tests
    area/release
    on Oct 23, 2026
  3. modified the milestones: 5.6.0, 5.6.1 on Oct 23, 2026
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

    area/releasetests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions