Skip to content

feat: add client timeout configuration hint - #519

Merged
nieomylnieja merged 5 commits into
mainfrom
add-client-timeout-guidance
Jul 29, 2026
Merged

feat: add client timeout configuration hint#519
nieomylnieja merged 5 commits into
mainfrom
add-client-timeout-guidance

Conversation

@nieomylnieja

@nieomylnieja nieomylnieja commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Motivation

Client-side timeout errors currently do not tell users that the timeout is configurable, leaving them without an actionable recovery path.

Summary

Added a targeted hint for client timeout failures that directs users to the active context's timeout setting or SLOCTL_TIMEOUT. Preserved the original command error and avoided showing the hint for unrelated timeout failures.

Testing

  • Added an end-to-end Bats scenario that sets SLOCTL_TIMEOUT=10ns and verifies the exact timeout configuration hint.

Release Notes

Added guidance for increasing sloctl's configurable timeout when a request exceeds the client-side timeout.

@github-actions github-actions Bot added enhancement New feature or request go minor labels Jul 24, 2026
Update the timeout hint example and relocate the end-to-end test to the get command suite.
Use partial stderr matching and update the example timeout value in the expected output.
Use context state and wrapped deadline errors to distinguish client timeouts from caller deadlines, with coverage for related error cases.
@nieomylnieja
nieomylnieja merged commit 6be33e2 into main Jul 29, 2026
5 checks passed
@nieomylnieja
nieomylnieja deleted the add-client-timeout-guidance branch July 29, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants