Skip to content

Improve docs build speed in canary runs#41226

Merged
potiuk merged 1 commit intomainfrom
faster-doc-build-in-canary-builds
Aug 2, 2024
Merged

Improve docs build speed in canary runs#41226
potiuk merged 1 commit intomainfrom
faster-doc-build-in-canary-builds

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 2, 2024

Self-hosted runners on ASF are SLOW to build docs (much slower than
regular public runners) but they have more disk space which is needed
to publish documentation. This PR splits docs building process to two
steps:

  • First step that builds docs and uploads them as artifacts run on
    public runners

  • Publish step that downloads the artifact and publishes them to
    S3 (this one needs more space and runs on ASF self-hosted runners)

This has the nice side effect that docs built in PR are available
as artifacts in PRs and main build.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk potiuk requested review from ashb and kaxil as code owners August 2, 2024 19:20
@potiuk potiuk added the canary When set on PR running from apache repo - behave as canary run label Aug 2, 2024
@potiuk potiuk force-pushed the faster-doc-build-in-canary-builds branch 2 times, most recently from 0ef031d to 3c99706 Compare August 2, 2024 19:26
@potiuk
Copy link
Member Author

potiuk commented Aug 2, 2024

Right. :)

@shahar1
Copy link
Contributor

shahar1 commented Aug 2, 2024

Self-hosted runners on ASF are SLOW to build docs (much slower than
regular public runners) but they have more disk space which is needed
to publish documentation. This PR splits docs building process to two
steps:

* First step that builds docs and uploads them as artifacts run on
  public runners

* Publish step that downloads the artifact and publishes them to
  S3 (this one needs more space and runs on ASF self-hosted runners)

This has the nice side effect that docs built in PR are available
as artifacts in PRs and main build.
@potiuk potiuk force-pushed the faster-doc-build-in-canary-builds branch from babfb89 to 99fba65 Compare August 2, 2024 21:34
@potiuk
Copy link
Member Author

potiuk commented Aug 2, 2024

Hmm, looks like it fails here: https://github.com/apache/airflow/actions/runs/10221485186/job/28285050003?pr=41226

Yep. Just corrected it.

@potiuk potiuk merged commit e3525cf into main Aug 2, 2024
@potiuk
Copy link
Member Author

potiuk commented Aug 2, 2024

It works now :)

@potiuk potiuk deleted the faster-doc-build-in-canary-builds branch October 1, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools canary When set on PR running from apache repo - behave as canary run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments