Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasm] Add runtime-wasm-perf pipeline #72119

Merged
merged 12 commits into from
Jul 26, 2022
Merged
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