-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Update deployments-rolling example to work with Ubuntu 18.04 and Node.js 10.x #124
Comments
Upstream issue: geerlingguy/demo-nodejs-api#1 |
Yay, also got tests passing in Travis CI again, on LTS + current. |
Testing locally. |
Build is failing inside the VM when it runs the tests on tag
|
This is incredibly frustrating. On my Mac, I am getting no errors when running |
Dependency tree via Going to also test locally in the official node.js container. |
Drat. Looks like just running |
Switching from Docker for Mac Edge to Docker for Mac Stable fixed the ping issue. Re-testing in node container. |
So in the Docker container it fails too:
Weird. Something must be different locally :/ |
The plot thickens; if I use |
|
Script to reproduce:
|
How does |
Now my mind is exploding—I just manually ran the test again with And so I ran it on And so I ran it on I have a sneaking suspicion. |
I HATE YOU CHARTER SPECTRUM WITH AN UNDYING PASSION. So it boils down to this: Charter Spectrum's DNS servers were not giving the correct response for an invalid domain, causing an error in the So basically, the lesson is never use your ISP's DNS. |
So, add step 0: |
@dglinder haha, yes. Exactly. |
So not only was that an issue... but after solving that I was still getting the error inside the Ubuntu 18.04 environment in Vagrant. After another few hours debugging (even stepping through with Node's built-in debugger), I finally traced the error back to JJG-Ping... a library I wrote myself. Kudos to https://stackoverflow.com/a/9802084/100134 for the nudge in the right direction—I have to buffer the stdout from the ping call, otherwise the 'data' event can be called more than once in some weird situations, even for a very small data payload. Opening an upstream issue... |
Testing a new tagged release. Upstream issue was geerlingguy/JJG-Node-Ping#3 |
Oh what a rabbit hole that was. Sheesh. |
I couldn't get this to work on ubuntu 20.04. Node.js API app tests task fails whenever the version changes and naturally gets skipped when the playbook is ran again. |
Vagrant ssh in and try npm test, and it comes back with a suggestion to install npm |
Oh. Maybe beyond what was already done here, it won't work on digitalocean's dns either. |
The demo-nodejs-api seems to have some issues installing and running under the latest LTS release of Node.js (10.x): https://github.com/geerlingguy/demo-nodejs-api
Basically, if you leave a Node.js app alone for more than 6 months or so, half the dependencies will go unmaintained and/or change names entirely (I'm looking at you, jade/pug!).
The example works under Ubuntu 14.04, but I am upgrading all my examples to at least 16.04 (in this case I would like to just go straight to 18.04), and I can't install Node.js 4.x or lower (which is compatible with the current nodejs-api demo app linked above) on Ubuntu 18.04... nor should I.
So for this ticket, I need to do some upstream work in the Node.js API demo app, to get it either rewritten or updated to work on modern Node.js, then test the full process on the deployments-rolling example.
The text was updated successfully, but these errors were encountered: