forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10,920 changed files
with
697,269 additions
and
429,651 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
parameters: | ||
- name: version | ||
type: string | ||
default: 8 | ||
|
||
steps: | ||
- task: AzureCLI@2 | ||
displayName: 'Copy website drop to Azure' | ||
inputs: | ||
azureSubscription: 'Azure - fabricweb storage - NEW' | ||
scriptType: 'bash' | ||
scriptLocation: inlineScript | ||
inlineScript: | | ||
az storage blob upload-batch \ | ||
--destination 'fabric-website' \ | ||
--source $(System.DefaultWorkingDirectory)/apps/public-docsite/dist \ | ||
--account-name fabricweb \ | ||
--destination-path v${{ parameters.version }}/$(Build.BuildNumber)/ \ | ||
--auth-mode login \ | ||
--overwrite | ||
- task: AzureCLI@2 | ||
displayName: 'Update dogfood manifest in Azure blob' | ||
inputs: | ||
azureSubscription: 'Azure - fabricweb storage - NEW' | ||
scriptType: 'bash' | ||
scriptLocation: inlineScript | ||
inlineScript: | | ||
az storage blob upload \ | ||
--account-name fabricweb \ | ||
--container-name fabric-website \ | ||
--name manifests/v${{ parameters.version }}-df.js \ | ||
--file $(System.DefaultWorkingDirectory)/site-manifests/v${{ parameters.version }}-df.js \ | ||
--auth-mode login \ | ||
--overwrite | ||
- task: AzureCLI@2 | ||
displayName: 'Update prod manifest in Azure blob' | ||
inputs: | ||
azureSubscription: 'Azure - fabricweb storage - NEW' | ||
scriptType: 'bash' | ||
scriptLocation: inlineScript | ||
inlineScript: | | ||
az storage blob upload \ | ||
--account-name fabricweb \ | ||
--container-name fabric-website \ | ||
--name manifests/v${{ parameters.version }}-prod.js \ | ||
--file $(System.DefaultWorkingDirectory)/site-manifests/v${{ parameters.version }}-prod.js \ | ||
--auth-mode login \ | ||
--overwrite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,22 +4,36 @@ parameters: | |
default: v8 | ||
- name: vrTestPackageName | ||
type: string | ||
default: '@fluentui/vr-tests' | ||
default: vr-tests' | ||
- name: vrTestPackagePath | ||
type: string | ||
default: 'apps/vr-tests' | ||
- name: locationPrefix | ||
type: string | ||
default: fluentuiv8 | ||
- name: locationPostfix | ||
type: string | ||
default: vrscreenshotv8 | ||
- name: clientName | ||
type: string | ||
default: fluentuiv8 | ||
|
||
steps: | ||
- task: Bash@3 | ||
inputs: | ||
filePath: yarn-ci.sh | ||
displayName: yarn (install packages) | ||
|
||
- script: | | ||
yarn playwright install --with-deps | ||
displayName: Install Playwright dependencies | ||
- script: | | ||
isPR=${{lower(eq(variables['Build.Reason'], 'PullRequest'))}} | ||
echo $isPR | ||
echo "##vso[task.setvariable variable=isPR;]$isPR" | ||
if [[ $isPR == true ]]; then | ||
packageAffected=$(yarn --silent check:affected --package ${{ parameters.vrTestPackageName }}) | ||
packageAffected=$(yarn --silent check:affected --project ${{ parameters.vrTestPackageName }}) | ||
if [[ $packageAffected == false ]]; then | ||
echo "In PR pipeline but NOT affecting test package. Skipping test run" | ||
echo "##vso[task.setvariable variable=vrTestSkip;]yes" | ||
|
@@ -34,12 +48,7 @@ steps: | |
displayName: Check if vrTests should be skipped | ||
- script: | | ||
yarn workspace ${{ parameters.vrTestPackageName }} vr:build | ||
displayName: Build VR tests components package | ||
condition: eq(variables['vrTestSkip'], 'no') | ||
- script: | | ||
yarn workspace ${{ parameters.vrTestPackageName }} vr:test --verbose | ||
yarn nx run ${{ parameters.vrTestPackageName }}:test-vr --nxBail | ||
displayName: 'Run VR tests' | ||
condition: eq(variables['vrTestSkip'], 'no') | ||
|
@@ -55,3 +64,35 @@ steps: | |
ArtifactName: 'vrscreenshot${{ parameters.fluentVersion }}' | ||
publishLocation: 'Container' | ||
condition: eq(variables['vrTestSkip'], 'no') | ||
|
||
- bash: | | ||
set -exuo pipefail | ||
npx [email protected] create-policy --nonBlockingPipelines '{"$(pipelineId)":{"pipelineStatus": "PENDING","pipelineName": "$(pipelineName)"}}' --clientType 'FLUENTUI' | ||
displayName: VR App - Create Policy | ||
env: | ||
VR_APP_API_URL: $(VR_APP_API_URL) | ||
TENANT_ID: $(TenantId) | ||
PRINCIPAL_CLIENT_ID: $(PrincipalClientId) | ||
SERVICE_CONNECTION_ID: $(ServiceConnectionId) | ||
SYSTEM_ACCESSTOKEN: $(System.AccessToken) | ||
condition: eq(variables.isPR, true) | ||
- task: AzureCLI@2 | ||
displayName: 'Run fluentui-screenshotdiff' | ||
env: | ||
API_TOKEN: $(fabric-public-pipeline-access-PAT) | ||
GITHUB_API_TOKEN: $(githubRepoStatusPAT) | ||
VR_APP_API_URL: $(VR_APP_API_URL) | ||
STORAGE_ACCOUNT_ID: $(StorageAccountId) | ||
TENANT_ID: $(TenantId) | ||
PRINCIPAL_CLIENT_ID: $(PrincipalClientId) | ||
SERVICE_CONNECTION_ID: $(ServiceConnectionId) | ||
SYSTEM_ACCESSTOKEN: $(System.AccessToken) | ||
inputs: | ||
azureSubscription: $(AzureSubscription) | ||
scriptType: bash | ||
scriptLocation: 'inlineScript' | ||
# ciDefinitionId is set to 205 because that is the ID of the baseline pipeline (https://uifabric.visualstudio.com/fabricpublic/_build?definitionId=205) used by the master branch | ||
inlineScript: | | ||
npx [email protected] run-diff --screenshotsDirectory ./screenshots --buildType pr --clientType "FLUENTUI" --ciDefinitionId 205 --groupName $(pipelineName) --locationPrefix ${{ parameters.locationPrefix }} --locationPostfix ${{ parameters.locationPostfix }} --pipelineId $(pipelineId) --clientName ${{ parameters.clientName }} --threshold '0.04' --cumThreshold '1' | ||
condition: and(eq(variables.isPR, true), eq(variables['vrTestSkip'], 'no')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
changedFiles="$(git diff-tree -r --name-only --no-commit-id $1 $2)" | ||
node ./scripts/package-manager/src/notify-lockfile-changes.js $changedFiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
changedFiles="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | ||
node ./scripts/package-manager/src/notify-lockfile-changes.js $changedFiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#!/usr/bin/env sh |
Oops, something went wrong.