This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v2-3-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit f9287821cb4969b0f164a0e371ae8bf2ae49ae0a Author: Jed Cunningham <66968678+jedcunning...@users.noreply.github.com> AuthorDate: Tue May 3 12:33:05 2022 -0600 Fix `check_files.py` to work on new minor releases (#23287) (cherry picked from commit f61119c0f3caa5963f00fa158f9d27f8f8e2cda8) --- dev/check_files.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/dev/check_files.py b/dev/check_files.py index b0855da8fd..f6267aa162 100644 --- a/dev/check_files.py +++ b/dev/check_files.py @@ -31,7 +31,7 @@ FROM apache/airflow:latest """ AIRFLOW_DOCKER = """\ -FROM apache/airflow:{} +FROM python:3.7 # Upgrade RUN pip install "apache-airflow=={}" @@ -46,11 +46,6 @@ RUN pip install "apache-airflow-upgrade-check=={}" """ -DOCKER_CMD = """ -docker build --tag local/airflow . -docker local/airflow info -""" - AIRFLOW = "AIRFLOW" PROVIDERS = "PROVIDERS" UPGRADE_CHECK = "UPGRADE_CHECK" @@ -78,7 +73,7 @@ def create_docker(txt: str): print( """\ docker build -f Dockerfile.pmc --tag local/airflow . - docker run local/airflow info + docker run --rm local/airflow airflow info """ ) @@ -209,10 +204,7 @@ def main(check_type: str, path: str, version: str): if check_type.upper() == AIRFLOW: files = os.listdir(os.path.join(path, version)) missing_files = check_release(files, version) - - base_version = version.split("rc")[0] - prev_version = base_version[:-1] + str(int(base_version[-1]) - 1) - create_docker(AIRFLOW_DOCKER.format(prev_version, version)) + create_docker(AIRFLOW_DOCKER.format(version)) if missing_files: warn_of_missing_files(missing_files) return