Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions kernelci/runtime/lava.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@
output += msg + '\n'
return output

def get_data(self):
"""Get the raw log data as a list of dicts in LAVA output.yaml format"""
return [{'dt': dt, 'lvl': lvl, 'msg': msg} for dt, lvl, msg in self._raw_log]


class Callback:
"""LAVA callback handler"""
Expand Down Expand Up @@ -342,7 +346,7 @@
submitter = node.get('submitter')
if submitter and submitter != 'service:pipeline':
priority = priority + 1
if priority > self.config.priority_max:

Check warning on line 349 in kernelci/runtime/lava.py

View workflow job for this annotation

GitHub Actions / Lint

Consider using 'priority = min(priority, priority_max)' instead of unnecessary if block
priority = self.config.priority_max
return priority

Expand Down