Skip to content

Commit e4ff160

Browse files
Add auto-merge workflow on release and adjust release process
1 parent 0f957ed commit e4ff160

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Diff for: .github/workflows/odh-fork-sync.yml renamed to .github/workflows/upstream-downstream-sync.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
name: Call sync on OpenDataHub CFO fork sync
1+
name: Upstream to Downstream - Release Auto-Merge
22
on:
33
release:
44
types:
55
- published
66
workflow_dispatch:
77

88
jobs:
9-
sync-fork:
9+
trigger-auto-sync:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Sync-fork
12+
- name: call-sync-workflow
1313
run: |
14-
gh workflow run sync-fork.yaml --repo github.com/opendatahub-io/codeflare-operator --ref main
14+
gh workflow run auto-merge-sync.yaml --repo github.com/red-hat-data-services/codeflare-operator --ref main
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
1717
shell:

Diff for: README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,9 @@ For ODH tests additional environment variables are needed:
110110
2. Once all jobs within the action are completed, verify that compatibility matrix in [README](https://github.com/project-codeflare/codeflare-operator/blob/main/README.md) was properly updated.
111111
3. Verify that opened pull request to [OpenShift community operators repository](https://github.com/redhat-openshift-ecosystem/community-operators-prod) has proper content.
112112
4. Once PR is merged, announce the new release in slack and mail lists, if any.
113-
5. Release automation should open a PR with changes in [ODH CodeFlare operator repo](https://github.com/opendatahub-io/codeflare-operator). Review the changes proposed by automation. If all the changes are correct then manually cherrypick all `CARRY` and `PATCH` commits from the current main branch, push the result to a dedicated branch and ask on Slack channel for review of the result branch content. Once agreed then push the changes directly to the `main` branch (branch protection has to be temporarily disabled).
114-
6. Build ODH/CFO image by triggering [Build and Push action](https://github.com/opendatahub-io/codeflare-operator/actions/workflows/build-and-push.yaml)
115-
7. Create a release branch on [Red Hat CodeFlare operator repo](https://github.com/red-hat-data-services/codeflare-operator) for the next release if it doesn't exist yet.
116-
8. Create a dedicated branch containing changes from [ODH CodeFlare operator repo](https://github.com/opendatahub-io/codeflare-operator). Cherrypick all relevant changes available in [Red Hat CodeFlare operator repo](https://github.com/red-hat-data-services/codeflare-operator) latest release branch which should be available also in the next release. Ask on Slack channel for review of the result branch content. Once agreed then push the changes directly to the release branch.
117-
9. Make sure that release automation created a PR updating CodeFlare SDK version in [ODH Notebooks repository](https://github.com/opendatahub-io/notebooks). Make sure the PR gets merged.
113+
5. Release automation should auto-merge changes to [ODH CodeFlare operator repo](https://github.com/opendatahub-io/codeflare-operator). Verify the [workflow](https://github.com/project-codeflare/codeflare-operator/actions/workflows/project-codeflare-release.yml) ran successfully and review the new merge-commit and commit history. Same for the [Red Hat CodeFlare Operator repo](https://github.com/red-hat-data-services/codeflare-operator), while also ensuring changes are in the latest `rhoai` release branch. - If the auto-merge fails, conflicts must be resolved and force pushed manually to each downstream repository and release branch.
114+
6. In ODH/CFO verify that the [Build and Push action](https://github.com/opendatahub-io/codeflare-operator/actions/workflows/build-and-push.yaml) was triggered and ran successfully.
115+
7. Make sure that release automation created a PR updating CodeFlare SDK version in [ODH Notebooks repository](https://github.com/opendatahub-io/notebooks). Make sure the PR gets merged.
118116
119117
### Releases involving part of the stack
120118

0 commit comments

Comments
 (0)