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:
55de3ee112d44fd4138c1d30e1dc1e025d56dc84 / Ville JyrkkÀ 
<[email protected]>
Chart: Wait for DB before deciding action in migrate-database-job

The migrate-database-job runs the reconciliation script via
'python3 -c ...', which bypasses /entrypoint's wait_for_airflow_db
(that wait only fires for scheduler/dag-processor/triggerer/api-server
commands). On a fresh install with the chart's bundled postgres still
starting, decide_action() raced the DB:

  1. engine.connect() -> OperationalError -> returns 'fresh'
  2. subprocess airflow db migrate -> immediate connect failure
  3. restartPolicy: OnFailure -> Job hits backoffLimit ->
     BackoffLimitExceeded -> helm post-install hook times out.

Wrap the engine.connect() in a tenacity retry with stop_after_delay
(default 120s, matching the entrypoint's CONNECTION_CHECK_MAX_COUNT *
CONNECTION_CHECK_SLEEP_TIME defaults). Tenacity reraises on final
failure, so the existing 'OperationalError -> fresh' fallback still
applies if the DB is genuinely down.

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

With regards,
GitHub Actions via GitBox


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

Reply via email to