[pw-ci] [PATCH v2 0/2] pw-ci: update mon scripts to process multiple workflows
sdaniele at redhat.com
Fri Aug 6 13:14:11 UTC 2021
Currently, github monitor only expects to process a single workflow.
This worked as an initial implementation.
However, this fails in the event there are multiple workflows for a
single patch, such as in the case of ovsrobot/ovn where there is a
"build and test" workflow and "ovn-kubernetes" workflow.
Additionally, the ovn-kubernetes workflow can have multiple steps fail
for a single job. This breaks github_get_logs.sh, which currently only
expects a single step to fail per job.
The first patch tries to address the former by changing github_mon to
run a scan for any arbitrary number of workflows it may recieve and
return the results to ci_mon to generate a report for each workflow.
The second patch addresses the latter by updating github_get_logs.sh to
accept an arbitrary number of failed steps for any given job.
- minor syntax changes
Salvatore Daniele (2):
github: support repositories with multiple workflows
github_get_logs: handle multiple failed step in a single job
ci_mon | 12 +++++++++---
github_get_logs.sh | 24 +++++++++++++++---------
github_mon | 37 ++++++++++++++++++++++++++-----------
3 files changed, 50 insertions(+), 23 deletions(-)
More information about the Pwci