Copilot commented on code in PR #76212:
URL: https://github.com/apache/airflow/pull/76212#discussion_r4743421744


##########
airflow-core/tests/unit/models/test_trigger.py:
##########
@@ -909,6 +910,40 @@ def get_xcoms(ti):
     assert actual_xcoms == {"return_value": "xcomret", "a": "b", "c": {"d": 
[1, 2]}}
 
 
+def test_submit_event_task_end_pushes_xcoms_in_the_caller_transaction(session, 
create_task_instance):
+    """The caller can roll back task completion, its callback request, and its 
XComs together."""

Review Comment:
   The current production handler already writes XComs with 
`XComModel.set_for_attempt(..., session=session)` 
(`airflow-core/src/airflow/models/trigger.py:985–991`), and this diff changes 
only the test file. Consequently, this PR does not introduce the 
session-propagation fix claimed in the title and description. Please reframe it 
as regression coverage for the already-fixed implementation and update the 
before/after claims, or include the missing production change if a different 
baseline is intended.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to