Skip to content

Start Node once before the object name tests, outside their time limit - #296

Merged
jwrosewell merged 2 commits into
rcfrom
fix/node-start-outside-call-limit
Dec 1, 2026
Merged

jwrosewell merged 2 commits into
rcfrom
fix/node-start-outside-call-limit

Conversation

@jwrosewell

Copy link
Copy Markdown
Contributor

Problem

pipeline/fiftyone_pipeline_core/tests/test_javascriptbuilder_object_name.py gave each call to Node a 60 second limit. The first call on a runner also pays for Node's first start, which took up to 17.8 seconds on the Windows runners measured and once ran past 60 seconds, so test_allowed_window_name_from_evidence_is_used_0_self failed on Windows Python 3.13 in run 44188497169 for a reason that had nothing to do with what it checks.

Change

  • setUpModule starts Node once, before the tests, with its own limit of 300 seconds (NODE_START_SECONDS).
  • Each later call to Node keeps its 60 second limit (NODE_CALL_SECONDS) for its own work.
  • What the tests check is the same.

The second commit restores the two blank lines before _declared_names.

Checks

The CI of this pull request runs the test module on Ubuntu, Windows and macOS. The one failure expected there is the device detection cloud test_available_properties ("Property: serviceworkers is not present in the results"), which fails on rc today because the cloud service doesn't yet offer that property, and is unrelated to this change.

Each call to Node in test_javascriptbuilder_object_name.py had a 60 second
limit, and the first call on a runner also paid for Node's first start,
which took up to 17.8 seconds on the Windows runners measured and once
more than 60 seconds. The module now starts Node once before the tests,
with a limit of 300 seconds for that start, so each check and run of the
script keeps the 60 second limit for its own work. Both limits are named
constants. What the tests check is unchanged.
@jwrosewell
jwrosewell merged commit 0a5dffd into rc Dec 1, 2026
7 checks passed
@jwrosewell
jwrosewell deleted the fix/node-start-outside-call-limit branch December 1, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant