Repository navigation
Fix main: the deploy script test still imported the deleted string lib - #211
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V8ViHcKLVk2YoS2joH4HdN
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughThe deploy test replaces ChangesDeploy test membership migration
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to This change restores the deploy test’s dependency on the maintained membership library without introducing a known production behavior change. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
What
test/script/Deploy.t.solimportsLibMemoryKVinstead of the deletedLibStringSet, and its two membership loops build a store and ask it withhas, exactly as the sixteen sites converted in #210 do.Why
main does not compile. The import names
src/lib/LibStringSet.sol, which #210deleted.
Neither PR was wrong on its own. #186 added this file while the library still
existed and was green against the main of the time. #210 removed the library and
converted every site that then existed, and was green too. #186 was merged after
#210 without being re-run against the new main, so nothing ever compiled the two
together until main did.
The general shape: a green check is evidence about the main the branch was
tested against, not the main it lands on. Two open PRs that touch the same file
can both be green and still break on merge, and this queue has a dozen branches
cut from a main that has moved under all of them.
QA
testDeployBroadcastsToEveryConfiguredNetwork, is the discriminator and is
unchanged in what it asserts and in both of its failure messages. It passes
here and cannot compile on main.
Replace LibStringSet with LibMemoryKV #210 applied elsewhere, and its evidence is there: the folds are the same
shape, and Replace LibStringSet with LibMemoryKV #210 probed two of them in src plus thirteen execution probes at
test sites.
the store's
get, which states that a key set to zero and a key never set areindistinguishable by value, so membership reads the existence flag. Every
member is stored against a zero value and every question is
has.forge buildclean,DeployTest green at 1 passed, LibRainDeployTest green at 77 passed, and no
reference to the deleted library remains anywhere in src or test.
🤖 Generated with Claude Code
https://claude.ai/code/session_01V8ViHcKLVk2YoS2joH4HdN
Summary by CodeRabbit