runbot/runbot/tests
xdo 24d35988a4
[IMP] runbot: add auto restore for custom trigger (#784)
One of the most common custom trigger is to restore a build before
starting some test, either to create a multibuild or make the execution
and debug of some test faster.

It is somethimes tedious to use because we need to give an url of a
build to restore. This build must correspond to the right commits,
must still exixt, ... this means that the dump url must be adapted
everytime a branch is rebased.

The way the dump_url is defined is by going on the last batch, following
the link to the `base_reference_batch_id`, finding a slot corresponding
to the right repo set, (ex: Custom enterprise -> enterprise), and
copying the dump_url in this build.

The base_reference_batch_id is eay to automated but we have to find the
right trigger, this is now a parameter of the custom trigger wizard.
There are actually 2 strategy now to define how to download the dump:
- `url`, using `restore_ dump_url`
- `auto`,  using `restore_trigger_id` and `restore_database_suffix`

To ease the setup, a `restore_trigger_id` is added on a trigger, so that
when selecting a trigger, lets say `Custom enterprise`, the defined
`trigger.restore_trigger_id` is automatically chosen for the
`custom_trigger.restore_trigger_id` and the `restore_mode` is setted to
auto.

Two actions are also added to the header of a bundle, a shorcut to
setup a multi build (restore in children) or a restore and test build
(restore in parent).
2023-06-27 14:13:12 +02:00
..
__init__.py [IMP] runbot: queue build logs in a local database 2022-11-28 06:46:49 +01:00
common.py [IMP] runbot: add auto restore for custom trigger (#784) 2023-06-27 14:13:12 +02:00
test_branch.py [REL] adapt for 16.0 2023-06-20 12:34:32 +02:00
test_build_config_step.py [IMP] runbot: add auto restore for custom trigger (#784) 2023-06-27 14:13:12 +02:00
test_build_error.py [REL] adapt for 16.0 2023-06-20 12:34:32 +02:00
test_build_stat.py [REL] adapt for 16.0 2023-06-20 12:34:32 +02:00
test_build.py [REL] adapt for 16.0 2023-06-20 12:34:32 +02:00
test_command.py [FIX] runbot: avoid unallowed characters in docker names 2020-06-17 10:15:37 +02:00
test_commit.py [REL] adapt for 16.0 2023-06-20 12:34:32 +02:00
test_cron.py [IMP] runbot: queue build logs in a local database 2022-11-28 06:46:49 +01:00
test_dockerfile.py [IMP] runbot: use docker python lib 2022-06-30 10:58:38 +02:00
test_event.py [IMP] runbot: queue build logs in a local database 2022-11-28 06:46:49 +01:00
test_host.py [REF] runbot: various refactoring 2023-03-23 13:32:50 +01:00
test_repo.py [REL] adapt for 16.0 2023-06-20 12:34:32 +02:00
test_runbot.py [FIX] runbot: browse a valid record id in test_warning 2021-02-02 11:48:03 +01:00
test_schedule.py [REF] runbot: various refactoring 2023-03-23 13:32:50 +01:00
test_upgrade.py [REL] adapt for 16.0 2023-06-20 12:34:32 +02:00
test_version.py [IMP] runbot: runbot 5.0 2020-09-10 13:44:38 +02:00