Repository navigation
Ecosystem triage: Gleam, Groovy/Spock, antsibull-nox, Read the Docs, Earthly, urchin, shelltest and more - #377
Merged
Conversation
…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
4 of 27 tasks
Codecov Report❌ Patch coverage is 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. 🚀 New features to boost your workflow:
|
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Triage of the
area: ecosystemissues, 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
test/runner) runs the tests.brewdev commands: brew's code, not a shared convention.noxand its reusable workflow.stack exec --/cabal exec --run their command.tsc --project ./tsconfig.jsonkeeps its strict bonus.zig build, MinGW flags: see below..modDTD modules (ambiguous with Fortran's).Changes, one commit each
.groovyis a JVM language. The tools that work on compiled classes or format Groovy judge it too (SpotBugs, JaCoCo, PIT, Spotless, Maven/Gradle).extends Specificationundersrc/test/groovyis a test.src/testFixtures/is test code.test/, minus its setup and teardown hooks.urchin. Elsewhere such a script is as often a helper.zig build, MinGW hardening flags #282:ctestit runs after--counts as run..emmyrc.json) is a Lua type checker.validateover examples/ is a schema-examples check;yarn test→ git-dependency program should be unknown; SchemaStore's tsconfig schemas taken as TS configs; library-driven validation harnesses #273:joineddrops a leading./. SchemaStore'stsc --project ./jsconfig.jsonhad lost its strict bonus because of it. Two hand-written copies of the stripping went..readthedocs.yamlis the Read the Docs provider's configuration. Its one job builds nothing of the project's, like pre-commit.ci's. It runsbuild: commands:, ormkdocs build, orsphinx-build, with--strict/-Wwhenfail_on_warningis set.noxruns the sessionsantsibull-nox.tomlconfigures (or those-enames): ansible-test sanity, units and integration; ansible-lint; and the lint session's ruff, black, isort, flake8, pylint, yamllint and mypy switches.reusable-nox-matrix.ymlrunsnox.warning = trueis never read, Cucumber features are not tests, project runner scripts (test/runner, brew tests/style/typecheck, ruby test/*.rb) are not runners #257: a Ruby script without a suffix that requires minitest/autorun, test/unit or rspec/autorun runs the tests when CI runs it.*.testshelltestrunner files are Haskell tests, whichshelltestruns.stack exec -- cmdandcabal exec -- cmdrun their command.gleam.toml,.gleam,gleam testover the test modules,gleam format --checkandbuild/. Being its own profile keeps the Erlang and Elixir tools off it.generatesfield names build files of others it writes, like erlang.mk'srebar.configfor Hex, which then show no build of their own.earthly +targetruns the target's RUN lines and the targets it BUILDs. A missing target or Earthfile, or another repository's, stays unknown..nvdl(XML) is an XML schema..dtdand.ent(not XML) belong to a schema project's schemas, but make no schema project alone.com.nwalsh.gradle.relaxng.validateplugin validates in a Gradle build CI runs.Not done, with reasons (#282)
scan-buildwithout--status-bugsdoesn'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.zig buildtargets: these needbuild.zigevaluated.-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:
fail_on_warningpasses 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.{{ .Path }}), which landed after that recording.Worse, on purpose:
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