Skip to content

[CI] Correct Branches Comparision in Upmerge Workflow#16919

Merged
NoResponseMate merged 1 commit intoSylius:2.1from
Rafikooo:CI/upmerge-improvement-amend
Oct 16, 2025
Merged

[CI] Correct Branches Comparision in Upmerge Workflow#16919
NoResponseMate merged 1 commit intoSylius:2.1from
Rafikooo:CI/upmerge-improvement-amend

Conversation

@Rafikooo
Copy link
Copy Markdown
Contributor

@Rafikooo Rafikooo commented Sep 12, 2024

Summary

This PR fixes the upmerge workflow failing when there are no commits between branches by adding continue-on-error: true to the Create Pull Request step.

When branches are already in sync (no commits to upmerge), the workflow will now complete successfully instead of failing with "No commits between X and Y" error:
image

Changes

  • Added continue-on-error: true flag to the "Create Pull Request" step in the upmerge workflow

Summary by CodeRabbit

  • Chores
    • CI workflow now checks for repository differences and only creates pull requests when changes are detected, reducing empty/ unnecessary PRs.
    • No other user-facing behavior changes in this release; improvements are limited to internal release automation.

@Rafikooo Rafikooo requested review from a team as code owners September 12, 2024 06:14
@probot-autolabeler probot-autolabeler bot added the Maintenance CI configurations, READMEs, releases, etc. label Sep 12, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 12, 2024

❌ Preview Environment deleted from Bunnyshell

Available commands:

  • 🚀 /bns:deploy to redeploy the environment

@GSadee GSadee marked this pull request as draft September 12, 2024 12:40
@GSadee GSadee marked this pull request as draft September 12, 2024 12:40
@GSadee GSadee marked this pull request as draft September 12, 2024 12:40
@Rafikooo Rafikooo changed the base branch from 1.14 to 2.1 October 16, 2025 09:30
@Rafikooo Rafikooo force-pushed the CI/upmerge-improvement-amend branch from e8bfdf0 to c433a8e Compare October 16, 2025 09:33
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Oct 16, 2025

Walkthrough

Added a diff-check step that compares the target branch to the base and emits has_diff output; the Create Pull Request step is now conditional and runs only when has_diff == 'true'.

Changes

Cohort / File(s) Summary
GitHub Actions workflow
.github/workflows/upmerge_pr.yaml
Added a step to fetch the target branch and run a diff check that sets has_diff to true/false; gated the Create Pull Request step with condition steps.check_diff.outputs.has_diff == 'true'.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    actor Trigger as GitHub Actions
    participant WF as upmerge_pr workflow
    participant Git as git fetch
    participant Diff as diff check step
    participant PR as Create Pull Request step

    Trigger->>WF: workflow starts
    WF->>Git: fetch target/base branches
    WF->>Diff: run diff (emit has_diff)
    alt has_diff == 'true'
        Note right of WF#lightblue: condition true
        WF->>PR: run Create Pull Request
        PR-->>WF: PR created / completed
    else has_diff == 'false'
        Note right of WF#lightgrey: condition false
        WF-->>WF: skip PR creation
    end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I nibbled lines and sniffed the trees,
I found if nothing changed—skip with ease,
When diffs appear I drum and hop,
“Open a PR!” — I never stop. 🐇🎉

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly describes the primary change, which is fixing the branch comparison logic in the upmerge workflow, and the “[CI]” prefix properly indicates this is a continuous integration update, making it clear and focused on the main purpose of the PR.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c433a8e and f1b3c9f.

📒 Files selected for processing (1)
  • .github/workflows/upmerge_pr.yaml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/upmerge_pr.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Static checks / PHP 8.4, Symfony ^7.3

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Rafikooo Rafikooo marked this pull request as ready for review October 16, 2025 09:42
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1a6ac44 and c433a8e.

📒 Files selected for processing (1)
  • .github/workflows/upmerge_pr.yaml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
  • GitHub Check: End-to-end tests (MySQL) / JS with Panther, PHP 8.4, Symfony ^7.3 (test_cached), MySQL 8.4, Twig ^3.3
  • GitHub Check: End-to-end tests (MySQL) / JS with Panther, PHP 8.3, Symfony ^6.4 (test_cached), MySQL 8.0, Twig ^3.3
  • GitHub Check: End-to-end tests (MySQL) / Non-JS, PHP 8.3, Symfony ^6.4 (test_cached), MySQL 8.0, Twig ^3.3
  • GitHub Check: End-to-end tests (MySQL) / JS with Chromedriver, PHP 8.4, Symfony ^7.3 (test_cached), MySQL 8.4, Twig ^3.3
  • GitHub Check: End-to-end tests (MySQL) / JS with Chromedriver, PHP 8.3, Symfony ^6.4 (test_cached), MySQL 8.0, Twig ^3.3
  • GitHub Check: End-to-end tests (MySQL) / Non-JS, PHP 8.4, Symfony ^7.3 (test_cached), MySQL 8.4, Twig ^3.3
  • GitHub Check: End-to-end tests (PostgreSQL) / Non-JS, PHP 8.4, Symfony ^7.3, PostgreSQL 17.5
  • GitHub Check: End-to-end tests (PostgreSQL) / Non-JS, PHP 8.3, Symfony ^6.4, PostgreSQL 15.13
  • GitHub Check: End-to-end tests (MariaDB) / Non-JS, PHP 8.4, Symfony ^7.3, MariaDB 11.4.7, State Machine Adapter symfony_workflow, ApiPlatform ~4.1.7
  • GitHub Check: End-to-end tests (MariaDB) / Non-JS, PHP 8.4, Symfony ^7.3, MariaDB 11.4.7, State Machine Adapter symfony_workflow
  • GitHub Check: End-to-end tests (MariaDB) / Non-JS, PHP 8.3, Symfony ^6.4, MariaDB 10.11.13, State Machine Adapter winzou_state_machine

@Rafikooo Rafikooo force-pushed the CI/upmerge-improvement-amend branch from c433a8e to f1b3c9f Compare October 16, 2025 09:48
@NoResponseMate NoResponseMate merged commit c348f96 into Sylius:2.1 Oct 16, 2025
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance CI configurations, READMEs, releases, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants