Skip to content

fix(cli): distinguish validation failure exits - #142

Merged
trakhimenok merged 2 commits into
mainfrom
feat/ingitdb-repository-validation-action
Aug 31, 2026
Merged

fix(cli): distinguish validation failure exits#142
trakhimenok merged 2 commits into
mainfrom
feat/ingitdb-repository-validation-action

Conversation

@trakhimenok

Copy link
Copy Markdown
Contributor

Summary

  • reserve exit code 2 for invalid InGitDB repository definitions and records
  • keep configuration, startup, and validator runtime failures on exit code 1
  • document and specify the process contract consumed by repository-validation actions

Verification

  • go build ./...
  • go test ./...
  • golangci-lint run
  • wb check . --profile ci (Go lint/test/build passed; SpecScore reported the same 68 repository violations as origin/main, excluding the temporary baseline checkout's missing-origin-only finding)

trakhimenok and others added 2 commits August 31, 2026 15:09
Reserve exit code 2 for invalid repository definitions and records so CI integrations can separate data findings from validator runtime failures.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Give CI consumers repository-relative finding identities and constraint classes without record values. Recover command panics as generic runtime failures so exit code 2 remains reserved for validation findings.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@trakhimenok
trakhimenok merged commit 7b168a6 into main Aug 31, 2026
4 checks passed
@trakhimenok
trakhimenok deleted the feat/ingitdb-repository-validation-action branch August 31, 2026 14:48
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.

1 participant