Skip to content

Enable the running of performance tests: SDK:release/2.0.0 - #1969

Merged
6 commits merged into
release/2.0.0from
unknown repository
Feb 21, 2018
Merged

6 commits merged into
release/2.0.0from
unknown repository

Conversation

@ghost

@ghost ghost commented Feb 16, 2018

Copy link
Copy Markdown

Enable the running of performance tests:

  • commandLine: "build.cmd -perf"
  • optional properties: 'PerfIterations' 'PerfOutputDirectory' 'PerfCollectionType'
  • update RepoToolset version to a version that contains the performance targets
  • first draft 'perf.groovy'
  • rename: "Microsoft.NET.Perf.Tests" to "Microsoft.NET.PerformanceTests"

@DrewScoggins

…properties: 'PerfIterations' 'PerfOutputDirectory' 'PerfCollectionType'; update RepoToolset version to a version that contains the performance targets; first draft 'perf.groovy'.
@ghost ghost added the build label Feb 16, 2018
@ghost ghost self-assigned this Feb 16, 2018
@ghost
ghost requested review from a team, dsplaisted and tannergooding February 16, 2018 21:57
@ghost

ghost commented Feb 16, 2018

Copy link
Copy Markdown
Author

@dsplaisted

Comment thread perf.groovy Outdated
['Windows_NT'].each { os ->
['x64', 'x86'].each { arch ->
def architecture = arch
def jobName = "perf_perflab_${os}_${arch}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want to update the name of the job to better reflect the SDK. Something like SDK_Perf_${os}_${arch}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done...

@ghost

ghost commented Feb 20, 2018

Copy link
Copy Markdown
Author

@DrewScoggins
@tannergooding
Can I get a code review on this please.

@ghost
ghost requested a review from mmitche February 20, 2018 17:38
Comment thread perf.groovy Outdated
batchFile("if \"%GIT_BRANCH:~0,7%\" == \"origin/\" (set \"GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH:origin/=%\") else (set \"GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH%\")\n" +
"set \"BENCHVIEWNAME=${benchViewName}\"\n" +
"set \"BENCHVIEWNAME=%BENCHVIEWNAME:\"=\"\"%\"\n" +
"py \"${perfWorkingDirectory}\\Microsoft.BenchView.JSONFormat\\tools\\submission-metadata.py\" --name \"%BENCHVIEWNAME%\" --user-email \"[email protected]\" --output \"${perfWorkingDirectory}\"\n" +

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fairly certain that when you use the output argument you need to also specify the file name, not just the out directory.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done...

Comment thread perf.groovy Outdated
batchFile("\"%WORKSPACE%\\build.cmd\" -perf /p:PerfIterations=10 /p:PerfOutputDirectory=\"${perfWorkingDirectory}\" /p:PerfCollectionType=stopwatch")

//Create submission json and upload to Benchview
batchFile("for /f \"tokens=*\" %%a in ('dir /b/a-d ${perfWorkingDirectory}\\*.xml') do (py \"${perfWorkingDirectory}\\Microsoft.BenchView.JSONFormat\\tools\\measurement.py xunitscenario \"${perfWorkingDirectory}\\%%a\" --better desc --output \"${perfWorkingDirectory}\")")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure that you add --append or you will overwrite the measurements

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done...

Comment thread perf.groovy Outdated
"--architecture \"${arch}\"" +
"--machinepool \"perfsnake\"" +
"--output \"${perfWorkingDirectory}\"")
batchFile("py \"${perfWorkingDirectory}\\Microsoft.BenchView.JSONFormat\\tools\\upload.py \"${perfWorkingDirectory}\submission.json\" --container stability")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The container name should be coreclr

@ghost ghost Feb 20, 2018 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DrewScoggins
Why is the container: "coreclr"?

Comment thread perf.groovy Outdated

builder.triggerOnlyOnComment()
//Phrase is "test Windows_NT x64 perf"
builder.setCustomTriggerPhrase("(?i).*test\\W+${os}\\W+${arch}\\W+perf.*")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should include something about SDK in the trigger phrase

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done...

Comment thread build/build.ps1 Outdated
Write-Host " -rebuild Rebuild solution"
Write-Host " -deploy Deploy built VSIXes"
Write-Host " -test Run all unit tests in the solution"
Write-Host " -perf Run all performance tests in the solution"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use spaces instead of tabs for indentation

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done...

Comment thread build/build.sh Outdated
echo " --build Build solution"
echo " --rebuild Rebuild solution"
echo " --test Run all unit tests in the solution"
echo " --perf Run all performance tests in the solution"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use spaces instead of tabs

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done...

Comment thread build/build.sh Outdated
shift 1
;;
--Perf)
pack=true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be perf=true? Looks like a copy/paste error.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, done...

Comment thread perf.groovy Outdated
"py \"${perfWorkingDirectory}\\Microsoft.BenchView.JSONFormat\\tools\\build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${runType} --output \"${perfWorkingDirectory}\\build.json\"")
batchFile("py \"%WORKSPACE%\\Microsoft.BenchView.JSONFormat\\tools\\machinedata.py\" --output \"${perfWorkingDirectory}\\machinedata.json\"")

// Build solution and run the performance tests

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use spaces instead of tabs

@ghost
ghost merged commit ec2d5b1 into dotnet:release/2.0.0 Feb 21, 2018
JL03-Yue pushed a commit that referenced this pull request Mar 19, 2024
* Update dependencies from https://github.com/dotnet/runtime build 20231017.5

Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging
 From Version 8.0.0-rtm.23513.17 -> To Version 9.0.0-alpha.1.23517.5

* Update dependencies from https://github.com/dotnet/runtime build 20231023.1

Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.Logging
 From Version 8.0.0-rtm.23517.16 -> To Version 9.0.0-alpha.1.23523.1

* Update Version.Details.xml

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jan Jones <[email protected]>
Co-authored-by: Viktor Hofer <[email protected]>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants