Exclude omnisharp tests from CentOS 7 CI (#12858)
* Exclude omnisharp tests from CentOS 7 CI * Update src/SourceBuild/Arcade/eng/common/templates/steps/source-build-build-tarball.yml Co-authored-by: Chris Rummel <crummel@microsoft.com> Co-authored-by: Chris Rummel <crummel@microsoft.com>
This commit is contained in:
parent
586476f7e5
commit
f14e400349
3 changed files with 18 additions and 2 deletions
|
@ -41,27 +41,32 @@ jobs:
|
||||||
_BootstrapPrep: true
|
_BootstrapPrep: true
|
||||||
_BuildArch: x64
|
_BuildArch: x64
|
||||||
_Container: ${{ parameters.centOS7Container }}
|
_Container: ${{ parameters.centOS7Container }}
|
||||||
|
_ExcludeOmniSharpTests: true
|
||||||
_RunOnline: true
|
_RunOnline: true
|
||||||
CentOS7-Offline:
|
CentOS7-Offline:
|
||||||
_BootstrapPrep: true
|
_BootstrapPrep: true
|
||||||
_BuildArch: x64
|
_BuildArch: x64
|
||||||
_Container: ${{ parameters.centOS7Container }}
|
_Container: ${{ parameters.centOS7Container }}
|
||||||
|
_ExcludeOmniSharpTests: true
|
||||||
_RunOnline: false
|
_RunOnline: false
|
||||||
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
||||||
CentOS8-Offline:
|
CentOS8-Offline:
|
||||||
_BootstrapPrep: true
|
_BootstrapPrep: true
|
||||||
_BuildArch: x64
|
_BuildArch: x64
|
||||||
_Container: ${{ parameters.centOS8Container }}
|
_Container: ${{ parameters.centOS8Container }}
|
||||||
|
_ExcludeOmniSharpTests: false
|
||||||
_RunOnline: false
|
_RunOnline: false
|
||||||
Fedora33-Offline:
|
Fedora33-Offline:
|
||||||
_BootstrapPrep: false
|
_BootstrapPrep: false
|
||||||
_BuildArch: x64
|
_BuildArch: x64
|
||||||
_Container: ${{ parameters.fedora33Container }}
|
_Container: ${{ parameters.fedora33Container }}
|
||||||
|
_ExcludeOmniSharpTests: false
|
||||||
_RunOnline: false
|
_RunOnline: false
|
||||||
Ubuntu1804-Offline:
|
Ubuntu1804-Offline:
|
||||||
_BootstrapPrep: true
|
_BootstrapPrep: true
|
||||||
_BuildArch: x64
|
_BuildArch: x64
|
||||||
_Container: ${{ parameters.ubuntu1804Container }}
|
_Container: ${{ parameters.ubuntu1804Container }}
|
||||||
|
_ExcludeOmniSharpTests: false
|
||||||
_RunOnline: false
|
_RunOnline: false
|
||||||
timeoutInMinutes: 300
|
timeoutInMinutes: 300
|
||||||
workspace:
|
workspace:
|
||||||
|
@ -74,6 +79,7 @@ jobs:
|
||||||
parameters:
|
parameters:
|
||||||
buildArch: $(_BuildArch)
|
buildArch: $(_BuildArch)
|
||||||
container: $(_Container)
|
container: $(_Container)
|
||||||
|
excludeOmniSharpTests: $(_ExcludeOmniSharpTests)
|
||||||
prepScript: |
|
prepScript: |
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,9 @@ parameters:
|
||||||
# Container image to build within
|
# Container image to build within
|
||||||
container: null
|
container: null
|
||||||
|
|
||||||
|
# Skip running the OmniSharp smoke-tests
|
||||||
|
excludeOmniSharpTests: false
|
||||||
|
|
||||||
# Script logic to prep the tarball for building
|
# Script logic to prep the tarball for building
|
||||||
prepScript: null
|
prepScript: null
|
||||||
|
|
||||||
|
@ -63,7 +66,7 @@ steps:
|
||||||
- script: |
|
- script: |
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
docker run --rm -v ${{ parameters.tarballDir }}:/tarball -w /tarball ${{ parameters.container }} ./build.sh --run-smoke-test ${{ parameters.additionalBuildArgs }}
|
docker run --rm -v ${{ parameters.tarballDir }}:/tarball -w /tarball -e excludeOmniSharpTests=${{ parameters.excludeOmniSharpTests}} ${{ parameters.container }} ./build.sh --run-smoke-test ${{ parameters.additionalBuildArgs }}
|
||||||
displayName: Run Tests
|
displayName: Run Tests
|
||||||
|
|
||||||
# Don't use CopyFiles@2 as it encounters permissions issues because it indexes all files in the source directory graph.
|
# Don't use CopyFiles@2 as it encounters permissions issues because it indexes all files in the source directory graph.
|
||||||
|
|
|
@ -52,6 +52,7 @@ excludeWebNoHttpsTests=false
|
||||||
excludeWebHttpsTests=false
|
excludeWebHttpsTests=false
|
||||||
excludeLocalTests=false
|
excludeLocalTests=false
|
||||||
excludeOnlineTests=false
|
excludeOnlineTests=false
|
||||||
|
excludeOmniSharpTests=${excludeOmniSharpTests:-false}
|
||||||
devCertsVersion="$DEV_CERTS_VERSION_DEFAULT"
|
devCertsVersion="$DEV_CERTS_VERSION_DEFAULT"
|
||||||
testingDir="$SCRIPT_ROOT/testing-smoke"
|
testingDir="$SCRIPT_ROOT/testing-smoke"
|
||||||
cliDir="$testingDir/builtCli"
|
cliDir="$testingDir/builtCli"
|
||||||
|
@ -81,6 +82,7 @@ function usage() {
|
||||||
echo " --excludeWebHttpsTests don't run web project tests with https using dotnet-dev-certs"
|
echo " --excludeWebHttpsTests don't run web project tests with https using dotnet-dev-certs"
|
||||||
echo " --excludeLocalTests exclude tests that use local sources for nuget packages"
|
echo " --excludeLocalTests exclude tests that use local sources for nuget packages"
|
||||||
echo " --excludeOnlineTests exclude test that use online sources for nuget packages"
|
echo " --excludeOnlineTests exclude test that use online sources for nuget packages"
|
||||||
|
echo " --excludeOmniSharpTests don't run the OmniSharp tests"
|
||||||
echo " --devCertsVersion <version> use dotnet-dev-certs <version> instead of default $DEV_CERTS_VERSION_DEFAULT"
|
echo " --devCertsVersion <version> use dotnet-dev-certs <version> instead of default $DEV_CERTS_VERSION_DEFAULT"
|
||||||
echo " --prodConBlobFeedUrl <url> override the prodcon blob feed specified in ProdConFeed.txt, removing it if empty"
|
echo " --prodConBlobFeedUrl <url> override the prodcon blob feed specified in ProdConFeed.txt, removing it if empty"
|
||||||
echo " --archiveRestoredPackages capture all restored packages to $archivedPackagesDir"
|
echo " --archiveRestoredPackages capture all restored packages to $archivedPackagesDir"
|
||||||
|
@ -139,6 +141,9 @@ while :; do
|
||||||
--excludeonlinetests)
|
--excludeonlinetests)
|
||||||
excludeOnlineTests=true
|
excludeOnlineTests=true
|
||||||
;;
|
;;
|
||||||
|
--excludeomnisharptests)
|
||||||
|
excludeOmniSharpTests=true
|
||||||
|
;;
|
||||||
--devcertsversion)
|
--devcertsversion)
|
||||||
shift
|
shift
|
||||||
devCertsVersion="$1"
|
devCertsVersion="$1"
|
||||||
|
@ -772,6 +777,8 @@ fi
|
||||||
|
|
||||||
runXmlDocTests
|
runXmlDocTests
|
||||||
|
|
||||||
runOmniSharpTests
|
if [ "$excludeOmniSharpTests" == "false" ]; then
|
||||||
|
runOmniSharpTests
|
||||||
|
fi
|
||||||
|
|
||||||
echo "ALL TESTS PASSED!"
|
echo "ALL TESTS PASSED!"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue