Add instance health checks#234
Draft
sjmiller609 wants to merge 1 commit into
Draft
Conversation
✱ Stainless preview builds for hypemanThis PR will update the Edit this comment to update it. It will appear in the SDK's changelogs. ✅ hypeman-openapi studio · code · diff
✅ hypeman-typescript studio · code · diff
✅ hypeman-go studio · code · diff
This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |
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
health_checkpolicy andhealth_statusresponse fields for http, tcp, and exec probeslib/healthcheckcontroller with timing, thresholds, start-period handling, and runtime status persistencelib/healthcheck/README.mdTests
go test ./lib/healthcheckgo test ./lib/instances -run 'TestValidateCreateRequestHealthCheck|TestValidateUpdateInstanceRequest|TestManagerUpdateInstanceHealthCheckOnlyPublishesLifecycleUpdate|TestLifecycleEventMetrics_ObserveSubscribersQueueDepthAndDrops|TestLifecycleSubscribers'\n-go test ./cmd/api/api -run 'TestCreateInstance_MapsHealthCheckPolicy|TestUpdateInstance_MapsHealthCheckPatch|TestCreateInstance_MapsAutoStandbyPolicy|TestUpdateInstance_MapsAutoStandbyPatch'\n-go test ./cmd/api -run TestDoesNotExist\n-go test ./lib/providers\n\n## Notes\n-go test ./cmd/api/apiis currently blocked by Docker Hub unauthenticated pull rate limits and local network bridge permissions in existing integration tests.\n-make generate-wireis currently blocked because the checked-in wire binary was built with Go 1.24 and this package now requires Go 1.25;wire_gen.gowas updated in the same small shape andgo test ./cmd/api -run TestDoesNotExistpasses.