Open
Description
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 the test-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:
- when opening a PR, the contributor has to list the dependencies if he wants the tests to succeed. This gives good overview of the status on both PRs. As PSC, I don't have to edit the description to add them myself when some just rely on the
test-requirements.txt
- if the PR is approved, we don't need the contributor to modify the PR, and maybe rebase the code and force-push. Github could rerun the tests
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 modules
What is your opinion ? What are your remarks ?