Skip to content

Commit

Permalink
Bug 1658561 [wpt PR 24952] - [Azure Pipelines] Use Python 3.8.x for E…
Browse files Browse the repository at this point in the history
…dge test-suite runs, a=testonly

Automatic update from web-platform-tests
[Azure Pipelines] Use Python 3.8.x for Edge test-suite runs (#24952)

See the RFC: web-platform-tests/rfcs#65

This also affects `infrastructure/ tests: Windows 10`, but that job is currently only manually triggered and is basically unused.

Co-authored-by: Mustapha Jaber <mustjabusers.noreply.github.com>
--

wpt-commits: 79c46570895f9a2bf51b812355b93b2fac116318
wpt-pr: 24952

UltraBlame original commit: a27b5f9fc60da817c0a11ce402e816973ccdc831
  • Loading branch information
marco-c committed Dec 3, 2020
1 parent 9f01edf commit f87b0d4
Showing 1 changed file with 195 additions and 33 deletions.
228 changes: 195 additions & 33 deletions testing/web-platform/tests/tools/ci/azure/install_python.yml
Expand Up @@ -4,6 +4,49 @@ steps
powershell
:
|
pythonPath
=
'
C
:
\
Python38
'
pythonInstallerLogPath
=
'
python_installer
.
log
'
installArgs
=
"
/
passive
/
log
pythonInstallerLogPath
TargetDir
=
pythonPath
"
Write
-
Host
"
Downloading
python
installer
exe
"
downloadPath
=
'
python_installer
.
exe
'
Start
-
BitsTransfer
Expand All @@ -23,37 +66,33 @@ ftp
/
python
/
2
3
.
7
8
.
15
5
/
python
-
2
.
7
3
.
15
8
.
5
-
amd64
.
msi
exe
-
Destination
python
.
msi
downloadPath
hash
=
(
Get
-
FileHash
python
.
msi
downloadPath
)
.
Hash
Expand All @@ -64,7 +103,7 @@ ToLower
expectedHash
=
"
5e85f3c4c209de98480acbf2ba2e71a907fd5567a838ad4b6748c76deb286ad7
cd427c7b17337d7c13761ca20877d2d8be661bd30415ddc17072a31a65a91b64
"
if
(
Expand All @@ -80,9 +119,7 @@ Write
-
Host
"
python
.
msi
downloadPath
hash
verified
"
Expand All @@ -91,9 +128,7 @@ else
{
Throw
"
python
.
msi
downloadPath
hash
mismatch
got
Expand All @@ -102,20 +137,127 @@ expected
expectedHash
"
}
msiexec
if
(
Test
-
Path
-
LiteralPath
pythonPath
)
{
Write
-
Host
"
pythonPath
already
exists
uninstall
it
"
uninstallArgs
=
installArgs
+
"
/
i
python
uninstall
/
quiet
"
p
=
Start
-
Process
-
FilePath
downloadPath
-
Verb
RunAs
-
ArgumentList
uninstallArgs
-
PassThru
-
Wait
Write
-
Host
"
Uninstall
finished
.
Exit
code
was
:
(
p
.
msi
TARGETDIR
ExitCode
)
"
}
Write
-
Host
"
Running
downloadPath
with
args
installArgs
"
p
=
C
Start
-
Process
-
FilePath
downloadPath
-
Verb
RunAs
-
ArgumentList
installArgs
-
PassThru
-
Wait
Write
-
Host
"
downloadPath
finished
.
Exit
code
was
:
\
Python27
/
q
(
p
.
ExitCode
)
"
Write
-
Host
"
Adding
Python
dirs
to
path
"
Write
-
Host
Expand All @@ -131,7 +273,7 @@ prependpath
C
:
\
Python27
Python38
"
Write
-
Expand All @@ -148,10 +290,30 @@ prependpath
C
:
\
Python27
Python38
\
Scripts
"
Write
-
Host
"
Dumping
install
log
file
:
"
Get
-
Content
-
Path
"
python_installer
.
log
"
displayName
:
'
Expand Down

0 comments on commit f87b0d4

Please sign in to comment.