From 79953d8b5f512dbb45f165226eb6b376b52f11c1 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Mon, 25 Nov 2024 13:12:37 +0100 Subject: [PATCH] [FIX] runbot: add missing repos On prepare, if a commit is pushed, it will be added to the bundle if no trigger exist in the project, or if a repo is not used by any trigger, it may appear in the batch from when pushed but not in other case, creating a strange behaviour. This is mainly the case when a repo is in a project without tirgger, just a group of commit. --- runbot/models/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/batch.py b/runbot/models/batch.py index 5df699d5..54b31b7b 100644 --- a/runbot/models/batch.py +++ b/runbot/models/batch.py @@ -188,7 +188,7 @@ class Batch(models.Model): pushed_repo = self.commit_link_ids.mapped('commit_id.repo_id') dependency_repos = triggers.mapped('dependency_ids') - all_repos = triggers.mapped('repo_ids') | dependency_repos + all_repos = triggers.mapped('repo_ids') | dependency_repos | project.repo_ids missing_repos = all_repos - pushed_repo foreign_projects = dependency_repos.mapped('project_id') - project