Skip to content

fix(exec): preserve context cancellation errors - #22

Open
taigrr wants to merge 1 commit into
masterfrom
cd/round6-20261115
Open

taigrr wants to merge 1 commit into
masterfrom
cd/round6-20261115

Conversation

@taigrr

@taigrr taigrr commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Preserve context cancellation/deadline errors before classifying systemctl stderr.
  • Wrap ErrExecTimeout and the context cause so callers can use errors.Is for either.
  • Cover pre-canceled contexts, expired deadlines, and deadlines during execution with a fake systemctl; document error checks.

Validation

  • Baseline: go test -race -count=1 ./... passed.
  • All three new regression cases failed before the fix and pass afterward.
  • Final: go generate ./..., go test -race -count=1 ./..., go build ./..., go vet ./..., staticcheck ./..., goimports and git diff --check passed.
  • No dependencies changed. No open issues or PRs at round start.

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