Skip to content

docs: state current behaviour where text pins held change-relative wording (#2228) - #2242

Merged
JarryShaw merged 1 commit into
mainfrom
test/2228-text-pins
Oct 26, 2026
Merged

JarryShaw merged 1 commit into
mainfrom
test/2228-text-pins

Conversation

@JarryShaw

Copy link
Copy Markdown
Owner

What is the purpose of your pull request?

  • docs — documentation only

Description

Part of #2228: four of its five pins. The releasing.rst line citation and its BARE_ELSEWHERE entry come with #2231's PR. Each rewrite states current behaviour, and its pin moves with it.

Pin New prose What the pin still guards
test_docs_internal_refs_1947_unit CONVERTED the apptype _dispatch docstring says TransportProtocol is an IntEnum, not an IntFlag (#808), in vendor and const the reference stays a role
test_const_method_value_lookup_908_unit Method.get: "no member of this registry has a bytes name or value", in source and template Raises: documents the bytes ValueError
test_docs_internal_refs_1940_unit CONVERTED sentinel-convention.rst: compat.cached_property is a re-export of functools.cached_property (#2051) unchanged entry
test_issue_refs_in_comments META_MENTIONS test_changelog_md's comment states what the unknown-role guard refuses no stale role mentions
  • Mirroring: the vendor templates and const modules match after {NAME} substitution, and the vendor-parity test passes.
  • Fail-without-fix: on origin/main, the new pins give 5 failed. Turning a role back into a literal fails both CONVERTED tests.
  • Tests run:
    • The pin files and test_changelog_md give 101 passed.
    • tests/vendor and tests/const give 534 passed.
    • test_docs_* and the docstring contract give 75 passed.

…rding (#2228)

Problem: four tests pinned sentences that narrate a change ("#808
dropped TransportProtocol's IntFlag base", "value were both the bytes
object", the compat.cached_property "backport", "passed before the
change too"), so the prose could not be made timeless without the pin.

Fix: reword each to state current behaviour -- TransportProtocol is an
IntEnum, not an IntFlag; no Method member has a bytes name or value;
compat.cached_property re-exports functools.cached_property; the
unknown-role guard names only :ref: -- mirroring vendor templates into
the const modules by hand, and move each pin onto the new wording.

Test: the updated pins fail on origin/main and pass here; reverting
either role to a literal fails ConvertedReferenceTests.
@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 26, 2026
@JarryShaw JarryShaw added this to the PyPCAPKit v1.5 milestone Oct 26, 2026
@JarryShaw

Copy link
Copy Markdown
Owner Author

Review: GOOD TO GO at 8ffa0a99e (Sonnet).

  • Accuracy:
    • TransportProtocol is (EnumLookup, IntEnum).
    • Method.get(b'GET') raises EnumValueError, so no member has a bytes name or value.
    • compat.cached_property is functools.cached_property.
    • The test_changelog_md comment matches its assertions.
  • Pins still guard: reverting each role to a literal fails 1947, 1940 and the two 908 tests.
  • Mirroring: the vendor and const hunks are identical, and the parity test catches drift.
  • Tests: the pin tests, test_changelog_md, tests/vendor, tests/const, the docstring contract and test_docs_* give 682 passed.

@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 26, 2026
@JarryShaw JarryShaw moved this to In review in PyPCAPKit Oct 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage: 91.56% (unit tier, Python 3.15, 8ffa0a99e, 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 8ffa0a99e. Part of #2228; #2231's PR carries the releasing.rst item.

  • Review: Sonnet GOOD TO GO, first round.
  • CI: all checks complete, Required checks passed SUCCESS, 0 failed.
  • KTLO: 12 legs, no warnings.
  • Ordering: merged into main and run. project: 2353 tests, const: 597 and vendor: 401, 0 failures.
  • Conflicts: none against the current main.

@JarryShaw
JarryShaw merged commit ec02078 into main Oct 26, 2026
70 checks passed
@JarryShaw
JarryShaw deleted the test/2228-text-pins branch October 26, 2026 14:50
@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