runbot/forwardport/tests
Xavier Morel bbce5f8f46 [IMP] *: don't remove PRs from batches on close
Initially wanted to skip this only for FW PRs, but after some thinking
I feel this info could still be valuable even for non-fw PRs which
were never merged in the first place.

Requires a few adjustments to not break *everything*: `batch.prs`
excludes closed PRs by default as most processes only expect to be
faced by a closed PR inside a batch, and we *especially* want to avoid
that before the batch is merged (as we'd risk staging a closed PR).

However since PRs don't get removed from batches anymore (and batches
don't get deleted when they have no PRs) we now may have a bunch of
batches whose PRs (usually a single one) are all closed, this has two
major side-effects:

- a new PR may get attached to an old batch full of closed PRs (as
  batches are filtered out on being *merged*), which is weird
- the eventual list of batches gets polluted with a bunch of
  irrelevant batches which are hard to filter out

The solution is to reintroduce an `active` field, as a stored compute
field based on the state of batch PRs. This way if all PRs of a batch
are closed it switches to inactive, and is automatically filtered out
by search which solves both issues.
2024-05-29 07:55:07 +02:00
..
conftest.py [IMP] *: store filestore & forwardport checkouts in temp dirs 2022-08-05 15:35:51 +02:00
test_batches.py [IMP] *: don't remove PRs from batches on close 2024-05-29 07:55:07 +02:00
test_conflicts.py [CHG] *: rewrite commands set, rework status management 2024-05-23 07:58:46 +02:00
test_limit.py [CHG] *: move forward-porting over to batches 2024-05-24 09:08:56 +02:00
test_overrides.py [CHG] *: move forward-porting over to batches 2024-05-24 09:08:56 +02:00
test_simple.py [CHG] *: move forward-porting over to batches 2024-05-24 09:08:56 +02:00
test_updates.py [CHG] *: rewrite commands set, rework status management 2024-05-23 07:58:46 +02:00
test_weird.py [IMP] *: don't remove PRs from batches on close 2024-05-29 07:55:07 +02:00