Repository navigation
refactor(sms): remove dead pkg/sms (#293) - #363
Merged
Merged
Conversation
pkg/sms had zero importers within spawn — its inbound half (PendingKey/ PendingNotification/PendingTable) was used only cross-repo by spore-host/lambda/rest-api, and its outbound half (Send/StorePending/ BuildMessage/ProjectNumber) was dead everywhere (spore-bot keeps its own local copy). rest-api now owns local copies of the three types it needs, so pkg/sms is deleted here. Closes #293.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Removes
pkg/sms, the last dead-code item from the 2026-07 audit.Why it's safe
PendingKey/PendingNotification/PendingTable) was used only cross-repo byspore-host/lambda/rest-api. That consumer now keeps its own local copies of the three types (companion change in the spore-host repo), mirroring whatspore-host/lambda/spore-bot/sms_notify.goalready does.Send/StorePending/BuildMessage/ProjectNumber) had no callers anywhere — spore-bot carries its own copy.Coordination
The rest-api consumer is being updated in the spore-host repo in lockstep (local types + spawn pin bump). Consumers pinned to an older spawn are unaffected — they keep the version of
pkg/smsthey already reference.go build ./...clean; no spawn tests referenced it.Closes #293.