You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jason810496 (via GitHub)" <gi...@apache.org> on 2025/10/25 03:06:52 UTC
[PR] Auto-compile UI assets on Breeze start-airflow command [airflow]
jason810496 opened a new pull request, #57219:
URL: https://github.com/apache/airflow/pull/57219
closes: #54453
related: #54070
## Why
After #54070, we are able to use specific airflow-core version but when we access Airflow UI, it will always show internal server error. Since the UI dist of airflow-core we provided will not be included when running `start-airflow` command.
## How
1. download tarball of source code that `--use-airflow-version` provided ( `/opt/airflow/.build/airflow.tar.gz`
2. extract to `/opt/airflow/.build/airflow_source` directory
3. copy source code of
- Core UI to `/opt/airflow/airflow-core/src/airflow/ui`
- Simple Auth Manager UI to `/opt/airflow/airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui`
4. install `node` and `pnpm` if not existed
5. run `pnpm run build` in both UI directories
6. copy UI dist from Airflow Core Sources Path (`/opt/airflow/airflow-core/...`) to Airflow Installation Path (e.g. `/usr/python/lib/python3.10/site-packages/airflow/...`)
## What
After this PR, if we run `breeze start-airflow` with any `--use-airflow-version <owner/repo:branch>` we could access the UI without API Server response internal error.
For example:
```bash
breeze start-airflow --backend postgres --load-example-dags --mount-sources providers-and-tests --use-airflow-version jason810496/airflow:ci/breeze/compile-ui-assets
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Auto-compile UI assets on Breeze start-airflow command [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #57219:
URL: https://github.com/apache/airflow/pull/57219
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Auto-compile UI assets on Breeze start-airflow command [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #57219:
URL: https://github.com/apache/airflow/pull/57219#issuecomment-3446972427
But this could be "extra".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Auto-compile UI assets on Breeze start-airflow command [airflow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #57219:
URL: https://github.com/apache/airflow/pull/57219#issuecomment-3446973242
### Backport successfully created: v3-1-test
<table>
<tr>
<th>Status</th>
<th>Branch</th>
<th>Result</th>
</tr>
<tr>
<td>✅</td>
<td>v3-1-test</td>
<td><a href="https://github.com/apache/airflow/pull/57253"><img src="https://img.shields.io/badge/PR-57253-blue" alt="PR Link"></a></td>
</tr>
</table>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org