test: add server SDK wire snapshots - #186
Merged
Merged
Conversation
Contributor
posthog-elixir Compliance ReportDate: 2026-08-17 21:21:06 UTC ✅ All Tests Passed!46/46 tests passed Capture Tests✅ 29/29 tests passed View Details
Feature_Flags Tests✅ 17/17 tests passed View Details
|
dustinbyrne
marked this pull request as ready for review
August 17, 2026 21:28
dustinbyrne
marked this pull request as draft
August 17, 2026 21:29
|
Reviews (1): Last reviewed commit: "test: add server SDK wire snapshots" | Re-trigger Greptile |
dustinbyrne
marked this pull request as ready for review
August 17, 2026 21:33
|
Reviews (2): Last reviewed commit: "test: add server SDK wire snapshots" | Re-trigger Greptile |
marandaneto
approved these changes
Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 Motivation and Context
The coordinated server SDK rollout needs stable wire-format coverage so each SDK can verify the payloads it actually sends for capture batches, feature flags, and exceptions.
This adds deterministic Elixir wire snapshots for that rollout. The tests cover final gzip-decoded
/batchJSON (including batching order, nested properties, and duplicate atom/string keys), the complete/flagsHTTP envelope, and a sanitized exception event with deterministic timestamp, UUID, and library version. No production code changes are included.💚 How did you test it?
mix test test/posthog/wire_snapshot_test.exs— 3 tests, 0 failuresmix format --check-formatted test/posthog/wire_snapshot_test.exsjq empty test/fixtures/wire_snapshots/*.jsongit diff --cached --check📝 Checklist
If releasing new changes
sampo addto generate a changeset file🤖 Agent context
Autonomy: Human-driven (agent-assisted)
A human directed the server SDK snapshot work and requested draft submission. Pi's
workeragent finalized and submitted the change (local agent session; no shareable session URL is available). The change remains test-only, the supplied final review found no blockers, and no changeset was added because released behavior is unchanged.