Post

Introducing Protected Resource‑Store Failure Classification in CI Validation

Introducing Protected Resource‑Store Failure Classification in CI Validation

I updated the CI validation and capture scripts to explicitly identify protected resource‑store failures, improve backup verification, and provide clearer diagnostic errors, making our GitOps homelab more reliable and easier to troubleshoot.

Introducing Protected Resource‑Store Failure Classification

The commit fix(octelium): identify protected resource-store check failures (#2236) added a dedicated category for protected resource‑store failures in openwiki/operations/validation-gates.md. This isolates those failures from generic dispatch or transport errors, allowing teams to see exactly when a protected resource‑store check does not meet expectations without conflating unrelated issues.

Enhanced Backup Verification and Workspace Permissions

The scripts/ci/octelium-rscstore-backup.sh changes now verify that the expected SHA matches the GitHub workflow SHA and that the workspace directory is present, not a symlink, and has mode‑0700 permissions. This ensures the backup step only proceeds when the correct source and secure workspace conditions are met, reducing the risk of corrupted or insecure backups.

Refined Offline Checks, Terragrunt Diagnostics, and Capture Error Handling

scripts/ci/offline-checks.sh was tweaked to keep command output private and return specific exit codes, while scripts/ci/terragrunt-current-main.sh now distinguishes lookup failures from stale revision errors using custom exit codes. The scripts/octelium-rscstore-capture.py update introduces custom exception classes (RevisionMismatch, ScratchFailure) and uses them in require calls, yielding clearer error messages. A team can now run the CI pipeline, see a precise failure category for a protected resource‑store check, verify the backup SHA and workspace mode, and diagnose terragrunt lookups versus stale revisions without digging through logs.

This post is licensed under CC BY 4.0 by the author.