Skip to content

feat(pipedream): allow rollback final_pipeline override#99

Open
joseph-sentry wants to merge 3 commits into
mainfrom
joey--rollback-final-pipeline
Open

feat(pipedream): allow rollback final_pipeline override#99
joseph-sentry wants to merge 3 commits into
mainfrom
joey--rollback-final-pipeline

Conversation

@joseph-sentry

@joseph-sentry joseph-sentry commented Jun 15, 2026

Copy link
Copy Markdown

Adds optional rollback.final_pipeline to the pipedream config. It anchors the rollback pipeline's dependency material on a named group's final stage instead of the default (last pipeline in the chain).

When the tail group (e.g. st) is flaky, the rollback material rarely reaches its final stage, starving the pool of rollback-eligible SHAs. Anchoring on an earlier group (e.g. us) lets a SHA become rollback-eligible sooner.

This caused an issue with rolling back during an inc recently, since our last stage hadn't run successfully for a week, meaning that we had to fix forward, which took longer than if we were to just rollback.

Trade-off (documented): an upstream-anchored target may not have been validated on the downstream groups the rollback then deploys it to.

🤖 Generated with Claude Code

Add optional `rollback.final_pipeline` to anchor the rollback material on
an earlier group instead of the last pipeline in the chain. Useful when the
tail group is flaky and would otherwise starve the rollback target pool.
Errors at compile time if the named group doesn't exist.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jun 15, 2026

Copy link
Copy Markdown

AIML-2906

@cursor cursor 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 86ee098. Configure here.

Comment thread test/pipedream.js Outdated
Comment thread test/pipedream.js Outdated
joseph-sentry and others added 2 commits June 15, 2026 13:11
Material is keyed {pipeline}-{final_stage}; final_stage defaults to the
appended pipeline-complete stage, not the deploy stage.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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