Skip to content

Enable docker mounting of test directory#4692

Merged
auvipy merged 1 commit into
celery:masterfrom
CatalystCode:enable-more-docker-mounts
May 1, 2018
Merged

Enable docker mounting of test directory#4692
auvipy merged 1 commit into
celery:masterfrom
CatalystCode:enable-more-docker-mounts

Conversation

@c-w

@c-w c-w commented Apr 30, 2018

Copy link
Copy Markdown
Contributor

Description

Currently there is a comment in the docker-compose file that indicates that the test directory can't be mounted due to compiled Python version mismatches. This pull request removes this limitation. This is achieved by cleaning up pyc files in the docker entrypoint script which avoids mismatches between compiled Python files on the docker host and/or from previous build steps by construction: before executing any command in the docker container, any remnant platform specific files are cleaned up and as such any subsequent py.test command will run in a clean environment.

@auvipy auvipy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

check the build errors please

This is achieved by cleaning up pyc files in the docker entrypoint
script which avoids mismatches between compiled Python files on the
docker host and/or from previous build steps by construction: before
executing any command in the docker container, any remnant platform
specific files are cleaned up and as such any subsequent py.test command
will run in a clean environment.
@codecov

codecov Bot commented May 1, 2018

Copy link
Copy Markdown

Codecov Report

Merging #4692 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #4692   +/-   ##
======================================
  Coverage    82.6%   82.6%           
======================================
  Files         140     140           
  Lines       15868   15868           
  Branches     1983    1983           
======================================
  Hits        13107   13107           
  Misses       2567    2567           
  Partials      194     194

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c04effc...02af2d2. Read the comment docs.

@c-w

c-w commented May 1, 2018

Copy link
Copy Markdown
Contributor Author

@auvipy I found it somewhat surprising that the build would fail for PyPy when I only changed files related to Docker (which has no interaction with the PyPy tests at all), so I re-triggered the build and it now passes. Looks like the PyPy test might have some flakiness or maybe it was just a temporary glitch in Travis.

@auvipy auvipy merged commit 8c753d7 into celery:master May 1, 2018
@auvipy auvipy added this to the v4.2 milestone May 1, 2018
@c-w c-w deleted the enable-more-docker-mounts branch May 1, 2018 05:25
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.

2 participants