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 2026/04/20 20:18:45 UTC
[GH] (airflow/fix/async-k8s-hook-global-config-race-condition): Workflow run "Tests" is working again!
The GitHub Actions job "Tests" on airflow.git/fix/async-k8s-hook-global-config-race-condition has succeeded.
Run started by GitHub user ZhaoMJ (triggered by ZhaoMJ).
Head commit for run:
c592451f71922d310ccff30b7d4eaef91783e95f / Mingjie Zhao <mz...@drwholdings.com>
Add tests for AsyncKubernetesHook per-instance Configuration isolation
Covers the race condition fix across five scenarios:
- _TimeoutAsyncK8sApiClient accepts a configuration= argument and forwards it
to the parent ApiClient, ensuring each instance is isolated.
- No-arg construction still works for backwards compatibility.
- _load_config allocates a fresh async_client.Configuration() per hook instance
when none was supplied by the caller.
- load_incluster_config and load_kube_config_from_dict are each called with the
per-instance client_configuration rather than leaving it as None (which would
cause both functions to fall back to Configuration.set_default() and corrupt
shared global state).
- get_conn passes configuration= to _TimeoutAsyncK8sApiClient so the API client
uses the hook's isolated Configuration, not the global default.
- The core regression test runs two hooks for different clusters concurrently
via asyncio.gather and asserts that each hook's client_configuration is a
distinct object populated only with that hook's own connection data.
Report URL: https://github.com/apache/airflow/actions/runs/24685777818
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