runbot/forwardport/tests
Xavier Morel 0206d5f977 [FIX] runbot_merge: followup detached PRs when disabling branches
Although the handling of forward ports on disabled branch was improved
in 94fe0329b4 in order to avoid losing
or needing to manually port such, because it goes through
`_schedule_fw_followup` some of the tests *that* performs were missed,
most notably that it only ports batches when no PRs are detached.

This is an issue if we need to force the port because of a branch
being deactivated: the forward-port could have stopped there due to a
conflict, in which case it's always going to be detached.

Thus the `force_fw` flag should also override the parenting state
check.

Also while at it make `force_fw` a regular flag, I don't understand
why I made it into a context value in the first place, it's only
passed from one location and that's directy calling the one function
which uses it...

Fixes #897
2024-06-28 16:06:20 +02:00
..
conftest.py [IMP] *: store filestore & forwardport checkouts in temp dirs 2022-08-05 15:35:51 +02:00
test_batches.py [REF] forwardport: update re_matches to not use a regex 2024-06-04 14:18:04 +02:00
test_conflicts.py [FIX] forwardport: don't break forward porting on huge conflicts 2024-06-25 15:54:23 +02:00
test_limit.py [IMP] *: move the page helper fixture to the shared conftest 2024-06-26 15:17:09 +02:00
test_overrides.py [CHG] *: move forward-porting over to batches 2024-05-24 09:08:56 +02:00
test_simple.py [IMP] forwardport: don't ping *every* forwardport 2024-06-10 18:47:49 +02:00
test_updates.py [FIX] *: re-enable notification on status failure 2024-06-21 10:27:01 +02:00
test_weird.py [FIX] runbot_merge: followup detached PRs when disabling branches 2024-06-28 16:06:20 +02:00