Skip to content

Commit ba044f3

Browse files
committed
test: align DeerFlow tox with OTel development stack
1 parent 7830132 commit ba044f3

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

instrumentation-loongsuite/loongsuite-instrumentation-deerflow/tests/test_runtime_graph.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ def __init__(self) -> None:
142142
# LangGraph recognizes LangSmith tracers by type and reads this map.
143143
self.run_map: dict[str, Any] = {}
144144

145+
def copy_with_metadata_defaults(self, **_kwargs: Any):
146+
"""Keep provider callback copies local and network-free in tests."""
147+
return self
148+
145149
def _record(self, event: str, kwargs: dict[str, Any]) -> None:
146150
metadata = kwargs.get("metadata")
147151
self.events.append(

tox-loongsuite.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,21 @@ deps =
205205
lint-loongsuite-instrumentation-deepagents: {[testenv]test_deps}
206206
lint-loongsuite-instrumentation-deepagents: -r {toxinidir}/instrumentation-loongsuite/loongsuite-instrumentation-deepagents/tests/requirements.latest.txt
207207

208+
; DeerFlow requires Langfuse, whose OTLP exporter must use the same
209+
; development OTel stack as the rest of this test environment.
210+
loongsuite-instrumentation-deerflow.stable: opentelemetry-proto@{env:CORE_REPO}\#egg=opentelemetry-proto&subdirectory=opentelemetry-proto
211+
loongsuite-instrumentation-deerflow.stable: opentelemetry-exporter-otlp-proto-common@{env:CORE_REPO}\#egg=opentelemetry-exporter-otlp-proto-common&subdirectory=exporter/opentelemetry-exporter-otlp-proto-common
212+
loongsuite-instrumentation-deerflow.stable: opentelemetry-exporter-otlp-proto-http@{env:CORE_REPO}\#egg=opentelemetry-exporter-otlp-proto-http&subdirectory=exporter/opentelemetry-exporter-otlp-proto-http
208213
loongsuite-instrumentation-deerflow.stable: {[testenv]test_deps}
209214
loongsuite-instrumentation-deerflow.stable: -r {toxinidir}/instrumentation-loongsuite/loongsuite-instrumentation-deerflow/tests/requirements.oldest.txt
215+
loongsuite-instrumentation-deerflow.current: opentelemetry-proto@{env:CORE_REPO}\#egg=opentelemetry-proto&subdirectory=opentelemetry-proto
216+
loongsuite-instrumentation-deerflow.current: opentelemetry-exporter-otlp-proto-common@{env:CORE_REPO}\#egg=opentelemetry-exporter-otlp-proto-common&subdirectory=exporter/opentelemetry-exporter-otlp-proto-common
217+
loongsuite-instrumentation-deerflow.current: opentelemetry-exporter-otlp-proto-http@{env:CORE_REPO}\#egg=opentelemetry-exporter-otlp-proto-http&subdirectory=exporter/opentelemetry-exporter-otlp-proto-http
210218
loongsuite-instrumentation-deerflow.current: {[testenv]test_deps}
211219
loongsuite-instrumentation-deerflow.current: -r {toxinidir}/instrumentation-loongsuite/loongsuite-instrumentation-deerflow/tests/requirements.latest.txt
220+
lint-loongsuite-instrumentation-deerflow: opentelemetry-proto@{env:CORE_REPO}\#egg=opentelemetry-proto&subdirectory=opentelemetry-proto
221+
lint-loongsuite-instrumentation-deerflow: opentelemetry-exporter-otlp-proto-common@{env:CORE_REPO}\#egg=opentelemetry-exporter-otlp-proto-common&subdirectory=exporter/opentelemetry-exporter-otlp-proto-common
222+
lint-loongsuite-instrumentation-deerflow: opentelemetry-exporter-otlp-proto-http@{env:CORE_REPO}\#egg=opentelemetry-exporter-otlp-proto-http&subdirectory=exporter/opentelemetry-exporter-otlp-proto-http
212223
lint-loongsuite-instrumentation-deerflow: {[testenv]test_deps}
213224
lint-loongsuite-instrumentation-deerflow: -r {toxinidir}/instrumentation-loongsuite/loongsuite-instrumentation-deerflow/tests/requirements.oldest.txt
214225

0 commit comments

Comments
 (0)