Repository navigation
[TT-18717] Pass the Postgres MCP analytics DSN to API tests - #176
konrad-sol wants to merge 1 commit into
Conversation
Without TYK_TEST_MCP_POSTGRES_DSN the MCP analytics tests read raw records from Mongo, so on Postgres environments they find nothing. Needs the tyk-pro release with the unsharded raw sql-mcp pump (tyk-pro#115). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zizmor findings
Full details are in the workflow run. |
|
This PR updates the Files Changed Analysis
Architecture & Impact Assessment
graph TD
A[Start api-tests action] --> B{Get `db` input};
B --> C{"Is db value 'postgres*'?"};
C -- Yes --> D[Add TYK_TEST_MCP_POSTGRES_DSN to pytest.env];
D --> E[Run pytest];
C -- No --> E;
Scope Discovery & Context Expansion
Metadata
Powered by Visor from Probelabs Last updated: 2026-11-10T18:38:57.003Z | Triggered by: pr_opened | Commit: 1fabe65 💡 TIP: You can chat with Visor using |
Security Issues (1)
Security Issues (1)
✅ Performance Check PassedNo performance issues found – changes LGTM. Powered by Visor from Probelabs Last updated: 2026-11-10T18:38:33.513Z | Triggered by: pr_opened | Commit: 1fabe65 💡 TIP: You can chat with Visor using |
|
Closing: no longer needed. The API tests now detect a Postgres run themselves: Postgres matrix legs already pass |
On Postgres environments the MCP analytics tests need
TYK_TEST_MCP_POSTGRES_DSN; without it they read raw MCP records from Mongo and find none.dbinput ontests/api-tests, defaulting tomatrix.envfiles.dblikeapi_markersdoes.postgres*, adds the DSN topytest.envin URL form (the action splitspytest.envon whitespace, sohost=… port=…would break).Merge order: draft until TykTechnologies/tyk-pro#115 is merged and released. Before that release the raw
sql-mcppump writes to dated (sharded) tables, so the tests would look for a table that does not exist. This action goes live for every consumer via@productionon merge.Related: https://github.com/TykTechnologies/tyk-analytics/pull/6479
🤖 Generated with Claude Code