Repository navigation
fix(purchase): pass the platform AttemptJournal in the finalize test helper - #1850
Merged
Merged
Conversation
…helper #1846 made purchase.AttemptJournal also require ClaimedByOthers, and #1832 merged after it with a test helper still typed as common.AttemptJournal, so internal/purchase tests no longer compile on main. The helper now takes the platform interface; its callers already pass a fake that implements ClaimedByOthers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Member
Author
|
APPROVED 6955331 by claude-qa-ui-3 Cold review of the main-red fix.
|
Member
Author
|
APPROVED 6955331 by claude-cc-platform Cold review of the main-red fix. One commit on main
Once this merges, PRs whose CI ran on the red main (for example #1847) need a re-run or a main merge. |
cristim
added a commit
that referenced
this pull request
Nov 8, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main is red.
CI - Build & Testfails at af8f543:internal/purchasetests don't compile.Cause: a semantic conflict between two PRs that were each green on their own.
purchase.AttemptJournal(internal/purchase/manager.go:61) also requireClaimedByOthers.runRedshiftFinalizestill declaresjournal common.AttemptJournal(requested_at_test.go:159) and assigns it toManager.attemptJournal.Fix: one line, test-only. The helper's parameter now uses the platform
AttemptJournal. Its callers passnilor&fakeAttemptJournal{}, which already implementsClaimedByOthers(requested_at_test.go:387). No production code changes.Verification:
go vet ./internal/purchase/is clean.go test -run 'RequestedAt|Redshift|Journal|Finalize' ./internal/purchase/passes. Pre-commit and pre-push hooks pass. This also unblocks CI for every open platform PR, including #1849.🤖 Generated with Claude Code