Add Devcontainer Spec #1989
+23
−0
Merged
Add Devcontainer Spec #1989
Azure Pipelines / debugpy-test
failed
Jan 12, 2026 in 34m 20s
Build #20260112.1 had test failures
Details
- Failed: 2 (0.01%)
- Passed: 20,061 (81.79%)
- Other: 4,465 (18.20%)
- Total: 24,528
Annotations
Check failure on line 3120 in Build log
azure-pipelines / debugpy-test
Build log #L3120
PowerShell exited with code '1'.
Check failure on line 2796 in Build log
azure-pipelines / debugpy-test
Build log #L2796
PowerShell exited with code '1'.
Check failure on line 1 in test_attach_pid_client[program-str]
azure-pipelines / debugpy-test
test_attach_pid_client[program-str]
failed on teardown with "KeyError: <_pytest.stash.StashKey object at 0x7fc46ce9f060>"
Raw output
cls = <class '_pytest.runner.CallInfo'>
func = <function call_and_report.<locals>.<lambda> at 0x7fc4672e8720>
when = 'teardown'
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)
@classmethod
def from_call(
cls,
func: Callable[[], TResult],
when: Literal["collect", "setup", "call", "teardown"],
reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None,
) -> CallInfo[TResult]:
"""Call func, wrapping the result in a CallInfo.
:param func:
The function to call. Called without arguments.
:type func: Callable[[], _pytest.runner.TResult]
:param when:
The phase in which the function is called.
:param reraise:
Exception or exceptions that shall propagate if raised by the
function, instead of being wrapped in the CallInfo.
"""
excinfo = None
instant = timing.Instant()
try:
> result: TResult | None = func()
^^^^^^
.tox/py314/lib/python3.14/site-packages/_pytest/runner.py:353:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py314/lib/python3.14/site-packages/_pytest/runner.py:245: in <lambda>
lambda: runtest_hook(item=item, **kwds),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py314/lib/python3.14/site-packages/pluggy/_hooks.py:512: in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py314/lib/python3.14/site-packages/pluggy/_manager.py:120: in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py314/lib/python3.14/site-packages/_pytest/logging.py:858: in pytest_runtest_teardown
yield
.tox/py314/lib/python3.14/site-packages/_pytest/capture.py:905: in pytest_runtest_teardown
return (yield)
^^^^^
.tox/py314/lib/python3.14/site-packages/_pytest/runner.py:194: in pytest_runtest_teardown
item.session._setupstate.teardown_exact(nextitem)
.tox/py314/lib/python3.14/site-packages/_pytest/runner.py:566: in teardown_exact
raise exceptions[0]
.tox/py314/lib/python3.14/site-packages/_pytest/runner.py:555: in teardown_exact
fin()
.tox/py314/lib/python3.14/site-packages/_pytest/fixtures.py:1053: in finish
raise exceptions[0]
.tox/py314/lib/python3.14/site-packages/_pytest/fixtures.py:1042: in finish
fin()
.tox/py314/lib/python3.14/site-packages/_pytest/fixtures.py:924: in _teardown_yield_fixture
next(it)
.tox/py314/lib/python3.14/site-packages/_pytest/tmpdir.py:272: in tmp_path
result_dict = request.node.stash[tmppath_result_key]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.stash.Stash object at 0x7fc46781ea10>
key = <_pytest.stash.StashKey object at 0x7fc46ce9f060>
def __getitem__(self, key: StashKey[T]) -> T:
"""Get the value for key.
Raises ``KeyError`` if the key wasn't set before.
"""
> return cast(T, self._storage[key])
^^^^^^^^^^^^^^^^^^
E KeyError: <_pytest.stash.StashKey object at 0x7fc46ce9f060>
.tox/py314/lib/python3.14/site-packages/_pytest/stash.py:84: KeyError
Check failure on line 1 in test_thread_count[program-launch-1]
azure-pipelines / debugpy-test
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 0x000002D549DD8900>
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
Loading