-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate process per test for TS2K Windows tests (#706)
This is workaround memory issues on CI builds for Windows on GitHub Actions
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# The tests run out of memory on CI see https://github.com/microsoft/knossos-ksc/issues/679 for details of the leak in module creation | ||
# pytest-forked on Windows doesn't help, so: collect the tests, run one at a time, exit on any failure | ||
$alltests = pytest $PSScriptRoot\..\ts2k\ --collect-only --quiet --disable-pytest-warnings | Select-Object -skip 2 -last 1000000 | ||
|
||
$alltests | ||
|
||
Foreach ($test in $alltests) | ||
{ | ||
$test | ||
$test_output = pytest $test | ||
if ( 0 -ne $LastExitcode) | ||
{ | ||
Write-Output $test_output | ||
exit $LastExitcode | ||
} | ||
} |
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