amoghrajesh commented on code in PR #76575:
URL: https://github.com/apache/airflow/pull/76575#discussion_r4520361156
##########
dev/registry/registry_contract_models.py:
##########
@@ -146,6 +146,11 @@ class ModuleContract(BaseModel):
provider_name: str | None = None
supports_durable_execution: bool = False
supports_deferrable: bool = False
+ durable_mechanism: Literal["marker", "resumable_mixin"] | None = None
+ durable_gating_provider: str | None = None
+ durable_gating_class: str | None = None
+ durable_since_version: str | None = None
+ durable_default: bool | None = None
Review Comment:
Handling PowerBi change here: https://github.com/apache/airflow/pull/76793
##########
registry/src/css/main.css:
##########
@@ -3531,6 +3533,18 @@ main {
color: light-dark(var(--color-blue-700), var(--color-blue-400));
}
+:is(.provider-detail-page, .durable-page) .modules .module .content h3
.version-badge {
Review Comment:
[review
comments](https://github.com/apache/airflow/pull/76575/commits/a3336a66735e8ed82f8886e9ec95c58ccc27d89e)
##########
dev/registry/tests/test_fill_durable_versions.py:
##########
@@ -0,0 +1,231 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+from __future__ import annotations
+
+import json
+import subprocess
+from unittest import mock
+
+import pytest
+from fill_durable_versions import (
+ GitCommandError,
+ build_source_path,
+ durable_group,
+ find_first_releases,
+ get_released_tags,
+ main,
+ run_git,
+)
+
+POD_PATH =
"providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/operators/pod.py"
+POD_CLASS =
"airflow.providers.cncf.kubernetes.operators.pod.KubernetesPodOperator"
+
+
[email protected](autouse=True)
+def clear_tag_cache():
+ get_released_tags.cache_clear()
+ yield
+ get_released_tags.cache_clear()
+
+
+def fake_git(tags=(), matches=()):
Review Comment:
[review
comments](https://github.com/apache/airflow/pull/76575/commits/a3336a66735e8ed82f8886e9ec95c58ccc27d89e)
##########
dev/registry/tests/test_extract_parameters.py:
##########
@@ -443,6 +446,45 @@ def execute(self, context):
assert is_durable_capable(ExplicitDelegatesToIntermediate,
FakeResumableJobMixin) is True
+class TestDurableMetadata:
Review Comment:
[review
comments](https://github.com/apache/airflow/pull/76575/commits/a3336a66735e8ed82f8886e9ec95c58ccc27d89e)
##########
dev/breeze/src/airflow_breeze/commands/registry_commands.py:
##########
@@ -145,7 +145,28 @@ def extract_data(python: str, provider: str | None,
allow_unreleased: bool):
bring_compose_project_down(preserve_volumes=False,
shell_params=shell_params)
remove_docker_networks([f"{unique_project_name}_default"])
fix_ownership_using_docker()
- sys.exit(result.returncode)
+ if result.returncode:
+ sys.exit(result.returncode)
+
+ # Dating a durable module needs the providers-* tags, so it runs here
rather than beside
+ # the module extraction in the container.
+ with ci_group("Dating durable modules"):
Review Comment:
[review
comments](https://github.com/apache/airflow/pull/76575/commits/a3336a66735e8ed82f8886e9ec95c58ccc27d89e)
--
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]