Repository navigation
chore: revert "feat(snapshot s3): add --allow-empty-bucket to report an empty bucket - #1407
Merged
Merged
Conversation
…y bucket…" This reverts commit 7cff44f.
Contributor
|
Claude finished @gsavage's task in 1m 3s —— View job PR Review: Revert
|
| Check | Result |
|---|---|
go build ./... |
✅ passes |
go vet ./... |
✅ no issues |
go mod tidy + git diff --exit-code go.mod go.sum |
✅ no changes |
Is the revert complete?
- Exact revert:
git diff 7cff44f3^ HEAD -- cmd internalreturns nothing.cmd/andinternal/are now identical to how they were before feat(snapshot s3): add --allow-empty-bucket to report an empty bucket as an empty snapshot #1405 merged. The dependency bump that landed in between (chore(deps): bump the github-actions-dependencies group with 5 updates #1406) doesn't touch these files, so nothing conflicts. - Nothing left behind: I searched the repo for
allow-empty-bucket,allowEmptyBucketandAllowEmptyBucketand found no matches. That covers code, tests,empty-flag-audit-coverage.jsonand docs. - Deleted test file:
snapshotS3Harvest_test.gowas added by feat(snapshot s3): add --allow-empty-bucket to report an empty bucket as an empty snapshot #1405, so deleting it is correct.
Notes
- Timing: Reverting before the next tagged release is the right call. If the team does make empty buckets allowed by default, shipping the opt-in flag now would mean deprecating or removing it later, which is a breaking change for users.
- Behaviour after merge:
kosli snapshot s3goes back to how it worked before feat(snapshot s3): add --allow-empty-bucket to report an empty bucket as an empty snapshot #1405 for empty buckets. Whoever picks up feat: let snapshot s3 report an empty snapshot for an empty bucket #1404 may want to start from the tests in feat(snapshot s3): add --allow-empty-bucket to report an empty bucket as an empty snapshot #1405 (TestHarvestEmptyBucket…and theaws_test.gocases), since they already cover the empty-bucket edge cases. - Changelog: If the flag appears in any draft release notes or changelog, remove it there too. Nothing in the repo mentions it.
Summary
I found no issues. This is an exact revert of #1405: it builds, vets cleanly and leaves no traces of the flag. Ready to merge.
Contributor
Author
|
@mbevc1 tagging you here as this is the follow-up to the email you sent me earlier this morning. I haven't waited for the automated tests to run yet; I wanted to tag you immediately so that you knew this was coming. |
mbevc1
approved these changes
Nov 25, 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.
This reverts commit 7cff44f.
The behaviour of the
kosli snapshot s3command, when snapshotting an empty S3 bucket, is under review by the team, and it likely that the default behaviour will be to allow empty buckets. Therefore, this flag is unnecessary and releasing it now will require a breaking change later. This commit reverts the flag before a tagged release is made.