Skip to content

docs(adr): align ADR-0019's test list with the suite - #56

Open
gosharplite wants to merge 1 commit into
stacklok:mainfrom
gosharplite:docs/adr-0019-test-list
Open

gosharplite wants to merge 1 commit into
stacklok:mainfrom
gosharplite:docs/adr-0019-test-list

Conversation

@gosharplite

@gosharplite gosharplite commented Sep 27, 2026 •

Copy link
Copy Markdown

Fixes #53.

The Consequences section of project-docs/adr/0019-azure-devops-as-a-second-transport.md cited a test that does not exist and omitted three that pin decisions the ADR records.

  • Removed: TestRefresh_ADORepinDropsTheRecordedType — not in the suite.
  • Added (the real re-pin tests): TestRefresh_ADORepinRetypesTheRef, TestRefresh_ADORepinToACommitTypesItAsACommit.
  • Added (omitted decisions): TestADR_0019_RefTypeIsRecordedOnlyWhereItIsNeeded, TestRefresh_ADOHeaderWithoutRefTypeResolvesIt, TestSurvey_ResolutionAbortsOnUnusableCLI.

Each name in the corrected paragraph was checked against go test ./internal/deps/ -list '.*'; the only remaining multi-name entries are the intentional TestImport_ADO_* and TestTimeoutRunner_* globs (plus TestSchemaStructSync, which lives in another package and is cited as not in play).

Supersede-vs-edit

This edits ADR-0019 in place rather than superseding it. Issue #53's "editing it in place is fine" note was written when ADR-0019 was unmerged, but it has since landed on main (via #52), so .claude/rules/adr.md's "decisions are never edited in place" now applies on its face. This change corrects a stale factual citation — it alters no decision ADR-0019 records — so it is an in-place correction, not a re-decision. Flag if you'd prefer a superseding ADR instead.

Root cause (follow-up, not touched here)

The phantom citation has a source: internal/deps/refresh_test.go:578-582 carries an orphaned doc comment naming the non-existent TestRefresh_ADORepinDropsTheRecordedType, stacked immediately above the real TestRefresh_ADORepinRetypesTheRef (which has its own correct comment below it). The ADR's bad citation and this comment name the same phantom test, so the comment is where the name entered the record.

It is pre-existing on main and outside this PR's diff — #56 fixes the ADR that cited the name, not the test file that spawned it, so the change stays docs-only. Removing the stale comment block is a one-line cleanup the maintainer can take up here or in a follow-up, as they prefer.

Docs-only change; no code touched.

The Consequences section cited TestRefresh_ADORepinDropsTheRecordedType,
which does not exist, and omitted three tests that pin decisions the ADR
records. Replace the phantom citation with the re-pin tests that actually
exist and add the omitted tests (ref-type recorded only where needed, a
header without the key resolved on refresh, and the batch stopping on an
unusable CLI).

Fixes stacklok#53

Signed-off-by: blevins darrin <darrinb765@gmail.com>
@gosharplite
gosharplite marked this pull request as ready for review September 27, 2026 10:03
@gosharplite
gosharplite requested a review from jbeda as a code owner September 27, 2026 10:03

This branch has not been deployed

No deployments
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.

ADR-0019 cites a nonexistent test and omits the ones that pin its decisions

2 participants