Skip to content

Ecosystem triage: Gleam, Groovy/Spock, antsibull-nox, Read the Docs, Earthly, urchin, shelltest and more - #377

Merged
lefticus merged 10 commits into
cpp-best-practices:mainfrom
leftibot:ecosystems
Nov 25, 2026
Merged

lefticus merged 10 commits into
cpp-best-practices:mainfrom
leftibot:ecosystems

Conversation

@leftibot

@leftibot leftibot commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Triage of the area: ecosystem issues, and the work that needed no decision. Closes #252, closes #257, closes #261, closes #264, closes #266, closes #273, closes #275, closes #280, closes #282, closes #289.

Triage

Issue What this PR does What is left, and where
#252 JVM tests Groovy is a JVM language; Spock specifications are tests. —
#257 Ruby A project's Ruby runner script (puma's test/runner) runs the tests. Homebrew's own brew dev commands: brew's code, not a shared convention.
#261 Ansible antsibull-nox's sessions, through nox and its reusable workflow. —
#264 BEAM Gleam profile; erlang.mk build system; Earthfile targets read. —
#266 Haskell shelltestrunner tests; stack exec -- / cabal exec -- run their command. treefmt-nix (#324); PostgREST's nix-built wrappers need Nix evaluated.
#273 JSON Schema tsc --project ./tsconfig.json keeps its strict bonus. git-dependency programs (#324).
#275 Shell urchin's suffix-less tests. bash versions as an axis (#324).
#280 Docs Read the Docs builds; aspell. Legacy GitBook (low confidence); plain-Markdown docs (#324).
#282 C/C++ OpenCppCoverage; emmylua_check. Coverity Scan, cmake-format/gersemi, zig build, MinGW flags: see below.
#289 XML schemas DTDs, NVDL, onvdl, the RELAX NG Gradle plugin. .mod DTD modules (ambiguous with Fortran's).
#271, #276, #278, #285 Already fixed apart from #324 decisions. Closed with comments.

Changes, one commit each

Not done, with reasons (#282)

  • Coverity Scan: it uploads to scan.coverity.com and never fails CI. Plain scan-build without --status-bugs doesn't count for the same reason. A rule to credit report-only analysers would be a Deferred from the bug-fix rounds: policy decisions and design work #324 decision.
  • cmake-format and gersemi: CMake code is made a judged format, formatted and linted, in a follow-up PR of its own.
  • zig build targets: these need build.zig evaluated.
  • MinGW's -Wl,--dynamicbase/--nxcompat: glfw's message is about its MSVC builds, which really don't set /DYNAMICBASE. The gcc hardening doesn't ask for those link flags. The issue rated this low confidence.

Corpus

Recorded all 235 projects and compared them with the recording made for #376. There are no unexplained shortfalls; cppbestpractices' GitBook is the known one.

Better:

  • Read the Docs builds: flask's site now reads as built, and fail_on_warning passes its warnings-as-errors. tests-run passes for requests and rich. In strict mode, argo-cd and bats-core go from ERROR to a verdict.
  • community.general: with antsibull-nox read, type-checking passes, and strict tests-run goes from ERROR to a verdict.
  • ecto: reading the Earthly target turns eight strict ERRORs into verdicts.
  • prometheus-community: its twelve strict ERRORs are gone. That fix is from the end of Parse Travis, CircleCI, Azure Pipelines, AppVeyor and Cloud Build; finish the ci-reading triage #376 (chart-testing's {{ .Path }}), which landed after that recording.

Worse, on purpose:

  • junit5's security-scanning goes PASS→WARN. Its Groovy tests count as the project's own code, by the existing rule that a Java project's Kotlin tests are its own, and CodeQL doesn't scan Groovy. Find Security Bugs, which works on bytecode, would.

Caught and fixed before this PR: a DTD alone made glib and dbus-broker XML-schema projects, so they were asked to prettier-format a DTD. A DTD now belongs to a schema project but makes none on its own, so both are unchanged from main. junit5's src/testFixtures/ Spock samples read as product Groovy; Gradle's test fixtures are now test code.

Gates

pytest at every commit, ruff, ruff format, mypy, lizard, coverage, jscpd and strict self-validation: all pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

leftibot and others added 10 commits November 24, 2026 17:21
…cpp-best-practices#252)

liquibase's 392 Spock specifications under src/test/groovy were an unrecognised suffix, so
its bulk of tests was invisible. cpp-best-practices#324 held this back because Groovy as a language ran into
Groovy is its tests is not judged on it.

Groovy is now a JVM language (`.groovy`). The tools that work on compiled classes or format
Groovy judge it too: SpotBugs, Find Security Bugs, JaCoCo, Kover, PIT, Spotless, the Maven and
Gradle package managers and build outputs, and `mvn test` / `gradle test`. Two do not, so a
Groovy project is never asked for what no Groovy tool can do:
- warnings-as-errors stays Java and Kotlin: its requirements are javac's and kotlinc's
  options, and groovyc has none;
- lizard measures Java and Kotlin, not Groovy.

The JVM test files include src/test/groovy (and other test source sets) and a class that
`extends Specification`; the cpp-best-practices#252 expected-failure test passes. Gradle's test fixtures source
set (`src/testFixtures/`) is test code, as `src/test/` is: junit5's Spock samples there had
read as product Groovy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
…practices#275)

nvm's 300+ tests are urchin tests: shell scripts without a suffix under test/fast,
test/slow, ..., which `urchin test/fast` (through `make test-fast`) runs. With no suffix
convention to match, tests-run said "no tests found".

urchin's tests are now the shell scripts (told by their shebang) without a suffix under a
test/ or tests/ directory, but urchin's setup and teardown hooks; `urchin` runs them. A
suffix-less script under test/ is as often a helper, so they count as urchin's tests only
where something runs urchin: elsewhere tests-run still finds no tests, rather than tests CI
does not run. The cpp-best-practices#275 expected-failure test for urchin passes; the bash-version axis stays a
cpp-best-practices#324 question.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
Two of the tools cpp-best-practices#282 lists that main still did not know:
- OpenCppCoverage, the Windows coverage tool cmake_template and Catch2 run
  (`OpenCppCoverage.exe --export_type cobertura:coverage.xml -- ctest -C Debug`): it reports
  line coverage (it counts no branches), and the tests it runs after `--` are a command of
  their own, so ctest's run counts too;
- emmylua_check, which neovim checks its Lua with (configured in `.emmyrc.json`), as a Lua
  type checker beside lua-language-server.

astyle and uncrustify were already known, and scan-build --status-bugs already counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
…ctices#273)

SchemaStore's `tsc --project ./jsconfig.json` lost the strict-mode bonus its jsconfig.json
earns: `joined` kept the `./`, so `./jsconfig.json` named no file whose settings were read,
and the run read as not strict. A path in a directory is now joined without a leading `./`
(the shell-script reader stripped it by hand before; that copy goes).

The rest of cpp-best-practices#273 was already done or is tracked: SchemaStore's JSON Schemas for tsconfig.json
are no longer taken for configurations, the AsyncAPI CLI's `validate` over examples/ checks
the examples, and a test program from a git dependency is cpp-best-practices#324's "known programs" item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
Two of cpp-best-practices#280's remainders:
- bats-core's and flask's documentation is built on Read the Docs, from `.readthedocs.yaml`,
  not in CI, so their sites read as never built. `.readthedocs.yaml` (or `.yml`, with or
  without the dot) is now the Read the Docs provider's configuration. Its one job builds
  nothing of the project's, as pre-commit.ci's does, and runs what Read the Docs runs: the
  configuration's own `build: commands:`, or `mkdocs build` for an MkDocs site, or
  `sphinx-build` (the default). `fail_on_warning: true` adds `--strict` or `-W`, so it counts
  for warnings-as-errors. As with pre-commit.ci, the configuration alone satisfies ci-present.
- rust-lang/book checks its chapters' spelling with aspell; like codespell, aspell now counts
  as a prose checker of a documentation site where it runs.

The legacy GitBook (cppbestpractices' book.json) stays unrecognised: the issue rates it low
confidence, since GitBook's open-source generator is dead and the repository is Markdown.
Plain-Markdown docs with a link checker are the cpp-best-practices#271 decision in cpp-best-practices#324.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
…pp-best-practices#261)

community.general's whole CI is antsibull-nox's reusable workflow, so every CI-dependent
check was an ERROR in the strict run, and tests-run, static-analysis, type-checking and
code-formatting FAILed with --allow-unknown. What that workflow runs is declared in the
repository's own antsibull-nox.toml, the standard CI configuration of the ~100
ansible-collections repositories.

- `nox` runs the sessions antsibull-nox.toml configures (or those `nox -e`/`-s` names):
  ansible_test_sanity, ansible_test_units and ansible_test_integration run ansible-test,
  ansible_lint runs ansible-lint, and the lint session's switches run ruff check, ruff
  format --check, black, isort, flake8, pylint, yamllint and mypy (with `mypy_config`).
- A job that calls a reusable workflow of another repository is still unknown, unless a known
  action models it: then the call is a step of a job on runners that are not read. antsibull-
  nox's reusable-nox-matrix.yml is modelled as running `nox`.

The cpp-best-practices#261 expected-failure test passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
…actices#257)

puma runs its Minitest suite through its own `test/runner` (`#!/usr/bin/env ruby`, requiring
minitest/autorun), so tests-run said "no CI configuration runs rspec, rake test or rails
test" for a project that runs its tests in every job. A Ruby script without a suffix that
requires minitest/autorun, test/unit or rspec/autorun is now recorded as a test runner script,
and a command that runs it runs the tests. The cpp-best-practices#257 expected-failure test passes.

Homebrew's own dev commands (`brew tests`, `brew style`, `brew typecheck`) stay unread: each is
brew's code, not a convention other projects share.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
…-practices#266)

hledger's 585 functional tests are shelltestrunner files (`*.test`), run in CI with
`stack exec -- shelltest --execdir -j16 hledger/test`; `.test` was an unrecognised suffix, so
they were invisible beside its Cabal test suites.

- A `*.test` file of commands and their expected output (`$ cmd` … `>= 0`, or the older
  `$$$ cmd` / `>>>` forms) is a shelltestrunner test of the Haskell project, which
  `shelltest` runs; a `.test` file of anything else is none.
- `stack exec -- <cmd>` and `cabal exec -- <cmd>` run the command after `--`, which is a
  command of its own (as `bundle exec` is), so the shelltest run there is seen.

The rest of cpp-best-practices#266 stays as cpp-best-practices#324 records it: treefmt configured in Nix code (treefmt-nix) is not
read, and PostgREST's nix-built `postgrest-*` wrappers would need Nix evaluated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
…targets (cpp-best-practices#264)

cpp-best-practices#264's three gaps, which cpp-best-practices#324 held as design work:
- Gleam: gleam-lang/stdlib's 42 .gleam files were unrecognised, judged as Erlang and
  JavaScript from its FFI shims, and its `gleam test` / `gleam format --check` jobs counted
  for nothing. Gleam is a profile of its own: `.gleam` sources and the gleam build tool
  (gleam.toml); the test modules under test/ (gleeunit, startest, `pub fn …_test()`) that
  `gleam test` runs; `gleam format --check`, with Gleam's one style; and build/, ignored and
  never committed. Its own profile, not a BEAM language, keeps the Erlang and Elixir tools
  (Dialyzer, Credo, mix test) from asking anything of it. gleam-lang/stdlib stands for Gleam in
  the corpus.
- erlang.mk: cowboy read as a rebar3 project from the rebar.config erlang.mk generates for
  Hex. erlang.mk (a committed `erlang.mk`) is a BEAM build system, and a build system's
  `generates` names the build files of others it writes beside its own, which then show no
  build of their own.
- Earthly: `earthly +target` was always unknown. The target's RUN commands in its Earthfile
  are read now (shell form, continued over lines, or exec form), and the targets it BUILDs
  are followed; a target of another repository, or one the Earthfile does not define, or no
  Earthfile, stays unknown. ecto's integration tests run `mix test` there.

The cpp-best-practices#264 expected-failure test passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
…t-practices#289)

docbook/docbook is mostly DTDs and NVDL scripts, which were unrecognised suffixes (`.dtd` 6,
`.ent` 19, `.nvdl` 11), and its build validates RELAX NG through Norm Walsh's Gradle plugin,
which nothing credited, so schema-validation FAILed.

- `.nvdl` is a schema of the XML Schema format (it is XML). A `.dtd` (with its entity files,
  `.ent`) belongs to a schema project's schemas without being a format of its own, as RELAX
  NG's compact syntax does: DTDs are not XML. Alone, a DTD makes no schema project: glib's
  gschema.dtd and dbus-broker's config.dtd describe the programs' own configuration files,
  and judging those projects as schema projects (prettier for a DTD it cannot format) was
  wrong, as the corpus recording showed.
- onvdl, jing's NVDL validator, validates documents; xmllint's `--dtdvalid` and `--valid`
  already counted.
- The com.nwalsh.gradle.relaxng.validate Gradle plugin validates where the build that applies
  it runs (`gradle build`/`check`), as the JVM profile's build plugins do.

docbook's `.mod` files (DTD modules) stay unrecognised: `.mod` is also a Fortran compiler's
module file, a build output, so the suffix alone cannot say which.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt
@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.91630% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.50%. Comparing base (ce8e13c) to head (28fd294).

Files with missing lines Patch % Lines
project_validator/ecosystems/ansible.py 90.90% 3 Missing ⚠️
project_validator/tools/unread_runners.py 94.23% 3 Missing ⚠️
project_validator/ci/read_the_docs.py 97.22% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #377      +/-   ##
==========================================
- Coverage   99.53%   99.50%   -0.03%     
==========================================
  Files         318      320       +2     
  Lines       20953    21149     +196     
  Branches     2509     2540      +31     
==========================================
+ Hits        20856    21045     +189     
- Misses         97      104       +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lefticus
lefticus merged commit 79c1e97 into cpp-best-practices:main Nov 25, 2026
24 of 26 checks passed
@lefticus
lefticus deleted the ecosystems branch November 25, 2026 03:31
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.

Haskell: shelltestrunner, treefmt --ci (fourmolu/hlint/actionlint), nix-built wrapper commands (postgrest-*) BEAM: Gleam is unknown (gleam.toml, .gleam, gleam test/format), erlang.mk is not a build system (rebar.config is its generated artifact), Earthly targets Ansible/Kubernetes: helm-unittest suites in charts/*/unittests via ct.yaml additional-commands, yamllint as an Ansible linter, molecule's pytest verifier, antsibull-nox Ruby: a Rakefile's warning = true is never read, Cucumber features are not tests, project runner scripts (test/runner, brew tests/style/typecheck, ruby test/*.rb) are not runners JVM test discovery is hard-wired to src/test/{java,kotlin} + @Test: JUnit 3 (guava-tests/test), Kotlin multiplatform jvmTest, @TestFactory, Groovy/Spock are missed

2 participants