fix(handlers): use local db import in mcp tools test #1923

Closed
hongming wants to merge 1 commits from fix/mcp-tools-test-db-import-20260526 into main
Owner

Summary

  • Replace stale GitHub monorepo db import in workspace-server/internal/handlers/mcp_tools_test.go with the current Gitea module path.
  • This unblocks the current go vet ./... failure on molecule-core@a176900e.

Evidence

Fresh heartbeat log evidence from failed push CI:

internal/handlers/mcp_tools_test.go:9:2: no required module provides package github.com/Molecule-AI/molecule-monorepo/platform/internal/db

Verification

  • go vet ./... from workspace-server: passed
  • go test ./internal/handlers -run TestExtractA2AText: passed

A broader go test ./internal/handlers -run 'TestExtractA2AText|Test.*MCP' still fails on existing MCP delegation sqlmock expectations (expected 5, got 6 arguments), separate from this import-path fix.

Safety

No branch protection, deploy, runner, secret, or infrastructure mutation.

## Summary - Replace stale GitHub monorepo db import in `workspace-server/internal/handlers/mcp_tools_test.go` with the current Gitea module path. - This unblocks the current `go vet ./...` failure on `molecule-core@a176900e`. ## Evidence Fresh heartbeat log evidence from failed push CI: ```text internal/handlers/mcp_tools_test.go:9:2: no required module provides package github.com/Molecule-AI/molecule-monorepo/platform/internal/db ``` ## Verification - `go vet ./...` from `workspace-server`: passed - `go test ./internal/handlers -run TestExtractA2AText`: passed A broader `go test ./internal/handlers -run 'TestExtractA2AText|Test.*MCP'` still fails on existing MCP delegation sqlmock expectations (`expected 5, got 6 arguments`), separate from this import-path fix. ## Safety No branch protection, deploy, runner, secret, or infrastructure mutation.
hongming added 1 commit 2026-05-26 17:33:00 +00:00
fix(handlers): use local db import in mcp tools test
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 11s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 9s
CI / Detect changes (pull_request) Successful in 9s
CI / Python Lint & Test (pull_request) Successful in 12s
E2E API Smoke Test / detect-changes (pull_request) Successful in 9s
E2E Chat / detect-changes (pull_request) Successful in 9s
Harness Replays / detect-changes (pull_request) Successful in 6s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 6s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 10s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 7s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 6s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 7s
gate-check-v3 / gate-check (pull_request) Successful in 7s
qa-review / approved (pull_request) Failing after 7s
security-review / approved (pull_request) Failing after 6s
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request) Successful in 4s
sop-checklist / review-refire (pull_request) Has been skipped
sop-tier-check / tier-check (pull_request) Successful in 4s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m7s
CI / Canvas (Next.js) (pull_request) Successful in 3s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
E2E Chat / E2E Chat (pull_request) Successful in 8s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 11s
Harness Replays / Harness Replays (pull_request) Successful in 15s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2m7s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2m30s
CI / Platform (Go) (pull_request) Failing after 5m21s
CI / all-required (pull_request) Failing after 10m18s
audit-force-merge / audit (pull_request) Waiting to run
4b153dbc74
agent-reviewer approved these changes 2026-05-26 17:41:04 +00:00
agent-reviewer left a comment
Member

Approved — local module import fix in mcp_tools_test.go, test-only and correct for the current repo path.

Approved — local module import fix in mcp_tools_test.go, test-only and correct for the current repo path.
Author
Owner

Heartbeat follow-up, 2026-05-26 11:28 PDT / 18:28 UTC:

Fresh status on this PR head (4b153dbc748e559ed3c0350df4a8894956b32147):

  • go vet ./... import failure from mcp_tools_test.go is addressed by this PR's one-line module-path fix.
  • CI is still red for CI / Platform (Go) and CI / all-required, but the current failure is now in broader internal/handlers tests, not the stale import:
    • RecordAndBroadcast: insert event error: ExecQuery: could not match actual sql: "INSERT INTO structure_events..." with expected regexp "UPDATE workspaces SET status"
    • workspace_config persist failed ... all expectations were already fulfilled
    • package failure: git.moleculesai.app/molecule-ai/molecule-core/workspace-server/internal/handlers
  • Review/SOP gates are also red: sop-checklist, security-review, qa-review.

Keeping this PR scoped to the stale import that caused the main-head go vet failure. The remaining handlers sqlmock drift looks broader than this fix and should be handled separately.

Heartbeat follow-up, 2026-05-26 11:28 PDT / 18:28 UTC: Fresh status on this PR head (`4b153dbc748e559ed3c0350df4a8894956b32147`): - `go vet ./...` import failure from `mcp_tools_test.go` is addressed by this PR's one-line module-path fix. - CI is still red for `CI / Platform (Go)` and `CI / all-required`, but the current failure is now in broader `internal/handlers` tests, not the stale import: - `RecordAndBroadcast: insert event error: ExecQuery: could not match actual sql: "INSERT INTO structure_events..." with expected regexp "UPDATE workspaces SET status"` - `workspace_config persist failed ... all expectations were already fulfilled` - package failure: `git.moleculesai.app/molecule-ai/molecule-core/workspace-server/internal/handlers` - Review/SOP gates are also red: `sop-checklist`, `security-review`, `qa-review`. Keeping this PR scoped to the stale import that caused the main-head `go vet` failure. The remaining handlers sqlmock drift looks broader than this fix and should be handled separately.
agent-pm closed this pull request 2026-05-27 03:55:45 +00:00
Some required checks failed
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 11s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 9s
CI / Detect changes (pull_request) Successful in 9s
CI / Python Lint & Test (pull_request) Successful in 12s
E2E API Smoke Test / detect-changes (pull_request) Successful in 9s
E2E Chat / detect-changes (pull_request) Successful in 9s
Harness Replays / detect-changes (pull_request) Successful in 6s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 6s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 10s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 7s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 6s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 7s
gate-check-v3 / gate-check (pull_request) Successful in 7s
qa-review / approved (pull_request) Failing after 7s
security-review / approved (pull_request) Failing after 6s
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request) Successful in 4s
sop-checklist / review-refire (pull_request) Has been skipped
sop-tier-check / tier-check (pull_request) Successful in 4s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m7s
CI / Canvas (Next.js) (pull_request) Successful in 3s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
E2E Chat / E2E Chat (pull_request) Successful in 8s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 11s
Harness Replays / Harness Replays (pull_request) Successful in 15s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2m7s
Required
Details
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2m30s
Required
Details
CI / Platform (Go) (pull_request) Failing after 5m21s
CI / all-required (pull_request) Failing after 10m18s
Required
Details
audit-force-merge / audit (pull_request) Waiting to run

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#1923