Skip to content

Fix CI: beman-tidy Requirement failures and codespell typos#5

Merged
steve-downey merged 4 commits into
mainfrom
fix/beman-tidy-lint-failures
Jul 11, 2026
Merged

Fix CI: beman-tidy Requirement failures and codespell typos#5
steve-downey merged 4 commits into
mainfrom
fix/beman-tidy-lint-failures

Conversation

@steve-downey

Copy link
Copy Markdown
Owner

Summary

The Lint Check (pre-commit) workflow has been failing on main since the
beman-tidy pre-commit hook picked up three new Requirement checks and the
codespell hook flagged pre-existing typos. This fixes all of them:

  • [file.test_names]: renamed the 56 negative-compile-test sources
    under tests/beman/expected/ (the add_fail_test CMake targets) from
    *_fail.cpp to *_fail.test.cpp and updated CMakeLists.txt
    accordingly. Verified all 56 still compile-fail with their expected
    diagnostics via ctest.
  • [file.license_id]: added the missing SPDX-License-Identifier
    header to 26 files (CMake toolchain files, GitHub workflow/dependabot
    configs, examples/expected.cpp, and the papers/wg21-latex/ sources)
    that lacked one in their first 25 lines.
  • [readme.badges]: wrapped the README's library-status badge in the
    link the Beman Standard requires — it was a bare image badge that didn't
    match any of the four required exact forms.
  • codespell: fixed two genuine typos (souces, intializers) and
    added fith/ist to codespell's ignore list, since those flagged
    papers/wg21-latex occurrences are legitimate technical tokens (a PDF
    pdfstartview keyword and the makeindex style-file extension), not
    misspellings.

Two Recommendation-level beman-tidy checks (release.godbolt_trunk_version,
readme.implements) are left failing — they don't affect the hook's exit
code (only Requirement failures do, absent --require-all), so they were
out of scope for unblocking CI.

Test plan

  • make compile CONFIG=Asan — builds clean
  • ctest --test-dir .build/build-system -C Asan — 1079/1079 tests pass,
    including all 56 renamed negative-compile tests
  • pre-commit run -a (make lint) — all hooks pass except two
    beman-tidy Requirement checks that are a local-only artifact of this
    dev environment having an upstream remote pointing at the
    repository's old name (bemanproject/sandbox-expected); confirmed
    those don't appear in the actual GitHub Actions checkout, which only
    has origin

The Beman Standard's [file.test_names] check requires test source
files to match *.test.cpp. Rename the 56 negative-compile-test
sources under tests/beman/expected/ (used via the add_fail_test
CMake macro) accordingly and update their CMakeLists.txt references.
The Beman Standard's [file.license_id] check requires an SPDX header
in the first 25 lines of every commentable file. Add the project's
Apache-2.0 WITH LLVM-exception identifier to the CMake toolchain
files, GitHub workflow/dependabot configs, and the remaining
example/paper source files that were missing it.
[readme.badges] requires the library-status badge to be wrapped in a
link to the maturity model doc; the plain image badge doesn't match
any of the four required exact forms.
Fix genuine typos (souces, intializers) and add the legitimate
technical tokens "FitH" (a PDF pdfstartview keyword) and "ist" (the
makeindex style-file extension) to codespell's ignore list, since
they're false positives rather than misspellings.
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 29099380103

Coverage remained the same at 97.013%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 703
Covered Lines: 682
Line Coverage: 97.01%
Coverage Strength: 25.99 hits per line

💛 - Coveralls

@steve-downey steve-downey merged commit 7991a34 into main Jul 11, 2026
77 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.

2 participants