Repository navigation
chore(test): point Azure RI-exchange credential test comments at cli#932 - #1225
Conversation
The Azure credential-resolution tests in handler_ri_exchange_test.go cite issue LeanerCloud#871, but that work is LeanerCloud/cloud-commitments-cli#932 (fixed by cli#934, whose branch name carried the wrong number). cli#871 is the RI Exchange global-filter design question, so the other LeanerCloud#871 references in the file and in handler_ri_exchange.go are correct and stay as they are. Use the full repo-qualified form so the reference cannot be read as this repo's LeanerCloud#932. Comment-only change; no behavior change. Closes LeanerCloud#26 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reached
This review includes 1 billable file and costs up to $0.25. Or wait 57 minutes for your next included review. View limit details
Comment |
|
Independent review 2 (claude-fleet, cold): APPROVE 211b81b This is a comment-only change in internal/api/handler_ri_exchange_test.go (+4/-3), with no code or behaviour change. Checked:
Findings: none. Reviewed by an independent agent with no author context (second reviewer). Review only: nothing was pushed, and the GitHub review state is unchanged. |
|
VERDICT: APPROVE 211b81b Base: main (not stacked). Fixes #26: yes. The only two credential-resolution comments in internal/api/handler_ri_exchange_test.go that cited #871 (the section header at :1425 and the Findings: none. Attacked:
|
|
Independent review (IAmJSD's agent, fresh context, given only the diff, the issue and the PR text): VERDICT: APPROVE Blocking:
Non-blocking:
Attacked:
Body-stale: none Reviewer: rB3. Bar while the maintainers are away (set by IAmJSD as acting owner): one approving independent review on the head, two for money, auth and security paths. |
|
Local verification at |
|
Merged by IAmJSD's agent at IAmJSD's request (IAmJSD is acting owner while the maintainers are away), under the bar IAmJSD set: 2 approving independent review(s) on |
Root cause and fix
Merged LeanerCloud/cloud-commitments-cli#934 fixed LeanerCloud/cloud-commitments-cli#932 (Azure RI-exchange per-subscription credential resolution). Its branch was named
fix/871-azure-ri-credentials, so two test comments for that work ininternal/api/handler_ri_exchange_test.gocite issue #871. LeanerCloud/cloud-commitments-cli#871 is a different issue: the design question about whether RI Exchange should honor the Main Header global filter. The issue mentions lines ~811 and ~829. The file has grown since, and those comments are now at lines 1425 and 1443.This PR changes only those two comments to
issue LeanerCloud/cloud-commitments-cli#932. It keeps the file'sissue #Nwording but adds the repo name, because a bare#932here would link to this repo's PR #932, which is unrelated.Comment-only change. No code, test logic or behavior changes.
References left alone on purpose
I checked every
871hit fromgit grep -n 871. These ones really do mean cli#871 (the RI Exchange global-filter scoping), so I left them unchanged:internal/api/handler_ri_exchange.go:1451:listConvertibleRIshonoring the?account_id=global account filterinternal/api/handler_ri_exchange_test.go:35and:59: the AWS convertible-RI account-scope testsfrontend/src/...: the global-filter scoping comments. These are correct, and frontend is out of scope anyway.docs/audits, a commit SHA inknown_issues/, and hashes ingo.work.sumand the Terraform lock files.Verification
No regression test: nothing a test could check changes, since only comments change. Evidence is local, on macOS:
go build ./internal/api/: OKgo vet ./internal/api/: OKgofmt -l internal/api/handler_ri_exchange_test.go: no outputgit diff --check: cleanAWS_CONFIG_FILE=/dev/null AWS_SHARED_CREDENTIALS_FILE=/dev/null go test ./internal/api/ -count=1 -v -run '^(<all 76 Test* funcs in handler_ri_exchange_test.go>)$': 76 PASS, 0 FAIL/SKIP. The AWS env vars only work around a broken local~/.aws/configdefault profile.AWS_CONFIG_FILE=/dev/null AWS_SHARED_CREDENTIALS_FILE=/dev/null go test ./internal/mocks/ -count=1: okgolangci-lintv2.10.1run --allow-parallel-runners ./internal/api/: 0 issues--scan --cachedon the changed file, in a freshgit inittemp repo with an isolated HOME, usingscripts/setup-git-secrets.shand.gitallowed: clean.scripts/test-git-secrets-allowlist.sh: 137 PASS, 0 FAIL.Open PRs that edit
handler_ri_exchange_test.go(#1108, #1121, #1159, #1175, #1191) don't touch lines 1420-1450, so this PR shouldn't conflict with them.Out of scope
fix/871-azure-ri-credentialslives in the merged history of another repo and can't be changed.Maintainer: please mirror the issue's triage labels on this PR:
impact/internal,type/chore,triaged,priority/p3,severity/low,urgency/eventually,effort/xs.Closes #26
🤖 Generated with Claude Code