Skip to content

test(utilities): test_config_unit's subprocess timeout goes through scale_timeout (#3246) - #3249

Merged
JarryShaw merged 1 commit into
developfrom
test/3246-config-subprocess-timeout
Nov 30, 2026
Merged

JarryShaw merged 1 commit into
developfrom
test/3246-config-subprocess-timeout

Conversation

@JarryShaw

@JarryShaw JarryShaw commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Please follow the guide below

  • Put an x into every box [ ] that applies to your pull request (like this: [x])

  • Use the Preview tab to see how your pull request will look

  • Searched for similar pull requests

  • Followed the coding style (make pylint, make mypy, make isort)

  • make test passes, and a test case covers the change

  • Described the user-visible change below and left its changelog entry to the maintainer, keeping docs/source/changelog/ and CHANGELOG.md out of the diff, if the change is user-visible: N/A — centralised

What is the purpose of your pull request?

Tick the commit type your subject line carries.

  • fix — corrects a defect

  • feat — adds a feature

  • perf — changes performance, not behaviour

  • refactor — changes neither behaviour nor performance

  • test — tests only

  • docs — documentation only

  • ci — workflows or build tooling

  • release — bumps the version or rolls up a distribution

  • chore — anything else

  • Also tick if it regenerates constant or registry tables, members keeping their numeric values (the const label)


Description of your pull request and other information

Follow-up to #3246.

Tests: tests/utilities/test_config_unit.py (44 passed) and tests/test_support_helpers.py (61 passed, 1 skipped) pass. A probe spying on subprocess.run saw run's timeout at 240 under PCAPKIT_TEST_TIMEOUT_SCALE=2 and 120 unset, and the module passes under the scale. tests/project: 2435 passed. Its 5 failures are test_conda_dev_release_gate_2458.py subtests, red only because this host's bare python lacks packaging. With the venv on PATH, they pass.

@JarryShaw JarryShaw added 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 Nov 30, 2026
@github-actions github-actions Bot added this to the PyPCAPKit v1.10 milestone Nov 30, 2026
@JarryShaw JarryShaw moved this to In review in PyPCAPKit Nov 30, 2026
@JarryShaw

Copy link
Copy Markdown
Owner Author

Good to go at 1180b5d17, from a Sonnet cross-review and my own read of the diff.

  • Timeout: the subprocess timeout in run now goes through scale_timeout(120). The reviewer spied on subprocess.run in one process and saw 120 with the scale unset, 240 at =2 and 360 at =3, so the scale is re-read on every call. The module passes both unset and at =2.
  • Nothing left over: this file has no other literal hang guard. tests/_tiers.py stays literal because _support imports _tiers, so the reverse import would form a cycle.
  • Local failures: the 5 test_conda_dev_release_gate_2458 failures happen on origin/develop too. This host's bare python has no packaging, and with the venv on PATH they pass. Now that this is shown, I ticked the "make test passes" box.

@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 Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage: 94.98% (unit tier, Python 3.15, 1180b5d17, Unit Tests run success)

Package Statements Missed Branches Partial Cover
pcapkit (top level) 116 4 20 2 95.59%
pcapkit/const 22386 224 3186 191 98.28%
pcapkit/corekit 3162 83 1060 40 96.85%
pcapkit/dumpkit 423 3 148 5 98.60%
pcapkit/foundation 4350 24 1364 26 99.12%
pcapkit/interface 112 4 40 3 95.39%
pcapkit/protocols 29008 153 7678 128 99.22%
pcapkit/toolkit 1279 35 474 9 96.69%
pcapkit/utilities 669 7 186 5 98.60%
pcapkit/vendor 6575 2396 1478 258 60.24%

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

@JarryShaw
JarryShaw merged commit fc1b899 into develop Nov 30, 2026
40 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in PyPCAPKit Nov 30, 2026
@JarryShaw JarryShaw removed the review: good-to-go Cross-review at the current head says ready; CI state is separate label Nov 30, 2026
@JarryShaw
JarryShaw deleted the test/3246-config-subprocess-timeout branch November 30, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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