Skip to content

ci: add GitHub Actions workflow for automated testing#1

Merged
renecannao merged 1 commit intomainfrom
ci-test
Apr 22, 2026
Merged

ci: add GitHub Actions workflow for automated testing#1
renecannao merged 1 commit intomainfrom
ci-test

Conversation

@renecannao
Copy link
Copy Markdown
Contributor

Summary

Add GitHub Actions CI workflow that:

  1. Builds VillageSQL from tomas/dev branch
  2. Initializes test datadir
  3. Starts MySQL server
  4. Builds and installs the prometheus_exporter extension
  5. Runs MTR tests from the extension's mysql-test/ directory
  6. Uploads test logs on failure

Trigger

  • Runs on pull requests to main branch only
  • Uses tomas/dev branch for VillageSQL (will update when merged)

Test Coverage

The mysql-test/ directory in this repo contains:

  • basic.test - Extension install/uninstall lifecycle
  • format_validation.test - Prometheus format validation
  • global_variables.test - Global variables collection
  • metrics_endpoint.test - HTTP endpoint and all collectors
  • replica_status.test - Multi-channel replica metrics
  • scrape_counter.test - Request counter verification

All tests use MTR (MySQL Test Runner) framework.

Notes

  • CI takes ~25 minutes per run
  • Tests fail if any MTR test fails (enforced)
  • Logs uploaded automatically on test failure

- Build VillageSQL from tomas/dev branch
- Start MySQL server with test datadir
- Build and install prometheus_exporter extension
- Run MTR tests from extension's mysql-test directory
- Upload test logs on failure

Triggers on pull requests to main branch.
@renecannao renecannao merged commit f8ebf06 into main Apr 22, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant