Repository navigation
Conversation
integration_tests_codebuild.yml and blue_green_integration_tests_codebuild.yml now run the jobs of integration_tests.yml and blue_green_integration_tests.yml on CodeBuild-hosted runners and take their push triggers. The originals keep workflow_dispatch as the GitHub-hosted fallback. The custom endpoint workflow moves to integration_tests_custom_endpoint.yml. CodeBuild jobs share outbound addresses. Each job opens TCP 3306 and 5432 on the default security group to its own address and records it, and one job per run revokes every recorded address. The workflows set SKIP_IP_AUTHORIZATION, so the harness never revokes a rule that another job still uses, and TEST_CONTAINER_REGISTRY=ecr, so the images come from ECR Public instead of Docker Hub. Both workflows share one concurrency group, so one run's revoke job can't cut off the other's jobs. Harness changes: - ContainerImages holds every image name. dockerhub, the default, keeps the current names, and a value other than dockerhub or ecr fails at once. With ecr, the Gradle test tasks turn off Ryuk and the Testcontainers startup check unless those variables are set. - Before each AWS environment build, sweeps delete test- clusters, instances, parameter groups, Blue/Green deployments and "Test run at" rules that are more than 12 hours old. Unless SWEEP_DRY_RUN is false, they only log. The workflows set it to false only on main. - An environment that fails to build now deletes what it created. Each delete skips an empty identifier and acts only on the cluster it asked for, because a lookup with no identifier returns every cluster in the region. - The harness rule is TCP 3306 and 5432 instead of every port, the RDS and EC2 clients retry throttling with the adaptive strategy, and the log names the Docker host that Testcontainers uses. The workflows set MYSQL_VERSION, PG_VERSION and RDS_DB_REGION instead of four names the harness no longer reads, so the Latest stage now tests the latest engine versions. Each test job sets a random, masked DB_PASSWORD. Aurora MySQL 8.4 refuses unencrypted connections, so the aiomysql test connections now use TLS without verifying the server certificate, as mysql-connector does by default.
JuanLeee
marked this pull request as ready for review
December 4, 2026 00:27
This branch has not been deployed
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.
Description
The integration tests can't move to CodeBuild-hosted runners as they are. CodeBuild jobs share NAT addresses, so one job's revoke cuts off the database access of the others, and anonymous Docker Hub pulls from those addresses fail with
toomanyrequests. The workflows also set engine-version variables the harness no longer reads, so the Latest stage tests the default engines.This PR adds CodeBuild versions of
integration_tests.ymlandblue_green_integration_tests.ymland keeps the originals as GitHub-hosted fallbacks.integration_tests_codebuild.ymlandblue_green_integration_tests_codebuild.ymlrun the same jobs on CodeBuild runners and take over the push triggers. They share one concurrency group, so their runs never overlap on the shared addresses.SKIP_IP_AUTHORIZATIONturns off the harness's own rule handling, andTEST_CONTAINER_REGISTRY=ecrpulls every image from ECR Public, with Ryuk and the Testcontainers startup check off.test-clusters, instances, parameter groups, Blue/Green deployments andTest run atrules older than 12 hours. It deletes them only whenSWEEP_DRY_RUNisfalse, which the workflows set only onmain.MYSQL_VERSION,PG_VERSIONandRDS_DB_REGION, which the harness reads, and give each job a random, maskedDB_PASSWORD.integration_tests_custom_endpoint.yml, andIntegrationTests.mddocuments the new variables and the CI setup.Behaviour changes
mainruns the CodeBuild workflows. The GitHub-hosted ones run only on dispatch.mainafter this merges deletestest-resources andTest run atrules older than 12 hours in the CI account.Tests
Checks outside this PR for the workflow structure, the two actions, the sweeps and deletes (against stub clients), the image names and the TLS connect sites fail on
mainand pass with this change.test-dockerwith thetest_basic_connectivityfilter passed 120 tests with both Docker Hub and ECR images.pytest tests/unit -Werror, flake8, isort and mypy pass on Python 3.10 and 3.12.On CodeBuild, the LTS stage passed 8 of 8 and the Blue/Green workflow passed 4 of 4, and the Latest MySQL job passed on Aurora MySQL 8.4 for Python 3.12. Python 3.11, 3.13 and 3.14 weren't run on 8.4. The other failures seen were an intermittent failover race in the product that also fails on
main, and RDS throttling while another run shared the account.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.