Skip to content

fix: satisfy SDK compliance harness 0.8.0#455

Draft
marandaneto wants to merge 3 commits into
mainfrom
sdk-harness-audit-20260627-posthog-flutter
Draft

fix: satisfy SDK compliance harness 0.8.0#455
marandaneto wants to merge 3 commits into
mainfrom
sdk-harness-audit-20260627-posthog-flutter

Conversation

@marandaneto

@marandaneto marandaneto commented Jun 27, 2026

Copy link
Copy Markdown
Member

Problem

The SDK compliance workflow and local harness need to use SDK test harness release 0.8.0, with reusable GitHub workflow calls pinned to the release commit SHA instead of a mutable tag/branch. Running the updated harness exposed SDK/adapter compliance gaps in this repository.

Changes

  • Pins the reusable SDK compliance workflow to PostHog/posthog-sdk-test-harness commit be8b8d5a3f94a249659844e94832e874f049c1e4.\n- Uses ghcr.io/posthog/sdk-test-harness:0.8.0 for local Docker harness runs / workflow harness version inputs.\n- Updates SDK compliance adapter and/or SDK behavior needed to pass the 0.8.0 compliance contract.

Tests

  • flutter analyze passed; SDK compliance Docker harness passed locally with project posthog_flutter_compliance.

@marandaneto marandaneto changed the title chore: add SDK compliance harness 0.8.0 fix: satisfy SDK compliance harness 0.8.0 Jun 27, 2026
@greptile-apps

greptile-apps Bot commented Jun 27, 2026

Copy link
Copy Markdown

Reviews (1): Last reviewed commit: "chore: add SDK compliance harness 0.8.0" | Re-trigger Greptile

Comment thread sdk_compliance_adapter/lib/adapter_server.dart Outdated
Comment thread sdk_compliance_adapter/lib/adapter_server.dart
Comment thread sdk_compliance_adapter/Dockerfile Outdated
Comment thread sdk_compliance_adapter/lib/adapter_server.dart
@github-actions

github-actions Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

posthog-flutter Compliance Report

Date: 2026-06-27 13:08:14 UTC
Duration: 96547ms

✅ All Tests Passed!

45/45 tests passed


Capture Tests

29/29 tests passed

View Details
Test Status Duration
Format Validation.Event Has Required Fields 128ms
Format Validation.Event Has Uuid 115ms
Format Validation.Event Has Lib Properties 112ms
Format Validation.Distinct Id Is String 111ms
Format Validation.Token Is Present 111ms
Format Validation.Custom Properties Preserved 113ms
Format Validation.Event Has Timestamp 112ms
Retry Behavior.Retries On 503 5324ms
Retry Behavior.Does Not Retry On 400 2114ms
Retry Behavior.Does Not Retry On 401 2113ms
Retry Behavior.Respects Retry After Header 8121ms
Retry Behavior.Implements Backoff 15439ms
Retry Behavior.Retries On 500 5221ms
Retry Behavior.Retries On 502 5219ms
Retry Behavior.Retries On 504 5222ms
Retry Behavior.Max Retries Respected 15439ms
Deduplication.Generates Unique Uuids 119ms
Deduplication.Preserves Uuid On Retry 5221ms
Deduplication.Preserves Uuid And Timestamp On Retry 10327ms
Deduplication.Preserves Uuid And Timestamp On Batch Retry 5225ms
Deduplication.No Duplicate Events In Batch 118ms
Deduplication.Different Events Have Different Uuids 112ms
Compression.Sends Gzip When Enabled 112ms
Batch Format.Uses Proper Batch Structure 110ms
Batch Format.Flush With No Events Sends Nothing 107ms
Batch Format.Multiple Events Batched Together 118ms
Error Handling.Does Not Retry On 403 2113ms
Error Handling.Does Not Retry On 413 2114ms
Error Handling.Retries On 408 5220ms

Feature_Flags Tests

16/16 tests passed

View Details
Test Status Duration
Request Payload.Request With Person Properties Device Id 10ms
Request Payload.Flags Request Uses V2 Query Param 6ms
Request Payload.Flags Request Hits Flags Path Not Decide 6ms
Request Payload.Flags Request Omits Authorization Header 7ms
Request Payload.Token In Flags Body Matches Init 6ms
Request Payload.Groups Round Trip 6ms
Request Payload.Groups Default To Empty Object 7ms
Request Payload.Person Properties Distinct Id Auto Populated When Caller Omits It 6ms
Request Payload.Disable Geoip False Propagates As Geoip Disable False 7ms
Request Payload.Disable Geoip Omitted Defaults To False 6ms
Request Payload.Flag Keys To Evaluate Contains Only Requested Key 6ms
Request Lifecycle.No Flags Request On Init Alone 3ms
Request Lifecycle.No Flags Request On Normal Capture 109ms
Request Lifecycle.Two Flag Calls Produce Two Remote Requests 11ms
Request Lifecycle.Mock Response Value Is Returned To Caller 6ms
Side Effect Events.Get Feature Flag Captures Feature Flag Called Event 112ms

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