This repository was archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Reconcile v0.12 with new CI #25653
Closed
+55
−17
Closed
Reconcile v0.12 with new CI #25653
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
be4a8fc
test: support writing test output to file
orangemocha 162fca4
tools: pass constant to logger instead of string
jbergstroem 2004654
build: support Jenkins via test-ci
orangemocha 9d66f02
build: support flaky tests in test-ci
orangemocha 9729d62
test: runner should return 0 on flaky tests
orangemocha c9ef4b3
build: run-ci makefile rule
orangemocha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ set noperfctr_msi_arg= | |
set i18n_arg= | ||
set download_arg= | ||
set build_release= | ||
set flaky_tests_arg= | ||
|
||
:next-arg | ||
if "%1"=="" goto args-done | ||
|
@@ -61,7 +62,8 @@ if /i "%1"=="test-simple" set test=test-simple&goto arg-ok | |
if /i "%1"=="test-message" set test=test-message&goto arg-ok | ||
if /i "%1"=="test-gc" set test=test-gc&set buildnodeweak=1&goto arg-ok | ||
if /i "%1"=="test-all" set test=test-all&set buildnodeweak=1&goto arg-ok | ||
if /i "%1"=="test" set test=test&goto arg-ok | ||
if /i "%1"=="test-ci" set test=test-ci&set nosnapshot=1&goto arg-ok | ||
if /i "%1"=="test" set test=test&set jslint=1&goto arg-ok | ||
@rem Include small-icu support with MSI installer | ||
if /i "%1"=="msi" set msi=1&set licensertf=1&set download_arg="--download=all"&set i18n_arg=small-icu&goto arg-ok | ||
if /i "%1"=="upload" set upload=1&goto arg-ok | ||
|
@@ -71,6 +73,7 @@ if /i "%1"=="full-icu" set i18n_arg=%1&goto arg-ok | |
if /i "%1"=="intl-none" set i18n_arg=%1&goto arg-ok | ||
if /i "%1"=="download-all" set download_arg="--download=all"&goto arg-ok | ||
if /i "%1"=="build-release" set build_release=1&goto arg-ok | ||
if /i "%1"=="ignore-flaky" set flaky_tests_arg=--flaky-tests=dontcare&goto arg-ok | ||
|
||
echo Warning: ignoring invalid command line option `%1`. | ||
|
||
|
@@ -81,7 +84,6 @@ goto next-arg | |
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch. This change enables building and testing, when jslint is specified. But it has the side effect of not getting to jslint unless you run tests. Will fix. |
||
:args-done | ||
if defined upload goto upload | ||
if defined jslint goto jslint | ||
|
||
if defined build_release ( | ||
set nosnapshot=1 | ||
|
@@ -197,12 +199,15 @@ if errorlevel 1 echo Failed to sign msi&goto exit | |
|
||
:run | ||
@rem Run tests if requested. | ||
if "%test%"=="" goto exit | ||
if "%test%"=="" goto jslint | ||
|
||
if "%config%"=="Debug" set test_args=--mode=debug | ||
if "%config%"=="Release" set test_args=--mode=release | ||
|
||
set test_args=%test_args% --arch=%target_arch% | ||
|
||
if "%test%"=="test" set test_args=%test_args% simple message | ||
if "%test%"=="test-ci" set test_args=%test_args% -p tap --logfile test.tap %flaky_tests_arg% simple message internet | ||
if "%test%"=="test-internet" set test_args=%test_args% internet | ||
if "%test%"=="test-pummel" set test_args=%test_args% pummel | ||
if "%test%"=="test-simple" set test_args=%test_args% simple | ||
|
@@ -224,8 +229,7 @@ goto exit | |
:run-tests | ||
echo running 'python tools/test.py %test_args%' | ||
python tools/test.py %test_args% | ||
if "%test%"=="test" goto jslint | ||
goto exit | ||
goto jslint | ||
|
||
:create-msvs-files-failed | ||
echo Failed to create vc project files. | ||
|
@@ -243,6 +247,7 @@ scp Release\node.pdb [email protected]:~/web/nodejs.org/dist/v%NODE_VERSION%/node. | |
goto exit | ||
|
||
:jslint | ||
if not defined jslint goto exit | ||
echo running jslint | ||
set PYTHONPATH=tools/closure_linter/ | ||
python tools/closure_linter/closure_linter/gjslint.py --unix_mode --strict --nojsdoc -r lib/ -r src/ --exclude_files lib/punycode.js | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just an observation and a potential follow-up to this PR: if the goal of
run-ci
is to test builds of node with the same configuration as official releases, we should maybe add other configuration options used for them (such as--with-intl=small-icu
). We could probably factor that out in a variable and reuse that in other targets used to build official releases (likebinary
andpkg
).Same for the
test-ci
command line option supported invcbuild.bat
below.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.
Thanks for pointing that out. It wasn't in Jenkins so that why I didn't put it here (I just copied what was in Jenkins).
I will try to add this to this PR.
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.
Actually, I don't fully understand the implications on the download argument and whether it's a good idea to download the tarball in Jenkins. I will leave it to a follow-up PR as originally suggested.