Skip to content

feat: structured tracing, retry with backoff, test fixture decoupling#149

Merged
kitplummer merged 3 commits intodevelopfrom
fix/production-readiness-p2-p3
Feb 19, 2026
Merged

feat: structured tracing, retry with backoff, test fixture decoupling#149
kitplummer merged 3 commits intodevelopfrom
fix/production-readiness-p2-p3

Conversation

@kitplummer
Copy link
Copy Markdown
Owner

@kitplummer kitplummer commented Feb 18, 2026

Summary

Also includes prior commit: graceful shutdown via ctrlc, env var sanitization, env-based config for secrets, and release profile optimization.

Test plan

  • cargo test — 42 pass (32 unit + 10 integration), 9 network tests ignored
  • cargo clippy -- -D warnings — 0 warnings
  • cargo build — clean build
  • make test-all — run with network access to verify ignored tests still pass
  • goa spy <url> --json — verify JSON structured log output
  • goa spy <url> -v 2 — verify tracing output with debug level

Closes #143, #144, #146

🤖 Generated with Claude Code

…e profile

- Add signal handling (SIGINT/SIGTERM) via ctrlc crate for graceful
  shutdown in both spy and radicle event loops (#139)
- Sanitize commit/patch metadata before passing as env vars: strip
  control characters and enforce 4096-char max length (#140)
- Support GOA_TOKEN, GOA_USERNAME, GOA_LEI_TOKEN env vars as
  alternatives to CLI flags for sensitive credentials (#147)
- Add [profile.release] with LTO, single codegen-unit, and automatic
  strip; remove manual strip from release workflow (#137)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kitplummer kitplummer changed the title feat: graceful shutdown, env sanitization, env config, release profile feat: structured tracing, retry with backoff, test fixture decoupling Feb 19, 2026
…k tests

Replace log/env_logger with tracing/tracing-subscriber for structured
logging with optional JSON output (--json flag). Add generic
retry_with_backoff helper with exponential backoff (capped at 30s) and
apply it to git clone, Radicle HTTP, and LEI HTTP operations. Migrate
~15 eprintln! calls to tracing error!/warn! macros. Decouple 9
network-dependent tests with #[ignore] and add 5 local git fixture
tests using git2::Repository::init. Add Makefile test-all target.

Closes #143, #144, #146

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kitplummer kitplummer force-pushed the fix/production-readiness-p2-p3 branch from b2e4e4e to 1010289 Compare February 19, 2026 16:44
@kitplummer kitplummer merged commit 058a7a2 into develop Feb 19, 2026
6 checks passed
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.

Replace eprintln!/println! with structured logging via tracing

1 participant