-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
all native modules on 7.7.0 are broken because trace_event.h is not included in the distributable, but referred by node.h #11628
Comments
#11106 shouldn't have been released without also backporting #10959 (#11106 (comment)) |
Note: this fails all travis build with native modules |
#10959 didn't exactly need a backport. It wasn't cherry-picked to v7.x because it had the I'm tried to cherry-pick the commit but now run into crashes with 2 tests so this might require another commit to work. |
Retrying with more tracing commits... |
Refs: nodejs/node#11628 PR-URL: nodejs#1162 Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
If we have any native modules in CitGM you would have expected the tests to fail since we'd not be able to compile the module. If we don't have one we should probably add one, my suggestion would be heapdump |
I would suggest |
@mhdawson There are at least two CITGM jobs:
I believe 1. is used for testing Node.js PR's but this would not have picked up the problem because it compiles native addons against the Node.js source tree (where the header is present). This is not the default behavior of npm/node-gyp, which downloads the headers tarball from https://node.js.org. Building against the headers tarball is not the same as building against the source tree, because:
Obviously before the release is made the headers tarball is not available on https://node.js.org. The other job, 2., is used for testing CitGM PR's and is how we actually caught this problem in master (see #10929 and #10959). This compiles native addons against the binaries from https://node.js.org -- When we picked up the problem in master it was against a Node 8 nightly. cc @nodejs/citgm |
We do already have node-report, as a native addon, in CitGM and I'm in the process of getting node-gyp added (nodejs/citgm#370) which has a basic addon test in its tests. But as I pointed out in my previous comment they wouldn't have failed due to the way the jobs are currently building against the Node.js source tree. |
@mhdawson to add to what @richardlau said, we do test a good number of native modules in node, the problem is that we don't test our releases as external users before actually releasing them. Raised nodejs/citgm#377 to document the native modules in citgm. EDIT: CITGM currently tests 12 native modules according to nodejs/citgm#378 |
@gibfahn, @richardlau ok, got it. So its specific to the release packaging. Does raise the issue that some level of testing on the release binaries would make sense. We've had some prior discussion about download testing due to the packages being corrupted or not build correctly. This might be another case were we should have some tests that run after a release is made to validate what went up on the release site. At least that way we'd hopefully find the problems before other people ran into them. |
+1 |
v7.7.1 has been released. |
update Docker please ~ |
why is it that 7.7.1 is published as released, but docker link (https://hub.docker.com/_/node/) in the announcement page https://nodejs.org/en/download/current/ is actually 7.7.0? |
This is a question for @nodejs/docker, but I'm pretty sure the docker update isn't done as part of the release (the docker team update the images separately). |
There is a delay for the Docker Image as official Docker Images needs to go through a spree at approval process with Docker.
The new version is on its way and should be available later today.
… On 2 Mar 2017, at 11:32, Gibson Fahnestock ***@***.***> wrote:
why is it that 7.7.1 is published as released, but docker link (https://hub.docker.com/_/node/) in the announcement page https://nodejs.org/en/download/current/ is actually 7.7.0?
This is a question for @nodejs/docker, but I'm pretty sure the docker update isn't done as part of the release (the docker team update the images separately).
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The new Docker Image was just accepted by Docker and should be available from Docker Hub any time now. Sorry for the inconvenience folks and thanks for your patience. |
Until now we built add-ons by pointing node-gyp at the src/ directory. We've had at least one DOA release where add-ons were broken because of a header dependency issue that wasn't caught because we build our test add-ons in a non-standard way. This commit does the following: * Use tools/install.py to install the headers to test/addons/include. * Add a script to build everything in test/addons. * Remove the pile-up of hacks from the Makefile. Refs: nodejs#11628
Until now we built add-ons by pointing node-gyp at the src/ directory. We've had at least one DOA release where add-ons were broken because of a header dependency issue that wasn't caught because we build our test add-ons in a non-standard way. This commit does the following: * Use tools/install.py to install the headers to test/addons/include. * Add a script to build everything in test/addons. * Remove the pile-up of hacks from the Makefile. The same logic is applied to test/addons-napi and test/gc. Everything is done in parallel as much as possible to speed up builds. Ideally, we derive the level of parallelism from MAKEFLAGS but it lacks the actual `-j<n>` flag. That's why it simply spawns as many processes as there are processors for now. The exception is tools/doc/addon-verify.js: I switched it to synchronous logic to make it easy to use from another script. Since it takes no time at all to do its work, that seemed like a reasonable trade-off to me. Refs: nodejs#11628
Modules with node-gyp (e.g. heapdump) fail with:
The text was updated successfully, but these errors were encountered: