-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Better manage stacked PRs #308
Comments
That looks great ! Do you think it's complicated to do ? |
The problems I see are:
Anyway, the syntax of the comment will be easier than the current one. Is there any workaround for the second problem? |
@pedrobaeza I think this should do the trick:
|
But there's also a risk: to trigger a lot of checks when people put a garbage PR title and someone corrects it. |
Indeed, from what I understand, |
OK, if that works, it can be an option. Don't remember if doing that, GH actions are retriggered, or they reuse last results. |
Thanks for the proposal @jbaudoux . I would do it the other way around:
IMO this would be better because:
Last but not least we could improve the bot to remove the deps on merge and on rebase, or add a specific command to cleanup deps w/o having to ask to the author. |
@simahawk That was my initial idea but I saw multiple drawbacks and changed my mind. Here are the cons:
I don't think the bot can modify the branch that is on another remote. So it cannot rebase and cannot drop the dep in |
What do you mean?
What do you mean?
It is already the case today: you can issue a merge command and the merge branch fails -> PR green, merge branch red -> you've got to check the merge branch build. I don't see any issue w/ this.
Managing it via description won't solve this. In any case, IMO is not ideal (if not dangerous) to replace a dependency w/o direct action by the authors of the PR.
It's python standard. You can find docs on how to do it everywhere, docs that you don't have to maintain ;)
Nope, there's a trick to select only what you want (check our projs 😉 ). Eg:
I feel that it's easier to delete a commit that is known to do only one thing. rather then editing a file 😉
That's already a problem today. We need to address this somehow. We could:
@legalsylvain @sbidoul I guess you faced the same problem when working around |
That you need to modify a commit and so you modify the commit sha. Or you need to drop a commit from the PR, so you don't really merge the PR
You need to ask the contributor to drop one of the line in the
It is failing but still green. I don't find it right
Updating the description is easy. The ci will re-run with the new dependency. The contributor or the PSC can do it.
It is still a hack for the ci to run properly. Otherwise, this would be in
I know... but again a trick to learn... I'm more in favor of a solution that can lower the complexity. But this is just my opinion and happy to get feedback. |
The ci and runboat as well |
It do not work cross-repo, but it works like I understand the documentation, it may facilitate the rebasing from the github UI. |
It's not an hack. It's they you install python packages.
This is not a problem. The contrary. If you rely on the description, you have no unique identifier for the status of that PR.
Is not "my case". It's the current situation :) My POV of course :) |
Currently, stacked PR are managed by asking the contributor to add a separate "do not merge" commit that lists the dependencies in the
test-requirements.txt
. Once the dependency is merged, we need to ask again the contributor to modify the PR to drop the change to thetest-requirements.txt
; it's a back and forth process implicating multiple parties.My proposal would be to not require to list open PRs in the
test-requirements.txt
but rely on the PR description "Depends on" keyword. The advantages I see:test-requirements.txt
On the technical aspect, this means modifying the
test.yml
jobs:unreleased-deps
: add a step to parse the PR description for "Depends on" to mark that step as red. We can rely on https://github.com/gregsdennis/dependencies-actiontest
: append the modules modified by open PRs in thetest-requirements.txt
after the checkout and before the installation of the modulesWhat is your opinion ? What are your remarks ?
The text was updated successfully, but these errors were encountered: