Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update procedures for Copr workflow #285

Merged
merged 1 commit into from Nov 20, 2023

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Oct 13, 2023

No description provided.


- [ ] Run `./tools.rb koji configs/katello/<%= release %>.yaml --confirm` from [tool_belt](https://github.com/theforeman/tool_belt) to create Koji tags
- [ ] Run `./tools.rb mash-scripts configs/katello/<%= release %>.yaml` from [tool_belt](https://github.com/theforeman/tool_belt) to create Koji mash configs and open PR to tool_belt to commit
- [ ] Copy mash configs to Koji using <%= rel_eng_script('deploy_mash_configs') %>
Copy link
Member Author

Choose a reason for hiding this comment

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

This whole section is now inherently built into the Foreman release process that at the time of branching rpm/develop will fork all of the nightly repositories to a versioned repository -- https://github.com/theforeman/theforeman-rel-eng/pull/285/files#diff-d061c99b19d953d05d43c2de1a7199aac667795ed8a2e9c7991cef788118b7f8R74

@ehelms
Copy link
Member Author

ehelms commented Nov 1, 2023

@ekohl Do you want to see the new methods wrapped with conditionals based on version? For procedures that affect z-stream releases?

@ehelms ehelms marked this pull request as ready for review November 13, 2023 19:00
@ehelms
Copy link
Member Author

ehelms commented Nov 13, 2023

Rebased and updated with version checks for the release procedure. The branch procedure only happens for a Y-releases so it does not need version checks on the procedure like the release procedure does.

procedures/pulpcore/update.md.erb Outdated Show resolved Hide resolved
procedures/katello/release.md.erb Outdated Show resolved Hide resolved
procedures/katello/branch.md.erb Outdated Show resolved Hide resolved
procedures/foreman/branch.md.erb Outdated Show resolved Hide resolved
procedures/foreman/branch.md.erb Outdated Show resolved Hide resolved
procedures/foreman/release.md.erb Show resolved Hide resolved
procedures/foreman/branch.md.erb Outdated Show resolved Hide resolved
procedures/foreman/branch.md.erb Outdated Show resolved Hide resolved
procedures/foreman/branch.md.erb Show resolved Hide resolved
procedures/katello/branch.md.erb Show resolved Hide resolved
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Marking some follow up work.

@@ -1,7 +1,6 @@
## Roles

* Release Owner: <%= owner %>
* Release Engineer: <%= engineer %>
Copy link
Member

Choose a reason for hiding this comment

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

A note: the script will still prompt for this. We can leave it out of scope for this PR, but something we should eventually deal with.

Copy link
Member

Choose a reason for hiding this comment

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

This whole document needs an update now that it works based on rpm/develop and uses branching from that. Also still references tito.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

I wonder what https://github.com/theforeman/jenkins-jobs/blob/master/branch-foreman does. I've opened theforeman/jenkins-jobs#376 in a way that I think makes it work.

wait_copr_packaging Outdated Show resolved Hide resolved
- [ ] Create a `rpm/<%= release %>` branch in [foreman-packaging](https://github.com/theforeman/foreman-packaging) based on `rpm/develop`: `git checkout rpm/develop && git pull && git checkout -b rpm/<%= release %>`
- [ ] Update `foreman_version` in `package_manifest.yaml` on the `rpm/<%= release %>` branch: `sed -i '/foreman_version:/ s/nightly/<%= release %>/' package_manifest.yaml`
- [ ] Update `katello_version` in `package_manifest.yaml` on the `rpm/<%= release %>` branch: `sed -i '/katello_version:/ s/nightly/KATELLO_VERSION_HERE/' package_manifest.yaml
- [ ] Create release repositories in Copr by forking nightly repositories `obal copr-project copr_projects` on the `rpm/<%= release %>` branch
Copy link
Member

Choose a reason for hiding this comment

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

This will require the release engineer to have a working copr cli setup and the right permissions.
I do not recall if we document this properly today for koji (probably not), but worth fixing this now :)

Copy link
Member Author

Choose a reason for hiding this comment

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

We do not have this documented... should it be here? Should it be on foreman-packaging (pulpcore-packaging, etc?)? Somewhere else more central?

Copy link
Member

Choose a reason for hiding this comment

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

I think I'd prefer it here, at least what level of access is required for which system, how to obtain it might not necessarily be here (but I won't be opposed if it is)

Copy link
Member Author

Choose a reason for hiding this comment

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

Added

procedures/foreman/release.md.erb Outdated Show resolved Hide resolved
procedures/foreman/release.md.erb Show resolved Hide resolved
procedures/katello/release.md.erb Outdated Show resolved Hide resolved
procedures/foreman/release.md.erb Outdated Show resolved Hide resolved
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

We also need to edit https://github.com/theforeman/theforeman-rel-eng#foreman-release-engineer to list COPR access for release engineers. I'm not sure how permissions work there, but some admin needs to make sure new release engineers have the right permissions.

procedures/foreman/release.md.erb Outdated Show resolved Hide resolved
@ehelms ehelms force-pushed the copr-update-procedures branch 2 times, most recently from f332f8f to b6468b5 Compare November 17, 2023 18:19
@ehelms
Copy link
Member Author

ehelms commented Nov 17, 2023

We also need to edit https://github.com/theforeman/theforeman-rel-eng#foreman-release-engineer to list COPR access for release engineers. I'm not sure how permissions work there, but some admin needs to make sure new release engineers have the right permissions.

I added a link to where we set those values at least to indicate you need to be in that list or hint at contacting someone who is.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

ACK on the procedures.

README.md Outdated Show resolved Hide resolved
@ehelms ehelms force-pushed the copr-update-procedures branch 2 times, most recently from ecef3a8 to 83f575f Compare November 20, 2023 14:12
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Thanks!

@ekohl ekohl merged commit a613d43 into theforeman:master Nov 20, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants