Skip to content

Make downstream version-bump automation retry-safe after partial failures #2189

Description

@codeforester

Goal

Make downstream release-bump automation idempotent and self-healing when issue creation or PR publication is interrupted.

Background

.github/workflows/downstream-version-bumps.yml uses a stable marker to avoid duplicate work, but it searches only all pull requests. The workflow creates the downstream issue before cloning the target repository and running the update. Any later failure in cloning, branch creation, the updater, locking, commit, push, or pull-request creation can leave an open issue with the marker and no pull request.

A rerun does not find that orphaned issue because it searches only pull requests, so it can create a second issue for the same release and component. The workflow has no failure cleanup or reuse path for this partial state.

Scope

  • Marker lookup across downstream issues and pull requests
  • Issue creation, reuse, closure, and failure cleanup in the downstream workflow
  • Workflow tests for partial failures and retries

Acceptance Criteria

  • A stable component, version, and commit marker is deduplicated across both issues and pull requests.
  • A rerun after issue creation but before PR publication reuses or repairs the existing issue and never creates a duplicate.
  • Failures after issue creation leave an actionable comment or close the issue according to a documented policy.
  • The no-diff path still closes the issue with its existing explanation.
  • Tests simulate clone, updater, commit, push, and pull-request creation failures and verify no orphan duplication on retry.
  • The workflow preserves the current concurrency and immutable release-ref behavior.

Validation

  • Workflow contract tests
  • Shell fixtures for first-run failure followed by retry
  • git diff --check

Non-Goals

  • No change to the downstream repositories or their required validation workflows.
  • No removal of issue-backed traceability for successful bumps.

Project Fields

  • Status: Backlog
  • Priority: P2
  • Area: CI
  • Initiative: Contract Hardening
  • Size: S
  • Milestone: v1.10.0

Agent Assignment

  • Human first; downstream repository workflow ownership needs maintainer review before implementation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ciContinuous integration, tests, automation, or release workflows

Type

No type

Projects

  • Status
    In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions