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

Adapt to Node.js release schedule #602

Merged
merged 5 commits into from
Jun 6, 2017
Merged

Adapt to Node.js release schedule #602

merged 5 commits into from
Jun 6, 2017

Conversation

tripu
Copy link
Member

@tripu tripu commented Mar 16, 2017

  • v4 is superseded and too old.
  • v5 deprecated.
  • v8 is the new LTS version.

cf github.com/nodejs/LTS

In or around 1 Apr: restart the Travis build, test & confirm, merge.

@deniak
Copy link
Member

deniak commented Mar 16, 2017

👍

@tripu tripu force-pushed the tripu/node-schedule branch 2 times, most recently from fe03d09 to 131c5a8 Compare April 20, 2017 12:58
@tripu
Copy link
Member Author

tripu commented May 30, 2017

Node 8 was delayed and is due today — I'll keep an eye on that.

@tripu tripu changed the title [On hold] Adapt to Node.js release schedule Adapt to Node.js release schedule May 31, 2017
@tripu
Copy link
Member Author

tripu commented May 31, 2017

@deniak, Travis CI is being silly yesterday and today, but I tested this branch locally with Node 8, and everything looks okay.

@tripu
Copy link
Member Author

tripu commented May 31, 2017

Travis CI is being silly yesterday and today

https://www.traviscistatus.com/incidents/bnt2wtxpgs39

@tripu
Copy link
Member Author

tripu commented May 31, 2017

Welcome, Travis.

Copy link
Member

@deniak deniak left a comment

Choose a reason for hiding this comment

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

I'm not sure if versionning package-lock.json is useful in our case. I've seen that's what is recommended but it seems to me it'll add more code to review when a package is upgraded and we do use semver already so it should be fairly easy to get back to a specific state.
Also, do you know if greenkeeper will update that file when it detects a new package release?

@tripu
Copy link
Member Author

tripu commented Jun 6, 2017

@deniak:

I'm not sure if versionning package-lock.json is useful in our case. I've seen that's what is recommended

I'm not sure either. I don't know the implications well enough. As it's recommended, I'd say let's keep it under version control for now, and see how things go (eg, what emerges as the community's default practice).

but it seems to me it'll add more code to review when a package is upgraded

I don't think we have to bother even reviewing that file, ever. Relevant changes should be in package.json anyway.

Also, do you know if greenkeeper will update that file when it detects a new package release?

Apparently, it can. I don't like the extra dependency, the additional setup it requires and the extra commit per PR it'd produce, though. Let's not use that for now?

This one and w3c/echidna#417 are ready.

@deniak deniak merged commit a0f7d44 into master Jun 6, 2017
@tripu tripu deleted the tripu/node-schedule branch June 6, 2017 13:39
@tripu
Copy link
Member Author

tripu commented Jun 14, 2017

@deniak:

“Do you know if greenkeeper will update that file when it detects a new package release?”

No, it won't.

I was testing w3c/echidna#450, and this PR doesn't touch package-lock.json.

To test it, I did this, as usual:

$ git checkout greenkeeper/ldapauth-fork-4.0.1
  ⋮
$ npm install
  ⋮

But:

$ npm list ldapauth-fork
echidna@1.12.0 /repo/echidna
└── ldapauth-fork@4.0.0  invalid
npm ERR! invalid: ldapauth-fork@4.0.0 /repo/echidna/node_modules/ldapauth-fork

So I had to do:

$ git checkout greenkeeper/ldapauth-fork-4.0.1
  ⋮
$ rm package-lock.js        # ← wipe it
  ⋮
$ npm install
  ⋮

And then it's okay:

$ npm list ldapauth-fork
echidna@1.12.0 /home/tripu/t/repo/echidna
└── ldapauth-fork@4.0.1

ie, I had to remove package-lock.json altogether in order to refresh dependencies.

This is annoying. Either we adopt greenkeeperio/greenkeeper-lockfile or we exclude package-lock.json from version control (as you suggested).

@deniak
Copy link
Member

deniak commented Jun 16, 2017

This is annoying. Either we adopt greenkeeperio/greenkeeper-lockfile or we exclude package-lock.json from version control (as you suggested).

@tripu I don't have a strong opinion on that. I suspect greenkeeperio will integrate to the update in the near future

@tripu
Copy link
Member Author

tripu commented Jun 16, 2017

Let's leave things as they are now, then. And we'll see.

@tripu
Copy link
Member Author

tripu commented Jun 16, 2017

@deniak, I just had a worrying suspicion, and did a test to confirm that it is real:

This branch uses versions of packages that don't even exist. See the builds: the one with Node 6 fails appropriately; the one with Node 8 ignores the changes in package.json (uses package-lock.json instead), so doesn't see changes in the dependencies, and builds okay!

So, +1 now to keep package-lock.json out of version control (>> .gitignore)!

@deniak
Copy link
Member

deniak commented Jun 19, 2017

@tripu ok, feel free to commit that change to .gitignore without going through a PR.

tripu added a commit to w3c/echidna that referenced this pull request Jun 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants