- The infra is responsible for following tasks:
- On Sprint Start - Automatically create rhoai-x.y branches for all the repos and enable the auto-merge
- Till code-freeze (RC day) - daily sync from main to rhoai-x.y
- After code-freeze (RC day) - disable the auto-merge from main to rhoai-x.y
- Executes each day at UTC 1:0 from the github workflow
- Daily syncs the changes from downstream main to rhoai-x.y branch based on the configuration auto-merge config yaml
- It is by default enabled for all the repos, but can be disabled using the same config file
- automerge can be set to 'no' to disable auto-merge for any of the configured repos
- The workflow automatically creates required number of job to auto-merge each configured repo and runs all the jobs in parallel
- Can be manually triggered if needed, for any individual component or for all the components using the same workflow
- Update the main-release-source-map.yaml for required repo and raise a PR
- Provide appropriate name and the downstream repo-url
- By default src-branch will be set to the default branch for the repo, but it can be overridden using “src-branch” node if needed
- Set automerge to yes
- Optionally add the “ignore-files” node with a comma separated list of globbing paths in case you need to ignore few paths during the merge
- Ensure that DevOps bot has permission to the target downstream repo (this step needs admin access, here is the list of members with admin access)
- Test it manually (optional):
- Go to the workflow
- Click on 'Run Workflow'
- Select branch as 'main'
- Select the repo name from dropdown
- Hit the 'Run Workflow' button
- Execute each day at UTC 0:0 from the github workflow
- syncs and merges changes from upstream repos to downstream repos based on the upstream-source-map.yaml
- automerge can be set to 'no' to disable auto-merge for any of the configured repos
- Can be manually executed when needed from github actions tab
- The workflow automatically creates required number of job to auto-merge each configured repo and runs all the jobs in parallel
- Can be manually triggered if needed, for any individual component or for all the components using the same workflow
- Update the upstream-source-map.yaml for required repo and raise a PR
- Provide appropriate upstream and downstream URLs and branches
- Set automerge to yes
- Ensure that DevOps bot has permission to the target downstream repo (this step needs admin access, here is the list of members with admin access)
- Test it manually (optional):
- Go to the workflow
- Click on 'Run Workflow'
- Select branch as 'main'
- Select the repo name from dropdown
- Hit the 'Run Workflow' button