-
Notifications
You must be signed in to change notification settings - Fork 48
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
/packit propose-update files duplicate PRs #785
Comments
You're the first who had the chance to try #761 in action. That p-s PR is retrying to perform the downstream update multiple times - that's because the release archive is usually not available when the git tags are pushed upstream (a.k.a github release is created). I assume what happened here is that one set of PRs was created by 'trigger: release' (as you point out) and the other one using the comment. I'm wondering how can we improve the experience so this would not happen in future for others. (maybe track the fact that p-s is still trying and CC @lbarcziova |
I personally hope the other way around, i.e., 'trigger' can be optional/ignored in the configuration, as it would nevertheless fail in our use-case (because of missing GPG signature). |
Interesting, we would probably then need the data where packit-service should propose the update - I guess it could default to |
So some Will this solve this? @TomasTomecek do we want to have some process check as well as you described? Can we have a new issue for that? |
@lachmanfrantisek having additional options in config to handle this sounds too complicated too me the use case is pretty clear: when you make an upstream release, p-s should propose that new release in dist-git: yes, all of this is really complicated and I'd like to hide all the complexity in p-s' codebase, ideally with the current configuration we have I'd still suggest what I proposed originally: if update is in progress and you type
I'd like this issue to cover it. WDYT? |
OK, so:
|
+1, exactly
yup, that's what I had in mind WDYT? |
Can we close this since the problem of creating multiple PRs was fixed in packit/packit#994? This missing part is about response for triggering of the already running job. Do we want to solve it here or create a separate issue? |
I am for closing this and creating a separate issue for that. |
Previously, when doing propose downstream, we checked for an already existing PR, and only if there was none, we pushed changes to a fork and created a new PR. Initially, the checking for already existing PR had been added in packit#994 in order to prevent creating multiple PRs if more propose-downstream jobs are triggered (packit/packit-service#785). This prevents us from updating an already existing PR (packit/hardly#76), so with this change, we first push to a fork, which might update an already existing PR, and then we check whether we actually need to create a new PR or if there already is one.
Previously, when doing propose downstream, we checked for an already existing PR, and only if there was none, we pushed changes to a fork and created a new PR. Initially, the checking for already existing PR had been added in packit#994 in order to prevent creating multiple PRs if more propose-downstream jobs are triggered (packit/packit-service#785). This prevents us from updating an already existing PR (packit/hardly#76), so with this change, we first push to a fork, which might update an already existing PR, and then we check whether we actually need to create a new PR or if there already is one.
Previously, when doing propose downstream, we checked for an already existing PR, and only if there was none, we pushed changes to a fork and created a new PR. Initially, the checking for already existing PR had been added in packit#994 in order to prevent creating multiple PRs if more propose-downstream jobs are triggered (packit/packit-service#785). This prevents us from updating an already existing PR (packit/hardly#76), so with this change, we first push to a fork, which might update an already existing PR, and then we check whether we actually need to create a new PR or if there already is one.
Previously, when doing propose downstream, we checked for an already existing PR, and only if there was none, we pushed changes to a fork and created a new PR. Initially, the checking for already existing PR had been added in packit#994 in order to prevent creating multiple PRs if more propose-downstream jobs are triggered (packit/packit-service#785). This prevents us from updating an already existing PR (packit/hardly#76), so with this change, we first push to a fork, which might update an already existing PR, and then we check whether we actually need to create a new PR or if there already is one.
Push to fork before checking for existing PR Previously, when doing propose downstream, we checked for an already existing PR, and only if there was none, we pushed changes to a fork and created a new PR. Initially, the checking for already existing PR had been added in #994 in order to prevent creating multiple PRs if more propose-downstream jobs are triggered (packit/packit-service#785). This prevents us from updating an already existing PR (packit/hardly#76), so with this change, we first push to a fork, which might update an already existing PR, and then we check whether we actually need to create a new PR or if there already is one. In #994 (comment) @lachmanfrantisek thought that the change already worked this way (i.e. that the push is done before the check), until he realized it's not :-) But he expressed his liking of it, so I hope it's still OK :-) Related to packit/hardly#76 RELEASE NOTES BEGIN Propose downstream job now pushes changes even when it's not creating a new pull request. This allows updating already existing pull requests. RELEASE NOTES END Reviewed-by: Laura Barcziová <None> Reviewed-by: None <None>
After triggering propose-update via issue comment, packit-service filed 3 PRs for master, f32, and f31, as expected:
p11-glue/p11-kit#314
At the same time(?) it also submitted 3 more PRs with empty content:
https://src.fedoraproject.org/rpms/p11-kit/pull-request/2
https://src.fedoraproject.org/rpms/p11-kit/pull-request/4
https://src.fedoraproject.org/rpms/p11-kit/pull-request/6
As we use a bit special packit configuration to fetch the upstream release tarball along with GPG signature, I suspect that those are triggered by "trigger: release".
The text was updated successfully, but these errors were encountered: