You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support output formatting on argo lint command. Currently, as long as I'm aware of, lint command does not support any of the output formatting but instead it write the error line by line to the stdout/stderr.
example:
/test/hello-world.yaml: in "hello-world-" (Workflow): strict decoding error: unknown field "spec.templates[0].args", unknown field "spec.templates[0].command", unknown field "spec.templates[0].image"
time="2024-12-27T14:45:33.534Z" level=error msg="yaml file at index 0 is not valid: error converting YAML to JSON: yaml: line 15: did not find expected key"
By standardized output formatting I expect to see the output something like this:
supports detailed information such as severity and start/end lines where lint error occurred
it would be a good fit if somebody considers to integrate with GitHub actions or other CI tools
Use Cases
Main use case that I have in my mind at the moment is to use them in the CI pipeline to automate the lint error reporting. It's already possible to determine whether there was error or not by checking it's exit code, but further information should be checked manually by the users. By supporting standardized format users can automate this process by piping the output to other tools/scripts.
Message from the maintainers:
Love this feature request? Give it a 👍. We prioritise the proposals with the most 👍.
The text was updated successfully, but these errors were encountered:
Thanks for the quick feedback. and yes, I will submit a PR once it's ready.
I probably go with a simple json format output similar to GitHub api, for future extensibility. any feedback is appreciated.
Summary
Support output formatting on
argo lint
command. Currently, as long as I'm aware of, lint command does not support any of the output formatting but instead it write the error line by line to the stdout/stderr.example:
By standardized output formatting I expect to see the output something like this:
Some formats that I'm aware of at this moment but there could be some more
Use Cases
Main use case that I have in my mind at the moment is to use them in the CI pipeline to automate the lint error reporting. It's already possible to determine whether there was error or not by checking it's exit code, but further information should be checked manually by the users. By supporting standardized format users can automate this process by piping the output to other tools/scripts.
Message from the maintainers:
Love this feature request? Give it a 👍. We prioritise the proposals with the most 👍.
The text was updated successfully, but these errors were encountered: