Skip to content

Commit 94a262f

Browse files
committed
[FIX] runbot: display correct trigger on error
a more and more comon practive is to start all standard triggersin a nightly with some specific params (faketime, profiling, ...) The trigger displayed on the error should be clearer, as an example, in Enterprise tests fails in the faketime trigger, we want to have the Faketime and not the Enterprise trigger on the error.
1 parent e8e3e5a commit 94a262f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runbot/models/build_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ def _compute_version_ids(self):
865865
@api.depends('build_ids')
866866
def _compute_trigger_ids(self):
867867
for build_error in self:
868-
build_error.trigger_ids = build_error.build_ids.trigger_id
868+
build_error.trigger_ids = build_error.build_ids.top_parent.trigger_id
869869

870870
@api.depends('content')
871871
def _compute_summary(self):

0 commit comments

Comments
 (0)