Skip to content

fix(hip): build the ECHO_RESPONSE_UNSIGNED schema in its maker (#2170) - #2188

Merged
JarryShaw merged 1 commit into
mainfrom
fix/2170-hip-echo-response-unsigned
Oct 25, 2026
Merged

JarryShaw merged 1 commit into
mainfrom
fix/2170-hip-echo-response-unsigned

Conversation

@JarryShaw

Copy link
Copy Markdown
Owner

What is the purpose of your pull request?

  • fix — corrects a defect

Description

Closes #2170.

  • Defect: HIP._make_param_echo_response_unsigned built and was annotated with Schema_EchoRequestUnsignedParameter and Data_EchoRequestUnsignedParameter, a copy-paste from the request maker.
  • Fix: it uses the EchoResponseUnsigned schema and data classes.
  • Test: test_hip_echo_response_unsigned_maker_builds_the_response_schema in tests/protocols/internet/test_hip_unit.py. On main it fails with EchoRequestUnsignedParameter is not EchoResponseUnsignedParameter.
  • Tests run: tests/protocols/internet/test_hip*.py pass (75).
  • Overlap: docs(protocols): fifth whole-repo pass over internet (#1103) #2155 also edits hip.py; the two merge cleanly.

HIP._make_param_echo_response_unsigned returned a
Schema_EchoRequestUnsignedParameter, and its param and return
annotations named the Request classes. The wire output was right, since
the type code is passed through; the in-memory schema class was not.

Use Schema_EchoResponseUnsignedParameter and
Data_EchoResponseUnsignedParameter.

Test: test_hip_echo_response_unsigned_maker_builds_the_response_schema
checks the schema class from both keyword and data input, and the
annotations.
@JarryShaw JarryShaw added bug Issues reporting a defect (set by the bug report template; a default, not an assessment) 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: GOOD TO GO at 4704c34eb (Sonnet): the maker builds the Response schema, 3 fail on main, and every other HIP maker and reader names its own classes. The bug was type-only; Request and Response share a wire layout.

@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
@JarryShaw

Copy link
Copy Markdown
Owner Author

Ready to merge at 4704c34eb. Merging closes #2170.

  • Review: Sonnet GOOD TO GO.
  • CI: Required checks passed SUCCESS, 0 failed. Still open: the board's Sync Status and the non-gating Python graalpy-25.4 (experimental) leg.
  • KTLO: 12 legs, no warnings.
  • Ordering: protocols/internet leg merged into main: 722 tests, 0 failures.

@github-actions

Copy link
Copy Markdown
Contributor

Coverage: 91.55% (unit tier, Python 3.15, 4704c34eb, Unit Tests run success)

Package Statements Missed Branches Partial Cover
pcapkit (top level) 104 4 20 2 95.16%
pcapkit/const 19599 880 2618 866 92.12%
pcapkit/corekit 2589 75 816 37 96.48%
pcapkit/dumpkit 282 3 102 3 98.44%
pcapkit/foundation 2971 23 1036 25 98.80%
pcapkit/interface 138 4 52 3 96.32%
pcapkit/protocols 17418 219 4574 185 98.14%
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
JarryShaw merged commit 30d222b into main Oct 25, 2026
67 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in PyPCAPKit Oct 25, 2026
@JarryShaw
JarryShaw deleted the fix/2170-hip-echo-response-unsigned branch October 25, 2026 14:48
@JarryShaw JarryShaw removed the review: good-to-go Cross-review at the current head says ready; CI state is separate label Oct 25, 2026
@JarryShaw JarryShaw added this to the PyPCAPKit v1.5 milestone Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issues reporting a defect (set by the bug report template; a default, not an assessment)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

fix(hip): _make_param_echo_response_unsigned builds the ECHO_REQUEST_UNSIGNED schema class

1 participant