Skip to content

docs(tests): sixth whole-repo pass over protocols, vendor, const and integration tests (#1103) - #2216

Merged
JarryShaw merged 1 commit into
mainfrom
docs/1103-r6-tests-a
Oct 26, 2026
Merged

JarryShaw merged 1 commit into
mainfrom
docs/1103-r6-tests-a

Conversation

@JarryShaw

Copy link
Copy Markdown
Owner

What is the purpose of your pull request?

  • docs — documentation only

Description

Part of #1103, round 6: the sixth whole-repo prose pass over tests/protocols/, tests/vendor/, tests/const/ and tests/integration/.

@JarryShaw JarryShaw added docs Pull requests that change documentation only (docs: subject prefix) test Pull requests that add or correct tests (test: subject prefix) review: running A cross-review is in flight against the current head - no verdict yet labels Oct 25, 2026
@JarryShaw

Copy link
Copy Markdown
Owner Author

Review: NEEDS CHANGES at bc0713f90 (Sonnet). No wrong claim was found, but commit-pinned evidence was dropped, which the round's rules keep:

  • test_l2tp_data_export_1797_unit: the cdb5fef3f provenance.
  • test_const_linktype_209_unit: the "Traced to cfdf2ab5c7" sentence.
  • test_mh_unit: the 9b26fa387 reference.
  • test_option_roundtrip_unit: the EXPECTED_FAILURES comment cut also took defect measurements. SMF_DPD 1100080100010100 gave len(schema) 3 against 4. RPL was 41 octets against the 48 its Hdr Ext Len declared, identical on 3.10.20 and 3.14.7. Restore them, or confirm the pinning tests already carry them.
  • Verified: AST guard OK on 79 files, and 961 + 238 + 111 tests passed. every PCAP-NG packet block loses its payload octets: packet is computed then overwritten with b'', so dumping through PCAPIO writes a record header claiming 314 octets followed by none #646's 88 octets is correct (24 + 4×16). EXPECTED_FAILURES imports empty. The PCAP-NG and SCTP notes are accurate. No banned tokens remain.
  • Follow-up, code, separate PR: assertNotEqual(len(dumped), 104) in test_pcapng_regression is vacuous; the broken size is 88.

@JarryShaw JarryShaw added review: needs-changes Cross-review at the current head says changes are required; see the verdict comment and removed review: running A cross-review is in flight against the current head - no verdict yet labels Oct 25, 2026
Prose-only pass over tests/protocols, tests/vendor, tests/const and
tests/integration: change-relative narrative restated as present-tense
behaviour ("guards against", "without the fix"), codebase counts dropped,
timed context removed, and stale claims corrected (the #646 dump size is
88 octets, the PCAP-NG frame-length NOTE, the BitField probe docstring,
EXPECTED_FAILURES references to entries that no longer exist).

AST guard clean on every changed file; nearest tests and the docs/
conventions/issue-ref/tier/docstring-contract checks pass.
@JarryShaw JarryShaw added review: running A cross-review is in flight against the current head - no verdict yet and removed review: needs-changes Cross-review at the current head says changes are required; see the verdict comment labels Oct 25, 2026
@JarryShaw
JarryShaw force-pushed the docs/1103-r6-tests-a branch from bc0713f to 85e6f51 Compare October 25, 2026 22:51
@JarryShaw

Copy link
Copy Markdown
Owner Author

Review: GOOD TO GO at 85e6f513e (Sonnet delta review of bc0713f90→85e6f513e).

@JarryShaw JarryShaw added review: good-to-go Cross-review at the current head says ready; CI state is separate and removed review: running A cross-review is in flight against the current head - no verdict yet labels Oct 25, 2026
@JarryShaw JarryShaw moved this to In review in PyPCAPKit Oct 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage: 91.56% (unit tier, Python 3.15, 85e6f513e, Unit Tests run success)

Package Statements Missed Branches Partial Cover
pcapkit (top level) 104 4 20 2 95.16%
pcapkit/const 19599 881 2618 867 92.11%
pcapkit/corekit 2589 74 816 37 96.51%
pcapkit/dumpkit 282 3 102 3 98.44%
pcapkit/foundation 2994 23 1038 25 98.81%
pcapkit/interface 138 4 52 3 96.32%
pcapkit/protocols 17433 218 4584 185 98.15%
pcapkit/toolkit 869 36 298 10 95.20%
pcapkit/utilities 504 7 146 5 98.15%
pcapkit/vendor 4432 1988 1018 167 51.87%

Per-file detail: the coverage-html artifact of this run.

@JarryShaw

Copy link
Copy Markdown
Owner Author

Ready to merge at 85e6f513e. Part of #1103 (round 6).

  • Review: Sonnet GOOD TO GO, after one NEEDS CHANGES round, which restored commit-pinned evidence.
  • CI: all checks complete, Required checks passed SUCCESS, 0 failed.
  • KTLO: 12 legs, no warnings.
  • Ordering: merged into main and run. protocols: 1924 tests, const: 597 and vendor: 401, 0 failures.
  • Conflicts: none against the current main.

@JarryShaw JarryShaw added this to the PyPCAPKit v1.5 milestone Oct 26, 2026
@JarryShaw
JarryShaw merged commit 1d4c035 into main Oct 26, 2026
62 checks passed
@JarryShaw
JarryShaw deleted the docs/1103-r6-tests-a branch October 26, 2026 03:10
@github-project-automation github-project-automation Bot moved this from In review to Done in PyPCAPKit Oct 26, 2026
@JarryShaw JarryShaw removed the review: good-to-go Cross-review at the current head says ready; CI state is separate label Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Pull requests that change documentation only (docs: subject prefix) test Pull requests that add or correct tests (test: subject prefix)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant