-
Notifications
You must be signed in to change notification settings - Fork 49
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
support building in koji for new dist-git commits #55
Comments
one possible configuration might also be: build what bumps release and/or adds changelog. |
@TomasTomecek can you elaborate on this one? The team is confused. (Is this still needed/wanted?) |
@lachmanfrantisek good point, I actually didn't remember what this really was; updated and scoped it down as much as possible |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@lachmanfrantisek this is pretty much your task in this sprint, right? |
This comment has been minimized.
This comment has been minimized.
@TomasTomecek I saw
|
Good points, we'd need to spend some time on designing this. Ideally we'd just build on dist-git pushes and inform people in the upstream if something goes wrong |
This comment has been minimized.
This comment has been minimized.
Yes, we just need to figure out a mechanism for people to configure downstream jobs in the upstream - having .packit.yaml in dist-git was a dead-end from my PoV. |
This comment has been minimized.
This comment has been minimized.
Thinking about this, the workflow used in upstream sends the SRPM directly to Koji so it's not what we want here. We should:
|
I interpreted this RFE incorrectly before :-( ... so lemme dump a wish here (as I believe it would be for free, if this RFE #55 was implemented)... Even when Packit upstream workflow is not in use -- it would be nice if we (maintainers) could just manually push to dist-git, and the build was automatically submitted into Koji (submit can be done by any service, but if Packit did this, I'm +1). Configuration like this would be enough.
It would be a pity if we bound this cool thing only to upstream-packit workflows, and to the |
I mean, I don't want to break releng's scripts, etc. - so perhaps we shouldn't trigger builds for everybody without asking ... therefore the configured list of push event "authors"... |
@praiskup You are right, the term The (only) question here is, how this can be configured/enabled (can be combined):
|
Anything works for me (if that matters) but if the config lived in dist-git, that would be super trivial to setup IMO. |
I'm wondering if it would make sense for this and #74 to be two bots, separate from packit-service. I have the feeling we could reach a wider audience this way. For one, we wouldn't need to explain the relationship with packit-service. From a design POV: these bots would operate purely in the Fedora echo-system, and wouldn't need access to anything GitHub. Or at least: decouple the configuration for auto-building and auto-update-creation from packit configs. Again: the reason for this being to reach a wider audience. |
We should have a card to discuss/write-down our plans for downstream so just a few notes for the assigned person to cover more points of view on this:
Regarding the wider audience, do you think creating a new service can bring a wider audience? (We already promised our plans for this on behalf of Packit that finally is somehow known.) After some thinking about this, I like the idea of decoupling the configuration and adding the functionality as new handlers. Or start with packit config, implement the functionality, test it with packit configs in downstream and do the separate (proper) way of turning this on afterwards. (To have smaller chunks of work and some MVP sooner.) |
…nstream-koji-build Add downstream Koji build as new type This is the easiest solution how to do this. See packit/research#123 for more information. Related to packit/packit-service#55 Merge before TBD N/A (will be mentioned in service) Reviewed-by: Tomas Tomecek <tomas@tomecek.net>
Downstream koji build Do not work with fedmsg topics in handlers. The PROCESSED_FEDMSG_TOPICS wasn't used anywhere and @add_topic is not needed because of it. Implement the downstream Koji build. Using a new koji_build job type. Make the SyncFromDownstream react to a general event: Removing of DistGitCommitEvent that filtered the events based on the service config. Events should be independent of handlers and multiple handlers can react to one event. Logic (checking the service config) should be in a handler. Removing FedmsgHandler because it had no function. TODO: feedback and error handling: Commit comment in case of an error on submission; once submitted, users will get a standard notification. tests Fixes #55 Merge after: packit/packit#1415 (required for tests to succeed) When reviewing, please, go commit by commit. There were some class removals/renames that make the whole diff a bit messy. You can set up a new koji_build job using the commit trigger to submit a Koji build for a new commit in a dist-git branch. The configuration file needs to be present in the dist-git for now (the state for the new commit is used). Reviewed-by: Tomas Tomecek <tomas@tomecek.net> Reviewed-by: None <None>
Support koji builds for new dist-git commits.
Edit: complete rewrite v2 by @lachmanfrantisek
The text was updated successfully, but these errors were encountered: