Repository navigation
test(utilities): the excepthook tests' 30-second subprocess timeout trips on GraalPy's slow start (#3246) - #3248
Merged
Conversation
Contributor
|
Coverage: 94.98% (unit tier, Python 3.15,
Per-file detail: the |
…rips on GraalPy's slow start (#3246) - The excepthook tests' children get scale_timeout(TIMEOUT), TIMEOUT = 120: each imports pcapkit afresh, and 30 seconds expired on a loaded GraalPy runner. 120 is the start-up allowance test_extraction_no_eof gives GraalPy. - Every other literal subprocess hang guard under tests/ goes through scale_timeout too, as does ProbeWriterMutexTests' wait for its child to start, so PCAPKIT_TEST_TIMEOUT_SCALE stretches them all. tests/_tiers.py's _git keeps its literal: that module never imports tests._support. - ChildDeadlineTests pins the child's deadline and its scale.
JarryShaw
force-pushed
the
test/3246-scale-subprocess-timeouts
branch
from
November 30, 2026 07:17
01d67d1 to
3deb198
Compare
Owner
Author
|
Good to go at
|
Merged
5 of 14 tasks
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.
Please follow the guide below
Put an
xinto 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 testpasses, and a test case covers the changeDescribed the user-visible change below and left its changelog entry to the maintainer, keeping
docs/source/changelog/andCHANGELOG.mdout of the diff, if the change is user-visible: N/A — centralisedWhat is the purpose of your pull request?
Tick the commit type your subject line carries.
fix— corrects a defectfeat— adds a featureperf— changes performance, not behaviourrefactor— changes neither behaviour nor performancetest— tests onlydocs— documentation onlyci— workflows or build toolingrelease— bumps the version or rolls up a distributionchore— anything elseAlso tick if it regenerates constant or registry tables, members keeping their numeric values (the
constlabel)Description of your pull request and other information
Closes #3246.
run_in_subprocessintests/utilities/test_exceptions_excepthook.pygives each childscale_timeout(TIMEOUT),TIMEOUT = 120, the start-up allowancetests/foundation/test_extraction_no_eof.pygives GraalPy (test: test_extraction_no_eof fails intermittently on GraalPy #2085). The failing test's child importspcapkittwice, which makes it the module's slowest.tests/goes throughscale_timeouttoo, as doProbeWriterMutexTests' wait for its child to start and theasyncio.wait_foron a process intest_pyshark_lost_exit_status_2633_unit.py's child program. Left literal:tests/_tiers.py's_git, since that module never importstests._supportand its timeout only reads as "cannot tell";tests/utilities/test_config_unit.py's, since feat(utilities): a PCAPKIT_MIMIC switch that follows Wireshark, dpkt or Scapy where each departs from an RFC pcapkit honours (#3230) #3240 holds that file; and in-process thread and event waits.PCAPKIT_TEST_TIMEOUT_SCALEwould also stretch everytime_limitdeadline, which test: test_extraction_no_eof fails intermittently on GraalPy #2085 kept apart from start-up. On GraalPy 25.4.4, a coldimport pcapkit.utilities.exceptionstook 5.7 s idle, 7.2–7.5 s on 4 contended CPUs and 10.8–13.0 s beside three GraalPy workers. On 2 contended CPUs the module failed the issue's test at a 30 s deadline (30.13 s) and passed at 120 s.Tests: the new
ChildDeadlineTestsfails on anorigin/developexport (30 != 120,30 != 300.0). Under a malformed scale, 103 of the 114 converted sites in module code raised itsValueError; the rest sit behind an earlier scaled call in the same test or in a test skipped on 3.14, and the pyshark child program raised it when run on its own. The touched modules,tests/project,tests/protocols/*.pyandtests/*.pypass.