Skip to content

fix(test): include cost_telemetry in event-order assertion#119

Merged
hadamrd merged 1 commit into
trunkfrom
fix/test-cost-telemetry-order
May 28, 2026
Merged

fix(test): include cost_telemetry in event-order assertion#119
hadamrd merged 1 commit into
trunkfrom
fix/test-cost-telemetry-order

Conversation

@hadamrd
Copy link
Copy Markdown
Owner

@hadamrd hadamrd commented May 28, 2026

Caught post-merge: PR #117 added cost_telemetry as a final event but the brittle exact-order test in test_worker.py didn't include it. Updates the list + relaxes seq-monotonicity to handle events without a seq field.

The loop's PR #117 (SDK session_id wiring, closes #109) added a
``cost_telemetry`` event after ``final_result``. The exact-order
assertion in test_sdk_happy_path_extracts_pr_and_merged broke
because the new event wasn't in the expected list.

Caught during the post-merge regression sweep. Behavioural change is
correct (cost telemetry is the ticket's deliverable); the test was
brittle on exact event ordering and missed the new entry.

Also relaxed the seq-monotonicity assertion to handle events that
don't carry a seq field (cost_telemetry is a session-end summary,
not a streamed turn event).
@hadamrd hadamrd merged commit 94ef231 into trunk May 28, 2026
2 checks passed
@hadamrd hadamrd deleted the fix/test-cost-telemetry-order branch May 28, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant