You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/03/10 12:58:46 UTC

[PR] Fix test_configuration.py to use real deprecated options from shared config [airflow]

potiuk opened a new pull request, #63263:
URL: https://github.com/apache/airflow/pull/63263

   The deprecated option tests in `test_configuration.py` were registering fake deprecated
   option mappings at module level (`core.sql_alchemy_conn` → `database.sql_alchemy_conn`)
   that had been removed from the shared configuration project.
   
   This mutation of the class-level `deprecated_options` dict caused side-effects when tests
   ran under xdist in different order, as the shared mutable state leaked across test modules.
   
   This PR replaces the removed `sql_alchemy_conn` deprecated mapping with the real
   `webserver.secret_key` → `api.secret_key` mapping that is already defined in the shared
   configuration's `deprecated_options`.
   
   ### Changes
   
   - Removed fake `conf.deprecated_options[("database", "sql_alchemy_conn")]` registration
   - Updated all `test_conf_as_dict_when_deprecated_*` tests to use `webserver/api secret_key`
   - Updated test config files (`deprecated.cfg`, `deprecated_cmd.cfg`, `deprecated_secret.cfg`)
   - Renamed `test_deprecated_env_vars_upgraded_and_removed` → `test_deprecated_env_vars_lookup`
   - Removed stale `("core", "sql_alchemy_conn")` from `test_sensitive_values` expected set
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Opus 4.6
   
   Generated-by: Claude Opus 4.6 following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix test_configuration.py to use real deprecated options from shared config [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #63263:
URL: https://github.com/apache/airflow/pull/63263#issuecomment-4031369884

   OK. Non-DB tests passed. Should be fine to merge.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix test_configuration.py to use real deprecated options from shared config [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #63263:
URL: https://github.com/apache/airflow/pull/63263


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix test_configuration.py to use real deprecated options from shared config [airflow]

Posted by "gopidesupavan (via GitHub)" <gi...@apache.org>.
gopidesupavan commented on PR #63263:
URL: https://github.com/apache/airflow/pull/63263#issuecomment-4031447861

   cool thanks @potiuk :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org