fix(go): enable wire tests for exhaustive fixture#11788
Merged
fern-support merged 5 commits intomainfrom Jan 26, 2026
Merged
Conversation
Co-Authored-By: judah@buildwithfern.com <jsklan.development@gmail.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
🌱 Seed Test SelectorSelect languages to run seed tests for:
How to use: Click the ⋯ menu above → "Edit" → check the boxes you want → click "Update comment". Tests will run automatically and snapshots will be committed to this PR. |
Co-Authored-By: judah@buildwithfern.com <jsklan.development@gmail.com>
- Fix int vs int64 type mismatch for long types by explicitly casting to int64 - Fix enum values to use .Ptr() method for pointer types - Fix field names to use Go exported names (e.g., FieldString instead of String) - Add Bytes helper function for []byte pointer types - Skip endpoints returning primitive date types in wire tests (workaround for Go SDK date parsing issue where time.Time expects RFC3339 datetime format) Co-Authored-By: judah@buildwithfern.com <jsklan.development@gmail.com>
Co-Authored-By: judah@buildwithfern.com <jsklan.development@gmail.com>
Co-Authored-By: judah@buildwithfern.com <jsklan.development@gmail.com>
fern-support
approved these changes
Jan 26, 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.
Description
Refs: Requested by @jsklan
Enables wire tests for the
exhaustivefixture in the Go SDK generator and removes it from the allowed failures list.Link to Devin run: https://app.devin.ai/sessions/ec03b0c6d7064df8994f65c43635cd2c
Changes Made
exhaustivefixture configuration inseed/go-sdk/seed.ymlwithenableWireTests: trueexhaustivefrom theallowedFailureslistgo-sdk-seed-groups.jsonto useexhaustive:.formatBug Fixes for Wire Test Generation
Several fixes were required to make the exhaustive fixture wire tests compile and pass:
int64().Ptr()method for pointer types (changedconvert()toconvertToPointerIfPossible())FieldStringinstead ofString) by usinggetFieldName()instead ofgetTypeName()Byteshelper function for[]bytepointer types (movedbytesfrom ADDRESSABLE_TYPES to POINTER_HELPER_TYPES)WireMockBaseURLinstead of parsing from snippettime.TimeJSON unmarshaling expects RFC3339 datetime format, not date-only)Testing
pnpm seed test --generator go-sdk --fixture exhaustive- generation and tests succeeded locallyCI Note
The
go-model (leftovers)job is failing due to pre-existing TypeScript compilation errors in theopenapi-ir-parserpackage (unrelated to this PR's changes). This causesseed-test-results (go-model)to fail. All other go-model jobs pass successfully.Human Review Checklist
int64(1000000)instead of1000000) doesn't break other Go SDK fixtures[]bytepointer typesGetAndReturnDateendpoint - no wire test coverage)