Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

[19.03 backport] Temporarily switch docker-py to "master" #392

Merged
merged 1 commit into from
Oct 2, 2019
Merged

[19.03 backport] Temporarily switch docker-py to "master" #392

merged 1 commit into from
Oct 2, 2019

Conversation

andrewhsu
Copy link

clean cherry-pick of 48353e1 from moby#40030

$ git cherry-pick -s -x 48353e16fe4bc06764ceb6bced0fbe832803ede4
[bump_docker_py ec0e20a9eb] Temporarily switch docker-py to "master"
 Author: Sebastiaan van Stijn <github@gone.nl>
 Date: Wed Oct 2 17:54:48 2019 +0200
 1 file changed, 1 insertion(+), 1 deletion(-)

The docker-py tests were broken, because the version of
py-test that was used, used a dependency that had a new
major release with a breaking change.

Unfortunately, it was not pinned to a specific version,
so when the dependency did the release, py-test broke;

```
22:16:47  Traceback (most recent call last):
22:16:47    File "/usr/local/bin/pytest", line 10, in <module>
22:16:47      sys.exit(main())
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 61, in main
22:16:47      config = _prepareconfig(args, plugins)
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 182, in _prepareconfig
22:16:47      config = get_config()
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 156, in get_config
22:16:47      pluginmanager.import_plugin(spec)
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/config/__init__.py", line 530, in import_plugin
22:16:47      __import__(importspec)
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 25, in <module>
22:16:47      class TempPathFactory(object):
22:16:47    File "/usr/local/lib/python3.6/site-packages/_pytest/tmpdir.py", line 35, in TempPathFactory
22:16:47      lambda p: Path(os.path.abspath(six.text_type(p)))
22:16:47  TypeError: attrib() got an unexpected keyword argument 'convert'
```

docker-py master has a fix for this (bumping the version of
`py-test`), but it's not in a release yet, and the docker cli that's used
in our CI is pinned to 17.06, which doesn't support building from a remote
git repository from a specific git commit.

To fix the immediate situation, this patch switches the docker-py
tests to run from the master branch.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 48353e1)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
@andrewhsu andrewhsu added this to the 19.03.3 milestone Oct 2, 2019
@thaJeztah thaJeztah changed the title [19.03] Temporarily switch docker-py to "master" [19.03 backport] Temporarily switch docker-py to "master" Oct 2, 2019
@thaJeztah
Copy link
Member

@andrewhsu you forgot to sign-off your commit

@thaJeztah
Copy link
Member

oh, actually it's signed off 🤔

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@andrewhsu andrewhsu merged commit d9fba87 into docker-archive:19.03 Oct 2, 2019
@andrewhsu andrewhsu deleted the bump_docker_py branch October 23, 2019 21:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants