Skip to content

Commit

Permalink
new step
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Dec 15, 2023
1 parent 0cea65c commit 2722074
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/ci-testing-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2133,6 +2133,76 @@ jobs:
if: always()
run: ./ci/github/system-testing/e2e.bash clean_up

system-test-e2e-playwright:
needs: [changes, build-test-images]
if: ${{ needs.changes.outputs.anything == 'true' || github.event_name == 'push' }}
timeout-minutes: 30 # if this timeout gets too small, then split the tests
name: "[sys] e2e-playwright"
runs-on: ${{ matrix.os }}
container:
image: mcr.microsoft.com/playwright/python:v1.39.0-jammy
strategy:
matrix:
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: setup docker buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: ${{ matrix.docker_buildx }}
driver: docker-container
- name: setup python environment
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: "pip"
cache-dependency-path: "tests/e2e-playwright/requirements/dev.txt"
- name: expose github runtime for buildx
uses: crazy-max/ghaction-github-runtime@v3
- name: download docker images
uses: actions/download-artifact@v3
with:
name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
path: /${{ runner.temp }}/build
- name: load docker images
run: make load-images local-src=/${{ runner.temp }}/build
- name: prepare devenv
run: make devenv
- name: show system version
run: ./ci/helpers/show_system_versions.bash
- name: setup
run: |
./ci/github/system-testing/e2e.bash install
source .venv/bin/activate
pushd tests/e2e-playwright
make install-dev
- name: test
run: |
source .venv/bin/activate
pushd tests/e2e-playwright
make test-sleepers
- name: dump docker logs
id: docker_logs_dump
if: failure()
run: ./ci/github/system-testing/e2e.bash dump_docker_logs
- name: upload docker logs
if: failure()
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}_docker_logs
path: ./tests/e2e/test_failures
- name: upload tracing if failed
if: failure()
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}_tracing
path: tests/e2e-playwright/test-results


system-test-environment-setup:
timeout-minutes: 30 # if this timeout gets too small, then split the tests
name: "[sys] environment setup"
Expand Down Expand Up @@ -2173,6 +2243,7 @@ jobs:
needs:
[
system-test-e2e,
system-test-e2e-playwright,
system-test-environment-setup,
system-test-public-api,
system-test-swarm-deploy,
Expand Down
1 change: 1 addition & 0 deletions tests/e2e-playwright/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ test-sleepers: _check_venv_active ## runs sleepers test on local deploy
--product-url=http://$(get_my_ip):9081 \
--product-billable=false \
--autoregister \
--tracing=retain-on-failure \
$(CURDIR)/tests/sleepers.py


Expand Down

0 comments on commit 2722074

Please sign in to comment.