Skip to content

Conversation

@gjolly
Copy link
Contributor

@gjolly gjolly commented Apr 20, 2023

This is way faster than relying on regexp and is super useful to quickly identify failing jobs

parser_jobs_failing.add_argument('--max-score', '-m', default=0, type=int, help='the maximum health score to look for')
parser_jobs_failing.set_defaults(func=jobs_failing)
# jobs failing by view
parser_jobs_failing_by_view = subparsers.add_parser(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could that be included in jobs-failing eg. with jentool jobs-failing --use-view my-view-name ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it's not that simple because get_jobs and get_jobs_info_regex do not take the same parameters nor return the same values. For example, get_jobs_info_regex doesn't let you filter by views and it returns the score in the info dict while get_jobs doesn't.

This is way faster than relying on regexp and is super useful to quickly
identify failing jobs
@gjolly gjolly force-pushed the jobs-failing-by-view branch from c4511aa to 35afd7d Compare April 27, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants