-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
discuss: refactor the test harness #14214
Copy link
Copy link
Closed
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.testIssues and PRs related to the tests.Issues and PRs related to the tests.
Metadata
Metadata
Assignees
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.testIssues and PRs related to the tests.Issues and PRs related to the tests.
Post snapshotocalipse it seems like the runtime of the test suite has grown by 100%-300%.
Till now the paradigm was self contained tests that only use
commonfor test related utilities. Changing that might called for, or at least enabling some other, more performant approach, in parallel. Just one example of a test that run onarmv7-wheezy(arbitrary but representative)With snapshot (https://ci.nodejs.org/job/node-test-commit-arm/10793/nodes=armv7-wheezy)
Without snapshot (https://ci.nodejs.org/job/node-test-commit-arm/10832/nodes=armv7-wheezy)
Even when V8 snapshots will be re-enabled (or startup time is boosted in another way), the test suite has become quite cumbersome to run locally...
I had a few ideas:
vm.context. But AFAICT that has several caveatsthose that depend of
global/processchange to a separate directoryRandom piece of code from the report:
show that some lines are hit 100K times, maybe we can reduce redundant tests.
We need more ideas in order to keep the test suite tractable, otherwise it'll lose a part of it's effectiveness.