GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: enable parallel testing in test-ci by jbergstroem · Pull Request #4476 · nodejs/node

Conversation

@jbergstroem

@jbergstroem jbergstroem commented Dec 30, 2015

Copy link
Copy Markdown
Member

Run tests in parallel by default in continuous integration.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jbergstroem jbergstroem added the test Issues and PRs related to Node.js core tests and test infrastructure. label Dec 30, 2015
@jbergstroem
jbergstroem force-pushed the feature/enable-ci-parallel-tests branch from 292fc26 to 3c39897 Compare December 30, 2015 05:20
@jbergstroem

jbergstroem commented Dec 30, 2015

Copy link
Copy Markdown
Member Author

Just added a second commit to test it properly in CI. Once landed, we'll add the temp-dir path by environment so its backwards compatible.

CI: https://ci.nodejs.org/job/node-test-commit/1570/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jbergstroem

jbergstroem commented Dec 30, 2015

Copy link
Copy Markdown
Member Author

Hm, I'll have another look at the realpath tests; must've messed that up.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jbergstroem jbergstroem mentioned this pull request Dec 30, 2015
test: don't use cwd for relative path #4477
Merged
@mscdex mscdex added the build Issues and PRs related to Node.js builds or CI infrastructure. label Dec 30, 2015
@jbergstroem
jbergstroem force-pushed the feature/enable-ci-parallel-tests branch from 3c39897 to 58ab1f9 Compare December 30, 2015 06:54
@jbergstroem

jbergstroem commented Dec 30, 2015

Copy link
Copy Markdown
Member Author

Rebased and new CI: https://ci.nodejs.org/job/node-test-commit/1573/

I've fixed the failing freebsd test by setting $HOME to /usr/home/iojs (/home is hardlinked to /usr/home on freebsd making path comparisons based on $HOME fail)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jbergstroem

jbergstroem commented Dec 30, 2015

Copy link
Copy Markdown
Member Author

The reason arm fails is because the fanned tests aren't called through make test-ci (and therefore doesn't change the temporary directory)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rvagg

rvagg commented Dec 30, 2015

Copy link
Copy Markdown
Member

YES, those CI times are looking pretty good. What can we do to fix up the failures here?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rvagg rvagg mentioned this pull request Dec 30, 2015
test-joyent-smartos14-x86-1 is painfully slow nodejs/build#293
Closed
@jbergstroem

jbergstroem commented Dec 30, 2015

Copy link
Copy Markdown
Member Author

@rvagg: It's a work in progress. I'll look at it; can hopefully get @Trott involved as well. I think SmartOS will need most work.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell added lts-watch-v4.x and removed lts-watch-v4.x labels Dec 30, 2015
@Trott

Trott commented Dec 30, 2015

Copy link
Copy Markdown
Member

A fix (or, depending on your perspective, a workaround) for the arm-fanned failures is already in. Woot.

I'm speculating but the one error on fedora may be because 50 milliseconds is just not enough time if the host is very busy with other stuff (like, say, running some other tests in parallel, one or two of which might be resource-intensive).

I'm going to refactor that test to get rid of the setTimeout() so that won't be an issue, hopefully.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Trott added a commit to Trott/io.js that referenced this pull request Dec 30, 2015
@Trott
test: refactor test-fs-empty-readStream
104fde8
Refactor test to remove unnecessary booleans and one unnecesary timer.
Instead, throw Error objects where appropriate and rely on
common.mustCall().

The timer seemed to be the source of an issue when parallelizing tests.
Ref: nodejs#4476 (comment)
@Trott Trott mentioned this pull request Dec 30, 2015
test: refactor test-fs-empty-readStream #4490
Closed
@Trott

Trott commented Dec 30, 2015

Copy link
Copy Markdown
Member

Fedora fix (hopefully): #4490

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jbergstroem
jbergstroem force-pushed the feature/enable-ci-parallel-tests branch from 58ab1f9 to 021b682 Compare December 30, 2015 23:58
@jbergstroem

jbergstroem commented Dec 31, 2015

Copy link
Copy Markdown
Member Author

I just backed out the path commit since I've added it to jenkins as well as rebased to get a few more fixes. New run shortly.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jbergstroem
jbergstroem force-pushed the feature/enable-ci-parallel-tests branch from 021b682 to 3be6c10 Compare December 31, 2015 00:14
@jbergstroem

jbergstroem commented Dec 31, 2015

Copy link
Copy Markdown
Member Author

aad4a33d39d0759cf0b95d8e53b85595 596x329x1

https://ci.nodejs.org/job/node-test-commit/1585/

Edit:

  • smartos32 -- my bad.
  • arm path fails: I forgot to edit the binary test job to add test path. Also, since we don't invoke test-ci we don't get -J.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Dec 31, 2015

Copy link
Copy Markdown
Member

Looking at the SmartOS failure for test-child-process-fork-net2.js, I wonder if that test really belongs in sequential since it seems to be failing on a sort of timing/performance benchmark that may be due to other tests consuming resources?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Dec 31, 2015

Copy link
Copy Markdown
Member

(Or, alternatively, leave it in parallel but get rid of the time check. I'm not sure performance checks should be mixed in with functionality checks like that in tests.)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jbergstroem

jbergstroem commented Dec 31, 2015

Copy link
Copy Markdown
Member Author

@Trott: I'd be happy to get rid of a lot of time checks in the suite. I wonder if its a remnant of something else when node was slower.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Trott added a commit to Trott/io.js that referenced this pull request Dec 31, 2015
@Trott
test: refactor test-fs-empty-readStream
ca8112c
Refactor test to remove unnecessary booleans and one unnecesary timer.
Instead, throw Error objects where appropriate and rely on
common.mustCall().

The timer seemed to be the source of an issue when parallelizing tests.
Ref: nodejs#4476 (comment)
@Trott

Trott commented Dec 31, 2015

Copy link
Copy Markdown
Member

OK, I'll get rid of the time checks and send over a PR in a bit...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Trott added a commit to Trott/io.js that referenced this pull request Dec 31, 2015
@Trott
test: remove time check
65f8ef9
test-child-process-fork-net2.js checks that things happen within
certain time constraints, thus doubling as a benchmark test in addition
to a functionality test.

This change removes the time check, as it was causing the test to fail
on SmartOS and Windows (and possibly elsewhere) when the tests were
run in parallel on CI. There is no guarantee that other tests won't
consume enough resources to slow this test down, so don't check the time
constraints (beyond the generous timeout that the test is given by
test.py in the first place, of course).

If we want to do benchmark/performance tests, we should keep them
separate from pure functionality tests. The time check may have been a
remnant of the distant past when Node.js was much slower. It predates
io.js

Ref: nodejs#4476
@Trott Trott mentioned this pull request Dec 31, 2015
test: remove time check #4494
Closed
@Trott

Trott commented Dec 31, 2015

Copy link
Copy Markdown
Member

test-child-process-fork-net2.js fix (hopefully): #4494

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jbergstroem

jbergstroem commented Jan 20, 2016

Copy link
Copy Markdown
Member Author

Because we more than one way compiling/testing from jenkins at the moment. I'd rather make the way we call compiling/testing more consistent down the line and move it back then. Haven't decided but thats at least my rationale. Need to look through all jobs..

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jbergstroem

jbergstroem commented Jan 20, 2016

Copy link
Copy Markdown
Member Author

Also, the environment variables JOBS and NODE_TMP_DIR should be set in all init scripts at the runners to make sure we don't run into failures as a result of not setting them (pathmax, to high parallelism, etc)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Jan 20, 2016

Copy link
Copy Markdown
Member

Should we close this PR and you can open another one to parallelize the builds a different way (especially if those changes need to happen over in nodejs/build instead of this repo or something like that)? Or will you add on to this PR to get it to be the way you want?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott Trott added the wip Issues and PRs that are still a work in progress. label Jan 20, 2016
@Trott

Trott commented Jan 20, 2016

Copy link
Copy Markdown
Member

Added the in progress label to this PR which hopefully is the equivalent of "hey, don't land this because it's not fully baked yet".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

MylesBorins pushed a commit that referenced this pull request Jan 28, 2016
@Trott Myles Borins
test: move resource intensive tests to sequential
6630994
To enable greater parallelization of tests on CI, move resource
intensive tests out of parallel and into sequential.

Ref: #4476
PR-URL: #4615
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Jan 28, 2016
@Trott Myles Borins
test: fix race in test-net-server-pause-on-connect
27c5783
A 50ms timeout results in a race condition. Instead, enforce expected
order through callbacks. This has the side effect of speeding up the
test in most situations.

Ref: #4476
PR-URL: #4637
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Jan 28, 2016
@cjihrig Myles Borins
test: fix flaky test-net-socket-local-address
405a8d6
Prior to this commit, the test was flaky because it was
executing the majority of its logic in a function called from
the client and multiple events on the server. This commit
simplifies the test by separating the server's connection and
listening events, and isolating the client logic.

Refs: #4476
Refs: #4644
PR-URL: #4650
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
MylesBorins pushed a commit that referenced this pull request Feb 11, 2016
@Trott Myles Borins
test: move resource intensive tests to sequential
375122e
To enable greater parallelization of tests on CI, move resource
intensive tests out of parallel and into sequential.

Ref: #4476
PR-URL: #4615
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Feb 11, 2016
@Trott Myles Borins
test: fix race in test-net-server-pause-on-connect
6508a0c
A 50ms timeout results in a race condition. Instead, enforce expected
order through callbacks. This has the side effect of speeding up the
test in most situations.

Ref: #4476
PR-URL: #4637
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit that referenced this pull request Feb 11, 2016
@cjihrig Myles Borins
test: fix flaky test-net-socket-local-address
5f9345a
Prior to this commit, the test was flaky because it was
executing the majority of its logic in a function called from
the client and multiple events on the server. This commit
simplifies the test by separating the server's connection and
listening events, and isolating the client logic.

Refs: #4476
Refs: #4644
PR-URL: #4650
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
MylesBorins pushed a commit to MylesBorins/node that referenced this pull request Feb 11, 2016
@Trott Myles Borins
test: move resource intensive tests to sequential
1b8ec81
To enable greater parallelization of tests on CI, move resource
intensive tests out of parallel and into sequential.

Ref: nodejs#4476
PR-URL: nodejs#4615
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit to MylesBorins/node that referenced this pull request Feb 11, 2016
@Trott Myles Borins
test: fix race in test-net-server-pause-on-connect
bab8a11
A 50ms timeout results in a race condition. Instead, enforce expected
order through callbacks. This has the side effect of speeding up the
test in most situations.

Ref: nodejs#4476
PR-URL: nodejs#4637
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit to MylesBorins/node that referenced this pull request Feb 11, 2016
@cjihrig Myles Borins
test: fix flaky test-net-socket-local-address
0462b78
Prior to this commit, the test was flaky because it was
executing the majority of its logic in a function called from
the client and multiple events on the server. This commit
simplifies the test by separating the server's connection and
listening events, and isolating the client logic.

Refs: nodejs#4476
Refs: nodejs#4644
PR-URL: nodejs#4650
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
MylesBorins pushed a commit to MylesBorins/node that referenced this pull request Feb 15, 2016
@Trott Myles Borins
test: move resource intensive tests to sequential
8ea7660
To enable greater parallelization of tests on CI, move resource
intensive tests out of parallel and into sequential.

Ref: nodejs#4476
PR-URL: nodejs#4615
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit to MylesBorins/node that referenced this pull request Feb 15, 2016
@Trott Myles Borins
test: fix race in test-net-server-pause-on-connect
baa0a3d
A 50ms timeout results in a race condition. Instead, enforce expected
order through callbacks. This has the side effect of speeding up the
test in most situations.

Ref: nodejs#4476
PR-URL: nodejs#4637
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
MylesBorins pushed a commit to MylesBorins/node that referenced this pull request Feb 15, 2016
@cjihrig Myles Borins
test: fix flaky test-net-socket-local-address
d615757
Prior to this commit, the test was flaky because it was
executing the majority of its logic in a function called from
the client and multiple events on the server. This commit
simplifies the test by separating the server's connection and
listening events, and isolating the client logic.

Refs: nodejs#4476
Refs: nodejs#4644
PR-URL: nodejs#4650
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
@Trott Michael Scovetta
test: refactor test-fs-empty-readStream
45244b5
Refactor test to remove unnecessary booleans and one unnecesary timer.
Instead, throw Error objects where appropriate and rely on
common.mustCall().

The timer seemed to be the source of an issue when parallelizing tests.

Ref: nodejs#4476 (comment)
PR-URL: nodejs#4490
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
@Trott Michael Scovetta
test: remove time check
b8b12de
test-child-process-fork-net2.js checks that things happen within
certain time constraints, thus doubling as a benchmark test in addition
to a functionality test.

This change removes the time check, as it was causing the test to fail
on SmartOS and Windows (and possibly elsewhere) when the tests were
run in parallel on CI. There is no guarantee that other tests won't
consume enough resources to slow this test down, so don't check the time
constraints (beyond the generous timeout that the test is given by
test.py in the first place, of course).

If we want to do benchmark/performance tests, we should keep them
separate from pure functionality tests. The time check may have been a
remnant of the distant past when Node.js was much slower. It predates
io.js

Ref: nodejs#4476
PR-URL: nodejs#4494
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
@Trott Michael Scovetta
test: move resource intensive tests to sequential
0728e84
To enable greater parallelization of tests on CI, move resource
intensive tests out of parallel and into sequential.

Ref: nodejs#4476
PR-URL: nodejs#4615
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
@Trott Michael Scovetta
test: fix race in test-net-server-pause-on-connect
3502025
A 50ms timeout results in a race condition. Instead, enforce expected
order through callbacks. This has the side effect of speeding up the
test in most situations.

Ref: nodejs#4476
PR-URL: nodejs#4637
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: James M Snell <[email protected]>
scovetta pushed a commit to scovetta/node that referenced this pull request Apr 2, 2016
@cjihrig Michael Scovetta
test: fix flaky test-net-socket-local-address
f3778e1
Prior to this commit, the test was flaky because it was
executing the majority of its logic in a function called from
the client and multiple events on the server. This commit
simplifies the test by separating the server's connection and
listening events, and isolating the client logic.

Refs: nodejs#4476
Refs: nodejs#4644
PR-URL: nodejs#4650
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
@jbergstroem jbergstroem mentioned this pull request Apr 5, 2016
Enable parallel testing in CI nodejs/build#379
Closed
@estliberitas
estliberitas force-pushed the master branch 2 times, most recently from 7da4fd4 to c7066fb Compare April 26, 2016 05:22
@jasnell

jasnell commented Apr 30, 2016

Copy link
Copy Markdown
Member

Any updates on this?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell added the stalled Issues and PRs manually marked as stalled and scheduled for automatic closure. label Apr 30, 2016
@jbergstroem

jbergstroem commented May 3, 2016

Copy link
Copy Markdown
Member Author

@jasnell I'll close this. We've done enough work in the src repo. What's left is implementing environment variables across the buildfarm which we'll be doing over at nodejs/build#291.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jbergstroem jbergstroem closed this May 3, 2016
@MylesBorins MylesBorins removed the lts-watch-v4.x label May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

build Issues and PRs related to Node.js builds or CI infrastructure. stalled Issues and PRs manually marked as stalled and scheduled for automatic closure. test Issues and PRs related to Node.js core tests and test infrastructure. wip Issues and PRs that are still a work in progress.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@jbergstroem @rvagg @Trott @jasnell @mscdex @MylesBorins
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.