Repository navigation
Trim down the command snapshot format - #20630
Merged
Merged
Conversation
EliteTK
marked this pull request as ready for review
July 23, 2026 00:14
konstin
approved these changes
Jul 23, 2026
zanieb
approved these changes
Jul 23, 2026
These are ignored by insta, but they break the undo script.
EliteTK
force-pushed
the
tk/test-compression
branch
from
July 23, 2026 14:03
f5f33ab to
3bdb657
Compare
EliteTK
force-pushed
the
tk/test-compression
branch
from
July 23, 2026 14:06
3bdb657 to
69b20ab
Compare
EliteTK
force-pushed
the
tk/test-compression
branch
from
July 23, 2026 14:07
69b20ab to
3a41e8f
Compare
5 tasks done
This branch had an error being 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.
Summary
Now, before you run away, hear me out. Locally, this is a small change, but it cuts out redundant information which simply reduces the density of tests. Tests are already meant to be low density, but that's so you can understand them easily. Spreading the code out over more screenfuls makes it harder to follow.
So, I decided to remove information which is strictly redundant from the snapshots. This coincidentally also saves 15K lines.
Test Plan
The changes for all but the last commit were reviewed manually, and they're relatively straightforward.
All but the first commit are fully mechanical in nature, and would just arise from re-generating the snapshots.
To prove that the last commit is correct and that it does not lose information I ran the following script:
If you run:
And then:
Then there should be no difference. The script is just "decompressing" the "compressed" tests. It's a state machine which re-creates the missing elements if they're not there.