Repository navigation
test(generators): HIP_TRANSFORM is generated into a HIPv2 packet although it is HIPv1-only - #1128
Merged
Merged
Conversation
…ough it is HIPv1-only HIP_TRANSFORM (577) is RFC 5201 only and the library rejects it at version 2, but HIP_VERSION had no entry for it, so the option generator built it at the default version 2 and left it out of the captures. Build it at version 1 and drop its EXPECTED_FAILURES entry, which had misattributed the gap to length arithmetic. Closes #1122
JarryShaw
force-pushed
the
test/1122-hip-transform-v1
branch
from
October 6, 2026 19:17
8865ad6 to
a227fea
Compare
Owner
Author
|
Cross-review verdict on
Nit: the following sentence still says "them", though one entry remains. Left for #1103. Separately, HIPv2-only parameters are accepted in v1 packets. That is filed as #1133. |
Merged
3 of 12 tasks
Contributor
|
Coverage: 88.74% (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;isort --check-onlyreports a pre-existing diff inoptions.pyoutside these linesmake testpasses, and a test case covers the change — only the modules listed belowWhat is the purpose of your pull request?
test— tests onlyDescription of your pull request and other information
Closes #1122.
HIP_VERSIONgets577: 1, so the generator builds HIP_TRANSFORM (RFC 5201 only) at version 1. ItsEXPECTED_FAILURESentry is removed; that entry blamed length arithmetic, but the real cause was the version. No library change.make_samples.pybefore:[left out] hip-parameter/HIP_TRANSFORM: CONSTRUCT: ProtocolError: HIPv2: [ParamNo 577] invalid parameter(8 left out)577: 1with the entry removed givesSUBFAILED(case='hip-parameter/HIP_TRANSFORM'),1 failed, 6 passedR1_Counter) and 577 behave differently by version, and both are now generated at v1. The v2-only codes (511, 579, 715, 2049) and the v2 forms of PUZZLE and SOLUTION are generated at v2, which is correct.test_option_roundtrip_unit.py6 passed, 360 subtests passed;test_option_coverage_runtime.py3 passed;internet/test_hip_unit.py34 passed;tests/project379 passed, 1 skipped