Repository navigation
test(corekit): field, schema and Info round trips (#1202) - #1492
Merged
Merged
Conversation
- Field pack/unpack symmetry for every concrete corekit field class, in both directions, plus the context-only fields inside minimal schemas. - Schema pack/unpack and from_dict/to_dict for every Schema subclass under pcapkit/protocols/schema, from a minimal instance and a patterned one, and every dispatcher through its targets. - Info from_dict(to_dict()) for every Info subclass, with repeated keys and the __short_read__ / __truncated_raw__ bookkeeping keys. - Known failures recorded per root cause (#1487, #1488, #1489, #1490), checked in both directions. Refs #1202
JarryShaw
force-pushed
the
test/1202-corekit-roundtrips
branch
from
October 9, 2026 19:22
159a893 to
c55de8a
Compare
This was referenced Oct 9, 2026
Closed
Owner
Author
|
Verdict: GOOD TO GO at
Non-blocking: the #1487 and #1488 rows have an empty failure fragment, so they match on status alone. Their labels are narrow enough for that to be safe. |
Contributor
|
Coverage: 89.65% (unit tier, Python 3.14,
Per-file detail: the |
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.
make pylint,make mypy,make isort) — not run asmake; only a pylint unused/undefined-name check on the new files (10.00/10)make testpasses, and a test case covers the change — the whole suite was not run; the three new modules,tests/corekit,tests/project,test_tier_guardandtest_docstring_contractpassWhat is the purpose of your pull request?
test— tests onlyDescription of your pull request and other information
The corekit slice of #1202: field
pack/unpackin both directions for every concrete corekit field,Schema.unpack(bytes(s))re-packing andfrom_dict(to_dict())for all schemas underpcapkit/protocols/schema/, andInfo.from_dict(info.to_dict())for all 487Infoclasses, including repeated keys,__short_read__and__truncated_raw__.tests/corekit/test_field_roundtrip_unit.pytests/corekit/test_schema_roundtrip_unit.pytests/corekit/test_info_roundtrip_unit.pyKnown failures, checked in both directions: #1487 (
BitFieldunnamed bits), #1488 (NumberFieldbit_lengthnarrower than its octets), #1489 (ListFieldwithoutitem_type), #1490 (non-finalInfochild leaking internal keys). StandaloneListFields are named by hand because of #1491.Refs #1202