Skip to content

👷 Improve playwright CI job #1335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 12, 2024
Merged

👷 Improve playwright CI job #1335

merged 2 commits into from
Sep 12, 2024

Conversation

patrick91
Copy link
Contributor

@patrick91 patrick91 commented Sep 12, 2024

This PR adds:

  1. health check for the backend[1]
  2. --fail-on-flaky-tests as a good practise to write less flaky tests, I assume in future you might want to disable this if your CI gets complex, but I think it should be turned on by default
  3. --trace=retain-on-failure for easier debug when something fails (you can download the failing trace from the artifacts)

[1] Ideally you'd do some additional checks to see if we are able to connect to the backend, but for CI this is enough (we can also add health checks for the db if needed) 😊

@patrick91 patrick91 changed the title 👷 Fail on flaky playwright tests 👷 Improve playwright CI job Sep 12, 2024
@tiangolo
Copy link
Member

Great, thank you! 🍰 🚀

@tiangolo tiangolo merged commit 97d04cd into master Sep 12, 2024
10 checks passed
@tiangolo tiangolo deleted the stop-on-flaky-tests branch September 12, 2024 13:21
d4vidsha added a commit to d4vidsha/scheduler that referenced this pull request Oct 22, 2024
d4vidsha added a commit to d4vidsha/scheduler that referenced this pull request Nov 12, 2024
* refactor: remove unnecessary attribute

* chore: add information about MJML

* chore: add `include-hidden-files`

This is added to `upload-artefacts` GitHub action.

* chore: improve playwright CI job

fastapi/full-stack-fastapi-template#1335 (comment)

* chore: see previous commit

* feat: add db healthcheck

* chore: bump axios 1.6.2 to 1.7.4

* chore: remove complexity of www

* feat: simplify domains

* feat: include `FRONTEND_HOST` in CORS origins by default

* chore: upgrade FastAPI

* refactor: move prestart (migrations) to own container

* refactor: move location of scripts

* chore: use official Python docker image

* feat: use docker compose watch

* chore: remove logic for dev deps

* chore: add new Dockerfile

* feat: add GH Action to lint

* refactor: use top level `.env`

* feat: auto-generate frontend client

* chore: make it fail on errors

* test: run tests from Python env

* feat: use `uv` to generate client

* chore: update GH Actions format

* chore: use uv cache

* chore: only commit on repo PRs; on forks, show error

* fix: error

* fix: log output directly to Docker

* fix: exclude email-templates

* chore: bump astral-sh/setup-uv from 2 to 3

* fix: enable logging for emails by default

* refactor: use enc algo from settings

* chore: bump rollup

* refactor: add `PaginationFooter` component

* fix: ignore `.auth`

* feat: migrate from Poetry to `uv`

* chore: add MailCatcher links

* fix: checkout files in CI

* fix: improve Playwright CI speed

* chore: instructions to install runner

* chore: change token name and commit

* fix: remove dupe `dependabot.yml`

* fix: add environment variables

* fix: format backend

* fix: missing `STACK_NAME`

* fix: use `.env` file

* fix: add `.env` files

* fix: type errors

* fix: add `frontend/.env`

* fix: add `.env` file

* chore: comment out tests
JBLangton pushed a commit to JBLangton/full-stack-fastapi-template that referenced this pull request Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants