You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2025/04/06 14:23:06 UTC
[GH] (airflow/db-test-no-hardcoded-ids): Workflow run "Tests" failed!
The GitHub Actions job "Tests" on airflow.git/db-test-no-hardcoded-ids has failed.
Run started by GitHub user ashb (triggered by ashb).
Head commit for run:
d8edffb2930d27df3507cba76275cd117642fcfa / Ash Berlin-Taylor <as...@apache.org>
Update tests to not use hard-coded autoinc ID values
When I was iterating on these tests locally and sometimes killing them with ^C
or kill -9 the next run of these tests ends up failing with unique constraint
failures.
While clearing the tables is one such fix (and in a few places already) I
think it is also worth not using hard-coded idea, but letting the DB give us
the next ID. It also means the tests don't use magic numbers (`== 1`, `== 2`
etc) but instead compare to names (`== old_trigger.id` etc).
Report URL: https://github.com/apache/airflow/actions/runs/14293234990
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org