Skip to content

[v3-2-test] Fix per-index evaluation of ONE_FAILED in mapped task groups (#67684)#67704

Merged
vatsrahul1001 merged 1 commit into
v3-2-testfrom
backport-862b647-v3-2-test
May 29, 2026
Merged

[v3-2-test] Fix per-index evaluation of ONE_FAILED in mapped task groups (#67684)#67704
vatsrahul1001 merged 1 commit into
v3-2-testfrom
backport-862b647-v3-2-test

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

A task using a "fast triggered" trigger rule (ONE_FAILED, ONE_SUCCESS,
ONE_DONE) inside a mapped task group was evaluated against every expanded
instance of its upstream, instead of the upstream instance sharing its own
map index. As a result a single failed (or succeeded) upstream instance
wrongly triggered the rule for every expanded instance of the task — e.g. a
mapped ONE_FAILED reporting task ran for all map indexes when only one
upstream had failed.

The broad "depend on every upstream instance" behavior is only needed for
the not-yet-expanded summary task instance (map_index < 0), so a fast
trigger rule does not prematurely skip the task before the mapped task group
expands (the case fixed in #34023). Restrict that special case to the
summary instance; expanded instances now use the normal per-map-index
upstream resolution.
(cherry picked from commit 862b647)

Co-authored-by: Shahar Epstein 60007259+shahar1@users.noreply.github.com
closes: #50210

…ups (#67684)

A task using a "fast triggered" trigger rule (ONE_FAILED, ONE_SUCCESS,
ONE_DONE) inside a mapped task group was evaluated against every expanded
instance of its upstream, instead of the upstream instance sharing its own
map index. As a result a single failed (or succeeded) upstream instance
wrongly triggered the rule for every expanded instance of the task — e.g. a
mapped ONE_FAILED reporting task ran for all map indexes when only one
upstream had failed.

The broad "depend on every upstream instance" behavior is only needed for
the not-yet-expanded summary task instance (map_index < 0), so a fast
trigger rule does not prematurely skip the task before the mapped task group
expands (the case fixed in #34023). Restrict that special case to the
summary instance; expanded instances now use the normal per-map-index
upstream resolution.
(cherry picked from commit 862b647)

Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
closes: #50210
@vatsrahul1001 vatsrahul1001 marked this pull request as ready for review May 29, 2026 12:25
@vatsrahul1001 vatsrahul1001 merged commit 1ece61a into v3-2-test May 29, 2026
72 checks passed
@vatsrahul1001 vatsrahul1001 deleted the backport-862b647-v3-2-test branch May 29, 2026 13:34
vatsrahul1001 pushed a commit that referenced this pull request May 29, 2026
…ups (#67684) (#67704)

A task using a "fast triggered" trigger rule (ONE_FAILED, ONE_SUCCESS,
ONE_DONE) inside a mapped task group was evaluated against every expanded
instance of its upstream, instead of the upstream instance sharing its own
map index. As a result a single failed (or succeeded) upstream instance
wrongly triggered the rule for every expanded instance of the task — e.g. a
mapped ONE_FAILED reporting task ran for all map indexes when only one
upstream had failed.

The broad "depend on every upstream instance" behavior is only needed for
the not-yet-expanded summary task instance (map_index < 0), so a fast
trigger rule does not prematurely skip the task before the mapped task group
expands (the case fixed in #34023). Restrict that special case to the
summary instance; expanded instances now use the normal per-map-index
upstream resolution.
(cherry picked from commit 862b647)


closes: #50210

Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
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