rdev/internal/worker
jordan 53862c773b fix: resolve systemic debt in worker and skeleton templates
Worker template fixes:
- Replace panic() with logger.Error() + os.Exit(1) for config errors
- Remove double-timeout application (context + middleware)
- Add error message truncation to prevent log bloat
- Use named constants for shutdown grace period and stale check interval

Skeleton pkg/auth fixes:
- Fix error wrapping to use %w consistently in jwt.go
- Add GetUserOrError() as safe alternative to MustGetUser() panic

Skeleton pkg/queue fixes:
- Check RowsAffected() errors instead of ignoring them
- Add input validation to EnqueueWithOptions (require job type, cap retries)
- Add log truncation for error messages
- Fix inaccurate doc comment claiming exponential backoff

Worker timeout consolidation:
- Add internal/worker/timeouts.go with named constants
- Migrate all workers to use timeout constants

Cleanup:
- Remove obsolete slack-preparation-thoughts.md files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 23:44:55 -07:00
..
build_executor.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
external_health_test.go feat: add diagnostics endpoint and external health monitoring 2026-02-03 19:10:56 -07:00
external_health.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
mock_test.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
operation_cleanup.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
pod_git_operations.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
queue_maintenance_test.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
queue_maintenance.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
queue_processor.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
sdlc_executor_test.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
sdlc_executor.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
timeouts.go feat: add structured logging infrastructure and SDLC extensions 2026-02-04 22:56:04 -07:00
verify_executor_test.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
verify_executor.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
work_executor_test.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00
work_executor.go fix: resolve systemic debt in worker and skeleton templates 2026-02-04 23:44:55 -07:00