The GitHub Actions job "Tests (AMD)" on airflow.git/feature-58968-kpo-pod has 
failed.
Run started by GitHub user gingeekrishna (triggered by shahar1).

Head commit for run:
4a5e7b27d07b731c101e33f52d2d1870ce696a72 / gingeekrishna 
<[email protected]>
fix(kubernetes_executor): scope zombie cleanup to Running pods and add age guard

Two bugs in _cleanup_zombie_kpo_pods caused spurious deletions:

1. No phase filter: the pod list included Pending/Completed pods and
   newly submitted pods, not just Running ones as the feature intends.
   Added field_selector="status.phase=Running" to _list_pods call.

2. No minimum-age guard: a pod created seconds ago with no matching
   TaskInstance yet (submit→schedule gap, or system-test pods) was
   immediately treated as a zombie. Now pods younger than
   zombie_kpo_pod_cleanup_interval seconds are skipped.

Fixes the TestKubernetesPodOperatorSystem::test_full_pod_spec failure
where the CI KubernetesExecutor was force-deleting the test pod because
dag_id="dag" had no matching TaskInstance in the CI database.

Also adds test_young_pod_skipped_by_age_guard and sets a realistic
creation_timestamp in _make_pod so all zombie cleanup tests exercise
the age guard correctly.

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

With regards,
GitHub Actions via GitBox


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

Reply via email to