This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v2-8-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit cff4394256da40028adbe9fa0300288b582e8245 Author: Elad Kalif <45845474+elad...@users.noreply.github.com> AuthorDate: Sat Dec 30 12:08:08 2023 +0200 Bump stalebot to version 9 (#36494) (cherry picked from commit 13e4905a60011e162f34e86a77acfcb4af874685) --- .github/workflows/recheck-old-bug-report.yml | 8 +++++--- .github/workflows/stale.yml | 2 +- airflow/auth/managers/fab/security_manager/override.py | 6 +++--- airflow/providers/google/cloud/hooks/dataflow.py | 2 +- generated/provider_dependencies.json | 2 +- scripts/in_container/run_provider_yaml_files_check.py | 4 ++-- scripts/in_container/verify_providers.py | 2 +- 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/recheck-old-bug-report.yml b/.github/workflows/recheck-old-bug-report.yml index 7c3adcd0a6..462c51362b 100644 --- a/.github/workflows/recheck-old-bug-report.yml +++ b/.github/workflows/recheck-old-bug-report.yml @@ -28,7 +28,7 @@ jobs: recheck-old-bug-report: runs-on: "ubuntu-22.04" steps: - - uses: actions/stale@v8 + - uses: actions/stale@v9 with: only-issue-labels: 'kind:bug' stale-issue-label: 'Stale Bug Report' @@ -38,8 +38,10 @@ jobs: # scan only issues: https://github.com/actions/stale/issues/837 # To avoid this job scanning also PRs and setting the defaults of the bot to them, # we set high number of days thus effectively this job will not do any changes on PRs - days-before-pr-stale: 7000 - days-before-pr-close: 7000 + # Possible workaround with -1 as mentioned in + # https://github.com/actions/stale/issues/1112#issuecomment-1871654196 + days-before-pr-stale: -1 + days-before-pr-close: -1 remove-stale-when-updated: false remove-issue-stale-when-updated: true labels-to-add-when-unstale: 'needs-triage' diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index fb680826aa..953369a0ae 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -29,7 +29,7 @@ jobs: stale: runs-on: "ubuntu-22.04" steps: - - uses: actions/stale@v8 + - uses: actions/stale@v9 with: stale-pr-message: > This pull request has been automatically marked as stale because it has not had diff --git a/airflow/auth/managers/fab/security_manager/override.py b/airflow/auth/managers/fab/security_manager/override.py index a78ab76ecd..2936bb3036 100644 --- a/airflow/auth/managers/fab/security_manager/override.py +++ b/airflow/auth/managers/fab/security_manager/override.py @@ -2087,9 +2087,9 @@ class FabAirflowSecurityManagerOverride(AirflowSecurityManagerV2): @appbuilder.sm.oauth_user_info_getter def my_oauth_user_info(sm, provider, response=None): - if provider == 'github': - me = sm.oauth_remotes[provider].get('user') - return {'username': me.data.get('login')} + if provider == "github": + me = sm.oauth_remotes[provider].get("user") + return {"username": me.data.get("login")} return {} """ diff --git a/airflow/providers/google/cloud/hooks/dataflow.py b/airflow/providers/google/cloud/hooks/dataflow.py index e1eb1d048b..1769839a0b 100644 --- a/airflow/providers/google/cloud/hooks/dataflow.py +++ b/airflow/providers/google/cloud/hooks/dataflow.py @@ -55,7 +55,7 @@ T = TypeVar("T", bound=Callable) def process_line_and_extract_dataflow_job_id_callback( - on_new_job_id_callback: Callable[[str], None] | None + on_new_job_id_callback: Callable[[str], None] | None, ) -> Callable[[str], None]: """Build callback that triggers the specified function. diff --git a/generated/provider_dependencies.json b/generated/provider_dependencies.json index ae52c8231b..8d2f31048b 100644 --- a/generated/provider_dependencies.json +++ b/generated/provider_dependencies.json @@ -407,7 +407,7 @@ "asgiref>=3.5.2", "gcloud-aio-auth>=4.0.0,<5.0.0", "gcloud-aio-bigquery>=6.1.2", - "gcloud-aio-storage>=9.0.0", + "gcloud-aio-storage", "gcsfs>=2023.10.0", "google-ads>=22.1.0", "google-api-core>=2.11.0", diff --git a/scripts/in_container/run_provider_yaml_files_check.py b/scripts/in_container/run_provider_yaml_files_check.py index 8f0e18009b..aaffa0e2f8 100755 --- a/scripts/in_container/run_provider_yaml_files_check.py +++ b/scripts/in_container/run_provider_yaml_files_check.py @@ -313,7 +313,7 @@ def check_integration_duplicates(yaml_files: dict[str, dict]) -> tuple[int, int] @run_check("Checking completeness of list of {sensors, hooks, operators, triggers}") def check_correctness_of_list_of_sensors_operators_hook_trigger_modules( - yaml_files: dict[str, dict] + yaml_files: dict[str, dict], ) -> tuple[int, int]: num_errors = 0 num_modules = 0 @@ -354,7 +354,7 @@ def check_correctness_of_list_of_sensors_operators_hook_trigger_modules( @run_check("Checking for duplicates in list of {sensors, hooks, operators, triggers}") def check_duplicates_in_integrations_names_of_hooks_sensors_operators( - yaml_files: dict[str, dict] + yaml_files: dict[str, dict], ) -> tuple[int, int]: num_errors = 0 num_integrations = 0 diff --git a/scripts/in_container/verify_providers.py b/scripts/in_container/verify_providers.py index 8594e95194..769f85d520 100755 --- a/scripts/in_container/verify_providers.py +++ b/scripts/in_container/verify_providers.py @@ -578,7 +578,7 @@ def is_camel_case_with_acronyms(s: str): def check_if_classes_are_properly_named( - entity_summary: dict[EntityType, EntityTypeSummary] + entity_summary: dict[EntityType, EntityTypeSummary], ) -> tuple[int, int]: """Check if all entities in the dictionary are named properly.