-
Notifications
You must be signed in to change notification settings - Fork 0
fix(tools): harden stdlib python-frame verify (LAB-5341) #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
27Bslash6
wants to merge
7
commits into
main
Choose a base branch
from
lab-5341-harden-python-frame-verify
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+140
−21
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
03b5de6
fix(tools): stdlib python-frame verify checks inner_msgpack_hex again…
27Bslash6 d67bdc4
fix(tools): python-frame verify rejects a present null payload_envelo…
27Bslash6 5c691c4
docs(changelog): record that a present null payload_envelope used to …
27Bslash6 7aaaf00
Merge branch 'main' into lab-5341-harden-python-frame-verify
27Bslash6 fed69c0
fix(tools): python-frame twin gate treats a missing envelope_encoding…
27Bslash6 2a1e89a
fix(tools): tighten the envelope_encoding twin-gate follow-up (LAB-5341)
27Bslash6 07733f8
Merge branch 'main' into lab-5341-harden-python-frame-verify
27Bslash6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ### Tooling — stdlib python-frame verify holds on its own (LAB-5341) | ||
|
|
||
| - `tools/python-frame-reference.py verify` now LZ4-decompresses each envelope vector's | ||
| `compressed_data` (the strict block decoder from `tools/interop-v2-reference.py`) and | ||
| rejects a `payload_envelope.inner_msgpack_hex` that does not match. Before, the field was | ||
| only compared twin against twin, so two twins carrying the same wrong value passed. | ||
| - The `twin_of` compare of `value_json` is type-strict (`true` no longer equals `1`). | ||
| - A `twin_of` pair where either side lacks `payload_envelope.envelope_encoding` fails the twin | ||
| gate in `verify` and warns in `generate`, naming the missing field. Before, the twin gate | ||
| counted a one-sided missing encoding as a distinct one: the twin printed `ok` (`verify` | ||
| still failed on the vector's own encoding check) and `generate` stayed silent. | ||
| - A `payload_envelope` that is present but not an object is a FAIL line in `verify` and a | ||
| warning in `generate`. Before, a list or string raised a traceback, and a present `null` | ||
| passed by skipping every envelope check. | ||
| - `spec/wire-format.md`'s `Verify:` block lists the mutation suite CI already runs. | ||
| - `test-vectors/python-frame.json` is unchanged. |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.