Skip to content

Add standby compression start delay#184

Draft
sjmiller609 wants to merge 2 commits intomainfrom
codex/standby-compression-delay
Draft

Add standby compression start delay#184
sjmiller609 wants to merge 2 commits intomainfrom
codex/standby-compression-delay

Conversation

@sjmiller609
Copy link
Copy Markdown
Collaborator

Summary

  • add a standby-only compression delay override on POST /instances/{id}/standby and a per-instance default in snapshot_policy
  • keep delayed standby compression jobs cancelable before start and distinguish pending-delay skips from active compression cancellation
  • add metrics, logs, traces, OpenAPI updates, and tests for the new standby compression delay behavior

Testing

  • go test ./lib/instances
  • go test ./cmd/api/api -run 'Test(CreateInstance_MapsStandbyCompressionDelayInSnapshotPolicy|CreateInstance_InvalidStandbyCompressionDelayInSnapshotPolicy|InstanceToOAPI_EmitsStandbyCompressionDelayInSnapshotPolicy|StandbyInstance_MapsCompressionDelay|StandbyInstance_InvalidCompressionDelay|StandbyInstance_InvalidRequest)$'

Notes

  • go test ./cmd/api/api still hits unrelated environment-dependent volume tests on this machine because mkfs.ext4 is not available in $PATH.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 4, 2026

✱ Stainless preview builds

This PR will update the hypeman SDKs with the following commit message.

feat: Add standby compression start delay

Edit this comment to update it. It will appear in the SDK's changelogs.

hypeman-typescript studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ✅lint ✅test ✅

npm install https://pkg.stainless.com/s/hypeman-typescript/4acd33407809f7bcd6d7383ecda1b3b91307ac0a/dist.tar.gz
hypeman-openapi studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅

hypeman-go studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ✅lint ✅test ✅

go get github.com/stainless-sdks/hypeman-go@fda1e9ba68cd13396bcc722fd19d67502b181dca

This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
If you push custom code to the preview branch, re-run this workflow to update the comment.
Last updated: 2026-04-04 20:19:07 UTC

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