Skip to content

Commit ff88ce3

Browse files
committed
Increase connection and attach timeouts to fix random errors on windows py312 tests
1 parent df254f6 commit ff88ce3

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

azure-pipelines/templates/run_tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@ steps:
1010
echo 'tox environment: $toxEnv'
1111
python -m tox -e $toxEnv -- --junitxml=$(Build.ArtifactStagingDirectory)/tests.xml --debugpy-log-dir=$(Build.ArtifactStagingDirectory)/logs tests
1212
displayName: "Run tests using tox"
13+
env:
14+
DEBUGPY_PROCESS_SPAWN_TIMEOUT: 60
15+
DEBUGPY_LAUNCH_TIMEOUT: 60
16+
ACCEPT_CONNECTIONS_TIMEOUT: 60
1317
14-
- task: "PublishBuildArtifacts@1"
15-
condition: "failed()"
18+
- task: PublishBuildArtifacts@1
19+
condition: failed()
1620
inputs:
1721
artifactName: "Test logs"
1822
pathToPublish: "$(Build.ArtifactStagingDirectory)/logs"
1923
displayName: "Publish test logs"
2024

21-
- task: "PublishTestResults@2"
22-
condition: "always()"
25+
- task: PublishTestResults@2
26+
condition: always()
2327
inputs:
2428
testRunTitle: "$(Agent.JobName)"
2529
testResultsFiles: "tests.xml"

src/debugpy/adapter/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from debugpy.common import json, log, messaging, util
88

99

10-
ACCEPT_CONNECTIONS_TIMEOUT = 10
10+
ACCEPT_CONNECTIONS_TIMEOUT = 60
1111

1212

1313
class ComponentNotAvailable(Exception):

0 commit comments

Comments
 (0)