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

1JS VRT tooll add pipeline to generate V8 screenshots #25643

Merged
merged 106 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from 103 commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
bbb79fa
Update azure-pipelines.yml for Azure Pipelines
sunilsurana Oct 6, 2022
f45d0c3
storywright tests
sunilsurana Oct 7, 2022
4928f2d
Merge pull request #1 from sunilsurana/susurana/storywright
sunilsurana Oct 7, 2022
2c105b7
Update azure-pipelines.yml for Azure Pipelines
sunilsurana Oct 7, 2022
05869e7
Update azure-pipelines.yml for Azure Pipelines
sunilsurana Oct 7, 2022
54dd43e
Update azure-pipelines.yml for Azure Pipelines
sunilsurana Oct 9, 2022
4df01bc
Update azure-pipelines.yml for Azure Pipelines
sunilsurana Oct 9, 2022
f41bd23
Update azure-pipelines.yml for Azure Pipelines
sunilsurana Oct 9, 2022
811f617
Set up CI with Azure Pipelines
sunilsurana Oct 11, 2022
0ce7f19
update
sunilsurana Oct 12, 2022
a610b33
update
sunilsurana Oct 12, 2022
4fd95a7
Merge branch 'master' into susurana/storywright
sunilsurana Oct 12, 2022
b50a509
update
sunilsurana Oct 12, 2022
d88034f
update
sunilsurana Oct 12, 2022
314dbd8
update
sunilsurana Oct 12, 2022
7ce33e7
update
sunilsurana Oct 12, 2022
a72b5b2
update
sunilsurana Oct 12, 2022
d14b3a8
update
sunilsurana Oct 12, 2022
f39bbf7
update
sunilsurana Oct 12, 2022
68d799b
update
sunilsurana Oct 12, 2022
7469281
package
sunilsurana Oct 12, 2022
740786d
update
sunilsurana Oct 12, 2022
b03d93d
Update baseline.yml for Azure Pipelines
sunilsurana Oct 18, 2022
dc5e39b
Update README.md
sunilsurana Oct 18, 2022
5063dfa
Merge pull request #9 from sunilsurana/tmp3
sunilsurana Oct 18, 2022
db1b63d
Update README.md
sunilsurana Oct 18, 2022
87a6f07
Update README.md
sunilsurana Oct 18, 2022
a601cae
Update README.md
sunilsurana Oct 18, 2022
3604361
Merge pull request #10 from sunilsurana/aa1
sunilsurana Oct 18, 2022
97a7cc1
Merge pull request #12 from sunilsurana/aa2
sunilsurana Oct 18, 2022
392a7ca
Merge pull request #11 from sunilsurana/aa3
sunilsurana Oct 18, 2022
a6d649b
Update baseline.yml for Azure Pipelines
sunilsurana Oct 18, 2022
566f5ed
Update baseline.yml for Azure Pipelines
sunilsurana Oct 18, 2022
34f60d6
Update baseline.yml for Azure Pipelines
sunilsurana Oct 18, 2022
ebf5ca1
update ubuntu
sunilsurana Oct 18, 2022
2ddad41
Update baseline.yml for Azure Pipelines
sunilsurana Oct 18, 2022
ba22f38
Update baseline.yml for Azure Pipelines
sunilsurana Oct 18, 2022
d345137
Update baseline.yml for Azure Pipelines
sunilsurana Oct 18, 2022
a27c089
Update main.js
sunilsurana Oct 18, 2022
c2ab7b1
Merge pull request #14 from sunilsurana/a1
sunilsurana Oct 18, 2022
ccfc0ad
Update baseline.yml for Azure Pipelines
sunilsurana Oct 18, 2022
80a9d6e
Merge remote-tracking branch 'origin' into susurana/storywright
Oct 21, 2022
7e7b95b
Merge pull request #5 from sunilsurana/susurana/storywright
sunilsurana Oct 21, 2022
f2729f0
update
Oct 21, 2022
553564c
update
Oct 21, 2022
dc3214f
Update devcontainer.json
sunilsurana Oct 24, 2022
6328e28
Merge remote-tracking branch 'upstream/master'
sunilsurana Oct 26, 2022
b8581fd
update yarn lock
sunilsurana Oct 26, 2022
ab55b39
update
sunilsurana Oct 26, 2022
d9a6111
pipeline changes
Oct 27, 2022
e938790
update pipeline names (#15)
sunilsurana Oct 27, 2022
62d84e3
conflict resolved
Oct 27, 2022
33247e5
yarn lock modified
Oct 27, 2022
001885b
sync changes (#17)
sunilsurana Oct 27, 2022
218c55a
added comments
Oct 27, 2022
58df489
master merge
Oct 27, 2022
112acc3
renamed foldername
Oct 27, 2022
d82c3ff
commented build step
Oct 27, 2022
dc87c95
added static last known good build
Oct 27, 2022
a356079
removed step
Oct 27, 2022
62fb2ac
Merge pull request #16 from sunilsurana/user/pshrivastav/vrscreenshot…
piyush-2712 Oct 27, 2022
c5ae72e
dynamic lkgCI build
Oct 27, 2022
5407ff4
Merge pull request #19 from sunilsurana/user/pshrivastav/vrscreenshot…
piyush-2712 Oct 27, 2022
7eecb3b
Update azure-pipelines.vrt-baseline.yml for Azure Pipelines
sunilsurana Oct 27, 2022
87fd129
test
Oct 27, 2022
c90baf7
yml update
Oct 27, 2022
55900e4
test commit
Oct 28, 2022
20732df
test
Oct 31, 2022
2238679
test
Oct 31, 2022
525c2af
test
Oct 31, 2022
4d1d3c0
test
Oct 31, 2022
13c886b
test1
Oct 31, 2022
eafc694
test
Nov 1, 2022
6d0710b
test
Nov 1, 2022
4446e90
test
Nov 1, 2022
eb46df0
testing test branch
Nov 1, 2022
2c2442b
test
Nov 1, 2022
a113259
test
Nov 1, 2022
4bb91ab
pat token change
Nov 1, 2022
cac4860
test commit
Nov 1, 2022
16b044e
test commit
Nov 1, 2022
2eb737b
removed unwanted changes
Nov 2, 2022
255c4ea
added baseline variable
Nov 2, 2022
f88b530
removed unwanted code
Nov 2, 2022
232800d
Merge pull request #26 from sunilsurana/user/pshrivastav/testbranch-v4
piyush-2712 Nov 2, 2022
f999d1c
Merge remote-tracking branch 'upstream/master'
sunilsurana Nov 2, 2022
42ded9e
update to sync with master
sunilsurana Nov 2, 2022
4aa8ccc
remove unwanted files
sunilsurana Nov 2, 2022
ecb1c22
yml, package.json change update
Nov 3, 2022
2d36782
Merge pull request #27 from sunilsurana/user/pshrivastav/octokit-vers…
piyush-2712 Nov 3, 2022
1db4120
Merge remote-tracking branch 'upstream/master'
sunilsurana Nov 7, 2022
5e0639e
remove whitespace
sunilsurana Nov 7, 2022
c997f32
remove whitespace
sunilsurana Nov 7, 2022
6f46de0
update
sunilsurana Nov 7, 2022
b7c3f8f
remove duplicate
sunilsurana Nov 7, 2022
d47412a
updatE
sunilsurana Nov 7, 2022
50edb97
change package order
sunilsurana Nov 8, 2022
aed0db1
update to recursively replace screener tag
sunilsurana Nov 10, 2022
99683c3
Mastercopy4 (#31)
sunilsurana Nov 12, 2022
eb44f82
update
sunilsurana Nov 12, 2022
debc97e
pull from master
sunilsurana Nov 12, 2022
639c7d8
merge from master
sunilsurana Nov 12, 2022
6feff10
update storywright version (#33)
sunilsurana Nov 12, 2022
1db3cfb
code review comments
sunilsurana Nov 14, 2022
f8a43c9
pr review comment
sunilsurana Nov 14, 2022
7af6ad0
code review comments
sunilsurana Nov 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .devops/templates/runpublishvrscreenshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
parameters:
sunilsurana marked this conversation as resolved.
Show resolved Hide resolved
- name: fluentVersion
type: string
default: v8
- name: storyPackageName
TristanWatanabe marked this conversation as resolved.
Show resolved Hide resolved
type: string
default: '@fluentui/vr-tests'
- name: storyPackagePath
TristanWatanabe marked this conversation as resolved.
Show resolved Hide resolved
type: string
default: 'apps/vr-tests'
- name: shouldbuildstorybookaddon
TristanWatanabe marked this conversation as resolved.
Show resolved Hide resolved
type: boolean
default: false

steps:
- task: Bash@3
inputs:
filePath: yarn-ci.sh
displayName: yarn (install packages)

- script: |
yarn workspace ${{ parameters.storyPackageName }} convert
displayName: Convert screener component to storywright

- ${{ if eq(parameters.shouldbuildstorybookaddon, 'true') }}:
- script: |
yarn build --to @fluentui/react-storybook-addon
displayName: Build react-storybook-addon

- script: |
yarn workspace ${{ parameters.storyPackageName }} screener:build
displayName: Build VR tests components package

- script: |
yarn workspace ${{ parameters.storyPackageName }} test:component --verbose
displayName: 'Run VR tests'

- script: |
mkdir -p screenshots
cp -rf ${{ parameters.storyPackagePath }}/dist/screenshots/*.png screenshots/
displayName: Collate Artifacts

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'screenshots'
ArtifactName: 'vrscreenshot${{ parameters.fluentVersion }}'
publishLocation: 'Container'
26 changes: 22 additions & 4 deletions apps/vr-tests-react-components/convertStoriesToStoryWright.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
#!/usr/bin/env bash
set -x
find ./src/stories/ -type f | xargs sed -i "s/import.*Screener.*screener'/import { StoryWright, Steps } from 'storywright'/g"
find ./src/stories/ -type f | xargs sed -i "s/Screener.Steps/Steps/g"
find ./src/stories/ -type f | xargs sed -i "s/Screener/StoryWright/g"

find ./src -type f |while read fname; do
impor=""
if grep -q "screener-storybook" $fname; then
echo "$fname"
if grep -q "<Screener" $fname; then
impor="${impor}StoryWright, "
fi
if grep -q "Steps(" $fname; then
impor="${impor}Steps, "
fi
if grep "Step " $fname; then
impor="${impor}Step , "
fi
fi
impor="${impor%??}"
sed -i "s/import.*screener'/import { ${impor} } from 'storywright'/g" $fname
done

find ./src -type f | xargs sed -i "s/Screener.Steps/Steps/g"
find ./src -type f | xargs sed -i "s/<Screener/<StoryWright/g"
find ./src -type f | xargs sed -i "s/Screener>/StoryWright>/g"
2 changes: 1 addition & 1 deletion apps/vr-tests-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/scripts": "^1.0.0",
"storywright": "0.0.23-beta.6"
"storywright": "0.0.26-beta.1"
},
"dependencies": {
"@fluentui/react-accordion": "^9.0.11",
Expand Down
26 changes: 26 additions & 0 deletions apps/vr-tests/convertStoriesToStoryWright.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

#!/usr/bin/env bash

find ./src -type f |while read fname; do
impor=""
if grep -q "screener-storybook" $fname; then
echo "$fname"
if grep -q "<Screener" $fname; then
impor="${impor}StoryWright, "
fi
if grep -q "Steps(" $fname; then
impor="${impor}Steps, "
fi
if grep "Step " $fname; then
impor="${impor}Step , "
fi
fi
impor="${impor%??}"
sed -i "s/import.*screener'/import { ${impor} } from 'storywright'/g" $fname
done

find ./src -type f | xargs sed -i "s/Screener.Steps/Steps/g"
find ./src -type f | xargs sed -i "s/<Screener/<StoryWright/g"
find ./src -type f | xargs sed -i "s/Screener>/StoryWright>/g"

8 changes: 6 additions & 2 deletions apps/vr-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@
"scripts": {
"build": "just-scripts build",
"clean": "just-scripts clean",
"test:component": "storywright --browsers chromium --url dist/storybook --destpath dist/screenshots --waitTimeScreenshot 500 --concurrency 4 --headless true",
"code-style": "just-scripts code-style",
"convert": "bash convertStoriesToStoryWright.sh",
"just": "just-scripts",
"lint": "just-scripts lint",
"screener:build": "cross-env NODE_OPTIONS=--max-old-space-size=3072 just-scripts storybook:build",
"screener": "just-scripts screener",
"start": "just-scripts dev:storybook"
"start": "just-scripts dev:storybook",
"type-check": "tsc"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*"
"@fluentui/eslint-plugin": "*",
"storywright": "0.0.26-beta.1"
},
"dependencies": {
"@fluentui/example-data": "^8.4.3",
Expand Down
62 changes: 33 additions & 29 deletions azure-pipelines.vrt-baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,50 +15,54 @@ variables:
pool: '1ES-Host-Ubuntu'

jobs:
- job: VRToolUpdateBaseline
- job: VRToolUpdateBaseline_V9
workspace:
clean: all
steps:
- template: .devops/templates/tools.yml

- task: Bash@3
inputs:
filePath: yarn-ci.sh
displayName: yarn (install packages)
- template: .devops/templates/runpublishvrscreenshot.yml
parameters:
fluentVersion: v9
storyPackageName: '@fluentui/vr-tests-react-components'
storyPackagePath: 'apps/vr-tests-react-components'
shouldbuildstorybookaddon: true

- script: |
yarn workspace @fluentui/vr-tests-react-components convert
displayName: Convert screener component to storywright

- script: |
yarn workspace @fluentui/vr-tests-react-components screener:build
displayName: Build VR tests components package

- script: |
yarn lage test:component --verbose
displayName: 'Run VR tests'

- script: |
mkdir -p screenshots
cp -rf apps/vr-tests-react-components/dist/screenshots/*.png screenshots/
displayName: Collate Artifacts
- bash: node node_modules/vrscreenshotdiff/lib/index.js release --clientType "fluentuiv9" --buildId $(Build.BuildId)
Copy link
Member

Choose a reason for hiding this comment

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

Just for context, can you explain what this step is doing? And are all the secrets being referenced from the fluent-vr-tool Azure resource group?

Copy link
Member Author

@sunilsurana sunilsurana Nov 14, 2022

Choose a reason for hiding this comment

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

This step is responsible to
For baseline pipeline

  1. Upload the screenshots to azure blob storage
  2. Add screenshot metadata in cosmos database like buildid, pipelineid, screenshotpath in blob storage.

For pr pipeline

  1. Download baseline screenshots
  2. Diff baseline screenshot with pr screenshots
  3. upload diffed screenshots to blob storage
  4. Add details about diffing result in cosmos database
  5. Post comment on PR

Currently the secret are stored as secret variables in pipeline. The resource at the moment are pointing to our tests resurce group. As soon as piyush is back from sick leave we will point to resources in fluent-vr-tool resource group

displayName: 'Run Screenshotdiff update baseline'
env:
API_URL: $(System.CollectionUri)
API_TOKEN: $(TEST_PAT)
API_REPOSITORY: $(Build.Repository.Name)
API_PROJECT: $(System.TeamProject)
SCREENSHOT_ARTIFACT_FOLDER: vrscreenshotv9
GITHUB_API_TOKEN: $(GITHUB_TEST_PAT)
STORAGE_ACCOUNT_FLUENTUI: $(STORAGE-ACCOUNT-FLUENTUI)
STORAGE_KEY_FLUENTUI: $(STORAGE-KEY-BLOB-FLUENTUI)
BLOB_CONNECTION_STRING: $(BLOB-CONNECTION-STRING)
VR_APPROVAL_CLIENT_SECRET: $(VR-APPROVAL-CLIENT-SECRET)

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'screenshots'
ArtifactName: 'vrscreenshot'
publishLocation: 'Container'
- job: VRToolUpdateBaseline_V8
workspace:
clean: all
steps:
- template: .devops/templates/tools.yml

# - bash: cd packages/screenshotdiff && yarn build
# displayName: 'Build'
- template: .devops/templates/runpublishvrscreenshot.yml
parameters:
fluentVersion: v8
storyPackageName: '@fluentui/vr-tests'
storyPackagePath: 'apps/vr-tests'
shouldbuildstorybookaddon: false

- bash: node node_modules/vrscreenshotdiff/lib/index.js release --clientType "fluentui" --buildId $(Build.BuildId)
- bash: node node_modules/vrscreenshotdiff/lib/index.js release --clientType "fluentuiv8" --buildId $(Build.BuildId)
displayName: 'Run Screenshotdiff update baseline'
env:
API_URL: $(System.CollectionUri)
API_TOKEN: $(TEST_PAT)
API_REPOSITORY: $(Build.Repository.Name)
API_PROJECT: $(System.TeamProject)
SCREENSHOT_ARTIFACT_FOLDER: vrscreenshotv8
GITHUB_API_TOKEN: $(GITHUB_TEST_PAT)
STORAGE_ACCOUNT_FLUENTUI: $(STORAGE-ACCOUNT-FLUENTUI)
STORAGE_KEY_FLUENTUI: $(STORAGE-KEY-BLOB-FLUENTUI)
Expand Down
108 changes: 82 additions & 26 deletions azure-pipelines.vrt-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ variables:
pool: '1ES-Host-Ubuntu'

jobs:
- job: TestVRTool
- job: VisualRegressionTest_V9
variables:
pipelineId: '211'
Copy link
Member

Choose a reason for hiding this comment

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

Is this an arbitrary pipelineId or does it have some connection to an actual pipeline somewhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes this is arbitrary pipelineId. It's an id to identify particular job. Earlier since there was only job we just used the default pipelineid. But since now we have 2 jobs for V8,V9 in same pipeline we created two id's. As long as every job has unique id it should be fine

pipelineName: 'fluent-ui VRT Pipeline v9'

workspace:
clean: all
steps:
Expand All @@ -38,9 +42,9 @@ jobs:
"blockingPipeline":{
},
"nonBlockingPipeline":{
"202": {
"$(pipelineId)": {
"pipelineStatus": "PENDING",
"pipelineName": "fluent-ui VRT Pipeline"
"pipelineName": "$(pipelineName)"
}
},
"postPolicy": '${postPolicy}',
Expand All @@ -50,33 +54,84 @@ jobs:
env:
VR_APPROVAL_CLIENT_SECRET: $(VR-APPROVAL-CLIENT-SECRET)

- task: Bash@3
inputs:
filePath: yarn-ci.sh
displayName: yarn (install packages)
- template: .devops/templates/runpublishvrscreenshot.yml
parameters:
fluentVersion: v9
storyPackageName: '@fluentui/vr-tests-react-components'
storyPackagePath: 'apps/vr-tests-react-components'
shouldbuildstorybookaddon: true

- script: |
yarn workspace @fluentui/vr-tests-react-components convert
displayName: Convert screener component to storywright
- powershell: |
$url = "https://dev.azure.com/uifabric/fabricpublic/_apis/build/builds?definitions=$env:BASELINE_PIPELINE_ID&statusFilter=completed&resultFilter=succeeded&queryOrder=finishTimeDescending&`$top=1"
Write-Host "Looking up latest official build via url: $url"
$pipelineBuildInfo = Invoke-RestMethod -Uri $url -Headers @{Authorization = "Bearer $env:SYSTEM_ACCESSTOKEN"}
Write-Host "Response: $pipelineBuildInfo"
[int]$latestBuildId = $pipelineBuildInfo.value.id
Write-Host "Setting variable LatestBuildId=$latestBuildId"
Write-Host "##vso[task.setvariable variable=LatestBuildId]$latestBuildId"
name: GetLatestGreenCIBuild
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
BASELINE_PIPELINE_ID: $(BASELINE-PIPELINE-ID)

- script: |
yarn workspace @fluentui/vr-tests-react-components screener:build
displayName: Build vr tests components package
- bash: node node_modules/vrscreenshotdiff/lib/index.js pr --clientType "fluentuiv9" --buildId $(Build.BuildId) --lkgCIBuild $(LatestBuildId) --pipelineId $(pipelineId) --pipelineName '$(pipelineName)'
displayName: 'Run fluentui-screenshotdiff'
env:
API_URL: $(System.CollectionUri)
API_TOKEN: $(TEST_PAT)
API_REPOSITORY: $(Build.Repository.Name)
API_PROJECT: $(System.TeamProject)
SCREENSHOT_ARTIFACT_FOLDER: vrscreenshotv9
GITHUB_API_TOKEN: $(githubRepoStatusPAT)
STORAGE_ACCOUNT_FLUENTUI: $(STORAGE-ACCOUNT-FLUENTUI)
STORAGE_KEY_FLUENTUI: $(STORAGE-KEY-BLOB-FLUENTUI)
BLOB_CONNECTION_STRING: $(BLOB-CONNECTION-STRING)
VR_APPROVAL_CLIENT_SECRET: $(VR-APPROVAL-CLIENT-SECRET)

- script: |
yarn lage test:component --verbose
displayName: 'Run VR tests'
- job: VisualRegressionTest_V8
variables:
pipelineId: '212'
pipelineName: 'fluent-ui VRT Pipeline v8'
workspace:
clean: all
steps:
- template: .devops/templates/tools.yml

- script: |
mkdir -p screenshots
cp -rf apps/vr-tests-react-components/dist/screenshots/*.png screenshots/
displayName: Collate Artifacts
- bash: |
postPolicy="true";
response=$(curl --request POST 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/token' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'grant_type=client_credentials' --data-urlencode 'client_id=288a69b6-760d-4c1f-ad6d-0183b5e5740f' --data-urlencode 'client_secret='${VR_APPROVAL_CLIENT_SECRET} )
parsedResponse=${response/*"access_token"/}
token=${parsedResponse:3:${#parsedResponse}-5}
curl --location --request POST 'https://vrt-fluentapp.azurewebsites.net/api/policyState' \
--header 'Authorization: Bearer '"$token" \
--header 'Content-Type: application/json' \
--data-raw ' {
"organization": "uifabric",
"projectName": "fabricpublic",
"prId": $(System.PullRequest.PullRequestNumber),
"commitId": "$(Build.SourceVersion)",
"generate":true,
"blockingPipeline":{
},
"nonBlockingPipeline":{
"$(pipelineId)": {
"pipelineStatus": "PENDING",
"pipelineName": "$(pipelineName)"
}
},
"postPolicy": '${postPolicy}',
"policyType": "OPTIONAL"
}'
displayName: 'Call policy State Api'
env:
VR_APPROVAL_CLIENT_SECRET: $(VR-APPROVAL-CLIENT-SECRET)

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'screenshots'
ArtifactName: 'vrscreenshot'
publishLocation: 'Container'
- template: .devops/templates/runpublishvrscreenshot.yml
parameters:
fluentVersion: v8
storyPackageName: '@fluentui/vr-tests'
storyPackagePath: 'apps/vr-tests'
shouldbuildstorybookaddon: false

- powershell: |
$url = "https://dev.azure.com/uifabric/fabricpublic/_apis/build/builds?definitions=$env:BASELINE_PIPELINE_ID&statusFilter=completed&resultFilter=succeeded&queryOrder=finishTimeDescending&`$top=1"
Expand All @@ -91,13 +146,14 @@ jobs:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
BASELINE_PIPELINE_ID: $(BASELINE-PIPELINE-ID)

- bash: node node_modules/vrscreenshotdiff/lib/index.js pr --clientType "fluentui" --buildId $(Build.BuildId) --lkgCIBuild $(LatestBuildId)
- bash: node node_modules/vrscreenshotdiff/lib/index.js pr --clientType "fluentuiv8" --buildId $(Build.BuildId) --lkgCIBuild $(LatestBuildId) --pipelineId $(pipelineId) --pipelineName '$(pipelineName)'
displayName: 'Run fluentui-screenshotdiff'
env:
API_URL: $(System.CollectionUri)
API_TOKEN: $(TEST_PAT)
API_REPOSITORY: $(Build.Repository.Name)
API_PROJECT: $(System.TeamProject)
SCREENSHOT_ARTIFACT_FOLDER: vrscreenshotv8
GITHUB_API_TOKEN: $(githubRepoStatusPAT)
STORAGE_ACCOUNT_FLUENTUI: $(STORAGE-ACCOUNT-FLUENTUI)
STORAGE_KEY_FLUENTUI: $(STORAGE-KEY-BLOB-FLUENTUI)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
"tsconfig-paths-webpack-plugin": "4.0.0",
"tslib": "2.4.0",
"typescript": "4.3.5",
"vrscreenshotdiff": "0.0.6",
"vrscreenshotdiff": "0.0.9",
"webpack": "5.74.0",
"webpack-bundle-analyzer": "4.4.2",
"webpack-cli": "4.10.0",
Expand Down
Loading