-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
build: Makefile dependency regression #17043
Comments
Hmm..maybe we should put |
Also, I think I have seen this on my mac(or my linux box) very occasionally, long before all the commits listed in the OP (if my memory serve me right, at least before 8.x came out), it's probably not a recent regression, but a low-probability race or something |
@joyeecheung I fixed just such a dependency issue in 0ea4855. That was in May last year though, maybe too long ago? |
@bnoordhuis Yes, that could be it. From the commit message:
I think this probably does not happen in CI where most things start fresh...so my guess in #17043 (comment) could be wrong, this is a new regression. |
Uh, wait, no, I thought that commit landed this May, but it actually landed last May, and I am pretty sure I've seen this error this year, so back to my original guess.. |
I looked into the logs again and I think this is not caused by Makefile miscalculating the dependencies and tries to build addons before linking node, because it usually errors out in the middle of the for-loop of build-addons-napi. If |
Maybe somewhat related: somehow the napi addons are not built but still proceeded to the JS testing phase on smart os https://ci.nodejs.org/job/node-test-commit-smartos/nodes=smartos16-64/13133/console See test output
The building phase: See build trace
|
Another one on smart OS, this time the https://ci.nodejs.org/job/node-test-commit-smartos/13181/nodes=smartos15-64/console |
Looks like the race condition documented in the
is back |
This was automatically closed in #17048 but I doubt if enforcing the order of dependency fixes this issue given that smartos still fails in its CI run, would like to give it a bit more time to find out, #17115 would probably help showing if the symlink is broken halfway during the addon build, it could be a bug in the CI machine orchestration instead of a bug in the Makefile. |
PR-URL: #17048 Fixes: #17043 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: #17048 Fixes: #17043 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
PR-URL: #17048 Fixes: #17043 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
@joyeecheung (or anyone else) has this error resurfaced after #17048 landed? |
@maclover7 No, although I think this is caused by the cluster orchestration instead of changes to the build file. I think this can be closed now. |
master
build
Several recent build jobs are failing apparently because
make
is miss-calculating target dependencies and tries to build thetest/addons
too soon (before thenode
binary is linked) and thus fails.Looking for help in tracking down a possible cause.
Example failing output: https://www.irccloud.com/pastebin/raw/FWBUXcqM
https://ci.nodejs.org/job/node-test-commit-linux/nodes=fedora24/14120/consoleFull
https://github.com/nodejs/node/commits/master/Makefile:
@refack - tools,build: allow build without
remark-cli
- e624503@joyeecheung - tools: don't lint files that have not changed - eebcb48
@gibfahn - build: suppress lint-md output - 60d055e
@joyeecheung - build: make test-doc and lint addon docs - 390eda1
@danbev - build: make doc target quiet - 6f684d9
@addaleax @tniessen - build: ignore empty folders in test-addons-napi - 65d2067
@joyeecheung - build: run linter before running tests - 2875459
@refack - build: improve
make clean
- 9ab6481@watilde - tools: add make lint-md-clean - a399881
@watilde - build: add lint-md-build - 212f4b9
@watilde - tools: add lint-md command in Makefile - f132954
@Trott - build: use doc-only instead of doc - d6ba14e
@Trott - test: fix flaky test-make-doc - c9d5be4
@gibfahn - test: update test-npm to use test-npm-package.js - 532d8b2
@evanlucas - build: add c++ coverage support on macOS - a078584
@joyeecheung - test: test make doc and verify toc - df5dc2d
@maclover7 @refack - test: move inspector tests to parallel/sequential - 978629c
@bnoordhuis @joyeecheung - build: lint benchmark addon - 411695e
@bnoordhuis @joyeecheung - build: use local node-gyp for benchmark addon - 4157342
@refack - build: restore mistakenly dropped suites - 88d05aa
@gr2m @mhdawson - build: ignore empty folders in test-addons - 7da45f8
The text was updated successfully, but these errors were encountered: