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 edfcd0bf34c Document deprecate-first practice for provider breaking 
changes (#77458)
edfcd0bf34c is described below

commit edfcd0bf34cbeafb04ee25aca5420346805cbb3e
Author: Ramit Kataria <[email protected]>
AuthorDate: Wed Nov 25 12:49:02 2026 -0700

    Document deprecate-first practice for provider breaking changes (#77458)
    
    The breaking-changes section of the provider contributing docs only asks
    for a changelog entry and a migration path. Providers such as Amazon and
    Google already go further: they warn with AirflowProviderDeprecationWarning
    in a minor release and break in a later major one. A contributor reading
    the docs has no way to learn that, so a change that breaks without a
    warning is caught only in review, if at all.
---
 contributing-docs/12_provider_distributions.rst | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/contributing-docs/12_provider_distributions.rst 
b/contributing-docs/12_provider_distributions.rst
index 981355d8277..82ab8d5d913 100644
--- a/contributing-docs/12_provider_distributions.rst
+++ b/contributing-docs/12_provider_distributions.rst
@@ -448,6 +448,14 @@ generous policy of supporting multiple versions of 
providers at the same time. A
 backward compatible with future versions of Airflow, so you can upgrade 
Airflow and keep the providers
 at the same version.
 
+Where practical, deprecate before you break. Keep the old class, parameter or 
behaviour working and emit
+``AirflowProviderDeprecationWarning`` (naming the replacement, if there is 
one), release that in a minor
+version of the provider, and make the breaking change in a later major 
version. Users then see the warning
+in their own Dags before the upgrade that breaks them. When there is nothing 
to warn on (for example the
+external API was already removed), go straight to the breaking change. Some 
providers describe their own
+procedure, for example the
+`Google provider deprecation policy 
<../providers/google/docs/deprecation-policy.rst>`_.
+
 When you introduce a breaking change in the provider, you have to make sure 
that you communicate it
 properly. You have to update ``changelog.rst`` file in the ``docs`` folder of 
the provider distribution.
 Ideally you should provide a migration path for the users to follow in 
the``changelog.rst``.

Reply via email to