apache / apache/airflow

Detect when bundle methods called before `initialize`?

Open
#46,356 2 comments 0 reactions 0 assignees View on GitHub
area:dag-bundles kind:meta
Dominant language
Python
Stars
46.9k
Forks
17.8k
Avg merge
2d 10h
Merged PRs (30d)
483

Description

### Body

#46355 has highlighted the fact that we don't check if `initialize` has been called before other methods that rely on it have been. For example, `get_current_version`. I'm not positive we should check that, but opening this issue so I can think it through later.

### Committer

- [x] I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Contributor guide

Open the contributing guide

Research direction

Start by reading issue #46355 and tracing the bundle methods mentioned here, especially get_current_version, to understand the initialization assumptions. Decide whether calls before initialize should be detected, define the expected behavior, and identify tests that would establish the behavior once the scope is agreed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.