Skip to content

Auto-rebuild docs when a mounted local sphinx_airflow_theme changes - #75743

Open
sreecharan-desu wants to merge 3 commits into
apache:mainfrom
sreecharan-desu:autobuild-sphinx-airflow-theme-75374
Open

sreecharan-desu wants to merge 3 commits into
apache:mainfrom
sreecharan-desu:autobuild-sphinx-airflow-theme-75374

Conversation

@sreecharan-desu

@sreecharan-desu sreecharan-desu commented Oct 27, 2026 •

Copy link
Copy Markdown

closes: #75374

Following up on #75001 and @potiuk's suggestion on #70139 (cc @shahar1), when /opt/sphinx_airflow_theme is mounted into the Breeze container we now install it with --editable in run_docs_build.sh so local template and static asset changes take effect without reinstalling.

When --autobuild is enabled (breeze build-docs --autobuild), AirflowDocsBuilder also passes --watch /opt/sphinx_airflow_theme/sphinx_airflow_theme to sphinx-autobuild whenever the mounted theme directory is present.

Tested locally: uv run --project dev/breeze pytest dev/breeze/tests/test_developer_commands.py -xvs && uv run --project devel-common pytest devel-common/tests/unit/sphinx_exts/docs_build/test_docs_builder.py -xvs


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: an AI coding assistant, reviewed and tested by me, following the guidelines

used an AI coding assistant to help with parts of this, but i went through every change myself, understand the code and tested it locally.

@sreecharan-desu

sreecharan-desu commented Oct 31, 2026 •

Copy link
Copy Markdown
Author

@potiuk hey, this one's stuck on workflow approval (breeze build-docs bits)
mind approving the run when you get a sec?

@sreecharan-desu

Copy link
Copy Markdown
Author

hey @potiuk

quick heads up on the red checks
they dont look related to this pr

this one only changes breeze / sphinx docs watch stuff
breeze unit tests build docs and static checks are green

the prod dockerfile example fail is an apt / bzip2 dep conflict
java sdk e2e failed on zipping logs (logs folder missing)

i cant re-run from the fork
could you re-run those failed jobs when free

@sreecharan-desu
sreecharan-desu force-pushed the autobuild-sphinx-airflow-theme-75374 branch from 61abdf4 to 846282a Compare November 1, 2026 01:46
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Your CI change needs a maintainer. CI for this pull request runs in your fork, and the workflow runs it starts in apache/airflow are approved automatically while they only run the fork CI gate. This pull request changes files that define what CI runs:

  • dev/breeze/doc/images/output_build-docs.svg
  • dev/breeze/doc/images/output_build-docs.txt
  • dev/breeze/src/airflow_breeze/commands/developer_commands.py
  • dev/breeze/src/airflow_breeze/commands/developer_commands_config.py
  • dev/breeze/src/airflow_breeze/params/doc_build_params.py
  • dev/breeze/tests/test_developer_commands.py
  • scripts/in_container/run_docs_build.sh

Such a change can make project CI run on the project's runners, so its workflow runs in apache/airflow wait for a maintainer to review the change and approve them. CI in your fork is not affected, and its result stays visible on this pull request. Pull requests from contributors run their CI in the contributor's own fork. GitHub Actions is free and has no minute limit on public forks, while the CI capacity of the Apache Software Foundation is shared by every ASF project and is finite.


This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated.

@github-actions github-actions Bot added the fork ci required Gated by AIP-120: CI must pass in the contributor's fork. Managed by the fork CI reconciler. label Nov 1, 2026
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Fork CI: green, needs a maintainer. CI for the latest commit passed in your fork, but this pull request changes files that decide which CI jobs run and where (.github/, the breeze sources, the breeze installation or scripts/ci/prek/), and the fork run used those changed files. A maintainer will review the change and run project CI for it before it can be merged.

Pull requests from contributors run their CI in the contributor's own fork. GitHub Actions is free and has no minute limit on public forks, while the CI capacity of the Apache Software Foundation is shared by every ASF project and is finite.

Latest run: https://github.com/sreecharan-desu/airflow/actions/runs/41562450095

How this works: fork CI for external contributors.


This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated.

sreecharan-desu and others added 3 commits November 3, 2026 01:50
When building docs with a local sphinx_airflow_theme mounted at
/opt/sphinx_airflow_theme:
- install the mounted theme in editable mode in run_docs_build.sh so
  template and static asset edits take effect without reinstalling;
- pass --watch /opt/sphinx_airflow_theme/sphinx_airflow_theme to
  sphinx-autobuild when --autobuild is enabled and the theme mount is
  present; and
- expose --autobuild on breeze build-docs and forward it to
  docs_build/build_docs.py.

Closes: apache#75374
@sreecharan-desu
sreecharan-desu force-pushed the autobuild-sphinx-airflow-theme-75374 branch from e78d8de to a552d02 Compare November 3, 2026 01:51
@github-actions github-actions Bot added the needs project ci Green fork CI, but CI files changed: a maintainer reviews and adds use project ci. label Nov 3, 2026
@sreecharan-desu
sreecharan-desu marked this pull request as ready for review November 3, 2026 08:21
@github-actions
github-actions Bot marked this pull request as draft November 3, 2026 08:25
@github-actions
github-actions Bot marked this pull request as ready for review November 3, 2026 19:20

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-4-test Backport to v3-4-test fork ci required Gated by AIP-120: CI must pass in the contributor's fork. Managed by the fork CI reconciler. needs project ci Green fork CI, but CI files changed: a maintainer reviews and adds use project ci.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-rebuild docs when a mounted local sphinx_airflow_theme changes

1 participant