Skip to content

Count failed catalog compilations? #17

Description

@jyaworski

Hello:

I noticed that the puppet check doesn't check for failed runs of the form:

Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

If we change the awk calls in the variables, we could then check for NR != 1; in such runs, the failure parameter isn't even in the file.

[root@host state]# grep failure last_run_summary.yaml
    failure: 0
[root@host state]# awk -v count=0 '/failure:/ {count++; count+=$2} END{print count}' last_run_summary.yaml 
1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions