From 5d1d1f1e8143e5d8b8e6743f50e88a313bc0a448 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sat, 23 Sep 2017 01:38:01 +0200 Subject: [PATCH 1/3] Adding JUnit reports. --- run-tests.bat | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/run-tests.bat b/run-tests.bat index 207efed28..7e792bbd6 100644 --- a/run-tests.bat +++ b/run-tests.bat @@ -28,18 +28,23 @@ nvm use 8.5.0 call npm install || goto :error +SET JUNIT_REPORT_STACK=1 +SET FAILED=0 + for %%v in (4.8.4 6.11.3 7.9.0 8.5.0) do ( nvm install %%v nvm use %%v node -e "console.log(process.versions)" - call .\node_modules\.bin\gulp clean.all || goto :error - call .\node_modules\.bin\gulp setup.windows || goto :error - call .\node_modules\.bin\gulp native.test || goto :error -) + SET JUNIT_REPORT_PATH=reports/node%%v/ -if %errorlevel% neq 0 exit /b %errorlevel% + call .\node_modules\.bin\gulp clean.all || SET FAILED=1 + call .\node_modules\.bin\gulp setup.windows || SET FAILED=1 + call .\node_modules\.bin\gulp native.test || SET FAILED=1 +) +if %FAILED% neq 0 exit /b 1 +node merge_kokoro_logs.js goto :EOF :error From 83178b9a34ea581c5b35f5b477bb75e8137d408a Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 15 Mar 2018 21:24:07 +0100 Subject: [PATCH 2/3] Grabbing artifacts. --- test/kokoro/windows.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/kokoro/windows.cfg b/test/kokoro/windows.cfg index 2b9d09060..c440966f7 100644 --- a/test/kokoro/windows.cfg +++ b/test/kokoro/windows.cfg @@ -17,3 +17,8 @@ # Location of the continuous shell script in repository. build_file: "grpc-node/test/kokoro.bat" timeout_mins: 60 +action { + define_artifacts { + regex: "github/grpc-node/reports/**/sponge_log.xml" + } +} From e2b3f31a678fa949a97183089d14695e243e4e1c Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 15 Mar 2018 22:33:38 +0100 Subject: [PATCH 3/3] Fixing various issues with the windows junit report. --- run-tests.bat | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/run-tests.bat b/run-tests.bat index 08daf7963..6359dde08 100644 --- a/run-tests.bat +++ b/run-tests.bat @@ -35,18 +35,19 @@ SET FAILED=0 for %%v in (4.8.4 6.11.3 7.9.0 8.5.0) do ( nvm install %%v nvm use %%v - npm install -g npm + call npm install -g npm node -e "console.log(process.versions)" - SET JUNIT_REPORT_PATH=reports/node%%v/ + mkdir reports\node%%v + SET JUNIT_REPORT_PATH=reports/node%%v call .\node_modules\.bin\gulp clean.all || SET FAILED=1 call .\node_modules\.bin\gulp setup.windows || SET FAILED=1 call .\node_modules\.bin\gulp native.test || SET FAILED=1 ) -if %FAILED% neq 0 exit /b 1 node merge_kokoro_logs.js +if %FAILED% neq 0 exit /b 1 goto :EOF :error