A change that only edits comments builds, tests and releases nothing (PIPT-76) #316

Merged
merge-queue merged 1 commit from comment-only into main 2026-11-30 09:00:25 -08:00
Owner

Work package: https://openproject.home.romaine.life/wp/PIPT-76

A pull request on site-login that changed only its README and one doc comment compiled it, ran its Windows tests, and on merge would cut a release that at-update installs on every home PC. Markdown was already ignored; a comment in a source file wasn't.

What changes

  • Added suites/comments.mjs: reads both versions of each changed source with its language's lexer, keeping strings exactly and dropping comments, and calls the change comment-only when the code is the same. Go, Rust, JavaScript/TypeScript, C#, C/C++, CSS, Python, shell, PowerShell, CMake, TOML, Lua, YAML and Dockerfiles.
  • Added readsComments in input-patterns.mjs: the formatters, typos, the default suite's three checks, docs and the PowerShell parse check still see a comment-only change; nothing else does.
  • inputs.mjs (a PR's checks and its release build), release.mjs (whether a merge releases, and whether a joined image is rebuilt) use the filtered list.
  • Rule 2 in suites/README.md says so.

What stays code: comments a tool reads (Go directives, TypeScript/ESLint/bundler comments, JSDoc types in JavaScript, Python type/noqa comments, #requires, Dockerfile parser directives, C fall-through). Rust and C# doc comments count by their presence, since missing_docs can require one, and by their words when they hold a code fence (a doc test).

What counts whole, as before: any other file type, and any file the lexer reads with doubt: JSX (.tsx, .jsx, JavaScript that may hold it), cgo, Go example tests, uv inline-script metadata, non-UTF-8, PowerShell with non-ASCII and no byte-order mark, signed scripts, Helm templates, lexing surprises.

Not changed: home-sync.yml's delivery of config repositories, and tofu's apply.

Verified: besides the tests, every source in the fleet's local clones had its comments' letters changed and was compared by that language's own parser: TypeScript's (1182 files), Go's scanner (1617), proc-macro2 for Rust (751), Python's ast (226), Roslyn (392), PowerShell's tokenizer (50), Bash's declare -f (217), TOML's parser (62). None differed.

🤖 Generated with Claude Code

Work package: https://openproject.home.romaine.life/wp/PIPT-76 A pull request on site-login that changed only its README and one doc comment compiled it, ran its Windows tests, and on merge would cut a release that at-update installs on every home PC. Markdown was already ignored; a comment in a source file wasn't. **What changes** - Added `suites/comments.mjs`: reads both versions of each changed source with its language's lexer, keeping strings exactly and dropping comments, and calls the change comment-only when the code is the same. Go, Rust, JavaScript/TypeScript, C#, C/C++, CSS, Python, shell, PowerShell, CMake, TOML, Lua, YAML and Dockerfiles. - Added `readsComments` in `input-patterns.mjs`: the formatters, typos, the default suite's three checks, docs and the PowerShell parse check still see a comment-only change; nothing else does. - `inputs.mjs` (a PR's checks and its release build), `release.mjs` (whether a merge releases, and whether a joined image is rebuilt) use the filtered list. - Rule 2 in `suites/README.md` says so. **What stays code:** comments a tool reads (Go directives, TypeScript/ESLint/bundler comments, JSDoc types in JavaScript, Python type/noqa comments, `#requires`, Dockerfile parser directives, C fall-through). Rust and C# doc comments count by their presence, since `missing_docs` can require one, and by their words when they hold a code fence (a doc test). **What counts whole, as before:** any other file type, and any file the lexer reads with doubt: JSX (`.tsx`, `.jsx`, JavaScript that may hold it), cgo, Go example tests, uv inline-script metadata, non-UTF-8, PowerShell with non-ASCII and no byte-order mark, signed scripts, Helm templates, lexing surprises. **Not changed:** `home-sync.yml`'s delivery of config repositories, and tofu's apply. **Verified:** besides the tests, every source in the fleet's local clones had its comments' letters changed and was compared by that language's own parser: TypeScript's (1182 files), Go's scanner (1617), proc-macro2 for Rust (751), Python's `ast` (226), Roslyn (392), PowerShell's tokenizer (50), Bash's `declare -f` (217), TOML's parser (62). None differed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A change that only edits comments builds, tests and releases nothing (PIPT-76)
All checks were successful
Fleet / align (pull_request) Successful in 4s
Tofu providers / lock (pull_request) Successful in 4s
CI / changes (pull_request) Successful in 5s
CI / container-health (pull_request) Has been skipped
CI / azure-cli (pull_request) Has been skipped
CI / actionlint (pull_request) Has been skipped
CI / prune-releases (pull_request) Has been skipped
CI / release-version (pull_request) Has been skipped
CI / check-versions (pull_request) Has been skipped
CI / check-fetches (pull_request) Has been skipped
CI / check-image-digests (pull_request) Has been skipped
CI / cached-images (pull_request) Has been skipped
CI / home-cache-linux (pull_request) Has been skipped
CI / home-cache-windows (pull_request) Has been skipped
CI / cache-save (ubuntu-latest) (pull_request) Has been skipped
CI / cache-save (windows-latest) (pull_request) Has been skipped
Suite default / scope (pull_request) Successful in 8s
Suite default / check-fetches (pull_request) Has been skipped
CI / manifest-check-linux (pull_request) Successful in 11s
Suite default / check-logs (pull_request) Successful in 21s
Suite default / check-rules (pull_request) Successful in 22s
CI / service-runtime (two) (pull_request) Successful in 36s
CI / service-runtime (one) (pull_request) Successful in 37s
Suite default / reused-checks (pull_request) Successful in 21s
CI / service-cancellation (pull_request) Successful in 49s
CI / suite-tests-linux (pull_request) Successful in 58s
CI / suite-tests-windows (pull_request) Successful in 2m11s
CI / setup-linux (cluster) (pull_request) Successful in 2m40s
CI / setup-windows (pull_request) Successful in 4m49s
merge-queue landed on main
43b342a339
A pull request on site-login that changed its README and one doc comment
compiled it, ran its Windows tests, and on merge cut a release that went to
every home PC. Markdown was already ignored; the comment wasn't.

comments.mjs reads both versions of each changed source with its
language's lexer (strings kept exactly, comments dropped) and calls the
change comment-only when the code is the same. A check whose tool reads
comments (formatters, typos, the default suite's checks, docs, the
PowerShell parse check) still sees it; the tests, the PR's release build,
the merge's release decision and a joined image don't.

Comments a tool reads count as code, Rust and C# doc comments count by
their presence (and their words when they hold a doc test), and any file
read with doubt counts whole.
merge-queue deleted branch comment-only 2026-11-30 09:00:25 -08:00
Sign in to join this conversation.
No description provided.