This is an automated email from the ASF dual-hosted git repository.
vincbeck 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 6a5b0784982 Add a deprecation policy page to the Amazon provider docs
(#77457)
6a5b0784982 is described below
commit 6a5b0784982d568d177c02e1e55d7f501f6c550d
Author: Ramit Kataria <[email protected]>
AuthorDate: Wed Nov 25 12:50:11 2026 -0700
Add a deprecation policy page to the Amazon provider docs (#77457)
The Amazon provider already deprecates before it breaks: old parameters
and classes keep working with an AirflowProviderDeprecationWarning, and
they are removed in a major version (9.0.0 removed everything deprecated
up to then). That practice is written down nowhere, so users cannot rely
on it when planning upgrades and contributors learn it only in review.
The Google provider documents its own procedure the same way.
The page also sets a floor of two released versions that emit the
warning. The removals in 8.0.0 and 9.0.0 already met it with one
exception: the Glue DataBrew `delay` and `max_attempts` parameters were
deprecated in 8.29.0 and removed in 9.0.0, the next release.
---
providers/amazon/docs/deprecation-policy.rst | 65 ++++++++++++++++++++++++++++
providers/amazon/docs/index.rst | 1 +
2 files changed, 66 insertions(+)
diff --git a/providers/amazon/docs/deprecation-policy.rst
b/providers/amazon/docs/deprecation-policy.rst
new file mode 100644
index 00000000000..49e7c745a76
--- /dev/null
+++ b/providers/amazon/docs/deprecation-policy.rst
@@ -0,0 +1,65 @@
+ .. 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.
+
+Deprecation policy for apache-airflow-providers-amazon package
+----------------------------------------------------------------
+
+Versioning of the package
+`````````````````````````
+
+The Amazon provider package follows SemVer, as described in
+`Airflow's release process and version policy
<https://airflow.apache.org/docs/apache-airflow/stable/release-process.html#airflow-s-release-process-and-version-policy>`__.
+Breaking changes are released only together with a major version bump of the
package.
+A change is breaking if a Dag that worked before stops working after the
change.
+
+A fix for behaviour that was a bug, for example a parameter that was silently
ignored or a result that
+contradicted the documentation, is not a breaking change even if a Dag relied
on the old behaviour. Such
+a fix can be released in a minor or patch version and is called out in the
changelog.
+
+Deprecation procedure
+`````````````````````
+
+A class, method, parameter or behaviour is deprecated before it is removed or
changed:
+
+- The old form keeps working and emits ``AirflowProviderDeprecationWarning``
that says what is changing
+ and how to adapt. For a renamed parameter, for example:
+
+ .. code-block:: python
+
+ import warnings
+
+ from airflow.exceptions import AirflowProviderDeprecationWarning
+
+ if region is not None:
+ warnings.warn(
+ message="Parameter `region` is deprecated. Use the parameter
`region_name` instead",
+ category=AirflowProviderDeprecationWarning,
+ stacklevel=2,
+ )
+ kwargs["region_name"] = region
+
+- The deprecation is released in a minor version of the package and appears in
its :doc:`changelog <changelog>`.
+- The removal or behaviour change is released in a later major version. The
changelog of that version lists
+ every removal or change and how to migrate.
+
+Additional considerations
+`````````````````````````
+
+- There is no fixed deprecation period. Deprecated code is removed in a major
version, and at least two
+ versions that emit the warning are released before it.
+- When there is nothing to warn on, for example because AWS already removed
the underlying API, the change
+ goes straight into a major version with a changelog entry that describes the
migration.
diff --git a/providers/amazon/docs/index.rst b/providers/amazon/docs/index.rst
index 7eae6c95e8d..d4b1d49caaa 100644
--- a/providers/amazon/docs/index.rst
+++ b/providers/amazon/docs/index.rst
@@ -27,6 +27,7 @@
Home <self>
Changelog <changelog>
Security <security>
+ Deprecation policy <deprecation-policy>
.. toctree::
:hidden: