Skip to content

Commit 3ad23f3

Browse files
committed
Get TargetRid from MSBuild: fix tarball smoke-test
1 parent 6ebf12a commit 3ad23f3

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.vsts.pipelines/jobs/ci-linux.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,9 @@ jobs:
234234
- script: |
235235
set -ex
236236
df -h
237-
$(docker.run) $(docker.tb.map) $(docker.tb.work) $(imageName) "$(tarballName)/smoke-test.sh" \
238-
--minimal \
239-
--projectOutput \
240-
--configuration $(sb.configuration)
237+
$(docker.run) $(docker.tb.map) $(docker.tb.work) $(imageName) "$(tarballName)/build.sh" \
238+
--run-smoke-test \
239+
/p:Configuration=$(sb.configuration)
241240
du -h $(rootDirectory) | sort -h | tail -n 50
242241
displayName: Run smoke-test in tarball
243242
condition: and(succeeded(), eq(variables['sb.tarball'], true))

.vsts.pipelines/steps/run-bootstrap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ steps:
195195
df -h
196196
$(docker.run) $(docker.bst.map) $(docker.bst.work) $(imageName) bash -c "
197197
pushd /bst/bootstrap_dir/final-sdk
198-
./smoke-test.sh --prodConBlobFeedUrl ''"
198+
./build.sh --run-smoke-test"
199199
displayName: Smoke-test final SDK
200200
condition: always()
201201

support/tarball/build.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ SCRIPT_ROOT="$(cd -P "$( dirname "$0" )" && pwd)"
1717
MSBUILD_ARGUMENTS=("/p:OfflineBuild=true" "/flp:v=detailed")
1818
CUSTOM_REF_PACKAGES_DIR=''
1919
CUSTOM_PREVIOUSLY_BUILT_PACKAGES_DIR=''
20+
alternateTarget=false
2021
CUSTOM_SDK_DIR=''
2122

2223
while :; do
@@ -26,6 +27,10 @@ while :; do
2627

2728
lowerI="$(echo $1 | awk '{print tolower($0)}')"
2829
case $lowerI in
30+
--run-smoke-test)
31+
alternateTarget=true
32+
MSBUILD_ARGUMENTS+=( "/t:RunSmokeTest" )
33+
;;
2934
--with-ref-packages)
3035
CUSTOM_REF_PACKAGES_DIR="$(cd -P "$2" && pwd)"
3136
if [ ! -d "$CUSTOM_REF_PACKAGES_DIR" ]; then
@@ -142,7 +147,11 @@ export DOTNET_CLI_TELEMETRY_OPTOUT=1
142147
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
143148
export NUGET_PACKAGES=$restoredPackagesDir/
144149

145-
LogDateStamp=$(date +"%m%d%H%M%S")
146-
$CLI_ROOT/dotnet $CLI_ROOT/sdk/$SDK_VERSION/MSBuild.dll /bl:$SCRIPT_ROOT/artifacts/log/Debug/BuildXPlatTasks_$LogDateStamp.binlog $SCRIPT_ROOT/tools-local/init-build.proj /t:PrepareOfflineLocalTools ${MSBUILD_ARGUMENTS[@]} "$@"
150+
if [ "$alternateTarget" == "true" ]; then
151+
"$CLI_ROOT/dotnet" $CLI_ROOT/sdk/$SDK_VERSION/MSBuild.dll "$SCRIPT_ROOT/build.proj" /bl:source-build-test.binlog /clp:v=m ${MSBUILD_ARGUMENTS[@]} "$@"
152+
else
153+
LogDateStamp=$(date +"%m%d%H%M%S")
154+
$CLI_ROOT/dotnet $CLI_ROOT/sdk/$SDK_VERSION/MSBuild.dll /bl:$SCRIPT_ROOT/artifacts/log/Debug/BuildXPlatTasks_$LogDateStamp.binlog $SCRIPT_ROOT/tools-local/init-build.proj /t:PrepareOfflineLocalTools ${MSBUILD_ARGUMENTS[@]} "$@"
147155

148-
$CLI_ROOT/dotnet $CLI_ROOT/sdk/$SDK_VERSION/MSBuild.dll /bl:$SCRIPT_ROOT/artifacts/log/Debug/Build_$LogDateStamp.binlog $SCRIPT_ROOT/build.proj ${MSBUILD_ARGUMENTS[@]} "$@"
156+
$CLI_ROOT/dotnet $CLI_ROOT/sdk/$SDK_VERSION/MSBuild.dll /bl:$SCRIPT_ROOT/artifacts/log/Debug/Build_$LogDateStamp.binlog $SCRIPT_ROOT/build.proj ${MSBUILD_ARGUMENTS[@]} "$@"
157+
fi

0 commit comments

Comments
 (0)