molecule-core/workspace-server
Molecule AI Core-BE bb993ec5a8
Some checks failed
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 5s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: 2
Harness Replays / detect-changes (pull_request) Successful in 11s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 12s
sop-checklist-gate / gate (pull_request) Successful in 10s
security-review / approved (pull_request) Failing after 11s
qa-review / approved (pull_request) Failing after 12s
CI / Detect changes (pull_request) Successful in 17s
sop-tier-check / tier-check (pull_request) Successful in 10s
E2E API Smoke Test / detect-changes (pull_request) Successful in 17s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 17s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 18s
gate-check-v3 / gate-check (pull_request) Successful in 16s
Harness Replays / Harness Replays (pull_request) Successful in 5s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 19s
CI / Canvas (Next.js) (pull_request) Successful in 4s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 4s
CI / Python Lint & Test (pull_request) Successful in 3s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 5s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 6s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m17s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Failing after 2m29s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Failing after 2m34s
CI / Platform (Go) (pull_request) Failing after 4m48s
CI / all-required (pull_request) Failing after 1s
test(handlers): migrate 4x executeDelegation tests to real-Postgres integration
mc#664 Class 1: Replace 4 sqlmock-based TestExecuteDelegation_* tests
(+ 3 expectExecuteDelegation* helpers) in delegation_test.go with 5 real-Postgres
integration tests in delegation_executor_integration_test.go.

Deleted:
- expectExecuteDelegationBase/Success/Failed helpers (sqlmock-only)
- TestExecuteDelegation_DeliveryConfirmedProxyError_TreatsAsSuccess
- TestExecuteDelegation_ProxyErrorNon2xx_RemainsFailed
- TestExecuteDelegation_ProxyErrorEmptyBody_RemainsFailed
- TestExecuteDelegation_CleanProxyResponse_Unchanged

Added (delegation_executor_integration_test.go):
- TestIntegration_ExecuteDelegation_DeliveryConfirmedProxyError_TreatsAsSuccess
  — 200 with partial body → 'completed' (isDeliveryConfirmedSuccess guard)
- TestIntegration_ExecuteDelegation_ProxyErrorNon2xx_RemainsFailed
  — 500 with partial body → 'failed' (status>=200&&<300 guard fails)
- TestIntegration_ExecuteDelegation_ProxyErrorEmptyBody_RemainsFailed
  — 200 with empty body → 'failed' (len(body)>0 guard fails)
- TestIntegration_ExecuteDelegation_CleanProxyResponse_Unchanged
  — clean 200 → 'completed' (baseline)
- TestIntegration_ExecuteDelegation_RedisDown_FallsBackToDB
  — no Redis → graceful failure (not panic)

Each integration test verifies the delegations table state end-to-end,
which sqlmock cannot cover (drift in last_outbound_at UPDATE,
lookupDeliveryMode/Runtime SELECTs, a2a_receive INSERT, recordLedgerStatus
writes — mc#664 root cause). The existing Handlers Postgres Integration
CI job picks up the new TestIntegration_* tests automatically.

Closes: #686

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 10:57:16 +00:00
..
cmd docs(runbook): add admin-auth.md covering test-token route lockdown 2026-05-10 02:20:30 +00:00
internal test(handlers): migrate 4x executeDelegation tests to real-Postgres integration 2026-05-12 10:57:16 +00:00
migrations feat(plugins): plugin drift detector + queue + admin apply endpoint (#123) 2026-05-10 00:39:50 +00:00
pkg/provisionhook feat(#1957): wire gh-identity plugin into workspace-server 2026-04-24 15:01:41 +00:00
.air.toml feat(local-dev): air-based hot-reload for workspace-server 2026-05-08 08:10:50 -07:00
.ci-force chore: force Platform(Go) CI run on main — validate go vet clean 2026-04-21 15:43:19 +00:00
.gitignore feat(local-dev): containerize platform + canvas stack via docker-compose (closes #126) 2026-05-08 10:53:39 -07:00
.golangci.yaml chore(workspace-server): add golangci.yaml disabling errcheck 2026-04-24 07:16:54 +00:00
Dockerfile ci(docker): pin base image digests in all Dockerfiles 2026-05-09 23:56:39 +00:00
Dockerfile.dev ci(docker): pin base image digests in all Dockerfiles 2026-05-09 23:56:39 +00:00
Dockerfile.tenant fix(dockerfile-tenant): chown /org-templates to canvas user so !external resolver can mkdir cache 2026-05-09 19:40:52 -07:00
entrypoint-tenant.sh fix(memory-plugin): gate sidecar spawn on cutover-active 2026-05-05 12:39:03 -07:00
go.mod fix(internal#214): refresh go.sum for the go.moleculesai.app/plugin/gh-identity vanity path 2026-05-09 23:55:20 -07:00
go.sum [core-lead-agent] fix(core#228): cascade fixes for PluginResolver — make main compile 2026-05-10 09:46:35 +00:00