Repository navigation
fix(agent): stop a blocked step wait at the workflow deadline (RIG-11161) - #190
Merged
rigel-nemo[bot] merged 1 commit intoNov 22, 2026
Conversation
…161) Make waitForLogs in pipeline/runtime/step.go return when the workflow context is done, not only when the log drain finishes. The drain was waited on with no bound, so a stalled log stream or a blocked log send could hold a step past the workflow deadline. Ported from RigelBuild/woodpecker#179. Adds step_deadline_test.go with the stalled-stream and blocked-send cases. Co-authored-by: Matt Wilkinson <matt@rigel.build>
Contributor
Author
|
All-clear at 6184c78 Review round 1: 0 high, 0 medium, 0 low.
|
|
Checks read:
|
rigel-nemo
Bot
deleted the
ci-pipelines/rig-11161-stop-a-blocked-step-wait-at-the-workflow
branch
November 22, 2026 02:07
This branch had an error being deployed
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.
What does this do
Makes
waitForLogsinforks/woodpecker/pipeline/runtime/step.goreturn when the workflow context is done, not only when the log drain finishes.Why do we need it
The step log drain was waited on with no bound. A stalled log stream, or a blocked log send, could hold a step, its stage and
Runpast the workflow deadline.WaitStepand the stage already honor the context; this wait was the gap.This is a port of RigelBuild/woodpecker#179 (RIG-11161) into the nebula monorepo under
forks/woodpecker/, as part of the RIG-10145 fork archive. The old PR is closed with a pointer to this one.Summary
pipeline/runtime/step_deadline_test.gocovers a stalled stream and a blocked log send.Verification
CGO_ENABLED=0 go test -tags test -count=1 ./pipeline/runtime/inforks/woodpecker: ok.rc.Close()error, per the no-error-swallow rule.-raceand the-countsoak from the old PR. Not run on the nebula base.Risks
A step stopped at the deadline may lose its last few log lines, because destroy can close the pipe before the drain reads them. The server still accepts late lines for five minutes. Rollback: revert this commit.
Spec impact
Spec-impact: none.
Checks skipped:
nebula fork port; no local hook runnerRefs RIG-11161
Co-authored-by: Matt Wilkinson matt@rigel.build