Skip to content

[v3-4-test] Fix stale-session assertion in mapped placeholder promotion test (#75175) - #75181

Merged
vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-11ed204-v3-4-test
Oct 20, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-11ed204-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

test_promotion_leaves_earlier_placeholder_task_instances_at_their_coordinates
asserted that the archived -1 attempt of a mapped task survives expansion.
Since #74407 expansion deletes those attempts, but the delete runs with
synchronize_session=False, so session.get() kept returning the stale
identity-map object and the test passed while asserting the opposite of
what the database holds.

Expire the session and query the database, asserting the archived
placeholder attempt is gone, and rename the test to match.
(cherry picked from commit 11ed204)

Co-authored-by: Jed Cunningham 66968678+jedcunningham@users.noreply.github.com

…on test (#75175)

test_promotion_leaves_earlier_placeholder_task_instances_at_their_coordinates
asserted that the archived -1 attempt of a mapped task survives expansion.
Since #74407 expansion deletes those attempts, but the delete runs with
synchronize_session=False, so session.get() kept returning the stale
identity-map object and the test passed while asserting the opposite of
what the database holds.

Expire the session and query the database, asserting the archived
placeholder attempt is gone, and rename the test to match.
(cherry picked from commit 11ed204)

Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
@vatsrahul1001
vatsrahul1001 marked this pull request as ready for review October 20, 2026 07:00
@vatsrahul1001
vatsrahul1001 merged commit 5056812 into v3-4-test Oct 20, 2026
105 of 116 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-11ed204-v3-4-test branch October 20, 2026 08:38
@github-actions github-actions Bot added this to the Airflow 3.4.1 milestone Oct 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.4.1 based on: bug fix merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants