Skip to content

Make drift check --silent report only actionable failures#38

Merged
laulauland merged 1 commit into
mainfrom
operator/silent-errors-only
Jun 22, 2026
Merged

Make drift check --silent report only actionable failures#38
laulauland merged 1 commit into
mainfrom
operator/silent-errors-only

Conversation

@fiberplane-operator

Copy link
Copy Markdown
Contributor

Summary

  • change text-mode drift check --silent failure output to include only stale/broken doc blocks plus the summary
  • keep passing --silent runs fully quiet and keep JSON failure payloads complete on stderr
  • document the updated --silent behavior and add integration coverage for pass, failure, --changed, and JSON modes

Fixes #37

Verification

  • PATH=/workspace/.tools/zig-0.16.0:$PATH zig fmt src/main.zig src/commands/lint.zig test/integration/lint_test.zig
  • git diff --check
  • PATH=/workspace/.tools/zig-0.16.0:$PATH zig build test
  • manual smoke test with fresh/stale/broken docs for drift check --silent and drift check --silent --format json

Note: sandbox did not have Zig or mise installed; I downloaded Zig 0.16.0 to /workspace/.tools/zig-0.16.0 for verification.

@fiberplane-operator fiberplane-operator Bot force-pushed the operator/silent-errors-only branch from 6acdef7 to 0dfc383 Compare June 22, 2026 13:48
@fiberplane-operator fiberplane-operator Bot force-pushed the operator/silent-errors-only branch from 0dfc383 to e0baac0 Compare June 22, 2026 14:00
@laulauland laulauland merged commit fc90540 into main Jun 22, 2026
5 checks passed
@laulauland laulauland deleted the operator/silent-errors-only branch June 22, 2026 14:12
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.

drift check: a 'report errors only' mode (suppress the per-doc ok output)

1 participant