ci(mqtt): fold the MQTT e2e into the service matrix

Drop the standalone e2e_mqtt job; add Mqtt to e2e_service with processes: 1
so the session/replay tests keep running serially against the one broker.
This commit is contained in:
ArnabChatterjee20k committed 2026-09-18 16:13:31 +05:30
1 parent 3e583dd8f6
commit 0cddef7dba
1 file changed
+1 -57
+1 -57
View File
@@ -228,6 +228,7 @@ jobs:
{ name: 'Project', runner: runner4, functional: true, processes: null },
{ name: 'Organization', runner: runner4, functional: true, processes: null },
{ name: 'Presences', runner: runner4, functional: true, processes: null },
{ name: 'Mqtt', runner: runner4, functional: false, processes: 1 },
];
core.setOutput('services', JSON.stringify(services));
@@ -523,63 +524,6 @@ jobs:
echo "=== Appwrite Logs ==="
docker compose logs --timestamps
e2e_mqtt:
name: Tests / E2E / MQTT
runs-on: runs-on=${{ github.run_id }}/runner=4cpu-linux-x64/volume=60g/spot=price-capacity-optimized/retry=when-interrupted/extras=otel+ecr-cache
timeout-minutes: 15
needs: build
permissions:
contents: read
packages: read
env:
COMPOSE_PROFILES: ''
steps:
- name: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Login to Docker Hub
if: ${{ env.DOCKERHUB_AUTH_AVAILABLE == 'true' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- parallel:
- name: Pull Docker Image
run: |
docker pull ${{ env.RUNS_ON_ECR_CACHE }}:${{ env.IMAGE }}-${{ github.sha }}
docker tag ${{ env.RUNS_ON_ECR_CACHE }}:${{ env.IMAGE }}-${{ github.sha }} ${{ env.IMAGE }}
- name: Pull Docker Compose images
timeout-minutes: 5
run: |
for attempt in 1 2 3; do
if docker compose pull --quiet --ignore-buildable; then
break
elif [ "$attempt" -eq 3 ]; then
echo "::error::docker compose pull failed after 3 attempts; aborting"
exit 1
fi
echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s"
sleep 15
done
- name: Load and Start Appwrite
timeout-minutes: 5
run: docker compose up -d --quiet-pull --wait
- name: Run MQTT Tests
timeout-minutes: 15
run: >-
docker compose exec -T
appwrite test /usr/src/code/tests/e2e/Services/Mqtt --group mqtt
- name: Failure Logs
if: failure()
run: |
echo "=== Appwrite Logs ==="
docker compose logs --timestamps
e2e_service:
name: Tests / E2E / ${{ matrix.database }} (${{ matrix.mode }}) / ${{ matrix.service.name }}
runs-on: ${{ matrix.service.runner }}