Closed rusefillc closed 1 year ago
I can generate a warning if this is the case.
Currently, warnings are set to ignored in the workflow. If they are set to skip
, there are several other things that will cause pinouts to not be generated for that board. Currently, these are:
cid
field in the info
section - this is used for linking to pins, and a lot of boards are missing itOptions:
warning-duplicate-pin: skip
warning-no-cid: false
warning-no-image: false
I can, and probably would, program it so that the warning
option is still used, but more specific options override it, e.g.:
warnings: false
warning-duplicate-pin: skip
would be equivalent to the above.
When you say warning
do you mean we would have no error return code and no trivial way to fail very visibly?
My preference is a very violent very visible red failure.
Warnings always print, even when set to false
skip
skips that board, but doesn't error
error
fails the entire workflow
If I add fine-toothed warning control, you could error
only on duplicates.
If you're wanting to fail the workflow, please note that currently the workflow only runs daily, so a change would be merged already before it resulted in red CI. This would be one advantage of failing in ConfigDefinition, if failing quickly and visibly is what you want.
I don't really think this is what you're after, but I have now added a notice
option for warnings, which shows this on the workflow results page (but still green);
https://github.com/chuckwagoncomputing/rusefi/actions/runs/4214599954
No chance for depressing but visible red at all?
Yep, I can add a warning for duplicates, and the warnings
option can be set to error
I can (and likely will regardless) also add fine-tune control so other warnings don't cause the workflow to fail.
Can we please fail for the following yaml with C7 defined twice?