You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/test/tap/groups/ai
Rene Cannao 2538e303cf
tap ai: add dual-backend static-harvest fixtures and target_id coverage test
6 days ago
..
README.md tap ai: add dual-backend static-harvest fixtures and target_id coverage test 6 days ago
docker-compose-destroy.bash MCP: add target-aware rules/stats tests, explain_sql rule coverage, and AI local docker TAP infra 6 days ago
docker-compose-init.bash MCP: add target-aware rules/stats tests, explain_sql rule coverage, and AI local docker TAP infra 6 days ago
docker-compose.yml MCP: add target-aware rules/stats tests, explain_sql rule coverage, and AI local docker TAP infra 6 days ago
env.sh MCP: add target-aware rules/stats tests, explain_sql rule coverage, and AI local docker TAP infra 6 days ago
mysql-seed.sql tap ai: add dual-backend static-harvest fixtures and target_id coverage test 6 days ago
pgsql-seed.sql tap ai: add dual-backend static-harvest fixtures and target_id coverage test 6 days ago
post-proxysql.bash MCP: add target-aware rules/stats tests, explain_sql rule coverage, and AI local docker TAP infra 6 days ago
pre-proxysql.bash tap ai: add dual-backend static-harvest fixtures and target_id coverage test 6 days ago

README.md

AI TAP Group Local Infra

This group supports running AI/MCP TAP tests with an isolated local backend infra, without relying on Jenkins helper repos.

What it starts

  • MySQL 9.0 on 127.0.0.1:13306
  • PostgreSQL 16 on 127.0.0.1:15432

Both are started from test/tap/groups/ai/docker-compose.yml.

Group hooks

  • pre-proxysql.bash
    • starts local containers (docker-compose-init.bash)
    • seeds deterministic static-harvest datasets on both backends:
      • MySQL: tap_mysql_static_customers, tap_mysql_static_orders
      • PostgreSQL: tap_pgsql_static_accounts, tap_pgsql_static_events
    • enables MCP
    • configures backend hostgroups and MCP profiles/targets:
      • MySQL target: tap_mysql_default
      • PostgreSQL target: tap_pgsql_default
  • post-proxysql.bash
    • removes group-specific MCP profiles/targets/hostgroups
    • destroys local containers (docker-compose-destroy.bash)

Manual run (without Jenkins)

From repository root:

source test/tap/groups/ai/env.sh
bash test/tap/groups/ai/pre-proxysql.bash
# run your TAP tests here
bash test/tap/groups/ai/post-proxysql.bash

For MCP query-rules suite:

source test/tap/groups/ai/env.sh
bash test/tap/groups/ai/pre-proxysql.bash
bash test/tap/tests/test_mcp_query_rules-t.sh
bash test/tap/groups/ai/post-proxysql.bash

For static-harvest phase-A suite (mysql + pgsql targets):

source test/tap/groups/ai/env.sh
bash test/tap/groups/ai/pre-proxysql.bash
bash test/tap/tests/test_mcp_static_harvest-t.sh
bash test/tap/groups/ai/post-proxysql.bash

Notes

  • All variables can be overridden from the environment before running hooks.
  • The scripts still work in Jenkins-driven TAP flows because they do not require Jenkins-only paths.