Files
floci/.github/workflows/compat-partitions.yml
T
dependabot[bot] 52985a2f19 build(deps): bump the actions-minor-patch group with 8 updates (#4867)
Bumps the actions-minor-patch group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [graalvm/setup-graalvm](https://github.com/graalvm/setup-graalvm) | `1.6.4` | `1.6.6` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact) | `7.0.0` | `7.0.1` |
| [actions/download-artifact](https://github.com/actions/download-artifact) | `8.0.0` | `8.0.1` |
| [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `4.3.0` | `4.4.1` |
| [docker/build-push-action](https://github.com/docker/build-push-action) | `7.3.0` | `7.4.0` |
| [actions/setup-java](https://github.com/actions/setup-java) | `6.0.0` | `6.0.1` |
| [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) | `6.2.3` | `6.3.0` |
| [aws-actions/amazon-ecr-login](https://github.com/aws-actions/amazon-ecr-login) | `2.0.1` | `2.1.7` |


Updates `graalvm/setup-graalvm` from 1.6.4 to 1.6.6
- [Release notes](https://github.com/graalvm/setup-graalvm/releases)
- [Commits](https://github.com/graalvm/setup-graalvm/compare/5298d94fb55a4f185c602eeac5de1b553882abe2...0426e2e191540e8514dff98dc52a5f5146a2a276)

Updates `actions/upload-artifact` from 7.0.0 to 7.0.1
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v7...043fb46d1a93c77aae656e7c1c64a875d1fc6a0a)

Updates `actions/download-artifact` from 8.0.0 to 8.0.1
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v8...3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c)

Updates `docker/setup-buildx-action` from 4.3.0 to 4.4.1
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/37fe631027851001ddb9b187196cc803df7f5f0e...f87e5991a6d7451dcb8d9637bfbc97413f497069)

Updates `docker/build-push-action` from 7.3.0 to 7.4.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/53b7df96c91f9c12dcc8a07bcb9ccacbed38856a...c3c9e263c25d99ce0380d002d59b67737d91b0dc)

Updates `actions/setup-java` from 6.0.0 to 6.0.1
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/dd06d9cba3e5552c54d9f8ea23572deb30010f7c...de7274f081f381c8f8158605e0321c36c376e2e6)

Updates `aws-actions/configure-aws-credentials` from 6.2.3 to 6.3.0
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/e6de054238d6b7531b4efff3b6587d9aade6a06c...e1253824e5c10ff9df46874f81ed3ec929e19cfd)

Updates `aws-actions/amazon-ecr-login` from 2.0.1 to 2.1.7
- [Release notes](https://github.com/aws-actions/amazon-ecr-login/releases)
- [Changelog](https://github.com/aws-actions/amazon-ecr-login/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/amazon-ecr-login/compare/062b18b96a7aff071d4dc91bc00c4c1a7945b076...03f1aad4c6c7ffd436567f42f9384779290529bd)

---
updated-dependencies:
- dependency-name: graalvm/setup-graalvm
  dependency-version: 1.6.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-minor-patch
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-minor-patch
- dependency-name: actions/download-artifact
  dependency-version: 8.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-minor-patch
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
- dependency-name: docker/build-push-action
  dependency-version: 7.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
- dependency-name: actions/setup-java
  dependency-version: 6.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-minor-patch
- dependency-name: aws-actions/configure-aws-credentials
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
- dependency-name: aws-actions/amazon-ecr-login
  dependency-version: 2.1.7
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-08 22:18:24 -05:00

161 lines
6.1 KiB
YAML

name: Partition Compatibility
# The Java SDK suite against a Floci deployed in a non-commercial partition, so
# the SDK's own partition logic (arn:aws-cn: ARNs, China signing scopes, the
# LocationConstraint S3 CreateBucket sends) has to round-trip end to end. Part
# of #4272.
#
# Runs after each Nightly against the image it just published, not per PR: it
# is one more ~15 minute native suite, and the per-PR legs already queue for
# the shared runner pools (see compatibility.yml). Known failures live in
# .github/ci/compat-partition-allowlist-<region>.txt (a region without one has
# none); a failure missing from it, or an entry that no longer fails, fails the
# run, so the list only shrinks.
on:
workflow_run:
workflows: [Nightly]
types: [completed]
workflow_dispatch:
inputs:
image:
description: Floci image to test
default: floci/floci:nightly
region:
description: Region Floci and the SDK clients default to
default: cn-north-1
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sdk-test-java:
name: sdk-test-java / ${{ inputs.region || 'cn-north-1' }}
if: >-
!github.event.repository.fork
&& (github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-24.04-arm
timeout-minutes: 30
env:
IMAGE: ${{ inputs.image || 'floci/floci:nightly' }}
REGION: ${{ inputs.region || 'cn-north-1' }}
steps:
# The tag is mutable, so the suite and allowlist are checked out at the commit this exact
# image was built from (its OCI revision label, which Nightly sets), never a guessed one.
- name: Pull the image and read the commit it was built from
id: image
run: |
docker pull "$IMAGE"
revision=$(docker inspect -f '{{ index .Config.Labels "org.opencontainers.image.revision" }}' "$IMAGE")
if [ -z "$revision" ] || [ "$revision" = "<no value>" ]; then
echo "::error::$IMAGE has no org.opencontainers.image.revision label to match the tests to"
exit 1
fi
echo "revision=$revision" >> "$GITHUB_OUTPUT"
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ steps.image.outputs.revision }}
sparse-checkout: |
compatibility-tests
.github/ci
- name: Create Docker network
run: docker network create compat-net
- name: Start floci
run: |
DOCKER_GID=$(stat -c '%g' /var/run/docker.sock)
docker run -d --name floci --network compat-net \
-p 4566:4566 \
-v /var/run/docker.sock:/var/run/docker.sock \
--group-add "$DOCKER_GID" \
-e FLOCI_DEFAULT_REGION="$REGION" \
-e FLOCI_BASE_URL=http://floci:4566 \
-e FLOCI_SERVICES_DOCKER_NETWORK=compat-net \
-e FLOCI_HOSTNAME=floci \
-e FLOCI_SERVICES_IOT_MQTT_ENABLED=true \
-e FLOCI_SERVICES_LAMBDA_HOT_RELOAD_ENABLED=true \
-e FLOCI_TLS_ENABLED=true \
-e FLOCI_SERVICES_EC2_MOCK=true \
-e FLOCI_SERVICES_REDSHIFT_ENDPOINT_HOST=floci \
-e FLOCI_SERVICES_RDS_ENDPOINT_HOST=floci \
-e FLOCI_SERVICES_SSOOIDC_LOCAL_PRINCIPAL_ID=11111111-2222-3333-4444-555555555555 \
"$IMAGE"
- name: Wait for floci to be healthy
run: |
health=starting
for _ in $(seq 1 60); do
health=$(docker inspect -f '{{.State.Health.Status}}' floci)
if [ "$health" = healthy ]; then
exit 0
fi
if [ "$health" = unhealthy ]; then
break
fi
sleep 1
done
echo "::error::floci did not report healthy (last status: $health)"
docker logs --tail 50 floci
exit 1
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- name: Build test image
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: compatibility-tests/sdk-test-java
load: true
tags: compat-sdk-test-java
cache-from: type=gha,scope=sdk-test-java
# The suite's exit status is not the verdict here: the allowlist check below is.
- name: Run tests
id: tests
continue-on-error: true
run: |
mkdir -p test-results /tmp/floci-hot-reload
FLOCI_IP=$(docker inspect -f '{{(index .NetworkSettings.Networks "compat-net").IPAddress}}' floci)
docker run --rm --network compat-net \
--dns "${FLOCI_IP}" \
-e AWS_REGION="$REGION" \
-e FLOCI_ENDPOINT=http://floci:4566 \
-e FLOCI_S3_VHOST_ENDPOINT=http://floci:4566 \
-e HOT_RELOAD_BASE_DIR=/tmp/floci-hot-reload \
-v /tmp/floci-hot-reload:/tmp/floci-hot-reload \
-v "$(pwd)/test-results:/results" \
compat-sdk-test-java
# Maven exits non-zero for the allowlisted failures too, so its status cannot tell a
# finished run from an aborted one; the checker requires a report for every test class.
- name: Compare failures with the allowlist
run: >-
python3 .github/ci/compat-allowlist-check.py test-results
".github/ci/compat-partition-allowlist-$REGION.txt"
--test-sources compatibility-tests/sdk-test-java/src/test/java
- name: Generate test summary
if: always()
uses: test-summary/action@37b508cfee6d4d080eedd00b5bb240a6a784a6a5 # v2
with:
paths: test-results/*.xml
- name: Upload test results
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: compat-partition-results-${{ env.REGION }}
path: test-results/
if-no-files-found: warn
- name: Dump floci logs
if: failure() || cancelled()
run: docker logs --tail 300 floci