Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert on Travis: pin Node.js 10.x version to 10.0.0 #1350

Merged
merged 2 commits into from
Jun 14, 2018

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented May 24, 2018

This partially reverts commit a36e257,
as it is no longer needed on Travis CI - the new Node.js version 10.2.0 has
fixed the problem we were experiencing on Node.js 10.1.0.

Checklist

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

@bajtos bajtos self-assigned this May 24, 2018
@bajtos bajtos requested a review from raymondfeng as a code owner May 24, 2018 08:01
@bajtos
Copy link
Member Author

bajtos commented May 24, 2018

Looks like AppVeyor has not enabled Node.js 10.2.0 yet:

Install-Product node $env:nodejs_version
Uninstalling node 8.11.1 (x86)...
Installing node 10.1.0 (x86)...
node --version
v10.1.0
npm --version
5.6.0

Let's keep this pull request around until AppVeyor adds Node.js 10.2.0 support, at which point we can land it.

Copy link
Contributor

@virkt25 virkt25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once Appveyor resolves their issue

@bajtos
Copy link
Member Author

bajtos commented May 31, 2018

Cross-posting from appveyor/ci#2276:

Is there any ETA for when Node.js 10.3.0 (or at least 10.2.0) images will be available on AppVeyor?

Will deploy it this week.

@virkt25
Copy link
Contributor

virkt25 commented Jun 4, 2018

AppVeyor has updated to include support 10.3.0

@bajtos bajtos force-pushed the ci/reenable-latest-node-10x branch from eef6a68 to eae3b33 Compare June 5, 2018 10:26
@bajtos
Copy link
Member Author

bajtos commented Jun 5, 2018

Hmm, looks like there is some other bug on Windows, the test run freezes inside our test suite.

See https://ci.appveyor.com/project/bajtos/loopback-next/build/1.0.5656-master/job/of9c4nq2dwhhp96g

144 npm run mocha --scripts-prepend-node-path
145
146 > [email protected] mocha C:\projects\loopback-next
147 > node packages/build/bin/run-mocha "packages/*/DIST/test/**/*.js" "examples/*/DIST/test/**/*.js" "packages/cli/test/**/*.js" "packages/build/test/*/*.js"
148
149
150
151   ........................................................
152   ........................................................
153   ........................................................
154   ........................................................
155   ........................................................
156   ........................................................
157   ........................................................
158   ........................................................
159   ........................................................
160   ........................................................
161   .......................................................,
162   ........................................................
163   ........................................................
164   ........................................................
165   ........................................................
166   ........................................................
167   ..................................................

@bajtos
Copy link
Member Author

bajtos commented Jun 8, 2018

I was able to reproduce the problem locally on both Node.js 10.3.0 and 10.4.0. Will investigate further.

@bajtos
Copy link
Member Author

bajtos commented Jun 8, 2018

After a day of debugging, my conclusion is that this is a regression in Node.js 10.2.0. The tracking bug: nodejs/node#21210

@bajtos bajtos force-pushed the ci/reenable-latest-node-10x branch 2 times, most recently from 1789057 to c283122 Compare June 12, 2018 08:58
@bajtos bajtos changed the title revert: pin Node.js 10.x version to 10.0.0 revert on Travis: pin Node.js 10.x version to 10.0.0 Jun 12, 2018
@bajtos
Copy link
Member Author

bajtos commented Jun 12, 2018

I am no longer able to reproduce the AppVeyor problem locally. Let's move this patch forward by landing only the Travis CI part.

I have also added a commit to make the tests more robust, see c283122

@bajtos bajtos requested review from virkt25 and shimks June 12, 2018 09:00
Copy link
Contributor

@shimks shimks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know how to track when appveyor is good to be unpinned from node 10.0.0? If there isn't, we should periodically check to see if it can be reverted to latest. Otherwise, this PR LGTM

@bajtos
Copy link
Member Author

bajtos commented Jun 12, 2018

Do we know how to track when appveyor is good to be unpinned from node 10.0.0? If there isn't, we should periodically check to see if it can be reverted to latest. Otherwise, this PR LGTM

I don't know about any good solution, other than open a PR to unpin 10.0.0 (as I did here) and then periodically trigger new AppVeyor run to see if the problem has been resolved. I'll open a follow-up PR.

@bajtos bajtos force-pushed the ci/reenable-latest-node-10x branch from c283122 to 3bd83eb Compare June 12, 2018 15:32
Copy link
Contributor

@virkt25 virkt25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the timeout changes still necessary? Was it part of testing AppVeyor changes or is it intentional? I'm not opposed to them -- just curious since I've rarely run into a build failing due to a timeout (have seen it but rare).

The one marked for 15 minutes is a bit concerning ...

Can land without further review from me.

@bajtos
Copy link
Member Author

bajtos commented Jun 14, 2018

Are the timeout changes still necessary? Was it part of testing AppVeyor changes or is it intentional? I'm not opposed to them -- just curious since I've rarely run into a build failing due to a timeout (have seen it but rare).

The one marked for 15 minutes is a bit concerning ...

The changes are not strictly necessary, but intentional. In the current master, the timeout was set for infinity via this.timeout(0). I used 15 minutes to give a lot of space for slow CI build machines.

bajtos added 2 commits June 14, 2018 10:07
This partially reverts commit a36e257
and configures Travis CI to use the latest Node.js 10.x version,
since the problem we were experiencing in 10.1.0 has been fixed
in 10.2.0.

AppVeyor stays on 10.0.0 because the version 10.2.0 introduced
a subtle timing issue that causes CLI tests to hang, see
nodejs/node#21210
@bajtos bajtos force-pushed the ci/reenable-latest-node-10x branch from 3bd83eb to ce81840 Compare June 14, 2018 08:07
@bajtos bajtos merged commit bea32aa into master Jun 14, 2018
@bajtos bajtos deleted the ci/reenable-latest-node-10x branch June 14, 2018 08:26
@bajtos
Copy link
Member Author

bajtos commented Jun 14, 2018

The follow-up pull request for AppVeyor: #1431

@bajtos bajtos added this to the June Milestone milestone Jun 28, 2018
@bajtos bajtos mentioned this pull request Oct 15, 2019
@bajtos bajtos added the os:Windows Issues specific to Windows label Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os:Windows Issues specific to Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants