[list_tezt_warnings]: make general with [job_filter], [log_pattern] and rename to [grep_pipeline_logs]
What
This adds a few options to scripts/ci/list_tezt_warnings to make it useful for other things than listing tezt warnings:
- The set of filtered jobs can be set through [--job-filter]
- The patterns to look can be set through [--log-pattern]
- If you only want the name and URL of set of jobs matching the given pattern, set [--jobs-with-matches].
- Logs can be fetched in parallel using [--parallel]
Why
I needed it to look for something else than tezt warnings.
How
By harnessing the immense power of (OCaml) clap.
Manually testing the MR
Try:
dune exec scripts/ci/grep_pipeline_logs/main.exe -- --job-filter '.*' --log-pattern '(Updating crates.io index)' --jobs-with-matches 1301833746
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Arvid Jakobsson