Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 10, 2025

Before that change, when you set custom variables or intialization in airflow-breeze-config, the initialization was kind of wrongly done.

a) in case of regular breeze command, it was done AFTER db-reset b) when start-airflow was done, the initialization was done during
the start-airflow - separately - which was kinda strangely duplicated

This change unifies it - the initialization of custom variables and scripts happens before we run db-reset or check if we should start airflow.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Before that change, when you set custom variables or intialization in
airflow-breeze-config, the initialization was kind of wrongly done.

a) in case of regular breeze command, it was done AFTER db-reset
b) when start-airflow was done, the initialization was done during
   the start-airflow - separately - which was kinda strangely duplicated

This change unifies it - the initialization of custom variables and
scripts happens before we run db-reset or check if we should start
airflow.
@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Aug 10, 2025
@sjyangkevin
Copy link
Contributor

sjyangkevin commented Aug 10, 2025

Thanks a lot @potiuk . One more follow-up question. Since I am also testing for the provider release. When running breeze shell, I think we don't have the option --auth-manager. In this case, the configuration through airflow-breeze-config/environment_variables.env seems to be the only way if we want to enable fab auth manager in the breeze shell environment (correct me if I am wrong). Wondering if running breeze shell --db-reset will be impacted by this as well.

Copy link
Collaborator

@aritra24 aritra24 left a comment

Choose a reason for hiding this comment

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

Hmmmm, I think it makes sense. 🤔

@gopidesupavan
Copy link
Member

ah make sense :)

@potiuk potiuk merged commit 9334484 into apache:main Aug 10, 2025
107 checks passed
@potiuk potiuk deleted the fix-initialization-custom-env-in-breeze branch August 10, 2025 20:14
github-actions bot pushed a commit that referenced this pull request Aug 10, 2025
Before that change, when you set custom variables or intialization in
airflow-breeze-config, the initialization was kind of wrongly done.

a) in case of regular breeze command, it was done AFTER db-reset
b) when start-airflow was done, the initialization was done during
   the start-airflow - separately - which was kinda strangely duplicated

This change unifies it - the initialization of custom variables and
scripts happens before we run db-reset or check if we should start
airflow.
(cherry picked from commit 9334484)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@github-actions
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

github-actions bot pushed a commit to astronomer/airflow that referenced this pull request Aug 10, 2025
…he#54324)

Before that change, when you set custom variables or intialization in
airflow-breeze-config, the initialization was kind of wrongly done.

a) in case of regular breeze command, it was done AFTER db-reset
b) when start-airflow was done, the initialization was done during
   the start-airflow - separately - which was kinda strangely duplicated

This change unifies it - the initialization of custom variables and
scripts happens before we run db-reset or check if we should start
airflow.
(cherry picked from commit 9334484)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
github-actions bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 10, 2025
…he#54324)

Before that change, when you set custom variables or intialization in
airflow-breeze-config, the initialization was kind of wrongly done.

a) in case of regular breeze command, it was done AFTER db-reset
b) when start-airflow was done, the initialization was done during
   the start-airflow - separately - which was kinda strangely duplicated

This change unifies it - the initialization of custom variables and
scripts happens before we run db-reset or check if we should start
airflow.
(cherry picked from commit 9334484)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
potiuk added a commit that referenced this pull request Aug 10, 2025
…) (#54327)

Before that change, when you set custom variables or intialization in
airflow-breeze-config, the initialization was kind of wrongly done.

a) in case of regular breeze command, it was done AFTER db-reset
b) when start-airflow was done, the initialization was done during
   the start-airflow - separately - which was kinda strangely duplicated

This change unifies it - the initialization of custom variables and
scripts happens before we run db-reset or check if we should start
airflow.
(cherry picked from commit 9334484)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
RoyLee1224 pushed a commit to RoyLee1224/airflow that referenced this pull request Aug 15, 2025
Before that change, when you set custom variables or intialization in
airflow-breeze-config, the initialization was kind of wrongly done.

a) in case of regular breeze command, it was done AFTER db-reset
b) when start-airflow was done, the initialization was done during
   the start-airflow - separately - which was kinda strangely duplicated

This change unifies it - the initialization of custom variables and
scripts happens before we run db-reset or check if we should start
airflow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants