fix(workspace_restart): check QueryContext/ExecContext errors and rows.Err() in Pause/Resume #2052

Closed
core-be wants to merge 3 commits from fix/workspace-restart-rows-err into staging
Member
No description provided.
core-be added 2 commits 2026-06-01 03:37:06 +00:00
Prevents silent ingestion of partial DB result sets if an error occurs
mid-iteration while scanning global_secrets and workspace_secrets.

Issue: a9999b7d
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
fix(workspace_restart): check QueryContext/ExecContext errors and rows.Err() in Pause/Resume
Block internal-flavored paths / Block forbidden paths (pull_request) Waiting to run
CI / Detect changes (pull_request) Waiting to run
CI / Platform (Go) (pull_request) Blocked by required conditions
CI / Canvas (Next.js) (pull_request) Blocked by required conditions
CI / Shellcheck (E2E scripts) (pull_request) Blocked by required conditions
CI / Canvas Deploy Reminder (pull_request) Blocked by required conditions
CI / Python Lint & Test (pull_request) Blocked by required conditions
E2E API Smoke Test / detect-changes (pull_request) Waiting to run
E2E API Smoke Test / E2E API Smoke Test (pull_request) Blocked by required conditions
Handlers Postgres Integration / detect-changes (pull_request) Waiting to run
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Blocked by required conditions
Harness Replays / detect-changes (pull_request) Waiting to run
Harness Replays / Harness Replays (pull_request) Blocked by required conditions
Runtime PR-Built Compatibility / detect-changes (pull_request) Waiting to run
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Blocked by required conditions
Secret scan / Scan diff for credential-shaped strings (pull_request) Waiting to run
gate-check-v3 / gate-check (pull_request) Waiting to run
qa-review / approved (pull_request) Waiting to run
security-review / approved (pull_request) Waiting to run
sop-checklist / all-items-acked (pull_request) Waiting to run
sop-checklist / review-refire (pull_request) Waiting to run
sop-tier-check / tier-check (pull_request) Waiting to run
branch-protection drift check / Branch protection drift (pull_request) Successful in 4s
cascade-list-drift-gate / check (pull_request) Successful in 4s
Check merge_group trigger on required workflows / Required workflows have merge_group trigger (pull_request) Successful in 4s
CodeQL / Analyze (${{ matrix.language }}) (go) (pull_request) Failing after 2s
Check migration collisions / Migration version collision check (pull_request) Successful in 10s
CodeQL / Analyze (${{ matrix.language }}) (javascript-typescript) (pull_request) Failing after 3s
CodeQL / Analyze (${{ matrix.language }}) (python) (pull_request) Failing after 2s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 4s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 5s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 48s
Runtime Pin Compatibility / PyPI-latest install + import smoke (pull_request) Successful in 1m33s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 33s
1a185fd2a5
Adds error handling for DB calls in workspace Pause and Resume:
- Check QueryContext error instead of discarding it
- Check rows.Err() after Next() loops to detect partial results
- Check ExecContext errors when updating workspace status

Prevents silent failures during cascade pause/resume of workspace hierarchies.
core-be changed target branch from main to staging 2026-06-01 03:40:32 +00:00
core-be force-pushed fix/workspace-restart-rows-err from 1a185fd2a5 to 3ce6959215 2026-06-01 03:44:03 +00:00 Compare
core-be added 1 commit 2026-06-01 12:39:57 +00:00
ci: remove unused canvasUserMessage type to fix lint on staging
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 6s
CI / Detect changes (pull_request) Successful in 10s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 25s
E2E API Smoke Test / detect-changes (pull_request) Successful in 8s
E2E Chat / detect-changes (pull_request) Successful in 14s
CI / Platform (Go) (pull_request) Successful in 5m54s
CI / Canvas (Next.js) (pull_request) Successful in 7m21s
CI / Python Lint & Test (pull_request) Successful in 7m11s
CI / all-required (pull_request) Successful in 4m57s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 13s
Harness Replays / detect-changes (pull_request) Successful in 7s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m29s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 8s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
gate-check-v3 / gate-check (pull_request_target) Successful in 8s
qa-review / approved (pull_request_target) Successful in 11s
security-review / approved (pull_request_target) Successful in 4s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, local-postgres-e2
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 14s
sop-tier-check / tier-check (pull_request_target) Successful in 10s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
Harness Replays / Harness Replays (pull_request) Successful in 18s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2m23s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2m26s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 11s
E2E Chat / E2E Chat (pull_request) Failing after 7m24s
audit-force-merge / audit (pull_request_target) Has been skipped
0a58237de1
internal/handlers/a2a_proxy_helpers.go:412 had an unused struct that
causes golangci-lint `unused` failure on every PR targeting staging.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Member

Closing — based on the dead staging fork; this fix is already on main. main already error-checks QueryContext/Scan/rows.Err() and the status-update ExecContext in Pause/Resume (workspace_restart.go:907-914,996) and has the restart_context rows.Err() checks (restart_context.go:143-145). Per the staging-deprecation cleanup; target main for future PRs.

Closing — based on the dead `staging` fork; this fix is already on `main`. main already error-checks QueryContext/Scan/rows.Err() and the status-update ExecContext in Pause/Resume (workspace_restart.go:907-914,996) and has the restart_context rows.Err() checks (restart_context.go:143-145). Per the staging-deprecation cleanup; target `main` for future PRs.
devops-engineer closed this pull request 2026-06-01 18:28:29 +00:00
Some required checks failed
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 6s
CI / Detect changes (pull_request) Successful in 10s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 25s
E2E API Smoke Test / detect-changes (pull_request) Successful in 8s
E2E Chat / detect-changes (pull_request) Successful in 14s
CI / Platform (Go) (pull_request) Successful in 5m54s
CI / Canvas (Next.js) (pull_request) Successful in 7m21s
CI / Python Lint & Test (pull_request) Successful in 7m11s
CI / all-required (pull_request) Successful in 4m57s
Required
Details
Handlers Postgres Integration / detect-changes (pull_request) Successful in 13s
Harness Replays / detect-changes (pull_request) Successful in 7s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m29s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 8s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
gate-check-v3 / gate-check (pull_request_target) Successful in 8s
qa-review / approved (pull_request_target) Successful in 11s
security-review / approved (pull_request_target) Successful in 4s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, local-postgres-e2
Required
Details
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 14s
sop-tier-check / tier-check (pull_request_target) Successful in 10s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
Harness Replays / Harness Replays (pull_request) Successful in 18s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2m23s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2m26s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 11s
E2E Chat / E2E Chat (pull_request) Failing after 7m24s
audit-force-merge / audit (pull_request_target) Has been skipped

Pull request closed

Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2052