Skip to content

chore: fix audit violations and host-level error detection - #35

Merged
retr0h merged 1 commit into
mainfrom
chore/fix-audit-violations-v2
Mar 29, 2026
Merged

chore: fix audit violations and host-level error detection#35
retr0h merged 1 commit into
mainfrom
chore/fix-audit-violations-v2

Conversation

@retr0h

@retr0h retr0h commented Mar 29, 2026

Copy link
Copy Markdown
Contributor

Summary

PR #32 (engine consolidation) was branched before our cleanup PRs merged,
re-introducing docs/gen/ and gomarkdoc. Also found bugs in host-level
failure guards that only checked hr.Status but not hr.Error.

  • Delete docs/gen/ and remove gomarkdoc from go.mod
  • Fix README: pkg.go.dev badge/link, emoji headers
  • Consolidate TestStructToMapUnmarshalError into TestStructToMap
  • Fix OnlyIfAnyHostFailed / OnlyIfAllHostsFailed to check hr.Error
    (not just hr.Status), so commandError exit codes trigger guards.
    Skipped hosts (Status=skipped) are excluded from failure detection.
  • Add cleanup phase to cron.go example
  • Fix agent-drain.go to use first discovered agent as default

Test plan

  • just test passes with 100% coverage
  • just go::vet passes with 0 issues
  • error-recovery.go Plan 2 cleanup runs on command failure
  • broadcast-guards.go cleanup runs on command failure

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown

Thank you for contributing to this project! 😊🕹️

@codecov

codecov Bot commented Mar 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #35   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           14        14           
  Lines         1863      1863           
=========================================
  Hits          1863      1863           
Files with missing lines Coverage Δ
pkg/orchestrator/step.go 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2d39874...099800d. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@retr0h
retr0h force-pushed the chore/fix-audit-violations-v2 branch from e597370 to b423838 Compare March 29, 2026 22:02
- Delete docs/gen/ (re-added by PR #32 after cleanup)
- Remove gomarkdoc from go.mod tools
- Fix README: add pkg.go.dev badge/link, emoji headers
- Consolidate TestStructToMapUnmarshalError into TestStructToMap
- Fix OnlyIfAnyHostFailed/OnlyIfAllHostsFailed to check hr.Error
  in addition to hr.Status, so commandError exit codes trigger
  host failure guards (skipped hosts excluded)
- Add cleanup phase to cron.go example
- Fix agent-drain.go to use first discovered agent as default

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@retr0h
retr0h force-pushed the chore/fix-audit-violations-v2 branch from b423838 to 099800d Compare March 29, 2026 22:04
@retr0h
retr0h merged commit 5988bec into main Mar 29, 2026
9 checks passed
@retr0h
retr0h deleted the chore/fix-audit-violations-v2 branch March 29, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant