Skip to content

docs: drop internal ticket IDs from test comments - #1398

Merged
nadaverell merged 1 commit into
mainfrom
nadav/strip-ticket-ids
Aug 9, 2026
Merged

docs: drop internal ticket IDs from test comments#1398
nadaverell merged 1 commit into
mainfrom
nadav/strip-ticket-ids

Conversation

@nadaverell

@nadaverell nadaverell commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Two code comments reference Linear IDs. The repo is public, an outside reader cannot resolve them, and CLAUDE.md already rules this out: "Don't reference tickets, PRs, bug numbers, or diff history... Those belong in the PR description and rot as the codebase evolves."

internal/issues/source_velero_test.go:118  // The whole point of RAD-314: …
internal/issues/source_cnpg_test.go:48     // The whole point of RAD-318: …

These are the only two occurrences in the tree, and both landed this week — same sentence pattern, written independently, both through review.

Neither comment loses anything. The clause after the colon was already doing the explaining; the ID was decoration:

The whole point of RAD-314: every terminal Backup phase Velero can report must produce an Issue with the right severity…

Testing

git grep -E "\b(SKY|RAD|LIN)-[0-9]+" over tracked files: zero hits after, two before. go test ./internal/issues/... passes, gofmt clean. Comment-only change — no code touched.

One note on how the count was verified, since it tripped someone already: git grep in a working tree reports on that tree, including anyone's uncommitted changes. Both greps above were run against the origin/main ref and against a worktree branched from it, not against a checkout carrying staged work.


Note

Low Risk
Documentation-only comment edits with no runtime or test logic changes.

Overview
Comment-only cleanup in internal/issues tests so public readers are not pointed at unresolvable internal ticket IDs.

In source_cnpg_test.go and source_velero_test.go, the leading "The whole point of RAD-318/RAD-314:" clauses are removed. The behavioral intent of each test is unchanged—the comments still explain why the cases matter (CNPG terminal phases vs ready instances; Velero backup phases including FailedValidation).

Reviewed by Cursor Bugbot for commit 8fe61ff. Bugbot is set up for automated code reviews on this repo. Configure here.

The repo is public and an outside reader cannot resolve a Linear ID.
CLAUDE.md already says not to reference tickets in code comments; these two
are the only occurrences in the tree, and both were introduced this week.

Neither comment loses anything. The sentence after the colon was already
carrying the explanation and the ID was decoration:

  'The whole point of RAD-314: every terminal Backup phase...'
  -> 'Every terminal Backup phase...'

Found while auditing scripts/velero-demo/README.md for the same thing before
it shipped.
@nadaverell
nadaverell requested a review from hisco as a code owner August 9, 2026 11:19
@nadaverell
nadaverell merged commit 0ec9fcf into main Aug 9, 2026
9 checks passed
@nadaverell
nadaverell deleted the nadav/strip-ticket-ids branch August 9, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant