mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Increase connection and attach timeouts to fix random errors on windows py312 tests
This commit is contained in:
parent
df254f6aab
commit
ff88ce330e
2 changed files with 9 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue