Skip to content

Conversation

@XxdpavelxX
Copy link
Contributor

@XxdpavelxX XxdpavelxX commented Dec 12, 2025

Description

Ticket: https://consensyssoftware.atlassian.net/browse/INFRA-3188
Test stable sync branch: https://github.com/consensys-test/metamask-mobile-test-workflow/actions/runs/20148777729/job/57923961348, consensys-test#174

Adds a composite GitHub Action and script to auto-open PRs syncing stable into active release/* branches after a release is merged.

  • CI/GitHub Actions
    • New composite action /.github/actions/release-branch-sync/action.yml:
      • Inputs: merged-release-branch, github-token, optional github-tools-repository and github-tools-ref.
      • Checks out repo and tools, configures git, runs sync script.
    • New script /.github/scripts/release-branch-sync.sh:
      • Detects active release branches via open PR titles matching release: X.Y.Z.
      • Creates stable-sync-release-X.Y.Z branches from origin/stable, pushes, and opens PRs into corresponding release/X.Y.Z branches.
      • Skips invalid/older-than-merged branches, the just-merged branch, non-existent branches, already up-to-date branches, or if a sync PR already exists.
      • Emits a summary of created/skipped/failed operations.

Changelog

CHANGELOG entry: None

Related issues

Fixes:

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Adds a GitHub Actions workflow to validate merged release branch names and sync stable into open release/* branches.

  • CI/GitHub Actions:
    • New workflow /.github/workflows/release-branch-sync.yml triggered on closed PRs to stable.
      • validate-branch job: Ensures merged head branch matches release/X.Y.Z.
      • sync-release-branches job: If valid, runs metamask/github-tools/.github/actions/[email protected] to sync stable into open release/* branches using STABLE_SYNC_TOKEN.

Written by Cursor Bugbot for commit 5492723. This will update automatically on new commits. Configure here.

@XxdpavelxX XxdpavelxX self-assigned this Dec 12, 2025
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Copy link
Contributor

@sethkfman sethkfman left a comment

Choose a reason for hiding this comment

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

LGTM

@XxdpavelxX XxdpavelxX enabled auto-merge December 15, 2025 21:30
@XxdpavelxX XxdpavelxX force-pushed the INFRA-3188-AutomateReleaseBranchSync branch from 7fd6bc5 to 9488645 Compare December 16, 2025 01:26
@XxdpavelxX XxdpavelxX added the skip-e2e skip E2E test jobs label Dec 16, 2025
@XxdpavelxX XxdpavelxX force-pushed the INFRA-3188-AutomateReleaseBranchSync branch from 9488645 to 5492723 Compare December 16, 2025 15:28
@github-actions
Copy link
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: None (no tests recommended)
  • Risk Level: low
  • AI Confidence: 95%
click to see 🤖 AI reasoning details

This PR adds a new GitHub Actions workflow file (.github/workflows/release-branch-sync.yml) that automates the synchronization of release branches with the stable branch.

Key observations:

  1. This is a brand new CI/CD workflow file (not modifying existing workflows)
  2. The workflow only triggers on pull_request events when PRs are merged to the 'stable' branch
  3. It validates release branch naming format and syncs release branches using an external GitHub action
  4. This workflow has no relationship to the application code, E2E test infrastructure, or any test execution
  5. It's purely a release management automation workflow

Since this change:

  • Does not modify any application code
  • Does not affect E2E test infrastructure (e2e/, wdio/, appwright/ directories)
  • Does not modify any critical files (package.json, controllers, Engine, app/core/)
  • Is isolated to release branch management automation
  • Has no CI relationships with test execution workflows

No E2E tests need to be run to validate this change.

View GitHub Actions results

@sonarqubecloud
Copy link

@XxdpavelxX XxdpavelxX added this pull request to the merge queue Dec 16, 2025
Merged via the queue into main with commit 5d88300 Dec 16, 2025
54 checks passed
@XxdpavelxX XxdpavelxX deleted the INFRA-3188-AutomateReleaseBranchSync branch December 16, 2025 16:11
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2025
@metamaskbot metamaskbot added the release-7.62.0 Issue or pull request that will be included in release 7.62.0 label Dec 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.62.0 Issue or pull request that will be included in release 7.62.0 size-S skip-e2e skip E2E test jobs team-dev-ops DevOps team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants