feat(builds): expose builder VM instance ID in build response#69
Merged
hiroTamada merged 2 commits intomainfrom Jan 27, 2026
Merged
Conversation
✱ Stainless preview buildsThis PR will update the
|
- Add `builder_instance_id` field to Build schema in openapi.yaml - Regenerate lib/oapi/oapi.go with oapi-codegen - Add BuilderInstanceID field to domain Build struct - Update toBuild() to map BuilderInstance -> BuilderInstanceID - Update buildToOAPI() to include the new field in API responses - Update CI to regenerate OpenAPI code before building This exposes the existing BuilderInstance field that was already stored in build metadata but not returned to clients, useful for debugging.
7f437d1 to
4fbb257
Compare
sjmiller609
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.
Summary
builder_instance_idfield to the Build API response for debugging purposesBuilderInstancefield that was already stored in build metadata but not returned to clientsChanges
openapi.yaml: Addbuilder_instance_idto Build schema (nullable string)lib/builds/types.go: AddBuilderInstanceIDfield to domainBuildstructlib/builds/storage.go: UpdatetoBuild()to copyBuilderInstance→BuilderInstanceIDcmd/api/api/builds.go: UpdatebuildToOAPI()to map the new fieldTest plan
make oapi-generateto regeneratelib/oapi/oapi.gobuilder_instance_idin build responsesnullNotes
buildToOAPIortoBuildconversion functionslib/oapi/oapi.gofile needs to be regenerated after checkout viamake oapi-generateNote
Adds the builder VM instance ID to build responses and ensures codegen stays in sync.
Buildschema withbuilder_instance_id(nullable) inopenapi.yaml; regeneratelib/oapi/oapi.goBuilderInstanceIDto domainBuild(lib/builds/types.go) and map from storedBuilderInstanceintoBuild()(lib/builds/storage.go)buildToOAPI()(cmd/api/api/builds.go).github/workflows/test.ymlto runmake oapi-generatebefore build/testsWritten by Cursor Bugbot for commit f1ef89f. This will update automatically on new commits. Configure here.