Skip to content

Clean up comments and tests for the Dag version inflation checker - #72028

Open
jedcunningham wants to merge 1 commit into
apache:mainfrom
astronomer:trim-inflation-checker-comments
Open

Clean up comments and tests for the Dag version inflation checker#72028
jedcunningham wants to merge 1 commit into
apache:mainfrom
astronomer:trim-inflation-checker-comments

Conversation

@jedcunningham

Copy link
Copy Markdown
Member

Follow-up cleanup on #68795.

The comments there described how the code used to behave rather than what it does now, so they're removed or collapsed to a single line, and the fixtures use the # !problem marker the rest of the file already uses.

Also drops test_multiple_nested_non_dag_withs_do_not_exit_dag_context. is_with_dag_context is function-local and recomputed on every visit_With, so extra nested withs just take the same branch again — it covered the same case as the test above it. The three that remain each pin a different task position: after, inside, and outside the nested block.

No behavior change.


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

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

The comments described how the code used to behave rather than what it does now,
and the removed test covered the same case as the one above it.
@jedcunningham jedcunningham added the backport-to-v3-3-test Backport to v3-3-test label Aug 24, 2026
@jedcunningham jedcunningham added this to the Airflow 3.3.2 milestone Aug 24, 2026
@jedcunningham jedcunningham added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Aug 24, 2026

@ColtenOuO ColtenOuO left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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

Labels

backport-to-v3-3-test Backport to v3-3-test changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants