-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Jenkins Repro Steps
When Jenkins builds or tests fail it is helpful to be able to reproduce the errors locally.
It is possible to run builds and tests locally using the same scripts that the Jenkins checks use. To run these commands, please follow the instructions below.
Keep in mind that certain builds will have system requirements that make it impossible to run the builds directly on your system configurations (e.g. Legacy Windows builds which require Windows 7, Windows 8.1 and/or VS 2015; and Linux builds which require a Linux system or VM). Requirements are detailed below.
The following Jenkins commands are directed at re-running entire sets of Jenkins checks. If you wish to re-run a particular check, see Jenkins Build Triggers.
Repro with these commands:
jenkins\buildone.cmd x64 debug
jenkins\testone.cmd x64 debug
When testing a fix to these builds with Jenkins you do NOT need to request any additional tests because this set of tests is automatic. If you wish to RE-RUN tests due to, e.g., intermittent failures, you can request:
@dotnet-bot test this please
Repro with these commands:
./build.sh --debug
./test/runtests.sh -d
Repro with these commands:
./build.sh --debug --static --icu=/usr/local/opt/icu4c/include -j=2
./test/runtests.sh -d
When testing a fix to these builds with Jenkins you do NOT need to request any additional tests because this set of tests is automatic. If you wish to RE-RUN tests due to, e.g., intermittent failures, you can request:
@dotnet-bot test this please
Builds with Slow Tests are used for daily builds, but are mostly the same as the rolling builds above. Only trigger these builds if there is an issue revealed in the dailies that does not repro in the rolling builds (to save build machine resources).
Repro with these commands:
jenkins\buildone.cmd x64 debug
jenkins\testone.cmd x64 debug -includeSlow
When testing a fix please request:
@dotnet-bot test slow tests please
Repro with the commands above:
When testing a fix please request:
@dotnet-bot test linux tests please
Repro with these commands:
jenkins\buildone.cmd x64 debug "/p:BuildJIT=false"
jenkins\testone.cmd x64 debug -disablejit
When testing a fix please request:
@dotnet-bot test nojit tests please
(You can also replace test nojit tests
with test disablejit tests
if you prefer -- they are equivalent.)
Note: These tests are designed to run under VS 2015 + Windows 7 or Windows 8.1 In most cases, failures are related to running under msbuild 12.0 so you can most likely reproduce failures using msbuild 12.0 without needing to run on Windows 7. If you still cannot repro, you might consider setting up a Windows 7 VM to repro.
Repro with these commands:
jenkins\buildone.cmd x64 debug msbuild14
jenkins\testone.cmd x64 debug -win7 -includeSlow
jenkins\testone.cmd x64 debug -winBlue -includeSlow
When testing a fix please request the appropriate run from the following:
@dotnet-bot test legacy7 tests please
@dotnet-bot test legacy8 tests please
Or run all tests with the following:
@dotnet-bot test legacy tests please
You can replace x64
with x86
or arm
. (Running tests on arm
builds is not supported).
You can replace debug
with test
or release
. (Running tests on release
builds is not supported).
Rolling Builds and NoJIT Daily builds of release
configurations perform PreFAST code analysis, and do not run tests.
The set of commands we run for release builds are as follows:
jenkins\buildone.cmd x64 release "/p:runcodeanalysis=true"
powershell .\Build\scripts\check_prefast_error.ps1 . CodeAnalysis.err
Note: Reproing PreFAST code analysis only requires the build step; no test step is required.
You can replace --debug
with --test-build
or omit this flag for a release build.
You can replace -d
(corresponding with --debug
in build.sh
)
with -t
(corresponding with --test-build
in build.sh
).
(Running tests on release builds is not supported.)
See Building ChakraCore for specific details on the platforms and build configurations we support and requirements to build them.
- Windows: We will primarily support Windows 10 with VS 2017. We currently support systems with Windows 7, Windows 8.1, and/or VS 2015 as Legacy configurations.
- Linux: We will support Ubuntu 16.04 LTS with Clang 3.8+.
- OS X: We will support OS X with Clang 3.8+.
For purposes of shorthand the following terms are considered more or less equivalent here:
- VS 2017 = Visual Studio 2017 = Dev15 = msbuild 15.0
- VS 2015 = Visual Studio 2015 = Dev14 = msbuild 14.0
- VS 2013 = Visual Studio 2013 = Dev12 = msbuild 12.0
Compatibility testing notes:
- All of our compatibility is either targeted at Windows 7 SP1, Windows 8.1, or Windows 10.
- Windows 10 is tested on an Windows 10 RS4 client OS.
- Windows 8.1 compatibility is tested on Windows Server 2012 R2 (which, for our purposes, is an equivalent Server OS).
- Windows 7 SP1 compatiblity is tested on Windows Server 2008 R2 (which, for our purposes, is an equivalent Server OS).
- Architecture Overview
- Building ChakraCore
- ChakraCore Code Structure
- Contributor Guidance
- Engineering Notes
- Embedding ChakraCore
- Testing ChakraCore
- Getting ChakraCore binaries
- Label Glossary
- Resources
- Roadmap / Release Notes
Want to contribute to this Wiki? Fork it and send a pull request!