Skip to content

Add deployment preflight and exact-image verification - #1

Merged
elbrielle merged 1 commit into
mainfrom
codex/preflight-ci-refactor
Jul 13, 2026
Merged

elbrielle merged 1 commit into
mainfrom
codex/preflight-ci-refactor

Conversation

@elbrielle

Copy link
Copy Markdown
Owner

What changed

  • adds a safe --check mode that validates configured backends without contacting Discord
  • reports Chaptarr compatibility without exposing URLs, API keys, paths, or profile names
  • separates Chaptarr API models and pure selection rules from network and mutation code
  • builds and smoke-tests the exact container image in CI, then retains that tested image as a SHA-bound artifact
  • expands compatibility, migration, developer, and release documentation

Why

The first Rust deployment exposed two avoidable risks: configuration problems were discovered only after Discord startup, and local source tests did not prove that the actual Docker image would run correctly. This makes those checks explicit and repeatable before a Moonrock replacement.

User impact

Normal slash-command behavior remains unchanged. Operators gain an offline preflight command and a tested-image promotion path. Missing configuration or an untested Chaptarr version now fails preflight clearly.

Validation

  • Rust formatting check
  • 63 unit and regression tests
  • Clippy with warnings denied
  • release build
  • Nix flake checks
  • exact Nix-built Docker image smoke test under read-only, non-root, capability-dropped settings
  • actionlint, shellcheck, and Python/TOML/YAML parsing

@elbrielle
elbrielle marked this pull request as ready for review July 13, 2026 03:37
@elbrielle
elbrielle merged commit a87a105 into main Jul 13, 2026
4 checks passed
@elbrielle
elbrielle deleted the codex/preflight-ci-refactor branch July 13, 2026 03:37
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