jakuborlowski commented on PR #71637: URL: https://github.com/apache/airflow/pull/71637#issuecomment-7114157763
I ran into the same `ModuleNotFoundError: No module named 'airflow_shared'` from a different direction while setting up a fresh clone, and this PR fixes it there too. Some evidence that may help with review: **It also breaks the per-provider test loop.** On `main` at 08dd8a208d, in a clone with no existing `.venv`, the command form that `AGENTS.md` documents: ```bash uv run --project providers/http pytest providers/http/tests/unit/http/operators/test_http.py -q ``` gives 21 passed and 18 errors. All 18 are at setup of tests that use `caplog`, because `caplog` resolves to `cap_structlog`, which imports `tests_common.test_utils.logs`, which imports `airflow_shared.secrets_masker`. The Iceberg provider's unit tests fail the same way. **The import change here fixes that.** With the same three import lines changed by hand on that commit, the command above gives 39 passed. `prek run check-shared-distributions-structure --all-files` and `prek run check-shared-distributions-usage --all-files` both pass with the change. **How much it affects.** 137 test files under `providers/`, in 31 providers, reference `caplog` (counted with grep), including 27 in google and 25 in amazon. The descriptions of #77003, #74372, #74744 and #77007 each mention this error as a problem with the author's local environment. The PR conflicts with `main` again, and its patch no longer applies to `api_fastapi.py`. The three import lines look independent of the provider-set markers, in case splitting them out would make this easier to review. --- Drafted-by: Claude Code (Fable 5.2); reviewed by @jakuborlowski before posting -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
