ci: build + test server edition (-tags server) on PRs#631
Merged
Conversation
Deploying mcpproxy-docs with
|
| Latest commit: |
ac1d0bf
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://47f1aab1.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://mcp-1886-server-edition-ci.mcpproxy-docs.pages.dev |
Add a new 'server-edition' job to unit-tests.yml that builds and tests the server edition (-tags server) on every push and PR. This catches build breaks like the one in PR #602 where a duplicate type in a server-tagged file slipped through because only release.yml (tag-only) compiled with -tags server. Related #MCP-1886
37b2f09 to
ac1d0bf
Compare
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 27279582684 --repo smart-mcp-proxy/mcpproxy-go
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Dumbris
added a commit
that referenced
this pull request
Jun 15, 2026
… pkg (MCP-2455) (#679) PR #602 added internal/teams/broker/oauth_connector.go AFTER the Teams->Server Edition rename (#603) moved internal/teams/ -> internal/serveredition/. The connector landed in the stale path, in package broker, referencing CredentialStore/UpstreamCredential as same-package symbols — but those live in internal/serveredition/broker. Result: 'undefined: CredentialStore' under -tags server, breaking the Server Edition CI job on main (and therefore on every open PR after #631 added that job to PR CI). Fix: git mv the connector + its test into internal/serveredition/broker/ (no importers of the old path) and delete the now-empty internal/teams/ tree. Same package, so all refs resolve. No code changes. Verified: go build -tags server ./... (0), go build ./... (0), go test -tags server ./internal/serveredition/... (all ok). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Dumbris
added a commit
that referenced
this pull request
Jun 15, 2026
… deleted internal/teams) (#680) The Server Edition CI job (added #631) ran: go test -race -tags server ./internal/teams/... ./internal/config/... But the Teams->Server Edition rename (#603) moved that code to internal/serveredition/, and #679 deleted the last stale internal/teams/ file. So the job failed with 'lstat ./internal/teams/: no such file or directory' — and before that, it was silently testing the wrong (stale, near-empty) path, never the real serveredition packages. Fix: test ./internal/serveredition/... instead. Verified locally: go test -race -tags server ./internal/serveredition/... ./internal/config/... -> all 8 packages ok. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
//go:build server) was only compiled during tag-basedrelease.ymltokenResponse)server-editionjob to the PR workflow runninggo build -tags server ./cmd/mcpproxyandgo test -race -tags server ./internal/serveredition/... ./internal/config/...Verification
go build -tags server ./cmd/mcpproxypasses onmaingo test -race -tags server ./internal/serveredition/... ./internal/config/...passes onmainRelated #MCP-1886