Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added unit tests and restructred await_xcom_sidecar_container_start method. #42504

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

harjeevanmaan
Copy link
Contributor

Related: #42132

  • The await_xcom_sidecar_container_start method in PodManager checks if the xcom sidecar container has started running before executing do_xcom_push.
  • The function logs the status periodically and raises an AirflowException if the container does not start within the specified timeout.
  • Added two unit tests:
    • test_await_xcom_sidecar_container_timeout: Verifies that an AirflowException is raised if the sidecar container fails to start within the timeout.
    • test_await_xcom_sidecar_container_starts: Confirms the method successfully exits when the sidecar container starts.

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

method.

- The `await_xcom_sidecar_container_start` method in `PodManager` checks if the xcom sidecar container has started running before executing `do_xcom_push`.
- The function logs the status periodically and raises an `AirflowException` if the container does not start within the specified timeout.
- Added two unit tests:
  - `test_await_xcom_sidecar_container_timeout`: Verifies that an `AirflowException` is raised if the sidecar container fails to start within the timeout.
  - `test_await_xcom_sidecar_container_starts`: Confirms the method successfully exits when the sidecar container starts.
@harjeevanmaan
Copy link
Contributor Author

Will fix the failing tests today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:cncf-kubernetes Kubernetes provider related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant