Skip to content

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

Fixed the failing tests

@potiuk potiuk merged commit 0120515 into apache:main Oct 4, 2024
Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

joaopamaral pushed a commit to joaopamaral/airflow that referenced this pull request Oct 21, 2024
… method. (apache#42504)

* Added unit tests and restructred `await_xcom_sidecar_container_start`
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.

* Fixed the assertion test failures
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
… method. (apache#42504)

* Added unit tests and restructred `await_xcom_sidecar_container_start`
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.

* Fixed the assertion test failures
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 (k8s) provider related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants