feat(nx-ci): add test_integration input + grant PROCESS to MySQL test user#31
Merged
AndriiTsok merged 1 commit intomainfrom Apr 20, 2026
Merged
feat(nx-ci): add test_integration input + grant PROCESS to MySQL test user#31AndriiTsok merged 1 commit intomainfrom
AndriiTsok merged 1 commit intomainfrom
Conversation
… user Two related changes that together let a workspace move its integration test lane off a dedicated per-plugin workflow (like mcpg-dev's sql-integration.yml) and back onto nx-ci.yml alongside lint / test / build. nx-ci.yml — new `test_integration: bool` input (default false). When true, runs `pnpm nx <affected|run-many> -t test:integration` after the main `test` step. Projects that don't declare the target are skipped silently by Nx. Intended for CD-gated lanes where callers flip this on for merges / PRs targeting core branches (main / develop / next). environment-setup — grant PROCESS on *.* to the mcpg MySQL test user alongside the existing database-scoped GRANT ALL. MySQL 8 requires PROCESS for `KILL QUERY` across sessions, which the sql-binding integration tests exercise when validating cancellation. Safe on an ephemeral CI database that only the test user touches. Callers that want the CD-gated integration lane can now drop their dedicated workflow, toggle `test_integration: true` + flip `environment_skip` to include services, and rely on the same reusable workflow path as every other target.
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
Two related changes that let workspaces move per-plugin integration workflows (mcpg-dev/source-code's `sql-integration.yml` is the motivating example) back onto nx-ci.yml alongside lint/test/build — gated on CD branches where integration suites should run.
1. `nx-ci.yml`: `test_integration: bool` input
2. `environment-setup`: grant `PROCESS` on . to `mcpg` MySQL user
MySQL 8 requires the server-wide `PROCESS` privilege for `KILL QUERY` across sessions. mcpg-dev's sql-binding cancellation tests exercise exactly that path. Grant is scoped to the same `mcpg`@`127.0.0.1` / `mcpg`@`localhost` users we already create for the test DB.
Downstream impact
Test plan