Add ruff section to pyproject.toml #1390
Merged
Azure Pipelines / debugpy-test-automation
succeeded
Sep 19, 2023 in 9m 57s
Build #20230919.1 had test failures
Details
- Failed: 3 (0.02%)
- Passed: 16,129 (82.82%)
- Other: 3,342 (17.16%)
- Total: 19,474
Annotations
Check failure on line 1 in test_input[program--launch(console=integratedTerminal)]
azure-pipelines / debugpy-test-automation
test_input[program--launch(console=integratedTerminal)]
failed on setup with "worker 'gw5' crashed while running 'tests/debugpy/test_input.py::test_input[program--launch(console=integratedTerminal)]'"
Raw output
worker 'gw5' crashed while running 'tests/debugpy/test_input.py::test_input[program--launch(console=integratedTerminal)]'
Check failure on line 1 in test_stop_on_entry[program-launch(console=externalTerminal)-]
azure-pipelines / debugpy-test-automation
test_stop_on_entry[program-launch(console=externalTerminal)-]
failed on setup with "worker 'gw1' crashed while running 'tests/debugpy/test_stop_on_entry.py::test_stop_on_entry[program-launch(console=externalTerminal)-]'"
Raw output
worker 'gw1' crashed while running 'tests/debugpy/test_stop_on_entry.py::test_stop_on_entry[program-launch(console=externalTerminal)-]'
Check failure on line 1 in test_thread_count[program-launch-1]
azure-pipelines / debugpy-test-automation
test_thread_count[program-launch-1]
assert 2 == 1
+ where 2 = len([{\n "id": 1,\n "name": "MainThread"\n}, {\n "id": 2,\n "name": "Dummy-6"\n}])
Raw output
pyfile = <function pyfile.<locals>.factory at 0x7f6ec26804a0>
target = <class 'tests.debug.targets.Program'>, run = launch, count = 1
@pytest.mark.parametrize("count", [1, 3])
def test_thread_count(pyfile, target, run, count):
@pyfile
def code_to_debug():
import debuggee
import threading
import time
import sys
debuggee.setup()
stop = False # noqa: F841
def worker(tid, offset):
i = 0
global stop
while not stop:
time.sleep(0.01)
i += 1
threads = []
if sys.argv[1] != "1":
for i in [111, 222]:
thread = threading.Thread(target=worker, args=(i, len(threads)))
threads.append(thread)
thread.start()
print("check here") # @bp
stop = True # noqa: F841
with debug.Session() as session:
with run(session, target(code_to_debug, args=[str(count)])):
session.set_breakpoints(code_to_debug, all)
session.wait_for_stop()
threads = session.request("threads")
> assert len(threads["threads"]) == count
E assert 2 == 1
E + where 2 = len([{\n "id": 1,\n "name": "MainThread"\n}, {\n "id": 2,\n "name": "Dummy-6"\n}])
tests/debugpy/test_threads.py:46: AssertionError