You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by am...@apache.org on 2025/03/12 13:10:19 UTC
(airflow) branch main updated: Adding 'exc_notes' to our task-sdk tests coming from structlog (#47663)
This is an automated email from the ASF dual-hosted git repository.
amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new ff48721e837 Adding 'exc_notes' to our task-sdk tests coming from structlog (#47663)
ff48721e837 is described below
commit ff48721e837a11d90af33a713861f7842ab5fa87
Author: Amogh Desai <am...@gmail.com>
AuthorDate: Wed Mar 12 18:40:12 2025 +0530
Adding 'exc_notes' to our task-sdk tests coming from structlog (#47663)
---
task-sdk/tests/task_sdk/definitions/test_xcom_arg.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/task-sdk/tests/task_sdk/definitions/test_xcom_arg.py b/task-sdk/tests/task_sdk/definitions/test_xcom_arg.py
index 6cabe0f1fdc..21ef78dd549 100644
--- a/task-sdk/tests/task_sdk/definitions/test_xcom_arg.py
+++ b/task-sdk/tests/task_sdk/definitions/test_xcom_arg.py
@@ -131,6 +131,7 @@ def test_xcom_convert_to_kwargs_fails_task(run_ti: RunTI, mock_supervisor_comms,
"timestamp": mock.ANY,
"exception": [
{
+ "exc_notes": [],
"exc_type": "ValueError",
"exc_value": "expand_kwargs() expects a list[dict], not list[None]",
"frames": mock.ANY,
@@ -174,6 +175,7 @@ def test_xcom_map_error_fails_task(mock_supervisor_comms, run_ti, captured_logs)
"timestamp": mock.ANY,
"exception": [
{
+ "exc_notes": [],
"exc_type": "RuntimeError",
"exc_value": "nope",
"frames": mock.ANY,