From 8daa9afcd8727e3fe6a348fb695057a83c5a7f79 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 17:47:31 +0000 Subject: [PATCH 1/6] Remove dead CI and bot config, fix nightly Gradle wrapper update - Set up JDK 17 in the Update Gradle Wrapper workflow. The runner's default JDK is too new for the build ("Unsupported class file major version 69"), so the job has failed every night. - Remove azure-pipelines.yml; Azure Pipelines no longer reports on commits. - Remove the CI - Windows workflow (disabled) and its /windows-test slash-command dispatcher. - Remove .github/bumper.yml (unused bot config) and the unreferenced check_ci_status.sh script. - Remove .github/settings.yml. The repository is no longer managed by the Settings app; branch protection now lives in repository rulesets. Co-Authored-By: Claude Opus 5.5 --- .github/bumper.yml | 3 - .github/settings.yml | 418 ------------------- .github/workflows/ci-windows-trigger.yml | 27 -- .github/workflows/ci-windows.yml | 119 ------ .github/workflows/scripts/check_ci_status.sh | 13 - azure-pipelines.yml | 38 -- 6 files changed, 618 deletions(-) delete mode 100644 .github/bumper.yml delete mode 100644 .github/settings.yml delete mode 100644 .github/workflows/ci-windows-trigger.yml delete mode 100644 .github/workflows/ci-windows.yml delete mode 100755 .github/workflows/scripts/check_ci_status.sh delete mode 100644 azure-pipelines.yml diff --git a/.github/bumper.yml b/.github/bumper.yml deleted file mode 100644 index bb9bca7d29a..00000000000 --- a/.github/bumper.yml +++ /dev/null @@ -1,3 +0,0 @@ -updates: -- path: mkdocs.yml - pattern: 'latest_version: (.*)' diff --git a/.github/settings.yml b/.github/settings.yml deleted file mode 100644 index 63c8afacb90..00000000000 --- a/.github/settings.yml +++ /dev/null @@ -1,418 +0,0 @@ -# These settings are synced to GitHub by https://probot.github.io/apps/settings/ - -repository: - # See https://docs.github.com/en/rest/reference/repos#update-a-repository for all available settings. - - # The name of the repository. Changing this will rename the repository - name: testcontainers-java - - # A short description of the repository that will show up on GitHub - description: Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container. - - # A URL with more information about the repository - homepage: https://testcontainers.org - - # A comma-separated list of topics to set on the repository - topics: java,testing,docker,docker-compose,jvm,test-automation,junit,hacktoberfest,integration-testing - - # Either `true` to make the repository private, or `false` to make it public. - private: false - - # Either `true` to enable issues for this repository, `false` to disable them. - has_issues: true - - # Either `true` to enable projects for this repository, or `false` to disable them. - # If projects are disabled for the organization, passing `true` will cause an API error. - has_projects: false - - # Either `true` to enable the wiki for this repository, `false` to disable it. - has_wiki: false - - # Either `true` to enable downloads for this repository, `false` to disable them. - has_downloads: false - - # Updates the default branch for this repository. - default_branch: main - - # Either `true` to allow squash-merging pull requests, or `false` to prevent - # squash-merging. - allow_squash_merge: true - - # Either `true` to allow merging pull requests with a merge commit, or `false` - # to prevent merging pull requests with merge commits. - allow_merge_commit: false - - # Either `true` to allow rebase-merging pull requests, or `false` to prevent - # rebase-merging. - allow_rebase_merge: false - - # Either `true` to enable automatic deletion of branches on merge, or `false` to disable - delete_branch_on_merge: true - -# Labels: define labels for Issues and Pull Requests -# If including a `#`, make sure to wrap it with quotes! -labels: - - name: area/bitbucket-pipelines - color: '#f9d0c4' - - - name: area/docker-compose - color: '#f9d0c4' - - - name: area/logging - color: '#f9d0c4' - - - name: area/shading - color: '#f9d0c4' - - - name: area/test frameworks - color: '#f9d0c4' - - - name: blocker - color: '#b60205' - - - name: client/docker-for-mac - color: '#c2e0c6' - - - name: client/docker-for-windows - color: '#c2e0c6' - - - name: client/docker-machine - color: '#c2e0c6' - - - name: client/in-container - color: '#c2e0c6' - - - name: client/podman - color: '#c2e0c6' - - - name: dependencies - color: '#0025ff' - - - name: github_actions - color: '#000000' - - - name: good first issue - color: '#14d60a' - - - name: gradle-wrapper - color: '#02303A' - - - name: hacktoberfest - color: '#14d60a' - - - name: hacktoberfest-accepted - color: '#79C259' - - - name: help wanted - color: '#fef2c0' - - - name: modules/activemq - color: '#006b75' - - - name: modules/azure - color: '#006b75' - - - name: modules/cassandra - color: '#006b75' - - - name: modules/chromadb - color: '#006b75' - - - name: modules/clickhouse - color: '#006b75' - - - name: modules/cockroachdb - color: '#006b75' - - - name: modules/consul - color: '#006b75' - - - name: modules/couchbase - color: '#006b75' - - - name: modules/cratedb - color: '#006b75' - - - name: modules/db2 - color: '#006b75' - - - name: modules/dynalite - color: '#006b75' - - - name: modules/elasticsearch - color: '#006b75' - - - name: modules/gcloud - color: '#006b75' - - - name: modules/grafana - color: '#006b75' - - - name: modules/hivemq - color: '#006b75' - - - name: modules/influx - color: '#006b75' - - - name: modules/jdbc - color: '#006b75' - - - name: modules/jupiter - color: '#006b75' - - - name: modules/k3s - color: '#006b75' - - - name: modules/k6 - color: '#006b75' - - - name: modules/kafka - color: '#006b75' - - - name: modules/ldap - color: '#006b75' - - - name: modules/localstack - color: '#006b75' - - - name: modules/mariadb - color: '#006b75' - - - name: modules/milvus - color: '#006b75' - - - name: modules/minio - color: '#006b75' - - - name: modules/mockserver - color: '#006b75' - - - name: modules/mongodb - color: '#006b75' - - - name: modules/mysql - color: '#006b75' - - - name: modules/neo4j - color: '#006b75' - - - name: modules/nginx - color: '#006b75' - - - name: modules/oceanbase - color: '#006b75' - - - name: modules/ollama - color: '#006b75' - - - name: modules/openfga - color: '#006b75' - - - name: modules/oracle - color: '#006b75' - - - name: modules/orientdb - color: '#006b75' - - - name: modules/pinecone - color: '#006b75' - - - name: modules/postgres - color: '#006b75' - - - name: modules/presto - color: '#006b75' - - - name: modules/pulsar - color: '#006b75' - - - name: modules/qdrant - color: '#006b75' - - - name: modules/questdb - color: '#006b75' - - - name: modules/r2dbc - color: '#006b75' - - - name: modules/rabbitmq - color: '#006b75' - - - name: modules/redpanda - color: '#006b75' - - - name: modules/selenium - color: '#006b75' - - - name: modules/solace - color: '#006b75' - - - name: modules/solr - color: '#006b75' - - - name: modules/spock - color: '#006b75' - - - name: modules/sql-server - color: '#006b75' - - - name: modules/tidb - color: '#006b75' - - - name: modules/timeplus - color: '#006b75' - - - name: modules/toxiproxy - color: '#006b75' - - - name: modules/trino - color: '#006b75' - - - name: modules/typesense - color: '#006b75' - - - name: modules/vault - color: '#006b75' - - - name: modules/weaviate - color: '#006b75' - - - name: modules/yugabytedb - color: '#006b75' - - - name: modules/databend - color: '#006b75' - - - name: os/linux - color: '#1d76db' - - - name: os/macOS - color: '#1d76db' - - - name: os/windows - color: '#1d76db' - - - name: resolution/acknowledged - color: '#fef2c0' - - - name: resolution/answered - color: '#fef2c0' - - - name: resolution/awaiting-release - color: '#fef2c0' - - - name: resolution/duplicate - color: '#fef2c0' - - - name: resolution/invalid - color: '#fef2c0' - - - name: resolution/pr-submitted - color: '#fef2c0' - - - name: resolution/somedaymaybe - color: '#fef2c0' - - - name: resolution/waiting-for-info - color: '#fef2c0' - - - name: resolution/wontfix - color: '#fef2c0' - - - name: security - color: '#ee0701' - - - name: stale - color: '#ffffff' - - - name: type/breaking-api-change - color: '#d4c5f9' - - - name: type/bug - color: '#d4c5f9' - - - name: type/deprecation - color: '#d4c5f9' - - - name: type/docs - color: '#d4c5f9' - - - name: type/enhancement - color: '#d4c5f9' - - - name: type/feature - color: '#d4c5f9' - - - name: type/housekeeping - color: '#d4c5f9' - - - name: type/new module - color: '#d4c5f9' - - - name: type/question - color: '#d4c5f9' - - - name: type/test-improvement - color: '#d4c5f9' - -# Collaborators: give specific users access to this repository. -# See https://docs.github.com/en/rest/reference/repos#add-a-repository-collaborator for available options -# collaborators: -# - username: -# permission: maintain - - # Note: `permission` is only valid on organization-owned repositories. - # The permission to grant the collaborator. Can be one of: - # * `pull` - can pull, but not push to or administer this repository. - # * `push` - can pull and push, but not administer this repository. - # * `admin` - can pull, push and administer this repository. - # * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions. - # * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access. - -# See https://docs.github.com/en/rest/reference/teams#add-or-update-team-repository-permissions for available options -teams: - # Please make sure the team already exist in the organization, as the repository-settings application is not creating them. - # See https://github.com/repository-settings/app/discussions/639 for more information about teams and settings - - name: java-team - # The permission to grant the team. Can be one of: - # * `pull` - can pull, but not push to or administer this repository. - # * `push` - can pull and push, but not administer this repository. - # * `admin` - can pull, push and administer this repository. - # * `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions. - # * `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access. - permission: admin - - name: oss-team - permission: maintain - -branches: - - name: main - # https://docs.github.com/en/rest/reference/repos#update-branch-protection - # Branch Protection settings. Set to null to disable - protection: - # Required. Require at least one approving review on a pull request, before merging. Set to null to disable. - required_pull_request_reviews: - # The number of approvals required. (1-6) - required_approving_review_count: 1 - # Dismiss approved reviews automatically when a new commit is pushed. - dismiss_stale_reviews: true - # Blocks merge until code owners have reviewed. - require_code_owner_reviews: true - # Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories. - dismissal_restrictions: - users: [] - teams: [java-team] - # Required. Require status checks to pass before merging. Set to null to disable - required_status_checks: - # Required. Require branches to be up to date before merging. - strict: true - # Required. The list of status checks to require in order to merge into this branch - contexts: ["core (17)", "core (21)", "check_docs_examples (:docs:examples:check)", "in-docker_test", "ci/circleci: minimal_core", "test"] - # Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable. - enforce_admins: false - # Prevent merge commits from being pushed to matching branches - required_linear_history: true - # Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable. - restrictions: - apps: [] - users: [] - teams: [java-team] diff --git a/.github/workflows/ci-windows-trigger.yml b/.github/workflows/ci-windows-trigger.yml deleted file mode 100644 index ce5d40a173b..00000000000 --- a/.github/workflows/ci-windows-trigger.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: windows-test command dispatch - -on: - issue_comment: - types: [created] - -permissions: - contents: read - -jobs: - windows-test-command-trigger: - permissions: - pull-requests: write # for peter-evans/slash-command-dispatch to create PR reaction - runs-on: ubuntu-latest - - steps: - - name: Trigger windows-test command - uses: peter-evans/slash-command-dispatch@9bdcd7914ec1b75590b790b844aa3b8eee7c683a # v5.0.2 - with: - token: ${{ secrets.WINDOWS_WORKERS_TOKEN }} - # The command to trigger the pipeline: e.g. /windows-test - # The command name must match the name of the repository_dispatch.type in 'ci-windows.yml' workflow, using '-command' as suffix. E.g. 'windows-test-command' - commands: windows-test - issue-type: pull-request - # The user that owns the above token must belong to the elevated role of 'Maintainers' - permission: maintain - reactions: false diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml deleted file mode 100644 index fa9e857212a..00000000000 --- a/.github/workflows/ci-windows.yml +++ /dev/null @@ -1,119 +0,0 @@ -name: CI - Windows - -on: - pull_request: - paths-ignore: - - '.github/ISSUE_TEMPLATE/*.yaml' - - '.github/CODEOWNERS' - - '.github/pull_request_template.md' - - 'docs/**/*.css' - - 'docs/**/*.html' - - 'docs/**/*.ico' - - 'docs/**/*.md' - - 'docs/**/*.png' - - 'docs/**/*.svg' - - 'mkdocs.yml' - - 'README.md' - - 'RELEASING.md' - - '.sdkmanrc' - push: - branches: [ main ] - paths-ignore: - - '.github/ISSUE_TEMPLATE/*.yaml' - - '.github/CODEOWNERS' - - '.github/pull_request_template.md' - - 'docs/**/*.css' - - 'docs/**/*.html' - - 'docs/**/*.ico' - - 'docs/**/*.md' - - 'docs/**/*.png' - - 'docs/**/*.svg' - - 'mkdocs.yml' - - 'README.md' - - 'RELEASING.md' - - '.sdkmanrc' - repository_dispatch: - types: [windows-test-command] - -concurrency: - group: "${{ github.workflow }}-${{ github.head_ref || github.sha }}" - cancel-in-progress: true - -permissions: - contents: read - -env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} - -jobs: - main: - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - runs-on: self-hosted - permissions: - checks: write - steps: - - uses: actions/checkout@v7 - - uses: ./.github/actions/setup-build - - name: Build with Gradle - run: ./gradlew.bat cleanTest testcontainers:test --no-daemon --continue --scan --no-build-cache - - uses: ./.github/actions/setup-junit-report - - pr: - if: ${{ github.event.client_payload.slash_command.command == 'windows-test' }} - runs-on: self-hosted - permissions: - checks: write - statuses: write - steps: - - name: Create pending status - uses: actions/github-script@v9 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - github.rest.repos.createCommitStatus({ - owner: context.repo.owner, - repo: context.repo.repo, - sha: context.payload.client_payload.pull_request.head.sha, - state: 'pending', - target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`, - context: 'CI - Windows', - }) - - uses: actions/checkout@v7 - with: - token: ${{ secrets.GITHUB_TOKEN }} - repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} - ref: ${{ github.event.client_payload.pull_request.head.ref }} - - uses: ./.github/actions/setup-build - - name: Build with Gradle - run: ./gradlew.bat cleanTest testcontainers:test --no-daemon --continue --scan --no-build-cache - - uses: ./.github/actions/setup-junit-report - - - name: Create success status - uses: actions/github-script@v9 - if: success() - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - github.rest.repos.createCommitStatus({ - owner: context.repo.owner, - repo: context.repo.repo, - sha: context.payload.client_payload.pull_request.head.sha, - state: 'success', - target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`, - context: 'CI - Windows', - }) - - - name: Create failure status - uses: actions/github-script@v9 - if: failure() - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - github.rest.repos.createCommitStatus({ - owner: context.repo.owner, - repo: context.repo.repo, - sha: context.payload.client_payload.pull_request.head.sha, - state: 'failure', - target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`, - context: 'CI - Windows', - }) diff --git a/.github/workflows/scripts/check_ci_status.sh b/.github/workflows/scripts/check_ci_status.sh deleted file mode 100755 index 29ef1d939a8..00000000000 --- a/.github/workflows/scripts/check_ci_status.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -o errexit -set -o nounset -set -o pipefail -set -o xtrace - -if [ -z $1 ] ; then - echo "First parameter (commit SHA) is required!" && exit 1; -fi - -STATUS=$(curl -s https://api.github.com/repos/testcontainers/testcontainers-java/commits/$1/status | jq -r '.state') - -[ "$STATUS" == 'success' ] diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 9279b3233f8..00000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,38 +0,0 @@ -jobs: - -- job: core_tests - timeoutInMinutes: 60 - steps: - - # Run all core tests when running the Windows CI tests - - task: Gradle@2 - condition: eq(variables['Agent.OS'], 'Windows_NT') - displayName: Build & test (Windows - core) - env: - AWS_ACCESS_KEY_ID: $(aws.accessKeyId) - AWS_SECRET_ACCESS_KEY: $(aws.secretAccessKey) - inputs: - gradleWrapperFile: 'gradlew' - jdkVersionOption: '1.8' - options: '--no-daemon --continue' - tasks: 'clean testcontainers:check' - publishJUnitResults: true - testResultsFiles: '**/TEST-*.xml' - -- job: other_tests - timeoutInMinutes: 120 - steps: - # Run all non-core tests when running the Windows CI tests - - task: Gradle@2 - condition: eq(variables['Agent.OS'], 'Windows_NT') - displayName: Build & test (Windows - all non-core modules) - env: - AWS_ACCESS_KEY_ID: $(aws.accessKeyId) - AWS_SECRET_ACCESS_KEY: $(aws.secretAccessKey) - inputs: - gradleWrapperFile: 'gradlew' - jdkVersionOption: '1.8' - options: '--no-daemon --continue' - tasks: 'clean check -x testcontainers:test' - publishJUnitResults: true - testResultsFiles: '**/TEST-*.xml' From c89a9f7202772c46e26d0f8a107867e4642a5794 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 17:50:06 +0000 Subject: [PATCH 2/6] Set up JDK 17 in the Update Gradle Wrapper workflow Co-Authored-By: Claude Opus 5.5 --- .github/workflows/update-gradle-wrapper.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/update-gradle-wrapper.yml b/.github/workflows/update-gradle-wrapper.yml index 782e1f637a3..62a840ab444 100644 --- a/.github/workflows/update-gradle-wrapper.yml +++ b/.github/workflows/update-gradle-wrapper.yml @@ -18,6 +18,9 @@ jobs: steps: - uses: actions/checkout@v7 + # The runner's default JDK is too new for this build's Gradle version. + - uses: ./.github/actions/setup-java + - name: Update Gradle Wrapper uses: gradle-update/update-gradle-wrapper-action@512b1875f3b6270828abfe77b247d5895a2da1e5 # v1.0.13 with: From 4ffe55ae2cb42e7cc2210629ce2e39a62deede06 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 17:51:44 +0000 Subject: [PATCH 3/6] Restore Windows CI, Azure Pipelines and bumper config Co-Authored-By: Claude Opus 5.5 --- .github/bumper.yml | 3 + .github/workflows/ci-windows-trigger.yml | 27 +++++ .github/workflows/ci-windows.yml | 119 +++++++++++++++++++ .github/workflows/scripts/check_ci_status.sh | 13 ++ azure-pipelines.yml | 38 ++++++ 5 files changed, 200 insertions(+) create mode 100644 .github/bumper.yml create mode 100644 .github/workflows/ci-windows-trigger.yml create mode 100644 .github/workflows/ci-windows.yml create mode 100755 .github/workflows/scripts/check_ci_status.sh create mode 100644 azure-pipelines.yml diff --git a/.github/bumper.yml b/.github/bumper.yml new file mode 100644 index 00000000000..bb9bca7d29a --- /dev/null +++ b/.github/bumper.yml @@ -0,0 +1,3 @@ +updates: +- path: mkdocs.yml + pattern: 'latest_version: (.*)' diff --git a/.github/workflows/ci-windows-trigger.yml b/.github/workflows/ci-windows-trigger.yml new file mode 100644 index 00000000000..ce5d40a173b --- /dev/null +++ b/.github/workflows/ci-windows-trigger.yml @@ -0,0 +1,27 @@ +name: windows-test command dispatch + +on: + issue_comment: + types: [created] + +permissions: + contents: read + +jobs: + windows-test-command-trigger: + permissions: + pull-requests: write # for peter-evans/slash-command-dispatch to create PR reaction + runs-on: ubuntu-latest + + steps: + - name: Trigger windows-test command + uses: peter-evans/slash-command-dispatch@9bdcd7914ec1b75590b790b844aa3b8eee7c683a # v5.0.2 + with: + token: ${{ secrets.WINDOWS_WORKERS_TOKEN }} + # The command to trigger the pipeline: e.g. /windows-test + # The command name must match the name of the repository_dispatch.type in 'ci-windows.yml' workflow, using '-command' as suffix. E.g. 'windows-test-command' + commands: windows-test + issue-type: pull-request + # The user that owns the above token must belong to the elevated role of 'Maintainers' + permission: maintain + reactions: false diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml new file mode 100644 index 00000000000..fa9e857212a --- /dev/null +++ b/.github/workflows/ci-windows.yml @@ -0,0 +1,119 @@ +name: CI - Windows + +on: + pull_request: + paths-ignore: + - '.github/ISSUE_TEMPLATE/*.yaml' + - '.github/CODEOWNERS' + - '.github/pull_request_template.md' + - 'docs/**/*.css' + - 'docs/**/*.html' + - 'docs/**/*.ico' + - 'docs/**/*.md' + - 'docs/**/*.png' + - 'docs/**/*.svg' + - 'mkdocs.yml' + - 'README.md' + - 'RELEASING.md' + - '.sdkmanrc' + push: + branches: [ main ] + paths-ignore: + - '.github/ISSUE_TEMPLATE/*.yaml' + - '.github/CODEOWNERS' + - '.github/pull_request_template.md' + - 'docs/**/*.css' + - 'docs/**/*.html' + - 'docs/**/*.ico' + - 'docs/**/*.md' + - 'docs/**/*.png' + - 'docs/**/*.svg' + - 'mkdocs.yml' + - 'README.md' + - 'RELEASING.md' + - '.sdkmanrc' + repository_dispatch: + types: [windows-test-command] + +concurrency: + group: "${{ github.workflow }}-${{ github.head_ref || github.sha }}" + cancel-in-progress: true + +permissions: + contents: read + +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} + +jobs: + main: + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + runs-on: self-hosted + permissions: + checks: write + steps: + - uses: actions/checkout@v7 + - uses: ./.github/actions/setup-build + - name: Build with Gradle + run: ./gradlew.bat cleanTest testcontainers:test --no-daemon --continue --scan --no-build-cache + - uses: ./.github/actions/setup-junit-report + + pr: + if: ${{ github.event.client_payload.slash_command.command == 'windows-test' }} + runs-on: self-hosted + permissions: + checks: write + statuses: write + steps: + - name: Create pending status + uses: actions/github-script@v9 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.rest.repos.createCommitStatus({ + owner: context.repo.owner, + repo: context.repo.repo, + sha: context.payload.client_payload.pull_request.head.sha, + state: 'pending', + target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`, + context: 'CI - Windows', + }) + - uses: actions/checkout@v7 + with: + token: ${{ secrets.GITHUB_TOKEN }} + repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }} + ref: ${{ github.event.client_payload.pull_request.head.ref }} + - uses: ./.github/actions/setup-build + - name: Build with Gradle + run: ./gradlew.bat cleanTest testcontainers:test --no-daemon --continue --scan --no-build-cache + - uses: ./.github/actions/setup-junit-report + + - name: Create success status + uses: actions/github-script@v9 + if: success() + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.rest.repos.createCommitStatus({ + owner: context.repo.owner, + repo: context.repo.repo, + sha: context.payload.client_payload.pull_request.head.sha, + state: 'success', + target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`, + context: 'CI - Windows', + }) + + - name: Create failure status + uses: actions/github-script@v9 + if: failure() + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.rest.repos.createCommitStatus({ + owner: context.repo.owner, + repo: context.repo.repo, + sha: context.payload.client_payload.pull_request.head.sha, + state: 'failure', + target_url: `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`, + context: 'CI - Windows', + }) diff --git a/.github/workflows/scripts/check_ci_status.sh b/.github/workflows/scripts/check_ci_status.sh new file mode 100755 index 00000000000..29ef1d939a8 --- /dev/null +++ b/.github/workflows/scripts/check_ci_status.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -o errexit +set -o nounset +set -o pipefail +set -o xtrace + +if [ -z $1 ] ; then + echo "First parameter (commit SHA) is required!" && exit 1; +fi + +STATUS=$(curl -s https://api.github.com/repos/testcontainers/testcontainers-java/commits/$1/status | jq -r '.state') + +[ "$STATUS" == 'success' ] diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000000..9279b3233f8 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,38 @@ +jobs: + +- job: core_tests + timeoutInMinutes: 60 + steps: + + # Run all core tests when running the Windows CI tests + - task: Gradle@2 + condition: eq(variables['Agent.OS'], 'Windows_NT') + displayName: Build & test (Windows - core) + env: + AWS_ACCESS_KEY_ID: $(aws.accessKeyId) + AWS_SECRET_ACCESS_KEY: $(aws.secretAccessKey) + inputs: + gradleWrapperFile: 'gradlew' + jdkVersionOption: '1.8' + options: '--no-daemon --continue' + tasks: 'clean testcontainers:check' + publishJUnitResults: true + testResultsFiles: '**/TEST-*.xml' + +- job: other_tests + timeoutInMinutes: 120 + steps: + # Run all non-core tests when running the Windows CI tests + - task: Gradle@2 + condition: eq(variables['Agent.OS'], 'Windows_NT') + displayName: Build & test (Windows - all non-core modules) + env: + AWS_ACCESS_KEY_ID: $(aws.accessKeyId) + AWS_SECRET_ACCESS_KEY: $(aws.secretAccessKey) + inputs: + gradleWrapperFile: 'gradlew' + jdkVersionOption: '1.8' + options: '--no-daemon --continue' + tasks: 'clean check -x testcontainers:test' + publishJUnitResults: true + testResultsFiles: '**/TEST-*.xml' From e0e5e48a12ffa7084b57d6bbb196877f43ebbe1e Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 17:59:48 +0000 Subject: [PATCH 4/6] Remove unused Boomper bot config Co-Authored-By: Claude Opus 5.5 --- .github/bumper.yml | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 .github/bumper.yml diff --git a/.github/bumper.yml b/.github/bumper.yml deleted file mode 100644 index bb9bca7d29a..00000000000 --- a/.github/bumper.yml +++ /dev/null @@ -1,3 +0,0 @@ -updates: -- path: mkdocs.yml - pattern: 'latest_version: (.*)' From 6b6882cd92479fe6924a6c8d18a83ee01c9d36fe Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 18:00:59 +0000 Subject: [PATCH 5/6] Remove orphaned check_ci_status.sh Co-Authored-By: Claude Opus 5.5 --- .github/workflows/scripts/check_ci_status.sh | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 .github/workflows/scripts/check_ci_status.sh diff --git a/.github/workflows/scripts/check_ci_status.sh b/.github/workflows/scripts/check_ci_status.sh deleted file mode 100755 index 29ef1d939a8..00000000000 --- a/.github/workflows/scripts/check_ci_status.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -o errexit -set -o nounset -set -o pipefail -set -o xtrace - -if [ -z $1 ] ; then - echo "First parameter (commit SHA) is required!" && exit 1; -fi - -STATUS=$(curl -s https://api.github.com/repos/testcontainers/testcontainers-java/commits/$1/status | jq -r '.state') - -[ "$STATUS" == 'success' ] From 3f9b78f2ff36097a9ecd93015d01db62bcf177cb Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2026 09:27:23 +0000 Subject: [PATCH 6/6] Add regression tests for JDK 17 setup in the Gradle wrapper update workflow --- .../utility/GradleWrapperWorkflowTest.java | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 core/src/test/java/org/testcontainers/utility/GradleWrapperWorkflowTest.java diff --git a/core/src/test/java/org/testcontainers/utility/GradleWrapperWorkflowTest.java b/core/src/test/java/org/testcontainers/utility/GradleWrapperWorkflowTest.java new file mode 100644 index 00000000000..40100468bc4 --- /dev/null +++ b/core/src/test/java/org/testcontainers/utility/GradleWrapperWorkflowTest.java @@ -0,0 +1,98 @@ +package org.testcontainers.utility; + +import org.junit.jupiter.api.Test; +import org.yaml.snakeyaml.Yaml; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +import static org.assertj.core.api.Assertions.assertThat; + +/** Regression tests for the JDK used by the nightly Gradle wrapper update. No Docker or GitHub access is needed. */ +class GradleWrapperWorkflowTest { + + @Test + void setsUpJavaAfterCheckoutAndBeforeUpdatingTheWrapper() throws IOException { + List> steps = workflowSteps(); + + int checkout = actionIndex(steps, "actions/checkout@"); + int setupJava = actionIndex(steps, "./.github/actions/setup-java"); + int updateWrapper = actionIndex(steps, "gradle-update/update-gradle-wrapper-action@"); + + assertThat(setupJava).as("local Java setup requires a checked out repository").isGreaterThan(checkout); + assertThat(setupJava).as("the wrapper updater must see the configured JDK").isLessThan(updateWrapper); + } + + @Test + void doesNotSkipOrIgnoreJavaSetupFailures() throws IOException { + List> steps = workflowSteps(); + Map setupJava = steps.get(actionIndex(steps, "./.github/actions/setup-java")); + + assertThat(setupJava).as("Java setup must run on every nightly update").doesNotContainKey("if"); + assertThat(setupJava) + .as("a failed setup must stop the job instead of using the runner's default JDK") + .doesNotContainKey("continue-on-error"); + } + + @Test + void configuresTemurin17InsteadOfTheRunnerDefault() throws IOException { + List> steps = workflowSteps(); + Map setupJava = steps.get(actionIndex(steps, "./.github/actions/setup-java")); + Map action = readYaml(".github/actions/setup-java/action.yml"); + Map javaVersionInput = map(map(action.get("inputs")).get("java-version")); + Map overrides = setupJava.containsKey("with") + ? map(setupJava.get("with")) + : Collections.emptyMap(); + + assertThat(overrides.getOrDefault("java-version", javaVersionInput.get("default"))).isEqualTo("17"); + + List> actionSteps = steps(map(action.get("runs"))); + Map installJava = actionSteps.get(actionIndex(actionSteps, "actions/setup-java@")); + Map options = map(installJava.get("with")); + assertThat(options) + .containsEntry("java-version", "${{ inputs.java-version }}") + .containsEntry("distribution", "temurin"); + } + + private static List> workflowSteps() throws IOException { + Map workflow = readYaml(".github/workflows/update-gradle-wrapper.yml"); + return steps(map(map(workflow.get("jobs")).get("update-gradle-wrapper"))); + } + + private static int actionIndex(List> steps, String action) { + for (int i = 0; i < steps.size(); i++) { + if (String.valueOf(steps.get(i).get("uses")).startsWith(action)) { + return i; + } + } + throw new AssertionError("Missing action: " + action); + } + + private static Map readYaml(String relativePath) throws IOException { + // Gradle runs tests in core/, while IDEs may use the repository root. + Path root = Paths.get("").toAbsolutePath(); + while (root != null && !Files.isRegularFile(root.resolve(relativePath))) { + root = root.getParent(); + } + assertThat(root).as("repository containing %s", relativePath).isNotNull(); + try (InputStream input = Files.newInputStream(root.resolve(relativePath))) { + return new Yaml().load(input); + } + } + + @SuppressWarnings("unchecked") + private static Map map(Object value) { + return (Map) value; + } + + @SuppressWarnings("unchecked") + private static List> steps(Map parent) { + return (List>) parent.get("steps"); + } +}