Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix autopep8 checks by tying it to version 1.3.5 #8641

Merged
merged 1 commit into from
Oct 18, 2018

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Oct 18, 2018

The newest autopep8 release breaks our checks.

@@ -130,7 +130,7 @@ notice: python-env
.PHONY: python-env
python-env:
@test -d $(PYTHON_ENV) || virtualenv $(VIRTUALENV_PARAMS) $(PYTHON_ENV)
@$(PYTHON_ENV)/bin/pip install -q --upgrade pip autopep8 six
@$(PYTHON_ENV)/bin/pip install -q --upgrade pip autopep8==1.3.5 six
Copy link
Contributor

@kvch kvch Oct 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should not upgrade autopep8 and six here. Also, not specify a version here.
We need to provide a requirements.txt and let pip install every dependency based on that file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also upgrade pip in other places. I remember there is some historic reason for it. ++ on tying it to a specific version.

We don't have a global requirements.txt file yet. To get our builds back to green I suggest we get it in with this minimal change and follow up using requirements.txt file and not upgrading pip as it could be more effort then it seems.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record: I am fine with upgrading pip. I am not fine with upgrading other packages e.g autopep8 here.

Copy link
Contributor

@kvch kvch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment on how to select specific version for a dependency.

The newest autopep8 release breaks our checks.
@ruflin ruflin changed the title [WIP] Try to fix travis check Fix autopep8 checks by tying it to version 1.3.5 Oct 18, 2018
@ruflin ruflin added review needs_backport PR is waiting to be backported to other branches. :Testing labels Oct 18, 2018
Copy link
Contributor

@kvch kvch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proper fix is coming in a new PR.

@jsoriano
Copy link
Member

Created follow-up issue #8642

@ruflin
Copy link
Member Author

ruflin commented Oct 18, 2018

Merging as test failure is a flaky test.

@ruflin ruflin merged commit 1b6ef7d into elastic:master Oct 18, 2018
@ruflin ruflin deleted the travis-fix branch October 18, 2018 10:22
@ruflin ruflin added v6.5.0 and removed needs_backport PR is waiting to be backported to other branches. labels Oct 18, 2018
@ruflin ruflin added the v6.4.3 label Oct 18, 2018
adriansr pushed a commit to adriansr/beats that referenced this pull request Oct 19, 2018
The newest autopep8 release breaks our checks.
ph pushed a commit to ph/beats that referenced this pull request Dec 4, 2018
The newest autopep8 release breaks our checks.

(cherry picked from commit 1b6ef7d)
@ph ph added the v6.3.3 label Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants