Skip to content

Commit 4ea561d

Browse files
test: run the e2e suites on Langfuse v4 events_only (#1937)
* feat(tracing)!: remove trace-level input/output setters Remove the deprecated Langfuse.set_current_trace_io() and span.set_trace_io(), the langfuse.trace.input/output attributes, and their media handling. On Langfuse v4 a trace's input and output come from its root observation: set them with update() on the root span or update_current_span(). Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com> * test: read e2e assertions through the v4 observations API Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com> * ci: run e2e against an events_only server Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com> * test: pin that create_score logs invalid input without enqueueing Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com> * test: remove the v3 wait_for_trace helper Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com> * test: keep scalar text IO as strings and read full response_format The v2 observations API returns IO as raw strings, so only JSON objects and arrays are parsed back; text like "2" stays a string. The response_format assertion requests the untruncated metadata value. Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com> * test: dedupe observation rows and assert streamed text as a string The events table can briefly return several rows for one span, so the observation helper keeps the latest row per id. A streamed completion of "2" is text and is now asserted as a string. Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
1 parent 8063f84 commit 4ea561d

13 files changed

Lines changed: 1549 additions & 1443 deletions

‎.github/langfuse-v4-dual-write.override.yml‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ jobs:
159159
LANGFUSE_SERVER_SHA="$(git ls-remote https://github.com/langfuse/langfuse.git HEAD | cut -f1)"
160160
curl -fsSL "https://raw.githubusercontent.com/langfuse/langfuse/${LANGFUSE_SERVER_SHA}/docker-compose.yml" \
161161
-o ./langfuse-server/docker-compose.yml
162-
cp ./.github/langfuse-v4-dual-write.override.yml \
163-
./langfuse-server/docker-compose.override.yml
164162
echo "${LANGFUSE_SERVER_SHA}"
165163
166164
- name: Run langfuse server

0 commit comments

Comments
 (0)