-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix errors in common.io release documentation generation with prevent…
…ion (#35236) The common.io provider release caused a few problems when preparing the new wave of the providers: * it missed link to security.rst (which is generated automatically anticipating SBOM generation in the near future) * it did not have proper min-version set in MIN_AIRFLOW_VERSION_EXCEPTIONS * it had single-backtick description that resulted in generated commit and changelog code - since it failed documentation building All those errors have not been caught at PR time. This PR fixes them and introduces prevention from similar mistakes - future providers with similar errors will get nice errors generated in CI at "docs publishing step". * if some generated file is missing in the index user is asked to add the files in the index * if there are `backtick` errors they will be reported and pointed at * if there are liniting problems with generated .rst files they will be reported * the "min airflow version" is now taken directly from provider.yaml not from exception list - but only when it is bigger than current min version. This way, we will also not forget to remove the provider from the list of exceptions when we bump min version above the exception version
- Loading branch information
Showing
7 changed files
with
183 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
.. 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. | ||
Releasing security patches | ||
-------------------------- | ||
|
||
Airflow providers are released independently from Airflow itself and the information about vulnerabilities | ||
is published separately. You can upgrade providers independently from Airflow itself, following the | ||
instructions found in :doc:`apache-airflow:installation/installing-from-pypi`. | ||
|
||
When we release Provider version, the development is always done from the ``main`` branch where we prepare | ||
the next version. The provider uses strict `SemVer <https://semver.org>`_ versioning policy. Depending on | ||
the scope of the change, Provider will get ''MAJOR'' version upgrade when there are | ||
breaking changes, ``MINOR`` version upgrade when there are new features or ``PATCHLEVEL`` version upgrade | ||
when there are only bug fixes (including security bugfixes) - and this is the only version that receives | ||
security fixes by default, so you should upgrade to latest version of the provider if you want to receive | ||
all released security fixes. | ||
|
||
The only exception to that rule is when we have a critical security fix and good reason to provide an | ||
out-of-band release for the provider, in which case stakeholders in the provider might decide to cherry-pick | ||
and prepare a branch for an older version of the provider following the | ||
`mixed governance model <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#mixed-governance-model>`_ | ||
and requires interested parties to cherry-pick and test the fixes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters