Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/scripts/get_latest_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

```
"""

import re

h2 = r"^##\s.*$"
Expand Down
1 change: 0 additions & 1 deletion hatch_version_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
from typing import Any, Optional


_logger = logging.Logger(__name__, logging.INFO)
_stdout_handler = logging.StreamHandler(sys.stdout)
_stdout_handler.addFilter(lambda record: record.levelno <= logging.INFO)
Expand Down
8 changes: 5 additions & 3 deletions requirements-testing.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
coverage[toml] == 7.*
coverage-conditional-plugin == 0.9.0
pytest == 9.0.*; python_version >= '3.10'
pytest == 9.1.*; python_version >= '3.10'
pytest == 8.4.*; python_version < '3.10'
pytest-cov == 7.1.*
pytest-timeout == 2.4.*
pytest-xdist == 3.8.*
black == 25.*
black == 26.*; python_version >= '3.10'
black == 25.*; python_version < '3.10'
ruff == 0.15.*
mypy == 1.19.*
mypy == 2.1.*; python_version >= '3.10'
mypy == 1.19.*; python_version < '3.10'
psutil == 7.2.*
types-PyYAML ~= 6.0
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from ..adaptors import AdaptorRunner
from .log_buffers import LogBuffer


_logger = logging.getLogger(__name__)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from openjd.adaptor_runtime._osname import OSName


_logger = logging.getLogger(__name__)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

from abc import ABC, abstractmethod


_logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion src/openjd/adaptor_runtime/adaptors/_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import yaml
from typing import Any


_logger = logging.getLogger(__name__)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

"""Module for the LoggingSubprocess class"""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/openjd/adaptor_runtime/process/_managed_process.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

"""Module for the ManagedProcess class"""

from __future__ import annotations

from abc import ABC as ABC, abstractmethod
Expand Down
1 change: 1 addition & 0 deletions src/openjd/adaptor_runtime/process/_stream_logger.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

"""Module for the StreamLogger class"""

from __future__ import annotations

import logging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from .connection import UnixHTTPConnection as _UnixHTTPConnection
from urllib.parse import urlencode as _urlencode


# Set timeout to None so our requests are blocking calls with no timeout.
# See socket.settimeout
_REQUEST_TIMEOUT = None
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

"""Tests for StreamLogger"""

from __future__ import annotations

import signal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

"""Tests for LoggingSubprocess"""

from __future__ import annotations

import logging
Expand Down
6 changes: 5 additions & 1 deletion test/openjd/adaptor_runtime/unit/test_entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ def mock_logging():

@pytest.fixture(autouse=True)
def mock_getLogger():
with patch.object(runtime_entrypoint.logging, "getLogger"):
# Patch EntryPoint._init_loggers (rather than the global logging.getLogger)
# so EntryPoint does not attach real handlers during tests. Patching
# logging.getLogger globally breaks pytest's caplog fixture on pytest >= 9.1,
# which relies on logging.getLogger to install its log-capture handler.
with patch.object(runtime_entrypoint.EntryPoint, "_init_loggers"):
yield


Expand Down
Loading