This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 6a004bdf1a8 Bump minimum google-api-core to 2.30.3 to fix Dag import 
timeout (#67774)
6a004bdf1a8 is described below

commit 6a004bdf1a809738cba9362287b5002b27038170
Author: deepinsight coder <[email protected]>
AuthorDate: Sat May 30 15:28:08 2026 -0700

    Bump minimum google-api-core to 2.30.3 to fix Dag import timeout (#67774)
    
    google-api-core 2.28.1 introduced an import-time performance regression:
    a Python-version check added to google/api_core/__init__.py calls
    importlib.metadata.packages_distributions(), which scans every installed
    package on each import. In a large Airflow venv this adds several seconds
    to importing google.api_core and anything built on it, pushing the import
    of operators like DataprocCreateBatchOperator and BigQueryInsertJobOperator
    past the Dag file import timeout.
    
    Fixed upstream in google-api-core 2.30.3
    (googleapis/google-cloud-python#16579); a maintainer confirmed on the issue
    that upgrading to 2.30.3 cuts import time from 30-50s to 2-5s.
    
    This raises the google provider floor to google-api-core>=2.30.3, excluding
    the regressed 2.28.1-2.30.2 range. The previous !=2.16.0,!=2.18.0 exclusions
    are subsumed by the higher floor and dropped. uv.lock already resolves to
    2.30.3, so only the recorded specifier changes.
    
    closes: #62373
---
 providers/google/README.rst     |  2 +-
 providers/google/docs/index.rst |  2 +-
 providers/google/pyproject.toml | 10 ++++++----
 uv.lock                         |  2 +-
 4 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/providers/google/README.rst b/providers/google/README.rst
index aa8cd4e08a9..47e4c9aafdf 100644
--- a/providers/google/README.rst
+++ b/providers/google/README.rst
@@ -72,7 +72,7 @@ PIP package                                 Version required
 ``gcsfs``                                   ``>=2023.10.0``
 ``google-ads``                              ``>=26.0.0,!=28.0.0.post2``
 ``google-analytics-admin``                  ``>=0.9.0``
-``google-api-core``                         ``>=2.11.0,!=2.16.0,!=2.18.0``
+``google-api-core``                         ``>=2.30.3``
 ``google-api-python-client``                ``>=2.0.2``
 ``google-auth``                             ``>=2.29.0``
 ``google-auth-httplib2``                    ``>=0.0.1``
diff --git a/providers/google/docs/index.rst b/providers/google/docs/index.rst
index 844857b5470..1245fc7c311 100644
--- a/providers/google/docs/index.rst
+++ b/providers/google/docs/index.rst
@@ -125,7 +125,7 @@ PIP package                                 Version required
 ``gcsfs``                                   ``>=2023.10.0``
 ``google-ads``                              ``>=26.0.0,!=28.0.0.post2``
 ``google-analytics-admin``                  ``>=0.9.0``
-``google-api-core``                         ``>=2.11.0,!=2.16.0,!=2.18.0``
+``google-api-core``                         ``>=2.30.3``
 ``google-api-python-client``                ``>=2.0.2``
 ``google-auth``                             ``>=2.29.0``
 ``google-auth-httplib2``                    ``>=0.0.1``
diff --git a/providers/google/pyproject.toml b/providers/google/pyproject.toml
index 5ebae6b8f00..668836fae68 100644
--- a/providers/google/pyproject.toml
+++ b/providers/google/pyproject.toml
@@ -71,10 +71,12 @@ dependencies = [
     "gcsfs>=2023.10.0",
     "google-ads>=26.0.0,!=28.0.0.post2",
     "google-analytics-admin>=0.9.0",
-    # Google-api-core 2.16.0 back-compat issue:
-    # - https://github.com/googleapis/python-api-core/issues/576
-    # - https://github.com/apache/airflow/issues/39394
-    "google-api-core>=2.11.0,!=2.16.0,!=2.18.0",
+    # Floor raised to 2.30.3: google-api-core 2.28.1-2.30.2 has an import-time
+    # performance regression (it scans the whole venv on import), which trips 
the
+    # Dag import timeout for operators that import it. Fixed in 2.30.3.
+    # - https://github.com/apache/airflow/issues/62373
+    # - https://github.com/googleapis/google-cloud-python/issues/15015
+    "google-api-core>=2.30.3",
     "google-api-python-client>=2.0.2",
     "google-auth>=2.29.0",
     "google-auth-httplib2>=0.0.1",
diff --git a/uv.lock b/uv.lock
index e6a4395df8c..8ebb1fb9659 100644
--- a/uv.lock
+++ b/uv.lock
@@ -5513,7 +5513,7 @@ requires-dist = [
     { name = "gcsfs", specifier = ">=2023.10.0" },
     { name = "google-ads", specifier = ">=26.0.0,!=28.0.0.post2" },
     { name = "google-analytics-admin", specifier = ">=0.9.0" },
-    { name = "google-api-core", specifier = ">=2.11.0,!=2.16.0,!=2.18.0" },
+    { name = "google-api-core", specifier = ">=2.30.3" },
     { name = "google-api-python-client", specifier = ">=2.0.2" },
     { name = "google-auth", specifier = ">=2.29.0" },
     { name = "google-auth-httplib2", specifier = ">=0.0.1" },

Reply via email to