-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Azure Pipelines] Run infrastructure/ tests on Windows 10 (#14300)
This job is only triggered manually until it has been shown to be robust.
- Loading branch information
Showing
17 changed files
with
144 additions
and
4 deletions.
There are no files selected for viewing
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
2 changes: 2 additions & 0 deletions
2
infrastructure/metadata/infrastructure/assumptions/allowed-to-play.html.ini
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
[allowed-to-play.html] | ||
expected: | ||
if product == "edge_webdriver": TIMEOUT | ||
if product == "safari": ERROR # https://bugs.webkit.org/show_bug.cgi?id=190775 | ||
|
||
|
||
[<audio> autoplay] | ||
expected: | ||
if product == "edge_webdriver": TIMEOUT | ||
if product == "safari": FAIL # https://bugs.webkit.org/show_bug.cgi?id=190775 |
5 changes: 5 additions & 0 deletions
5
infrastructure/metadata/infrastructure/assumptions/html-elements.html.ini
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 @@ | ||
[size.html] | ||
type: reftest | ||
expected: | ||
if product == "edge_webdriver": FAIL # https://github.com/web-platform-tests/wpt/issues/15159 |
1 change: 1 addition & 0 deletions
1
infrastructure/metadata/infrastructure/server/context.any.js.ini
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[context.any.sharedworker.html] | ||
[context] | ||
expected: | ||
if product == "edge_webdriver": FAIL | ||
if product == "safari": FAIL # https://bugs.webkit.org/show_bug.cgi?id=149850 |
23 changes: 23 additions & 0 deletions
23
infrastructure/metadata/infrastructure/server/order-of-metas.any.js.ini
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 |
---|---|---|
@@ -1,4 +1,27 @@ | ||
[order-of-metas.any.worker.html] | ||
expected: | ||
if product == "edge_webdriver": TIMEOUT | ||
|
||
|
||
[order-of-metas.any.html] | ||
[<meta name=timeout> exists] | ||
expected: | ||
if product == "edge_webdriver": FAIL | ||
|
||
|
||
[order-of-metas.any.sharedworker.html] | ||
[foo\n] | ||
expected: | ||
if product == "edge_webdriver": FAIL | ||
|
||
|
||
[foo] | ||
expected: | ||
if product == "edge_webdriver": FAIL | ||
if product == "safari": FAIL # https://bugs.webkit.org/show_bug.cgi?id=149850 | ||
|
||
|
||
[order-of-metas.window.html] | ||
[<meta name=timeout> exists] | ||
expected: | ||
if product == "edge_webdriver": FAIL |
4 changes: 4 additions & 0 deletions
4
infrastructure/metadata/infrastructure/server/order-of-metas.window.js.ini
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 @@ | ||
[order-of-metas.window.html] | ||
[<meta name=timeout> exists] | ||
expected: | ||
if product == "edge_webdriver": FAIL |
1 change: 1 addition & 0 deletions
1
infrastructure/metadata/infrastructure/server/secure-context.https.any.js.ini
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[secure-context.https.any.sharedworker.html] | ||
[secure-context] | ||
expected: | ||
if product == "edge_webdriver": FAIL | ||
if product == "safari": FAIL # https://bugs.webkit.org/show_bug.cgi?id=149850 |
16 changes: 16 additions & 0 deletions
16
infrastructure/metadata/infrastructure/server/title.any.js.ini
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 |
---|---|---|
@@ -1,4 +1,20 @@ | ||
[title.any.html] | ||
[foobar\n] | ||
expected: | ||
if product == "edge_webdriver": FAIL | ||
|
||
|
||
[title.any.sharedworker.html] | ||
[foobar\n] | ||
expected: | ||
if product == "edge_webdriver": FAIL | ||
|
||
|
||
[foobar] | ||
expected: | ||
if product == "safari": FAIL # https://bugs.webkit.org/show_bug.cgi?id=149850 | ||
|
||
|
||
[title.any.worker.html] | ||
expected: | ||
if product == "edge_webdriver": TIMEOUT |
3 changes: 3 additions & 0 deletions
3
infrastructure/metadata/infrastructure/testdriver/file_upload.sub.html.ini
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,3 @@ | ||
[file_upload.sub.html] | ||
expected: | ||
if product == "edge_webdriver": ERROR |
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,13 @@ | ||
# This is cleanup for update_hosts.yml and killing all Edge and WebDriver | ||
# processes to leave the agent in a clean state for the next job. This is | ||
# necessary because the Windows 10 agents aren't reset between each job. | ||
steps: | ||
- powershell: | | ||
$hostFile = "$env:systemroot\System32\drivers\etc\hosts" | ||
Copy-Item -Path "$hostFile.back" -Destination $hostFile -Force | ||
taskkill /f /im MicrosoftEdge* | ||
taskkill /f /im MicrosoftWebDriver.exe | ||
displayName: 'Restore hosts file and cleanup test machine' | ||
condition: always() | ||
errorActionPreference: silentlyContinue | ||
ignoreLASTEXITCODE: true |
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,15 @@ | ||
steps: | ||
- powershell: | | ||
Start-BitsTransfer -Source https://www.python.org/ftp/python/2.7.15/python-2.7.15.amd64.msi -Destination python.msi | ||
$hash = (Get-FileHash python.msi).Hash.ToLower() | ||
$expectedHash = "5e85f3c4c209de98480acbf2ba2e71a907fd5567a838ad4b6748c76deb286ad7" | ||
if ($hash.Equals($expectedHash)) { | ||
Write-Host "python.msi hash verified" | ||
} else { | ||
Throw "python.msi hash mismatch, got $hash, expected $expectedHash" | ||
} | ||
msiexec /i python.msi TARGETDIR=C:\Python27 /q | ||
Write-Host "##vso[task.prependpath]C:\Python27" | ||
Write-Host "##vso[task.prependpath]C:\Python27\Scripts" | ||
displayName: 'Install Python (Windows)' | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT')) |
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 @@ | ||
steps: | ||
- script: systeminfo | ||
displayName: 'Show system info (Windows)' | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT')) |
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
steps: | ||
- script: ./wpt make-hosts-file | sudo tee -a /etc/hosts | ||
displayName: 'Update /etc/hosts' | ||
displayName: 'Update hosts (macOS)' | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin')) | ||
- powershell: | | ||
$hostFile = "$env:systemroot\System32\drivers\etc\hosts" | ||
Copy-Item -Path $hostFile -Destination "$hostFile.back" -Force | ||
python wpt make-hosts-file | Out-File $env:systemroot\System32\drivers\etc\hosts -Encoding ascii -Append | ||
displayName: 'Update hosts (Windows)' | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT')) |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
steps: | ||
- script: ./wpt manifest | ||
# `python wpt` instead of `./wpt` is to make this work on Windows: | ||
- script: python wpt manifest | ||
displayName: 'Update manifest' |