forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.perf-test.yml
95 lines (78 loc) · 2.7 KB
/
azure-pipelines.perf-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
pr:
- master
- website-content
trigger: none
variables:
- group: fabric-variables
- template: .devops/templates/variables.yml
pool: '1ES-Host-Ubuntu'
workspace:
clean: all
steps:
- template: .devops/templates/tools.yml
- task: Bash@3
inputs:
filePath: yarn-ci.sh
displayName: yarn
# @fluentui/perf-test-northstar needs build and bundle steps
- script: |
yarn lage build --to @fluentui/perf-test-northstar --to perf-test --verbose --no-cache
displayName: build to perf-test
# Fluent perf-test must run before Fabric perf-test until they are consolidated.
# @fluentui/perf-test-northstar Baseline
- script: |
yarn perf:test:base
condition: eq(variables.isPR, false)
workingDirectory: packages/fluentui/perf-test-northstar
displayName: Perf Test Base (Fluent)
# @fluentui/perf-test-northstar PR
- script: |
yarn perf:test
condition: eq(variables.isPR, true)
workingDirectory: packages/fluentui/perf-test-northstar
displayName: Perf Test (Fluent)
# Fabric: perf-test will build, bundle, and run-perftest
- script: |
yarn just perf-test
workingDirectory: apps/perf-test
displayName: Perf Test
- task: AzureUpload@2
displayName: Upload Perf Test Result to PR deploy site (Fluent N*)
inputs:
SourcePath: 'packages/fluentui/perf-test-northstar/dist'
azureSubscription: $(azureSubscription)
storage: $(azureStorage)
ContainerName: '$web'
BlobPrefix: '$(deployBasePath)/perf-test-northstar'
- task: AzureUpload@2
displayName: Upload Perf Test Result to PR deploy site (Fluent)
inputs:
SourcePath: 'apps/perf-test/dist'
azureSubscription: $(azureSubscription)
storage: $(azureStorage)
ContainerName: '$web'
BlobPrefix: '$(deployBasePath)/perf-test'
- task: GithubPRComment@0
displayName: 'Post Perf Results to Github Pull Request'
inputs:
githubOwner: microsoft
githubRepo: 'fluentui'
blobFilePath: '$(Build.SourcesDirectory)/$(PerfCommentFilePath)'
status: '$(PerfCommentStatus)'
uniqueId: 'perfComment9423'
- script: |
yarn stats:build
condition: eq(variables.isPR, false)
displayName: Bundle Statistics (master only)
- script: |
yarn perf
condition: eq(variables.isPR, false)
displayName: Performance Tests (master only)
# HEADS UP: also see tag-version-prefix in fluentui-publish.js
- script: |
yarn stats:save --tag=`git tag --points-at HEAD | grep ^@fluentui/react-northstar_v | grep -o 'northstar_v.*'`
condition: eq(variables.isPR, false)
displayName: Save Statistics to DB (master only)
env:
STATS_URI: $(STATS_URI)
- template: .devops/templates/cleanup.yml