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:
@@ -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)
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user