Skip to content

feat: add a scheduled release cut workflow to cut release branches - #6739

Merged
mihir20 merged 4 commits into
masterfrom
mihir/automate-release-cut
Mar 5, 2026
Merged

mihir20 merged 4 commits into
masterfrom
mihir/automate-release-cut

Conversation

@mihir20

@mihir20 mihir20 commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

Purpose

Automates biweekly release branch creation for rudder-server.

Two repository variables control the behavior:

  • PAUSE_AUTO_RELEASE — set to "true" to skip scheduled releases (release freeze). Manual workflow_dispatch still works so you can override the freeze if needed.
  • RELEASE_WEEK_PARITY — set to "even" (default) or "odd" to control which ISO weeks are release weeks.

Trigger

  • Cron: Every Monday at 8:30 AM UTC (2:00 PM IST)
  • Manual: workflow_dispatch with optional version override

Jobs

  1. check-schedule
  • Enforces biweekly cadence using ISO week number (even week = release week)
  • Manual dispatches always proceed
  1. release-cut

Runs only if check-schedule says it's a release week.

Notable Details

  • Requires contents: write permission for pushing branches
  • Uses pinned actions/checkout (SHA for v4.3.0)
  • Slack notification uses slackapi/[email protected]

Linear Ticket

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

🔒 Scanned for secrets using gitleaks 8.28.0
@mihir20
mihir20 marked this pull request as ready for review March 4, 2026 09:20
outputs:
should_run: ${{ steps.check.outputs.should_run }}
steps:
- name: Check biweekly schedule

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.

Do we really need to schedule this? Can't we just trigger it manually?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

manual trigger is also there if we need to trigger release manually

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.

I don't think we need the automatic trigger, but will let @ktgowtham decide :)

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.

We generally get confirmation from team members of any pending PRs before cutting a release. So with scheduled action, we might sometimes need to cut it again, if team members aren't ready.
I'm fine keeping it manual for now.
But thanks for this PR, we don't need to do these steps manually now. Also avoids any typo issues when creating branches.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think keeping this automated will make people get their PRs merged before the cut. We can try to keep this automated for sometime, if we feel that automation is not required, we can disable the schedule.

wdyt?

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.

okay. let's communicate to wider team about this and that their PRs need to be merged before the scheduled time. anything later, they'll have to reach out to consider the PR.
Let's add a slack reminder in #server-dev a day before to merge any pending PRs before the cut off time.

@mihir20 mihir20 Mar 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

also I am adding two repository variables to control the behavior:

  • PAUSE_AUTO_RELEASE — set to "true" to skip scheduled releases (release freeze). Manual workflow_dispatch still works so you can override the freeze if needed.
  • RELEASE_WEEK_PARITY — set to "even" (default) or "odd" to control which ISO weeks are release weeks.

@mihir20
mihir20 requested a review from atzoum March 4, 2026 17:59
@codecov

codecov Bot commented Mar 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.69%. Comparing base (55ecd10) to head (5cd8753).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6739      +/-   ##
==========================================
+ Coverage   79.67%   79.69%   +0.02%     
==========================================
  Files         565      565              
  Lines       63376    63376              
==========================================
+ Hits        50494    50509      +15     
+ Misses       9895     9884      -11     
+ Partials     2987     2983       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

outputs:
should_run: ${{ steps.check.outputs.should_run }}
steps:
- name: Check biweekly schedule

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.

We generally get confirmation from team members of any pending PRs before cutting a release. So with scheduled action, we might sometimes need to cut it again, if team members aren't ready.
I'm fine keeping it manual for now.
But thanks for this PR, we don't need to do these steps manually now. Also avoids any typo issues when creating branches.

@mihir20
mihir20 enabled auto-merge (squash) March 5, 2026 09:18
…iable

🔒 Scanned for secrets using gitleaks 8.28.0
@mihir20
mihir20 merged commit ab887ac into master Mar 5, 2026
79 of 80 checks passed
@mihir20
mihir20 deleted the mihir/automate-release-cut branch March 5, 2026 10:16
itsmihir pushed a commit that referenced this pull request Mar 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.70.0-rc.1](v1.69.0...v1.70.0-rc.1)
(2026-03-16)


### Features

* add a scheduled release cut workflow to cut release branches
([#6739](#6739))
([ab887ac](ab887ac))
* infer OAuth type from account definition when destination supports
accounts
([#6718](#6718))
([00d1755](00d1755))


### Bug Fixes

* false sanity check failure due to empty response
([#6762](#6762))
([0384603](0384603))
* gateway request blocked in store jobs blocking all other requests
([#6760](#6760))
([ca4d514](ca4d514))
* respect context cancellation in gateway rate limiter
([#6751](#6751))
([589251a](589251a))
* update prerelease branch versioning format in scheduled release
workflow
([#6745](#6745))
([fede9e4](fede9e4))


### Miscellaneous

* add check for pseudo-version dependencies in rudderlabs modules
([#6737](#6737))
([55ecd10](55ecd10))
* bump rudder-go-kit to 0.73.0
([#6753](#6753))
([1743f6b](1743f6b))
* remove gunicorn and add darwin compatibility
([#6742](#6742))
([392d1f4](392d1f4))
* use latest retryablehttp client
([#6754](#6754))
([629f036](629f036))
* user rudo docker image for partition migration integration tests
([#6757](#6757))
([5022fbd](5022fbd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
itsmihir pushed a commit that referenced this pull request Mar 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.70.0](v1.69.0...v1.70.0)
(2026-03-16)


### Features

* add a scheduled release cut workflow to cut release branches
([#6739](#6739))
([ab887ac](ab887ac))
* infer OAuth type from account definition when destination supports
accounts
([#6718](#6718))
([00d1755](00d1755))


### Bug Fixes

* false sanity check failure due to empty response
([#6762](#6762))
([0384603](0384603))
* gateway request blocked in store jobs blocking all other requests
([#6760](#6760))
([ca4d514](ca4d514))
* respect context cancellation in gateway rate limiter
([#6751](#6751))
([589251a](589251a))
* update prerelease branch versioning format in scheduled release
workflow
([#6745](#6745))
([fede9e4](fede9e4))


### Miscellaneous

* add check for pseudo-version dependencies in rudderlabs modules
([#6737](#6737))
([55ecd10](55ecd10))
* bump rudder-go-kit to 0.73.0
([#6753](#6753))
([1743f6b](1743f6b))
* remove gunicorn and add darwin compatibility
([#6742](#6742))
([392d1f4](392d1f4))
* use latest retryablehttp client
([#6754](#6754))
([629f036](629f036))
* user rudo docker image for partition migration integration tests
([#6757](#6757))
([5022fbd](5022fbd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.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.

3 participants