Skip to content

feat: Use custom exit code for schema validation failures

Lucas Charles requested to merge use-custom-exit-code-for-schema-failure into master

What does this MR do?

Use custom exit code for schema validation failures. Follow-up to !193 (merged)

Return custom exit code for schema failures that's allow-listed. This should provide clearer feedback around the failure without requiring reading of the job logs

65 was chosen a bit arbitrarily, but to match EXIT_DATAERR. There's always a risk of a false-positive here as I'm not sure what other items could trigger a 65 in this context. Suggestions welcome.

What are the relevant issue numbers?

Relates to gitlab-org/gitlab#244829 (closed)

Does this MR meet the acceptance criteria?

Merge request reports