-
Notifications
You must be signed in to change notification settings - Fork 25
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
[1/2] OLM workflow: add automatic OLM bundle submission. #460
Conversation
73504ed
to
8d428bb
Compare
The other remaining thing is what we discussed offline today: adding a secondary trigger (maybe a push to a branch or a new tag matching a pattern) which would trigger the workload but with an eventual PR filed against a test repository (which probably should be the clone of the real community operators repo under the bot's account). |
8d428bb
to
c11fb4f
Compare
c11fb4f
to
aa9226e
Compare
It won't be that easy to test even with extra conditional trigger. Because, I don't have permissions to push anything that could result in the workflow to start. However, I have tested the same workflow file with only one difference being the source repo set as fmuyassarov/nri-plugins (my fork) instead of containers/nri-plugins. And the result you can see here: k8s-operatorhub/community-operators#5518. |
acb63df
to
d45d62b
Compare
d45d62b
to
8388c4e
Compare
Generally looks ok, just need a cleanup of all debugging bits, and hardcoded versions to make it mergable. |
Those are added intentionally for the testing purpose. The idea is that we merge it as it is now and create an issue to test the workflow and if it behaves as it should there will be a follow up PR to clean up testing bits. |
|
8388c4e
to
8969a2a
Compare
I think this is great work. Thank you @fmuyassarov for automating these pull requests! I don't want to request big changes before merging the first version. Having it tested without hardcoded versions would be enough for me. Two questions, mainly on future steps: Testability: Would it be convenient to enable testing this workflow so that it would recognize when it is running on a nri-plugins repo fork (instead of owned by containers), and in that case it would create the pull request to the community-operators repo fork of the same owner instead of upstream? And perhaps this workflow could be triggered by a pull_request_comment like "/test-operator-release" or something (that would obviously never create pull request to the upstream repo). Re-releasing: do we ever want to create a pull request that changes an existing release? If not, maybe we should then explicitly fail on the "Copy the bundle..." step if the version directory already exists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fmuyassarov @askervin My suggestion would be to merge this and test-drive it, so Feruz can get rid of it.
Then we can beat it into final shape with one or more new PRs as necessary. WDYT ?
@askervin I have updated that slightly, klihub@5b80b67, and have it on this devel/olm-bundle-submission branch. If a test trigger is used, it now files the PR against the fork of the user who opened (or reopened) the test trigger issue. Also, if filing the PR succeeded, it closes the test trigger issue in the end. If we decide to merge this, I can open immediately a new PR with those additional commits. An alternative would be to replace this with a new PR with the additional commits included and merge that one in a single go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be merged when we are ready to merge #464 right after it.
Signed-off-by: Feruzjon Muyassarov <[email protected]>
8969a2a
to
cd645bc
Compare
GitHub bot account: https://github.com/nri-plugins-bot