-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/paginated-generic-transfer
- Loading branch information
Showing
146 changed files
with
4,850 additions
and
2,938 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -872,6 +872,15 @@ function environment_initialization() { | |
fi | ||
} | ||
|
||
function handle_mount_sources() { | ||
if [[ ${MOUNT_SOURCES=} == "remove" ]]; then | ||
echo | ||
echo "${COLOR_BLUE}Mounted sources are removed, cleaning up mounted dist-info files${COLOR_RESET}" | ||
echo | ||
rm -rf /usr/local/lib/python${PYTHON_MAJOR_MINOR_VERSION}/site-packages/apache_airflow*.dist-info/ | ||
fi | ||
} | ||
|
||
function determine_airflow_to_use() { | ||
USE_AIRFLOW_VERSION="${USE_AIRFLOW_VERSION:=""}" | ||
if [[ ${USE_AIRFLOW_VERSION} == "" && ${USE_PACKAGES_FROM_DIST=} != "true" ]]; then | ||
|
@@ -885,12 +894,6 @@ function determine_airflow_to_use() { | |
mkdir -p "${AIRFLOW_SOURCES}"/logs/ | ||
mkdir -p "${AIRFLOW_SOURCES}"/tmp/ | ||
else | ||
if [[ ${USE_AIRFLOW_VERSION} =~ 2\.[7-8].* && ${TEST_TYPE} == "Providers[fab]" ]]; then | ||
echo | ||
echo "${COLOR_YELLOW}Skipping FAB tests on Airflow 2.7 and 2.8 because of FAB incompatibility with them${COLOR_RESET}" | ||
echo | ||
exit 0 | ||
fi | ||
if [[ ${CLEAN_AIRFLOW_INSTALLATION=} == "true" ]]; then | ||
echo | ||
echo "${COLOR_BLUE}Uninstalling all packages first${COLOR_RESET}" | ||
|
@@ -1050,7 +1053,7 @@ function start_webserver_with_examples(){ | |
echo | ||
echo "${COLOR_BLUE}Parsing example dags${COLOR_RESET}" | ||
echo | ||
airflow scheduler --num-runs 100 | ||
airflow dags reserialize | ||
echo "Example dags parsing finished" | ||
echo "Create admin user" | ||
airflow users create -u admin -p admin -f Thor -l Administrator -r Admin -e [email protected] | ||
|
@@ -1074,6 +1077,7 @@ function start_webserver_with_examples(){ | |
echo "${COLOR_BLUE}Airflow webserver started${COLOR_RESET}" | ||
} | ||
|
||
handle_mount_sources | ||
determine_airflow_to_use | ||
environment_initialization | ||
check_boto_upgrade | ||
|
@@ -1264,7 +1268,7 @@ COPY --from=scripts common.sh install_packaging_tools.sh install_additional_depe | |
# Also use `force pip` label on your PR to swap all places we use `uv` to `pip` | ||
ARG AIRFLOW_PIP_VERSION=24.3.1 | ||
# ARG AIRFLOW_PIP_VERSION="git+https://github.com/pypa/pip.git@main" | ||
ARG AIRFLOW_UV_VERSION=0.5.14 | ||
ARG AIRFLOW_UV_VERSION=0.5.20 | ||
# TODO(potiuk): automate with upgrade check (possibly) | ||
ARG AIRFLOW_PRE_COMMIT_VERSION="4.0.1" | ||
ARG AIRFLOW_PRE_COMMIT_UV_VERSION="4.1.4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.