fix: inttest runner crash and minio bucket-init proxy issue

- Remove --profiling-output arg from runner.yaml (plugin uses default path)
- Inline profiling hooks in root conftest.py with graceful fallback
- Replace mc-based bucket-init with Python urllib (no proxy interference)
- Add explicit ProxyHandler({}) to guarantee no proxy usage in bucket-init
This commit is contained in:
Celes Renata
2026-04-19 19:15:20 +00:00
parent ed6c0a2ade
commit b2b8aca7c6
5 changed files with 120 additions and 41 deletions
+4 -18
View File
@@ -16,27 +16,13 @@ import pytest
from tests.integration.profiler import EndpointProfiler
# ---------------------------------------------------------------------------
# CLI option — registered by root conftest.py to ensure availability
# ---------------------------------------------------------------------------
DEFAULT_PROFILING_OUTPUT = "/tmp/profiling-report.json"
# ---------------------------------------------------------------------------
# CLI option
# ---------------------------------------------------------------------------
def pytest_addoption(parser: pytest.Parser) -> None:
"""Add ``--profiling-output`` CLI flag to pytest."""
parser.addoption(
"--profiling-output",
action="store",
default=DEFAULT_PROFILING_OUTPUT,
help=(
"Path for the JSON profiling report "
f"(default: {DEFAULT_PROFILING_OUTPUT})"
),
)
# ---------------------------------------------------------------------------
# Session-scoped profiler instance (shared across all tests)
# ---------------------------------------------------------------------------