Repository navigation
Test that selfie push skips a record too large for the cloud - #125
Open
selfie-bot wants to merge 1 commit into
Open
selfie-bot wants to merge 1 commit into
selfie-bot wants to merge 1 commit into
Conversation
…keep sync.md has push skip a record past SYNC_LIMITS.derivedBytes and leave it out of diffs. Only the server's refusal was tested; without the client's skip, a large pair's 413 fails the whole push at its last step.
This branch has not been deployed
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.
Adds a test for a rule
docs/specs/sync.mdstates but nothing exercised:selfie pushskips a kept record larger thanSYNC_LIMITS.derivedBytes, and leaves it out of thediffscount. Test only, no code change.cli/test/sync-routes.test.tsandcli/test/ui-batch.test.tscover the server refusing an oversized record (413,derived-too-large), and nothing covered the client-side skip atcli/src/sync.ts. Without that skip, a pair whose record is too large would make the whole push exit 2 at its last step, after the batch, decisions and images had already gone.The test plants a kept record that is still readable but past the limit (unknown fields are ignored by
readRecord), then pushes. It expects exit 0,diffs: 0, and nothing kept in the cloud. With the skip removed it fails: the push exits 2. The fullsync.test.tspasses (58 tests).