test(otel v2): spawn the otlp sink child interpreter with -P

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-23 22:03:05 +00:00
parent 044709e3f3
commit 6fe2f2474a

View file

@ -274,7 +274,7 @@ def owned_sinks(directory: Path) -> Iterator[SpanSinks]:
with ExitStack() as stack:
processes: Final = tuple(
subprocess.Popen(
[sys.executable, "-m", "integration._support.otlp_sink", "--port", str(port)],
[sys.executable, "-P", "-m", "integration._support.otlp_sink", "--port", str(port)],
cwd=root,
stdout=stack.enter_context((directory / f"otlp-sink-{port}.log").open("w")),
stderr=subprocess.STDOUT,