Skip to content

fix: broken pipeline error#23

Merged
shavonn merged 1 commit into
mainfrom
fix/determine-bump-broken-pipe
Jun 3, 2026
Merged

fix: broken pipeline error#23
shavonn merged 1 commit into
mainfrom
fix/determine-bump-broken-pipe

Conversation

@shavonn
Copy link
Copy Markdown
Contributor

@shavonn shavonn commented Jun 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings June 3, 2026 02:05
@shavonn shavonn merged commit e08917c into main Jun 3, 2026
1 check passed
@shavonn shavonn deleted the fix/determine-bump-broken-pipe branch June 3, 2026 02:06
@github-actions github-actions Bot mentioned this pull request Jun 3, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a “broken pipe”/EPIPE scenario in the release pipeline by changing determine_bump to keep consuming stdin after detecting a major bump, and adds a regression test intended to ensure the upstream producer doesn’t hit SIGPIPE.

Changes:

  • Update determine_bump to “lock in” major while continuing to read the full input stream (avoiding upstream EPIPE).
  • Add a Bats test that simulates a producer writing many commit messages into determine_bump after an early breaking-change line.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
scripts/conventional.sh Keeps reading stdin after detecting a breaking change so upstream pipeline writers don’t hit EPIPE.
tests/conventional.bats Adds a regression test intended to catch broken-pipe behavior when major is detected early.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/conventional.bats
Comment on lines +71 to +76
err=$(
{
echo "feat!: break stuff"
for i in $(seq 1 50); do echo "fix: thing ${i}"; done
} | determine_bump 2>&1 >/dev/null
)
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.

2 participants