The GitHub Actions job "Tests (AMD)" on 
airflow.git/feature/chart-bidirectional-migrations has failed.
Run started by GitHub user jykae (triggered by jykae).

Head commit for run:
daa3c0c9cbfd8d6b35ca2ab1da7e7af4155c7f5e / Ville JyrkkÀ 
<[email protected]>
Chart: Move DB-wait to top of db_migrate main()

The previous fix wrapped engine.connect() inside decide_action with a
tenacity retry. On a fresh install where bundled postgres takes longer
than the wait window, decide_action caught OperationalError and returned
"fresh", but the subsequent `airflow db migrate` subprocess bypasses
/entrypoint and has no DB-wait of its own. It hit the still-unreachable
DB, exited non-zero, and the Job's OnFailure restart loop drained
backoffLimit, surfacing as BackoffLimitExceeded in CI.

Extract the wait into _wait_for_db_ready() (SELECT 1, tenacity retry on
OperationalError, default 120s) and call it once at the top of main()
before any branch. decide_action now assumes the DB is reachable. If the
wait window is exhausted, main() exits 1 with a clear log line so the
pod-level backoff gives postgres more time instead of hammering migrate.

Report URL: https://github.com/apache/airflow/actions/runs/27205956698

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to