-
Notifications
You must be signed in to change notification settings - Fork 30k
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, windows: build and test add-ons on test-ci #5886
Conversation
added build-addons task, it allows to build and test native addons during test-ci task. Basicaly it should work in same way like Makefile "build-addons" task.
ok then https://ci.nodejs.org/job/node-test-pull-request/2053/ lgtm tho this is stretching my .bat skillz /cc @nodejs/platform-windows |
looks like build is failing |
oh right, that's because we build binaries on one server and fan the tests across a number of non-build servers, so it's going to be a bit more complicated than just activating this in |
@rvagg I saw in build logs:
So, before we start running tests, we unpacking binaries. |
Build could fail on "load-long-path" test due to: #3667 |
this should fix issue with running test-ci on non-build servers.
Hey @rvagg, could you please try tun CI build again? |
Hi @blobor , thanks for contributing! In the CI server we test Windows and Raspberry Pis with some added logic, because we compile and run tests in different machines. The Pis are already running addons tests, the test runners execute vcbuild.bat release nosign x64
tar cavf ../binary.tar.gz config.gypi icu_config.gypi Release/node.exe Release/openssl-cli.exe Release/cctest.exe
git clean -fdx
tar xavf ../binary.tar.gz
vcbuild.bat release nosign x64 nobuild test-ci ignore-flaky (we use the tar bundled with Git for Windows, but it doesn't have to be tar, just have to save those exact files and delete everything else) We can start saving I think this would be great if you could keep the |
Renamed build-addons -> test-addons test-addons task shouldtest only addons test should task also test addons
Hey @joaocgreis, thanks for your reply. I've made changes accordingly to your comment. Could you please review them? |
set build_addons= | ||
|
||
:: assign path to node_exe | ||
set node_exe="%config%\node.exe" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The quotes should not be stored in the variable, but added to every place where the variable is used, to be consistent with all other variables in this file.
@blobor I did a careful review, left some comments. Can you address them? Thanks! I've updated the CI job to pack Current status is:
I believe this should land with the |
move "node_exe" variable assignment change backslashes
@joaocgreis, thanks for review. I've made those changes. |
LGTM CI: https://ci.nodejs.org/job/node-test-pull-request/2084/ Will land in about 24h if CI is ok and there are no objections. |
Looks like CI failed again on win 2008 VS2013 machine. |
Looks like a problem with Windows SDK on that machine, I've seen it on others. I can't do it right now, but I'll fix it and re-run CI. Everything else passed, so I don't expect a problem there. |
@joaocgreis, great! Thank you so much for your help! |
Added build-addons task, it allows to build and test native addons during test-ci task. Basicaly it should work in same way like Makefile "build-addons" task. PR-URL: nodejs#5886 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: João Reis <[email protected]>
Added build-addons task, it allows to build and test native addons during test-ci task. Basically it should work in same way like Makefile "build-addons" task. Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: João Reis <[email protected]> PR-URL: #5886 Fixes: #2537
CI passed this time: https://ci.nodejs.org/job/node-test-commit/2723/ Landed in: c7138e9 Thank you @blobor ! |
Added build-addons task, it allows to build and test native addons during test-ci task. Basically it should work in same way like Makefile "build-addons" task. Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: João Reis <[email protected]> PR-URL: #5886 Fixes: #2537
Added build-addons task, it allows to build and test native addons during test-ci task. Basically it should work in same way like Makefile "build-addons" task. Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: João Reis <[email protected]> PR-URL: #5886 Fixes: #2537
Added build-addons task, it allows to build and test native addons during test-ci task. Basically it should work in same way like Makefile "build-addons" task. Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: João Reis <[email protected]> PR-URL: #5886 Fixes: #2537
Pull Request check-list
Please make sure to review and check all of these items:
make -j8 test
(UNIX) orvcbuild test nosign
(Windows) pass withthis change (including linting)?
Affected core subsystem(s)
build on Windows OS
Description of change
added build-addons task, it allows to build and test native addons during test-ci task.
Basicaly it should work in same way like Makefile "build-addons" task.
Fixes: #2537