Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[PLATFORM] Expand diagnostic types in tach upload#694

Merged
emdoyle merged 3 commits intomainfrom
expand-diagnostics-sent-to-platform
Mar 19, 2025
Merged

[PLATFORM] Expand diagnostic types in tach upload#694
emdoyle merged 3 commits intomainfrom
expand-diagnostics-sent-to-platform

Conversation

@emdoyle
Copy link
Contributor

@emdoyle emdoyle commented Mar 18, 2025

This PR is a change to the API contract between Tach and the Gauge platform.

It bumps the report version number from 1.4 to 1.5

The primary change is to skip mapping Diagnostics into UsageError, and instead serialize Diagnostics directly to JSON in full. The upside is this lets the platform independently add support for additional Diagnostic types one-by-one, but the downside is that Tach's representation of Diagnostics must now be versioned. This PR adds a sanity check test that the structure of serialized Diagnostics has not changed, which should fail if Tach makes significant breaking changes to the schema.

@emdoyle emdoyle merged commit 840f240 into main Mar 19, 2025
8 of 11 checks passed
@emdoyle emdoyle deleted the expand-diagnostics-sent-to-platform branch March 19, 2025 04:04
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