Skip to content

Bugfix: Fix bounded range error - #30

Merged
tmosleyIII merged 1 commit into
mainfrom
bugfix/tmosley/fix-bounded-range-error
Oct 12, 2026
Merged

tmosleyIII merged 1 commit into
mainfrom
bugfix/tmosley/fix-bounded-range-error

Conversation

@tmosleyIII

Copy link
Copy Markdown
Contributor

Bugfix: Fix bounded range error

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T16:48:39.284914Z 12730b3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tmosleyIII
tmosleyIII merged commit 3c954ab into main Oct 12, 2026
3 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 12730b3be9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

case <-time.After(10 * time.Second):
return nil, false
}
return <-terminal // never stop components with delivery workers still running

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Track whether the terminal result was already consumed

When PipelineRunner.Stop cancels r.ctx, streamOrch.Wait() can publish its nil result before the outer select chooses an arm. If the terminal arm wins, it consumes the channel's only value but still sets the status to STOPPED because r.ctx.Err() is non-nil; the subsequent call to this helper then blocks forever on the empty channel. The previous timeout made this race finite, but this unconditional receive makes control-plane stop requests capable of hanging the runner indefinitely, so the caller must skip reaping when it already selected the terminal result.

Useful? React with 👍 / 👎.

// Boundedness is declared, not inferred from component-specific endpoints.
// END_LEDGER=0 commonly means unbounded.
func sourceBounded(env map[string]string) bool {
return env["FLOWCTL_SOURCE_BOUNDED"] == "true"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add the bounded marker to bundled finite configurations

With boundedness now accepted only when this exact environment variable is present, the repository's existing finite examples in docs/configuration.md and the pipeline generated by scripts/smoke-token-transfer-release.sh still set only a nonzero END_LEDGER. When one of those sources reaches the configured endpoint before being manually stopped, its normal EOF is classified as unexpected and the run fails instead of completing; the bundled configurations need to be migrated alongside this behavior change.

Useful? React with 👍 / 👎.

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