Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b608d3d

Browse files
authored
Merge pull request #22050 from dotnet-maestro-bot/merge/release/2.1-to-release/2.2
[automated] Merge branch 'release/2.1' => 'release/2.2'
2 parents 24ac8c3 + fcf4ecf commit b608d3d

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

perf.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ def project = GithubProject
66
def branch = GithubBranchName
77
def projectName = Utilities.getFolderName(project)
88
def projectFolder = projectName + '/' + Utilities.getFolderName(branch)
9+
def branchFolder = Utilities.getFolderName(branch)
910

1011
def static getOSGroup(def os) {
1112
def osGroupMap = ['Ubuntu14.04':'Linux',
@@ -334,7 +335,7 @@ def static getFullPerfJobName(def project, def os, def isPR) {
334335
def runXUnitCommonArgs = "-arch ${architecture} -os ${os} -configuration ${configuration} -stabilityPrefix \"taskset 0x00000002 nice --adjustment=-10\" -generateBenchviewData \"\${WORKSPACE}/tests/scripts/Microsoft.BenchView.JSONFormat/tools\" ${uploadString} -runtype ${runType} -outputdir \"\${WORKSPACE}/bin/sandbox_logs\""
335336

336337
steps {
337-
shell("./tests/scripts/perf-prep.sh --nocorefx")
338+
shell("./tests/scripts/perf-prep.sh --nocorefx --branch=${branchFolder}")
338339
shell("./init-tools.sh")
339340
copyArtifacts(fullBuildJobName) {
340341
includePatterns("bin/**")
@@ -473,7 +474,7 @@ def static getFullThroughputJobName(def project, def os, def isPR) {
473474
def benchViewName = isPR ? 'coreclr-throughput private \$BenchviewCommitName' : 'coreclr-throughput rolling \$GIT_BRANCH_WITHOUT_ORIGIN \$GIT_COMMIT'
474475

475476
steps {
476-
shell("bash ./tests/scripts/perf-prep.sh --throughput")
477+
shell("bash ./tests/scripts/perf-prep.sh --throughput --branch=${branchFolder}")
477478
shell("./init-tools.sh")
478479
copyArtifacts(fullBuildJobName) {
479480
includePatterns("bin/Product/**")

tests/scripts/perf-prep.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function print_usage {
77
echo 'Typical command line:'
88
echo ''
99
echo 'coreclr/tests/scripts/perf-perp.sh'
10-
echo ' --branch="dotnet_coreclr"'
10+
echo ' --repo="dotnet_coreclr"'
1111
echo ''
1212
echo 'Required arguments:'
1313
echo ' --branch=<path> : branch where coreclr/corefx/test bits are copied from (e.g. dotnet_coreclr).'
@@ -21,7 +21,8 @@ readonly EXIT_CODE_SUCCESS=0 # Script ran normally.
2121
# Argument variables
2222
perfArch="x64"
2323
perfConfig="Release"
24-
perfBranch=
24+
perfBranch="master"
25+
perfRepo=
2526
throughput=0
2627
nocorefx=0
2728

@@ -32,6 +33,9 @@ do
3233
print_usage
3334
exit $EXIT_CODE_SUCCESS
3435
;;
36+
--repo=*)
37+
perfRepo=${i#*=}
38+
;;
3539
--branch=*)
3640
perfBranch=${i#*=}
3741
;;
@@ -49,7 +53,8 @@ do
4953
esac
5054
done
5155

52-
perfBranch="dotnet_coreclr"
56+
perfRepo="dotnet_coreclr"
57+
echo "repo = $perfRepo"
5358
echo "branch = $perfBranch"
5459
echo "architecture = $perfArch"
5560
echo "configuration = $perfConfig"
@@ -108,7 +113,7 @@ else
108113

109114
if [ ! -d "bin/tests/Windows_NT.$perfArch.$perfConfig" ]; then
110115
echo "Downloading tests"
111-
curl https://ci.dot.net/job/$perfBranch/job/master/job/release_windows_nt/lastSuccessfulBuild/artifact/bin/tests/tests.zip -o tests.zip
116+
curl https://ci.dot.net/job/$perfRepo/job/$perfBranch/job/release_windows_nt/lastSuccessfulBuild/artifact/bin/tests/tests.zip -o tests.zip
112117
echo "unzip tests to ./bin/tests/Windows_NT.$perfArch.$perfConfig"
113118
unzip -q -o tests.zip -d ./bin/tests/Windows_NT.$perfArch.$perfConfig || exit 0
114119
fi

0 commit comments

Comments
 (0)