Skip to content

[airflow-ctl/v0-1-test] Stop airflowctl e2e xcom tests failing on a slow compose stack (#72260) - #75756

Merged
shahar1 merged 1 commit into
apache:airflow-ctl/v0-1-testfrom
Andrushika:backport-f760ac1-airflow-ctl/v0-1-test
Oct 27, 2026
Merged

shahar1 merged 1 commit into
apache:airflow-ctl/v0-1-testfrom
Andrushika:backport-f760ac1-airflow-ctl/v0-1-test

Conversation

@Andrushika

Copy link
Copy Markdown
Contributor

Depends on #75752. Please merge that PR first. Only the last commit belongs to this PR.

Why

After #75752, the xcom tests wait for the Dag run to finish before the xcom commands. That wait gives the compose stack 60 seconds. A freshly started stack can need more than that to run the task. The xcom commands then still fail with "XCom doesn't exist". #72260 fixed this on main.

What

Clean cherry-pick of #72260. The wait now polls the REST API and allows 300 seconds. AIRFLOW_CTL_TEST_DAG_RUN_TIMEOUT can change this value. On a timeout, the error shows the states of the Dag run and its task instances.

related: #57826


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5.5)

Generated-by: Claude Code (Opus 5.5) following the guidelines

@shahar1

shahar1 commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

@Andrushika could you please resolve conflicts?

@Andrushika

Copy link
Copy Markdown
Contributor Author

Yess 1 second

…low compose stack (apache#72260)

The xcom commands can only run once their Dag run has finished, and the
wait that enforces that gave a freshly booted PROD compose stack only 60
seconds. Every sample cost a full airflowctl subprocess, so a slow machine
got barely a dozen looks in before the budget ran out. Because all five
xcom commands share one Dag run, a single slow boot failed all of them at
once, behind a message that said nothing about how far the run had got.

(cherry picked from commit f760ac1)
@Andrushika
Andrushika force-pushed the backport-f760ac1-airflow-ctl/v0-1-test branch from cff04f1 to cc95ef5 Compare October 27, 2026 13:35
@Andrushika

Copy link
Copy Markdown
Contributor Author

Done!

@shahar1
shahar1 enabled auto-merge (squash) October 27, 2026 20:49
@shahar1
shahar1 merged commit df38ffb into apache:airflow-ctl/v0-1-test Oct 27, 2026
12 checks passed
@Andrushika
Andrushika deleted the backport-f760ac1-airflow-ctl/v0-1-test branch October 29, 2026 14:08
shahar1 pushed a commit that referenced this pull request Nov 19, 2026
…low compose stack (#72260) (#75756)

The xcom commands can only run once their Dag run has finished, and the
wait that enforces that gave a freshly booted PROD compose stack only 60
seconds. Every sample cost a full airflowctl subprocess, so a slow machine
got barely a dozen looks in before the budget ran out. Because all five
xcom commands share one Dag run, a single slow boot failed all of them at
once, behind a message that said nothing about how far the run had got.

(cherry picked from commit f760ac1)

Co-authored-by: rjgoyln <[email protected]>
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.

3 participants