Loading
ci: remove the Go comment line caps
Summary
This MR removes the Go comment line caps. Comments still stay short and say why, but nothing counts their lines any more.
- Deletes
scripts/ci/check-comment-caps.shand its test, thelint:comment-capsandtest:comment-caps-gatejobs, and thecomment-capspre-commit hook. - Moves the merge-base reason from
lint:comment-capsintolint:integration, which used to point at it. - Deletes
lint:skill-scripts:write-readable-go. Its only check runsgrade.py --selftestagainst the gate script, so it cannot pass once the script is gone. docs/dev/go-style.mddrops### Comment capsand every line count that restated a cap. One key rule takes their place: comments are ruthlessly concise and say why, not what.e2e/README.mdand thee2e-catalogskill drop their cap rules.- 72 sidecar files under
internal/drop the sentences that said the caps were why their text lives there. The rest of each file is unchanged.
Not in this MR
.claude/agents/test-author.mdand thewrite-readable-goskill still name the script. https://gitlab.com/gitlab-org/ops/artifact-registry/-/work_items/1620 removes both.- Six plan files under
docs/plans/mention the caps as part of their history. - The sidecar files themselves stay. Moving them out is separate work.
Overlaps with open MRs
No merge order is required. Whichever MR lands second fixes its side.
- !3213 (closed) links
go-style.md#comment-capsfromdocs/dev/go-testing.md.docs:lintfails on the second MR until that link and its caps clause go. - !3332 (merged) has merged. It added
lint:integration, whose comments pointed atlint:comment-capsfor how it picks the merge base. This MR now keeps that reason inlint:integrationitself. The caps gate's finding counts stay out, since they measured that gate. - Drafts !3037 (closed) and !3038 (closed) add lines next to the removed job and hook, so they may need a small rebase.
Size
3,539 reviewable lines, nearly all deletions:
| Files | Lines |
|---|---|
scripts/ci/, two deleted files |
2,855 |
internal/ sidecars, 72 files |
346 |
docs/dev/go-style.md |
201 |
.gitlab-ci.yml and .pre-commit-config.yaml |
127 |
e2e/README.md and the e2e-catalog skill |
10 |
Splitting would not make review easier. 2,855 of the lines are two whole-file deletions, and the rest are short sentence deletions.
Governing ADRs
None. ADR-023 (code structure and enforcement) covers package layout and depguard, not comment length. ./scripts/adr-freshness.sh reports one unsynced upstream change, to ADR-003's upload-session cap paragraph, which this MR does not touch.
Testing
- Pre-commit hooks pass over the whole branch after the rebase onto
main(pre-commit run --from-ref origin/main --to-ref HEAD). lychee --offline --include-fragments '**/*.md', thedocs:lintlink check, reports 0 errors..gitlab-ci.ymlparses, and no job, anchor, orchanges:list names the removed jobs or script.git grepfor the script and job names finds only the files listed under "Not in this MR".- No sidecar under
internal/orcmd/still mentions the caps.
Closes https://gitlab.com/gitlab-org/ops/artifact-registry/-/work_items/1626
Edited by Dzmitry (Dima) Meshcharakou