Increase connection and attach timeouts to fix random errors on windows py312 tests

This commit is contained in:
Adam Yoblick 2024-07-09 18:13:18 -05:00
parent df254f6aab
commit ff88ce330e
2 changed files with 9 additions and 5 deletions

View file

@ -10,16 +10,20 @@ steps:
echo 'tox environment: $toxEnv'
python -m tox -e $toxEnv -- --junitxml=$(Build.ArtifactStagingDirectory)/tests.xml --debugpy-log-dir=$(Build.ArtifactStagingDirectory)/logs tests
displayName: "Run tests using tox"
env:
DEBUGPY_PROCESS_SPAWN_TIMEOUT: 60
DEBUGPY_LAUNCH_TIMEOUT: 60
ACCEPT_CONNECTIONS_TIMEOUT: 60
- task: "PublishBuildArtifacts@1"
condition: "failed()"
- task: PublishBuildArtifacts@1
condition: failed()
inputs:
artifactName: "Test logs"
pathToPublish: "$(Build.ArtifactStagingDirectory)/logs"
displayName: "Publish test logs"
- task: "PublishTestResults@2"
condition: "always()"
- task: PublishTestResults@2
condition: always()
inputs:
testRunTitle: "$(Agent.JobName)"
testResultsFiles: "tests.xml"

View file

@ -7,7 +7,7 @@ import functools
from debugpy.common import json, log, messaging, util
ACCEPT_CONNECTIONS_TIMEOUT = 10
ACCEPT_CONNECTIONS_TIMEOUT = 60
class ComponentNotAvailable(Exception):