Skip to content

Commit

Permalink
Merge pull request #542 from lukpueh/workaround-flaky-windows-tests
Browse files Browse the repository at this point in the history
ci/tests: workarounds for flaky windows tests
  • Loading branch information
jku authored Mar 20, 2023
2 parents 515c56d + 92e7c69 commit 93c9329
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ jobs:
echo "PYKCS11LIB=$(brew --prefix softhsm)/lib/softhsm/libsofthsm2.so" >> $GITHUB_ENV
elif [ "$RUNNER_OS" == "Windows" ]; then
choco install softhsm.install
echo "PYKCS11LIB=C:\SoftHSM2\lib\softhsm2-x64.dll" >> $GITHUB_ENV
echo "Skipping HSM tests on Windows"
# see https://github.com/secure-systems-lab/securesystemslib/issues/520
else
echo "$RUNNER_OS not supported"
Expand Down
10 changes: 10 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
"""Securesystemslib tests.
NOTE: This file is only considered when running tests via aggregate_tests.py, or
with the '-m' flag, when invoked individually.
"""

# Increase gpg subprocess timeout -- Windows CI fails frequently with default 10s.
import securesystemslib.gpg.constants

securesystemslib.gpg.constants.GPG_TIMEOUT = 120
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ deps =
commands =
python -m tests.check_gpg_available
coverage run tests/aggregate_tests.py
coverage report -m --fail-under 90
coverage report -m --fail-under 85

[testenv:purepy311]
deps =
Expand Down

0 comments on commit 93c9329

Please sign in to comment.