Skip to content

[v3-3-test] Exclude non-successful runs from AVERAGE_RUNTIME deadline calculation (#68647)#68949

Draft
github-actions[bot] wants to merge 1 commit into
v3-3-testfrom
backport-88e6110-v3-3-test
Draft

[v3-3-test] Exclude non-successful runs from AVERAGE_RUNTIME deadline calculation (#68647)#68949
github-actions[bot] wants to merge 1 commit into
v3-3-testfrom
backport-88e6110-v3-3-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

DeadlineReference.AVERAGE_RUNTIME computes a deadline from the average duration of
past DAG runs, but the query filtered only on dag_id + start/end-date present — with
no DagRun.state filter. Failed runs (which may have died fast or hung before failing)
were folded into the average, skewing the computed deadline: a fast-failing history
makes it too short (spurious misses), a slow-then-failed history makes it too long
(real slowness never trips it).

Filter the duration query to successful runs only. Add tests asserting failed runs
are excluded from the average and that the deadline is skipped when too few
successful runs exist.


(cherry picked from commit 88e6110)

Co-authored-by: Sean Ghaeli 58916776+seanghaeli@users.noreply.github.com
Co-authored-by: Sean Ghaeli ghaeli@amazon.com
Co-authored-by: Ramit Kataria ramitkat@amazon.com

… calculation (#68647)

DeadlineReference.AVERAGE_RUNTIME computes a deadline from the average duration of
past DAG runs, but the query filtered only on dag_id + start/end-date present — with
no DagRun.state filter. Failed runs (which may have died fast or hung before failing)
were folded into the average, skewing the computed deadline: a fast-failing history
makes it too short (spurious misses), a slow-then-failed history makes it too long
(real slowness never trips it).

Filter the duration query to successful runs only. Add tests asserting failed runs
are excluded from the average and that the deadline is skipped when too few
successful runs exist.

---------
(cherry picked from commit 88e6110)

Co-authored-by: Sean Ghaeli <58916776+seanghaeli@users.noreply.github.com>
Co-authored-by: Sean Ghaeli <ghaeli@amazon.com>
Co-authored-by: Ramit Kataria <ramitkat@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant