Skip to content

Conversation

@arm4b
Copy link
Member

@arm4b arm4b commented May 23, 2020

st2docs build which is based on st2 makefile started to fail (https://circleci.com/gh/StackStorm/st2docs/2529) due to upstream pip updated to latest 20.1.1, while we failed to pin it to 20.0.2. Thanks to @winem for the find.

We should not pin pip in files like .travis.yml, but instead use single consistent way and not hack across the many places as other systems rely on st2 makefiles for the builds.

Related: StackStorm/community#2

This change sets pip version in one Makefile place and fixes st2docs builds.

@pull-request-size pull-request-size bot added the size/S PR that changes 10-29 lines. Very easy to review. label May 23, 2020
@pull-request-size pull-request-size bot added size/M PR that changes 30-99 lines. Good size to review. and removed size/S PR that changes 10-29 lines. Very easy to review. labels May 23, 2020
# If you update these versions, make sure you update the versions in the .st2client-install-check
# and the requirements targets in the Makefile to match
- pip install --upgrade "pip==20.0.2"
- sudo pip install --upgrade "virtualenv==16.6.0"
Copy link
Member Author

@arm4b arm4b May 23, 2020

Choose a reason for hiding this comment

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

FYI pinning virtualenv here never really worked.

In Travis environment:

virtualenv --version

16.1.0

for py2 env

and

virtualenv --version

16.0.0

for py3 env

Copy link
Member Author

@arm4b arm4b May 23, 2020

Choose a reason for hiding this comment

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

It turns out that's because different virtualenv binaries were created when we installed/upgraded it with sudo and used one without 🤦

@pull-request-size pull-request-size bot added size/S PR that changes 10-29 lines. Very easy to review. and removed size/M PR that changes 30-99 lines. Good size to review. labels May 23, 2020
@arm4b arm4b changed the title Pin pip consistently in one place across the targets Pin pip consistently in one place across the targets, fix st2docs build May 23, 2020
@arm4b arm4b marked this pull request as ready for review May 23, 2020 17:49
@arm4b arm4b requested review from blag and nmaludy May 23, 2020 17:49
@arm4b arm4b modified the milestones: 3.3.0, 3.2.1 May 23, 2020
@arm4b arm4b requested a review from punkrokk May 23, 2020 18:28
@arm4b
Copy link
Member Author

arm4b commented May 23, 2020

There are a bunch of st2docs PRs which merging is blocked by this CI failure and I'd like us to fix this ASAP.

@arm4b arm4b requested a review from a team May 23, 2020 19:20
Copy link
Member

@nmaludy nmaludy left a comment

Choose a reason for hiding this comment

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

LGTM

@arm4b arm4b merged commit 29ca930 into master May 23, 2020
@arm4b arm4b deleted the pin-pip branch May 23, 2020 20:23
@punkrokk punkrokk modified the milestones: 3.2.1, 3.3.0 Jul 17, 2020
arm4b added a commit that referenced this pull request Aug 3, 2020
…ld (#4957)

* Pin pip to 20.0.2 consistently across the Makefile targets
* Remove virtualenv and pip installation from Travis yaml
* Fix st2docs build relying on st2 master makefiles
(cherry picked from commit 29ca930)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement maintenance refactor size/S PR that changes 10-29 lines. Very easy to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants