-
Notifications
You must be signed in to change notification settings - Fork 166
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
CI-Change: tweaks to make-v8
test script
#1536
Comments
My first question is what is the motivation for this change? I made it a patch so that :
|
The main motivation was to add verbosity (since the build was failing). I tried to add it to I meant to follow up with a PR to add |
Is the patch failing now ? It was intended to be a short-medium term fix while we got changes into the google repos so I agree finding something better makes sense. Just not sure the copy over is better. Unfortunately, the person who was working on it with me has left the team so we'll have to ask if when/the change might be making it into the v8 repos. @gdams adding you into the thread as well so you are up to speed. I think next step is to figure out if/when that change might show up in the google repos so that we could remove any special behaviour and then based on how far out it is decide what to do. |
@refack I guess the patch was failing, do you have the output of what the patch failure told us? |
https://ci.nodejs.org/job/node-test-commit-v8-linux/nodes=rhel72-s390x,v8test=v8test/1779/console |
That does not look like a failure to apply the patch to the original |
Ohh, that fail:
After I patched |
Thanks, that info lets me better understand the original issue and our current state. And if I understand correctly, you were then going to PR in tools/make-v8.sh in the node.js repo to conditionally add the extra stuff for PPC and S390. If that is what you were thinking, it probably makes sense. The patch has been in place a lot longer then I'd hoped and if you are going to build v8 using make-v8, even outside the CI you'd need those extra changes so maybe just putting them in the master version of make-v8 makes sense. |
@mhdawson submitted nodejs/node#23839 |
make-v8
test script on s390 make-v8
test script
nodejs/node#23839 landed, so now I had to do the same on the ppcle machine: old make-v8.sh from #!/bin/bash
BUILD_ARCH_TYPE=$1
V8_BUILD_OPTIONS=$2
cd deps/v8
tools/node/fetch_deps.py .
PATH=~/_depot_tools:$PATH tools/dev/v8gen.py $BUILD_ARCH_TYPE --no-goma $V8_BUILD_OPTIONS
PATH=~/_depot_tools:$PATH ninja -C out.gn/$BUILD_ARCH_TYPE/ d8 cctest inspector-test ppcle patch: diff --git a/tools/make-v8.sh b/tools/make-v8.sh
index 4365412..0092d6c 100755
--- a/tools/make-v8.sh
+++ b/tools/make-v8.sh
@@ -5,5 +5,17 @@ V8_BUILD_OPTIONS=$2
cd deps/v8
tools/node/fetch_deps.py .
-PATH=~/_depot_tools:$PATH tools/dev/v8gen.py $BUILD_ARCH_TYPE --no-goma $V8_BUILD_OPTIONS
-PATH=~/_depot_tools:$PATH ninja -C out.gn/$BUILD_ARCH_TYPE/ d8 cctest inspector-test
+
+# set paths manually for now to use locally installed gn
+export BUILD_TOOLS=/home/iojs/build-tools
+export LD_LIBRARY_PATH=$BUILD_TOOLS:$LD_LIBRARY_PATH
+export PATH=$BUILD_TOOLS:$PATH
+CXX_PATH=`which $CXX |grep g++`
+rm -f "$BUILD_TOOLS/g++"
+rm -f "$BUILD_TOOLS/gcc"
+ln -s /usr/bin/$CXX "$BUILD_TOOLS/g++"
+ln -s /usr/bin/$CC "$BUILD_TOOLS/gcc"
+g++ --version
+export PKG_CONFIG_PATH=$BUILD_TOOLS/pkg-config-files
+gn gen out.gn/$BUILD_ARCH_TYPE --args='is_component_build=false is_debug=false use_goma=false goma_dir="None" use_custom_libcxx=false v8_target_cpu="ppc64" target_cpu="ppc64"'
+ninja -C out.gn/$BUILD_ARCH_TYPE d8 cctest inspector-test new: #!/bin/bash
BUILD_ARCH_TYPE=$1
V8_BUILD_OPTIONS=$2
cd deps/v8
tools/node/fetch_deps.py .
# set paths manually for now to use locally installed gn
export BUILD_TOOLS=/home/iojs/build-tools
export LD_LIBRARY_PATH=$BUILD_TOOLS:$LD_LIBRARY_PATH
export PATH=$BUILD_TOOLS:$PATH
CXX_PATH=`which $CXX |grep g++`
rm -f "$BUILD_TOOLS/g++"
rm -f "$BUILD_TOOLS/gcc"
ln -s /usr/bin/$CXX "$BUILD_TOOLS/g++"
ln -s /usr/bin/$CC "$BUILD_TOOLS/gcc"
g++ --version
export PKG_CONFIG_PATH=$BUILD_TOOLS/pkg-config-files
gn gen out.gn/$BUILD_ARCH_TYPE --args='is_component_build=false is_debug=false use_goma=false goma_dir="None" use_custom_libcxx=false v8_target_cpu="ppc64" target_cpu="ppc64"'
ninja -C out.gn/$BUILD_ARCH_TYPE d8 cctest inspector-test |
Follow Up in core - nodejs/node#24293 |
👍 |
I am hitting the following when running v8.x test-commit-v8 jobs - I am not sure if it is related to this change?
https://ci.nodejs.org/job/node-test-commit-v8-linux/nodes=rhel72-s390x,v8test=v8test/1846/console |
Probably has something to do with this... I'm looking into this. |
Ok, got the linuxOne to compile - https://ci.nodejs.org/job/node-test-commit-v8-linux/1849/nodes=rhel72-s390x,v8test=v8test/console The ppcle issue seems unrelated:
|
Last time this happened we had to pin the If anyone can figure out which one works, I'll set it up. @nodejs/platform-ppc |
@gdams can you work with John to figure out what we should do. |
PR-URL: #24293 Fixes: nodejs/build#1536 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
PR-URL: #24293 Fixes: nodejs/build#1536 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
PR-URL: #24293 Fixes: nodejs/build#1536 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
PR-URL: #24293 Fixes: nodejs/build#1536 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
https://ci.nodejs.org/job/node-test-commit-v8-linux/jobConfigHistory/showDiffFiles?timestamp1=2018-09-11_18-19-03×tamp2=2018-10-16_17-24-50
I've replaced the call to patch
tools/make-v8
, to simply overwrite it with the one in$HOME/build-tools/make-v8.patch
:make-v8.patch
is now a full and valid bash script:(added
-xe
to the shebang, and-v
to the calls togn
andninja
)Test job: https://ci.nodejs.org/job/node-test-commit-v8-linux/1767/nodes=rhel72-s390x,v8test=v8test/console
/CC @nodejs/v8-update @nodejs/platform-s390
The text was updated successfully, but these errors were encountered: