Repository navigation
Start Node once before the object name tests, outside their time limit - #296
Merged
Merged
Conversation
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.
This was referenced Dec 1, 2026
Merged
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.
Problem
pipeline/fiftyone_pipeline_core/tests/test_javascriptbuilder_object_name.pygave 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, sotest_allowed_window_name_from_evidence_is_used_0_selffailed on Windows Python 3.13 in run 44188497169 for a reason that had nothing to do with what it checks.Change
setUpModulestarts Node once, before the tests, with its own limit of 300 seconds (NODE_START_SECONDS).NODE_CALL_SECONDS) for its own work.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.