This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch fix-adding-providers-after-release-prep in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 6bc16ec30645e0daf267d557849911c0dab2d9a6 Author: Jarek Potiuk <[email protected]> AuthorDate: Sun Apr 12 17:44:32 2026 +0200 Fix publishing failure when new providers are added to main When publishing docs to S3 we attempt to move all the providers, including those that were added after release was prepared. This for example failed publishing step at the https://github.com/apache/airflow/actions/runs/24308895274/job/70977025250 We should skip all non-existing providers instead --- .github/workflows/publish-docs-to-s3.yml | 2 +- dev/breeze/src/airflow_breeze/utils/docs_publisher.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs-to-s3.yml b/.github/workflows/publish-docs-to-s3.yml index 165774c57ab..15efc4ef606 100644 --- a/.github/workflows/publish-docs-to-s3.yml +++ b/.github/workflows/publish-docs-to-s3.yml @@ -411,7 +411,7 @@ jobs: run: | breeze release-management publish-docs-to-s3 --source-dir-path ${SOURCE_DIR_PATH} \ --destination-location ${DESTINATION_LOCATION} --stable-versions \ - --exclude-docs "${EXCLUDE_DOCS}" --overwrite ${SKIP_WRITE_TO_STABLE_FOLDER} + --exclude-docs "${EXCLUDE_DOCS}" --overwrite ${SKIP_WRITE_TO_STABLE_FOLDER} update-registry: needs: [publish-docs-to-s3, build-info] diff --git a/dev/breeze/src/airflow_breeze/utils/docs_publisher.py b/dev/breeze/src/airflow_breeze/utils/docs_publisher.py index 01621681669..068d73d5b6f 100644 --- a/dev/breeze/src/airflow_breeze/utils/docs_publisher.py +++ b/dev/breeze/src/airflow_breeze/utils/docs_publisher.py @@ -108,6 +108,10 @@ class DocsPublisher: return 1, f"Skipping {self.package_name}: Previously existing directory" # If output directory exists and is not versioned, delete it shutil.rmtree(output_dir) + if not os.path.exists(self._build_dir): + get_console(output=self.output).print(f"Build directory {self._build_dir} does not exist!") + get_console(output=self.output).print() + return 0, f"Skipping {self.package_name}: Build directory does not exist" shutil.copytree(self._build_dir, output_dir) if self.is_versioned: with open(os.path.join(output_dir, "..", "stable.txt"), "w") as stable_file:
