Skip to content

Commit

Permalink
[wasm] Add runtime-wasm-perf pipeline (#72119)
Browse files Browse the repository at this point in the history
- This adds a new `runtime-wasm-perf` pipeline, which can be run manually with `/azp run runtime-wasm-perf`
- Essentially, splits the perf jobs into `perf-wasm-jobs.yml`, and `perf-non-wasm-jobs.yml`
- It does not change the existing perf pipeline
- this will run all the wasm benchmarks, but it doesn't support comparing results yet

- A follow up PR will add perf jobs to the runtime pipelines, for sanity check, and won't run the full set of benchmarks.
  • Loading branch information
radical authored Jul 26, 2022
1 parent 0be6c64 commit aa5ff31
Show file tree
Hide file tree
Showing 14 changed files with 752 additions and 638 deletions.
12 changes: 8 additions & 4 deletions eng/pipelines/common/download-specific-artifact-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ parameters:
artifactFileName: ''
artifactName: ''
displayName: ''
buildId: ''
branchName: ''
pipeline: ''
project: 'public' # 'internal' or 'public'

steps:
# Download artifact
- task: DownloadBuildArtifacts@0
displayName: 'Download specific ${{ parameters.displayName }}'
inputs:
buildType: specific
project: 'public' # 'internal' or 'public'
pipeline: 'Antigen'
project: ${{ parameters.project }}
pipeline: ${{ parameters.pipeline }}
buildVersionToDownload: specific
branchName: 'refs/pull/59376/head'
buildId: '1387378'
branchName: ${{ parameters.branchName }}
buildId: ${{ parameters.buildId }}
downloadType: single
downloadPath: '$(Build.SourcesDirectory)/__download__'
artifactName: '${{ parameters.artifactName }}'
Expand Down
15 changes: 15 additions & 0 deletions eng/pipelines/common/perf-variables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
variables:
- name: _wasmCollectHelixLogsScript
value: >-
test "$_commandExitCode" -eq 0 || (
test -d "$HELIX_WORKITEM_UPLOAD_ROOT" && (
export _PERF_DIR=$HELIX_WORKITEM_ROOT/performance;
mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/obj;
mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/bin;
mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/BenchmarkDotNet.Autogenerated/obj;
mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/for-running;
find $_PERF_DIR -name '*.binlog' | xargs -I{} cp {} $HELIX_WORKITEM_UPLOAD_ROOT/log;
cp -R $_PERF_DIR/artifacts/obj/MicroBenchmarks $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/obj;
cp -R $_PERF_DIR/artifacts/bin/MicroBenchmarks $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/bin;
cp -R $_PERF_DIR/artifacts/obj/BenchmarkDotNet.Autogenerated $HELIX_WORKITEM_UPLOAD_ROOT/log/BenchmarkDotNet.Autogenerated/obj;
cp -R $_PERF_DIR/artifacts/bin/for-running $HELIX_WORKITEM_UPLOAD_ROOT/log/for-running))
2 changes: 2 additions & 0 deletions eng/pipelines/common/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ variables:
value: Release
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
value: Debug

- template: /eng/pipelines/common/perf-variables.yml
Loading

0 comments on commit aa5ff31

Please sign in to comment.