-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[CI:BUILD] Packit: add copr_build task #15549
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lsm5 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
4e9d6ff
to
80f458c
Compare
Failed to load packit config file:
For more info, please check out the documentation or contact the Packit team. |
e0eaab3
to
2936aac
Compare
The wait time for copr-build could become an issue. I'm checking with the packit people about it. |
@edsantiago @cevich alright, so copr_build tasks work. They take a while but not longer than the Cirrus tests. So, I'll say this is good to go. PTAL |
Not a blocker, but something to consider: Is that going to hold up (for example) a Ref. details: Currently (IIRC) PRs are blocked from merging based on the So if we want these to be mandatory-passing for a PR merge, one idea is: Add a script to the
|
Right now, none of the packit tasks are blockers. And, I'm thinking we should let this bake a while until they become blockers.
@cevich hmm, it will not block the success task. Btw, are manpage updates tagged |
SGTM |
Clearification: When |
What problem are we trying to solve here? And, is it worth this large a hammer? The size of the CI window is making me deeply upset. Even with my colorizer, the list is now unmanageably long, really hard to scroll through (which, yes, has to be done sometimes). And I don't even want to think about flakes on a list this big. What sort of problems is this likely to catch, and is it really worth imposing this kind of burden on every developer? Could/should this be done nightly instead? |
See: #15537 (comment) I didn't realize the write permissions issue when I added the The older |
Also, while the |
So, that doesn't depend on any packit task right now, correct? |
2936aac
to
e8c5460
Compare
Failed to load packit config file:
For more info, please check out the documentation or contact the Packit team. |
e8c5460
to
8efac22
Compare
Failed to load packit config file:
For more info, please check out the documentation or contact the Packit team. |
The production_build task can only be triggered when users with write access submit PRs or add `slash-packit production_build` to PRs from external contributors. This is because of koji's restriction to build only `verified code`. This could mean quite some manual intervention but would be really useful for release PRs, cherry-picks and any other PRs where we could use extra confirmation. This commit adds a new `copr_build` task which gets triggered automatically regardless of the PR submitter's privs. [NO NEW TESTS NEEDED] Signed-off-by: Lokesh Mandvekar <[email protected]>
8efac22
to
77a3e66
Compare
@edsantiago @cevich : with the new changes, every fedora version task will build with the spec file from its own branch. Also, I've disabled production_build until we find a good use case for it. It should not add any more burden than what we had with production_build. |
|
Thanks. I've been wondering about that. I'm still really uncomfortable with all the unknown flakes and problems that this new system is going to impose. |
@edsantiago do you mean packit in general or specifically with the copr_build task (v/s the former production_build task) ? |
I mean all of this. It's new, and complicated, and lots of uncertainties. Like, the duplication. I'm trying to find a way to remove all the duplication here, and my focus has been on using the My hunch is that this will very-infrequently highlight real problems with a PR, but very-frequently cause flakes and hassles and delays for everyone. I may be wrong, and I'm not going to block it, but I'm not going to be the one to lgtm it either. Sorry. I still think this all would be better as a nightly cron job. |
If you're having reservations with this PR, maybe it's best I do another PR to comment out the existing
Yes, I tried a few things, and none worked well enough that's why I listed them explicitly.
Would you be cool with this first getting into a lower-traffic repo, maybe netavark / aardvark-dns or some other? RE: cron job I couldn't find anything in the docs, but I'll check with the packit team tomorrow. Though I would still prefer this be run on every PR so we don't have to go bisecting for failures. |
I think a lower-traffic repo would be wise. But I really want to step back here and let others weigh in, because I think this is boiling down to a question of priorities. AIUI your priority is to get this rolling immediately, and stop specfile-problems from making their way to you at the last minute. My priority is minimizing hassle to the world of contributors. Not only hassles like the i386 job that has been hung for two hours, hassles that we can't even imagine yet because we have no experience with any of this new system. I think this system is promising, and has the potential for good. I share your desire to catch specfile problems early. |
@edsantiago ok, so I'm thinking:
Are you cool with these 2 steps?
|
There are concerns with Packit causing flakes and delays on Podman so let's have Packit prove itself in other repos and only then make its way into Podman. See: containers#15549 (comment) [NO NEW TESTS NEEDED] Signed-off-by: Lokesh Mandvekar <[email protected]>
I wonder if a daily-job would cover that "good enough".
Cirrus-CI (and many/most CI systems) have some kind of API. Frequently they support triggering jobs, and very often this can be done with a fairly simple If there's also a job-status API, that could be added so as to represent any failures into the cirrus-task. That then would automatically show up on the podman-monitor mails. Just sayin' |
@cevich na, let's get this done in other smaller repos first and then resume this. I'm not sure how to do cron natively in packit yet and then if we have cirrus depend on packit prematurely, that might cause other troubles. |
Closing for now.. |
The production_build task can only be triggered when users with write
access submit PRs or add
slash-packit production_build
to PRs fromexternal contributors. This is because of koji's restriction to build
only
verified code
.This could mean quite some manual intervention but would be really useful
for release PRs, cherry-picks and any other PRs where we could use extra
confirmation.
This commit adds a new
copr_build
task which gets triggeredautomatically regardless of the PR submitter's privs.
Signed-off-by: Lokesh Mandvekar [email protected]
Does this PR introduce a user-facing change?