[AIRFLOW-5748] Remove python auto-detection#6423
Merged
potiuk merged 1 commit intoapache:masterfrom Oct 25, 2019
Merged
Conversation
ashb
reviewed
Oct 24, 2019
common/_autodetect_variables.sh
Outdated
Member
There was a problem hiding this comment.
Suggested change
| # Unless python_version is | |
| # Unless python_version is set |
Half-written comment?
ashb
approved these changes
Oct 24, 2019
feluelle
approved these changes
Oct 24, 2019
Member
feluelle
left a comment
There was a problem hiding this comment.
LGTM, I read it in slack but would be nice if you could add the reason why you want to remove it to the commit and/or PR description.
kaxil
reviewed
Oct 24, 2019
common/_autodetect_variables.sh
Outdated
Member
There was a problem hiding this comment.
Suggested change
| export BASE_IMAGE_NAME=${IMAGE_NAME:=${DOCKERHUB_USER}/${DOCKERHUB_REPO}:${AIRFLOW_CONTAINER_BRANCH_NAME}-python${PYTHON_VERSION=3.5}} | |
| export BASE_IMAGE_NAME=${IMAGE_NAME:=${DOCKERHUB_USER}/${DOCKERHUB_REPO}:${AIRFLOW_CONTAINER_BRANCH_NAME}-python${PYTHON_VERSION:=3.5}} |
??
Member
Author
There was a problem hiding this comment.
Yeah. Good catch - but it was supposed to be :- :)
Member
Author
There was a problem hiding this comment.
I do not want to set PYTHON_VERSION in this case - just use 3.5 if not defined
d7f9885 to
d030b6d
Compare
Member
Author
Done in the commit message. |
Member
|
I like that 👍 |
The detection of python version is complex because we need to handle several cases - including determining the version from image name on DockerHub, detecting python version from python in the environment, finally forced from python version. This caused multiple problems with Travis where we run tests with different version (auto-detected from current python - especially when python3 became present in Travis' python 2.7 images. Now all the jobs in Travis have PYTHON_VERSION forced and the code responsible for detecting current python version has been removed as it is not needed in this case.
d030b6d to
6e632db
Compare
vladimir-gavrilenko
added a commit
to vladimir-gavrilenko/airflow
that referenced
this pull request
Oct 25, 2019
The detection of python version is complex because we need to handle several cases - including determining the version from image name on DockerHub, detecting python version from python in the environment, finally forced from python version. This caused multiple problems with Travis where we run tests with different version (auto-detected from current python - especially when python3 became present in Travis' python 2.7 images. Now all the jobs in Travis have PYTHON_VERSION forced and the code responsible for detecting current python version has been removed as it is not needed in this case.
ashb
pushed a commit
to ashb/airflow
that referenced
this pull request
Oct 25, 2019
The detection of python version is complex because we need to handle several cases - including determining the version from image name on DockerHub, detecting python version from python in the environment, finally forced from python version. This caused multiple problems with Travis where we run tests with different version (auto-detected from current python - especially when python3 became present in Travis' python 2.7 images. Now all the jobs in Travis have PYTHON_VERSION forced and the code responsible for detecting current python version has been removed as it is not needed in this case. (cherry picked from commit 351ae4e)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make sure you have checked all steps below.
Jira
Description
Tests
Commits
Documentation