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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]