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.sh and its test, the lint:comment-caps and test:comment-caps-gate jobs, and the comment-caps pre-commit hook.
  • Moves the merge-base reason from lint:comment-caps into lint:integration, which used to point at it.
  • Deletes lint:skill-scripts:write-readable-go. Its only check runs grade.py --selftest against the gate script, so it cannot pass once the script is gone.
  • docs/dev/go-style.md drops ### Comment caps and every line count that restated a cap. One key rule takes their place: comments are ruthlessly concise and say why, not what.
  • e2e/README.md and the e2e-catalog skill 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

Overlaps with open MRs

No merge order is required. Whichever MR lands second fixes its side.

  • !3213 (closed) links go-style.md#comment-caps from docs/dev/go-testing.md. docs:lint fails on the second MR until that link and its caps clause go.
  • !3332 (merged) has merged. It added lint:integration, whose comments pointed at lint:comment-caps for how it picks the merge base. This MR now keeps that reason in lint:integration itself. 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', the docs:lint link check, reports 0 errors.
  • .gitlab-ci.yml parses, and no job, anchor, or changes: list names the removed jobs or script.
  • git grep for the script and job names finds only the files listed under "Not in this MR".
  • No sidecar under internal/ or cmd/ still mentions the caps.

Closes https://gitlab.com/gitlab-org/ops/artifact-registry/-/work_items/1626

Edited by Dzmitry (Dima) Meshcharakou

Merge request reports

Loading
Loading