Skip to content

Conversation

@smartiniOnGitHub
Copy link
Contributor

@smartiniOnGitHub smartiniOnGitHub commented Jul 3, 2019

Hi all,
this is another part of changes for issue Drop support for Node.js 6.x in Fastify v3, related to update all dependcies to latest release (some packages were kept to be compatible with Node.js 6 before).

In first commit I updated only old packages (pinned to keep compatibility with node.js 6: joi, lolex), while in the second commit I updated explicitly all other dependencies to latest, to ensure all is good with current packages.

Hope it's good.

Bye

Checklist

  • run npm run test and npm run benchmark
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message and code follows Code of conduct

@mcollina
Copy link
Member

mcollina commented Jul 3, 2019

Would you mind removing the greenkeeper block? Those should get automatically updated.

@smartiniOnGitHub
Copy link
Contributor Author

smartiniOnGitHub commented Jul 3, 2019

Note that only packages that need to be updated now (currently) are: tap, tap-mocha-reporter, and then remove joi and tap-mocha-reporter from greenkeeper ignore list).

If I update both to latest I have some errors during tests:

  test: test/internals/initialConfig.test.js Original options must not be altered
    (test deep cloning)
  stack: |
    Test.t (test/internals/initialConfig.test.js:201:5)
...
  test: test/internals/initialConfig.test.js Original options must not be altered
    (test deep cloning)
  stack: |
    Test.t (test/internals/initialConfig.test.js:202:5)

I think we should update and fix them (if it's something in Fastify code) ... but to let you know I should commit with '--force' so we can see here from CI builds, ok ?
Last, for the fixes, do you have some suggestions ?

Thanks a lot.

@mcollina
Copy link
Member

mcollina commented Jul 3, 2019

I you should also update joi to @hapi/joi.

I think we should update and fix them (if it's something in Fastify code) ... but to let you know I should commit with '--force' so we can see here from CI builds, ok ?

I don't understand. Use --force  as you please, we'll squash the commits on landing.

@smartiniOnGitHub
Copy link
Contributor Author

smartiniOnGitHub commented Jul 3, 2019

@mcollina reply inline

I you should also update joi to @hapi/joi.

done, thanks for the hint

I don't understand. Use --force as you please, we'll squash the commits on landing.

if I commit the upgrade even of Tap and related other library, there are some tests which fails, so to commit/push I need to skip pre-commit hook failures ... but in this way I can show to you the problem, makes sense ?

@mcollina
Copy link
Member

mcollina commented Jul 3, 2019

git commit -n

it skips the pre-commit hooks

@smartiniOnGitHub
Copy link
Contributor Author

@mcollina commit even updates to latest version for tap and tap-mocha-reporter (skipping pre-commit hook), so you can see CI failure in some tests ... let's update soon because I'll need some help understanding if/what/how we need to fix something. Thanks for now. Bye

@mcollina
Copy link
Member

mcollina commented Jul 3, 2019

I would recommend passing the ‘--no-esm’ option to tap. It might be related to that.

@smartiniOnGitHub
Copy link
Contributor Author

I would recommend passing the ‘--no-esm’ option to tap. It might be related to that.

sorry but even with that flag I see same errors ...

@mcollina
Copy link
Member

mcollina commented Jul 4, 2019

I would change those two lines:

t.deepEqual(originalOptions.https.key, originalOptionsClone.https.key)
t.deepEqual(originalOptions.https.cert, originalOptionsClone.https.cert)
to compare the base64 of those. I think for some reasons comparing two buffers have changed behavior.

@smartiniOnGitHub
Copy link
Contributor Author

I would change those two lines:

t.deepEqual(originalOptions.https.key, originalOptionsClone.https.key)
t.deepEqual(originalOptions.https.cert, originalOptionsClone.https.cert)

to compare the base64 of those. I think for some reasons comparing two buffers have changed behavior.

ok, I'll try to do it and keep you updated, thanks for the suggestion

@Eomm Eomm added the v3.x Issue or pr related to Fastify v3 label Jul 5, 2019
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

LGTM

@mcollina
Copy link
Member

mcollina commented Jul 8, 2019

We can land if CI is happy.

@smartiniOnGitHub
Copy link
Contributor Author

I still see a problem with Windows_yarm node_10_x and Windows_yarm node_12_x, it seems a timeout problem; later today I'll squash the branch to see if all builds are successful

explicit update all dependencies to latest; only Tap will be updated later

update 'joi' to the new package name ('@hapi/joi')

update tap and tap-mocha-reporter to latest; note that this currently breaks some tests

fix failing tests (since Tap 14.x) on cloned options; explicit set Tap version to latest

update test to not clone anymore object containing Buffer instances

remove boom from greenkeeper ignore list
@smartiniOnGitHub
Copy link
Contributor Author

@mcollina all done :-) . Bye

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

LGTM

@mcollina mcollina merged commit a30f7cc into fastify:next Jul 9, 2019
Eomm pushed a commit to Eomm/fastify that referenced this pull request Nov 24, 2019
…er) (fastify#1732)

explicit update all dependencies to latest; only Tap will be updated later

update 'joi' to the new package name ('@hapi/joi')

update tap and tap-mocha-reporter to latest; note that this currently breaks some tests

fix failing tests (since Tap 14.x) on cloned options; explicit set Tap version to latest

update test to not clone anymore object containing Buffer instances

remove boom from greenkeeper ignore list
@mcollina mcollina mentioned this pull request Nov 24, 2019
4 tasks
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

v3.x Issue or pr related to Fastify v3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants