rdev/internal/worker
jordan b6e778d5ab
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix(git): harden git flow for concurrent SDLC stress test failures
5 fixes from stress test analysis:

1. CRITICAL: Add pull-before-push to claudebox GitOperations.CommitAndPush,
   matching the fix already in PodGitOperations (prevents push rejections
   when concurrent builds advance the remote).

2. HIGH: Extract ResetToMain into PodGitOperations as a shared public method.
   Wire into BuildExecutor after CloneRepo and update SDLCTaskExecutor to
   use the shared method. Prevents builds from running on wrong branch when
   worker pods are reused across tasks.

3. HIGH: Make branch create push failure fatal with retry+rollback in
   cmd/sdlc/cmd_branch.go. Prevents orphaned .sdlc/ state that causes
   merge failures after completing all 10 SDLC phases.

4. MEDIUM: Shell-escape token in credential helpers (both PodGitOperations
   and claudebox GitOperations) to prevent shell injection via tokens
   containing special characters.

5. MEDIUM: Add GitResetToMain to claudebox sidecar (git.go implementation,
   server.go endpoint, client.go HTTP method) and wire into
   HTTPSDLCTaskExecutor for the HTTP sidecar path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 20:57:27 -07:00
..
api_client_test.go fix: wire workService to WorkersHandler and add /work/tasks endpoint 2026-02-06 10:35:39 -07:00
api_client.go fix: worker graceful shutdown and RWO PVC compatibility 2026-02-06 00:35:00 -07:00
build_executor.go fix(git): harden git flow for concurrent SDLC stress test failures 2026-02-10 20:57:27 -07:00
checkout_cleanup.go feat: label-based undeploy, GC reconciliation, checkout/sessions, pool status 2026-02-09 19:11:28 -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
http_build_executor.go feat: enterprise worker pool with HTTP sidecar pattern 2026-02-05 16:21:11 -07:00
http_sdlc_executor.go fix(git): harden git flow for concurrent SDLC stress test failures 2026-02-10 20:57:27 -07:00
mock_test.go fix: wire workService to WorkersHandler and add /work/tasks endpoint 2026-02-06 10:35:39 -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(git): harden git flow for concurrent SDLC stress test failures 2026-02-10 20:57:27 -07:00
queue_maintenance_test.go fix: wire workService to WorkersHandler and add /work/tasks endpoint 2026-02-06 10:35:39 -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
resource_gc_test.go feat: label-based undeploy, GC reconciliation, checkout/sessions, pool status 2026-02-09 19:11:28 -07:00
resource_gc.go feat: label-based undeploy, GC reconciliation, checkout/sessions, pool status 2026-02-09 19:11:28 -07:00
sdlc_executor_test.go fix: go.work race condition with batch components and idempotent provisioning 2026-02-05 12:31:40 -07:00
sdlc_executor.go fix(git): harden git flow for concurrent SDLC stress test failures 2026-02-10 20:57:27 -07:00
session_cleanup.go feat: label-based undeploy, GC reconciliation, checkout/sessions, pool status 2026-02-09 19:11:28 -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