Skip to content

Fix merge-release-pr job failing after a successful merge#69

Merged
ajpallares merged 6 commits into
mainfrom
pallares/fix-merge-release-pr-login-shell-exit
Jun 16, 2026
Merged

Fix merge-release-pr job failing after a successful merge#69
ajpallares merged 6 commits into
mainfrom
pallares/fix-merge-release-pr-login-shell-exit

Conversation

@ajpallares

@ajpallares ajpallares commented Jun 16, 2026

Copy link
Copy Markdown
Member

SEMVER Update Type:

  • Major
  • Minor
  • Patch

Description:

Restructure merge-release-pr.sh so the successful-merge path falls off the end of the script instead of calling exit 0.

Motivation:

The job runs in a login shell (bash --login) with set -e. The exit builtin makes bash source ~/.bash_logout, whose default clear_console exits non-zero with no TTY (as in CI); set -e then flips the status, failing the job even though the PR was already merged. Falling off the end of the script does not source ~/.bash_logout, so the success path avoids it entirely.

A set +e before exit 0 would also work but was deliberately avoided, to keep set -e protection intact rather than rely on a workaround. Confirmed in cimg/ruby:3.2.0: exit 0 exits 1 while falling off the end exits 0.

The job runs in a login shell (bash --login) with `set -e`. On the
successful-merge path the script calls `exit 0`, which makes bash source
~/.bash_logout, whose default `clear_console` exits non-zero with no TTY (as
in CI). With `set -e` still active that flips the status, failing the job even
though the PR was merged. Disable `set -e` before that `exit 0`.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ajpallares ajpallares requested a review from a team as a code owner June 16, 2026 12:47
@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:f14b1ed8120c5236b85970c12173c87e7f6f5595

The exact exit code can be rewritten by ~/.bash_logout, so include it in the
failure message to preserve it for debugging.

Co-authored-by: Cursor <cursoragent@cursor.com>
@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:8102703174a13bf524f6128a1b35086a9e8c258d

Restructure so the script never calls `exit 0`: on success it falls off the
end of the script, which does not source ~/.bash_logout and so avoids the
clear_console/set -e interaction without needing `set +e`.

Co-authored-by: Cursor <cursoragent@cursor.com>
@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:917b89d7f5f33f8bd61222678c76ccab3510387b

The enqueue failure code is effectively always 1 and adds no useful detail.

Co-authored-by: Cursor <cursoragent@cursor.com>
@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:a7a58108642487aa9b9713e90b895f75a368bd6b

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Right, makes more sense. Thanks for cleaning it up!

ajpallares and others added 2 commits June 16, 2026 15:51
@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:3096c681d62a6f26e9834d761402038a26d856a9

@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:ab96af5605c2da6e764ec2f3b782256008bed0af

@ajpallares ajpallares merged commit 7b08acc into main Jun 16, 2026
16 checks passed
@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:7b08acc3c686c196e47ff8987a9df8323a9e6925

1 similar comment
@RCGitBot

Copy link
Copy Markdown
Contributor

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=dev:7b08acc3c686c196e47ff8987a9df8323a9e6925

@RCGitBot

Copy link
Copy Markdown
Contributor

Your orb has been published to the CircleCI Orb Registry.
You can view your published orb on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/revenuecat/sdks-common-config?version=3.21.2

ajpallares added a commit to RevenueCat/purchases-capacitor that referenced this pull request Jun 18, 2026
### Motivation
Pull in
[sdks-circleci-orb#69](RevenueCat/sdks-circleci-orb#69),
which fixes the `merge-release-pr` job failing after a successful merge.

### Description
Bump the CircleCI orb to `3.21.2`.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Single CI orb version bump with no application or runtime code
changes; risk is limited to pipeline behavior differences from the orb
update.
> 
> **Overview**
> Bumps the **`revenuecat/sdks-common-config`** CircleCI orb from
**3.16.0** to **3.21.2** in `.circleci/config.yml`.
> 
> This picks up the upstream fix for **`revenuecat/merge-release-pr`**
failing after a successful release merge (see sdks-circleci-orb#69). All
existing jobs that use the orb (gems, Maestro, Danger, tag/merge release
workflow, etc.) now run against the newer orb definition.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
74109ff. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
ajpallares added a commit to RevenueCat/purchases-unity that referenced this pull request Jun 18, 2026
### Motivation
Pull in
[sdks-circleci-orb#69](RevenueCat/sdks-circleci-orb#69),
which fixes the `merge-release-pr` job failing after a successful merge.

### Description
Bump the CircleCI orb to `3.21.2`.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Single orb version bump with no application or pipeline structure
changes; risk is limited to CI/release automation behavior.
> 
> **Overview**
> Updates the CircleCI **`revenuecat/sdks-common-config`** orb from
**3.16.0** to **3.21.2** in `.circleci/config.yml`. No workflow or job
definitions in this repo change—only the orb version pin.
> 
> This pulls in a fix from the shared orb so
**`revenuecat/merge-release-pr`** (used in the deploy workflow after
`github-release`) no longer fails after a successful merge.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
7307d9e. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
ajpallares added a commit to RevenueCat/purchases-js that referenced this pull request Jun 18, 2026
### Motivation
Pull in
[sdks-circleci-orb#69](RevenueCat/sdks-circleci-orb#69),
which fixes the `merge-release-pr` job failing after a successful merge.

### Description
Bump the CircleCI orb to `3.21.2`.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Single orb version bump in CI config only; no application or release
job definition changes in-repo.
> 
> **Overview**
> Bumps the shared **`revenuecat/sdks-common-config`** CircleCI orb from
**3.21.1** to **3.21.2** in `.circleci/config.yml`.
> 
> This pulls in a fix for **`revenuecat/merge-release-pr`** (used at the
end of the release workflow after `docs-deploy`) so the job no longer
fails after a successful merge. No other pipeline jobs or workflow
wiring change in this PR.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
a6ab014. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
ajpallares added a commit to RevenueCat/purchases-flutter that referenced this pull request Jun 18, 2026
### Motivation
Pull in
[sdks-circleci-orb#69](RevenueCat/sdks-circleci-orb#69),
which fixes the `merge-release-pr` job failing after a successful merge.

### Description
Bump the CircleCI orb to `3.21.2`.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> CI-only dependency version bump with no application code changes;
intended to fix a post-release pipeline failure.
> 
> **Overview**
> Bumps the **`revenuecat/sdks-common-config`** CircleCI orb from
**3.20.0** to **3.21.2** in `.circleci/config.yml`.
> 
> This picks up the orb fix from
[sdks-circleci-orb#69](RevenueCat/sdks-circleci-orb#69)
so the **`revenuecat/merge-release-pr`** step in the deploy workflow no
longer fails after a release merge succeeds. All other jobs that use
shared `revenuecat/*` commands inherit the new orb version unchanged.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
1227260. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
ajpallares added a commit to RevenueCat/cordova-plugin-purchases that referenced this pull request Jun 18, 2026
### Motivation
Pull in
[sdks-circleci-orb#69](RevenueCat/sdks-circleci-orb#69),
which fixes the `merge-release-pr` job failing after a successful merge.

### Description
Bump the CircleCI orb to `3.21.2`.
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.

3 participants