A change that only edits comments builds, tests and releases nothing (PIPT-76) #316
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/pipeline-templates!316
Loading…
Reference in a new issue
No description provided.
Delete branch "comment-only"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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.readsCommentsininput-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.suites/README.mdsays 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, sincemissing_docscan 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'sdeclare -f(217), TOML's parser (62). None differed.🤖 Generated with Claude Code