fix(ci): reach DIND services over the compose network
MobilityOps acceptance / acceptance (pull_request) Failing after 6m58s
MobilityOps acceptance / acceptance (pull_request) Failing after 6m58s
This commit is contained in:
@@ -53,24 +53,25 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
docker compose -p mobilityops-e2e up --build -d db api web
|
docker compose -p mobilityops-e2e up --build -d db api web
|
||||||
|
docker network connect mobilityops-e2e_mobilityops "$HOSTNAME"
|
||||||
for _attempt in $(seq 1 60); do
|
for _attempt in $(seq 1 60); do
|
||||||
if curl -fsS http://localhost:1228/health/ready >/dev/null 2>&1; then break; fi
|
if curl -fsS http://web/health/ready >/dev/null 2>&1; then break; fi
|
||||||
sleep 2
|
sleep 2
|
||||||
done
|
done
|
||||||
curl -fsS http://localhost:1228/health/ready
|
curl -fsS http://web/health/ready
|
||||||
docker compose -p mobilityops-e2e exec -T api python -m app.cli seed --reset
|
docker compose -p mobilityops-e2e exec -T api python -m app.cli seed --reset
|
||||||
- name: Install acceptance browsers
|
- name: Install acceptance browsers
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
run: npx playwright install --with-deps chromium firefox
|
run: npx playwright install --with-deps chromium
|
||||||
- name: Run browser acceptance and live smoke suites
|
- name: Run browser acceptance and live smoke suites
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
env:
|
env:
|
||||||
MOBILITYOPS_PUBLIC_URL: http://localhost:1228
|
MOBILITYOPS_PUBLIC_URL: http://web
|
||||||
run: |
|
run: |
|
||||||
npx playwright test
|
npx playwright test
|
||||||
npx playwright test --config=playwright.live.config.ts
|
npx playwright test --config=playwright.live.config.ts --project=chromium
|
||||||
- name: Run concurrent persisted-read smoke
|
- name: Run concurrent persisted-read smoke
|
||||||
run: python scripts/run-readonly-load-smoke.py --base-url http://localhost:1228
|
run: python scripts/run-readonly-load-smoke.py --base-url http://web
|
||||||
- name: Upload Playwright report
|
- name: Upload Playwright report
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3; Gitea-compatible artifact protocol
|
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3; Gitea-compatible artifact protocol
|
||||||
@@ -86,5 +87,6 @@ jobs:
|
|||||||
- name: Remove CI stacks
|
- name: Remove CI stacks
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
|
docker network disconnect mobilityops-e2e_mobilityops "$HOSTNAME" 2>/dev/null || true
|
||||||
docker compose -p mobilityops-e2e down -v --remove-orphans
|
docker compose -p mobilityops-e2e down -v --remove-orphans
|
||||||
docker compose -p mobilityops-ci -f compose.yaml -f compose.test.yaml down -v --remove-orphans
|
docker compose -p mobilityops-ci -f compose.yaml -f compose.test.yaml down -v --remove-orphans
|
||||||
|
|||||||
Reference in New Issue
Block a user