Uh oh!
There was an error while loading. Please reload this page.
benchmark: build the misc/function_call addon - #16934
Conversation
There was a problem hiding this comment.
I'm not sure why, but the call above (L416) uses --nodedir="%cd%", so I'd rather we keep this consistent.
IMHO simplest solution is to add benchmark\misc\function_call to L413:
for /d %%Fin (test\addons\* benchmark\misc\function_call) do (
richardlau
left a comment
There was a problem hiding this comment.
LGTM but I would prefer @refack's suggestion.
e169fbb to
f7227deComparejoyeecheung
commented
Nov 11, 2017
Amended to use the suggestion in #16934 (comment) New CI: https://ci.nodejs.org/job/node-test-pull-request/11353/ |
joyeecheung
commented
Nov 12, 2017
Forgot the cross-compilation on arms so the tests failed there. Updated, but probably will need to wait for them to get back before starting another CI.. |
joyeecheung
commented
Nov 12, 2017
Wait...all the |
AndreasMadsen
commented
Nov 12, 2017
It should be possible to run the benchmark suite without running |
@AndreasMadsen So IIUC, it is safe to remove those targets and make |
AndreasMadsen
commented
Nov 12, 2017
Yes. But we might have to update the CI benchmarker script. |
joyeecheung
commented
Nov 12, 2017
@AndreasMadsen OK thanks, I will take a look in the benchmark CI script. |
refack
commented
Nov 13, 2017
joyeecheung
commented
Nov 13, 2017
@refack Thanks, looks like it does not even use the |
refack
commented
Nov 13, 2017
I'm +1 for GC on Makefile (as I commented, it is IMHO too complex) |
gareth-ellis
commented
Nov 13, 2017
@joyeecheung Yep, the benchmarking jobs just do a normal make, so as long as that doesn't disappear, we'll be fine :) |
AndreasMadsen
commented
Nov 13, 2017
@gareth-ellis But I suppose we should run |
joyeecheung
commented
Nov 16, 2017
joyeecheung
commented
Nov 16, 2017
@refack@jasnell@richardlau Can you take a look again? Thanks |
joyeecheung
commented
Nov 17, 2017
CI failed due to the makefile regression. Trying again: https://ci.nodejs.org/job/node-test-pull-request/11492/ |
addaleax
commented
Nov 18, 2017
@joyeecheung This would need a rebase :) |
- Build the addon required by benchmark/misc/function_call - Throw errors in the addon if the binding could not be loaded
8b86f94 to
71cde66Comparejoyeecheung
commented
Nov 19, 2017
addaleax
commented
Nov 19, 2017
refack
commented
Nov 19, 2017
Fails on arm & shared-lib-debug: |
| test-ci-native: LOGLEVEL := info | ||
| test-ci-native: | test/addons/.buildstamp test/addons-napi/.buildstamp | ||
| test-ci-native: | test/addons/.buildstamp test/addons-napi/.buildstamp \ | ||
| benchmark/misc/function_call/build/Release/binding.node |
There was a problem hiding this comment.
Probably needs to be added to test-ci-js since the benchmark is tested from JS. I'd suggest adding a comment since this dependency is not intuitive.
refack
commented
Nov 19, 2017
IMHO we should consider a different approach, since this is getting a bit convoluted (test => benchmark => native-addon => node-gyp => node binary).
|
@refack Yes that seems to be a better idea, I'll try running node-gyp from the test. Although I think it should not silently fail when there is |
Couldn't get gyp running from a Node.js script with the proper |
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test, benchmark, build
This patch builds the addon for
benchmark/misc/function_callin build files when running tests, and throw an error in the benchmark when the addon is not built instead of failing silently.