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

ci: requires virtualenv < 20 #1228

Merged
merged 1 commit into from
Feb 26, 2020
Merged

ci: requires virtualenv < 20 #1228

merged 1 commit into from
Feb 26, 2020

Conversation

jd
Copy link
Contributor

@jd jd commented Feb 26, 2020

There's a regression in virtualenv >= 20 that makes one of the ddtrace-run +
Celery test to fails.

virtualenv now adds a site.py which modifies sys.path and breaks the PYTHONPATH
that is set by ddtrace-run.

@jd jd requested a review from a team as a code owner February 26, 2020 12:27
brettlangdon
brettlangdon previously approved these changes Feb 26, 2020
@@ -701,7 +701,7 @@ jobs:
# debug: shows how many time each test was executed
- run: jq -s ".[]|.testenvs|keys|.[]" /tmp/workspace/* | grep -v GLOB | sed 's/"//g' | sort | uniq -c | sort -rn
# list all executed test
- run: jq -s ".[]|.testenvs|keys|.[]" /tmp/workspace/* | grep -v GLOB | sed 's/"//g' | sort | uniq | tee all_executed_tests
- run: jq -s ".[]|.testenvs|keys|.[]" /tmp/workspace/* | grep -v GLOB | sed 's/"//g' | sort | uniq | grep -v '^\.' | tee all_executed_tests
Copy link
Member

Choose a reason for hiding this comment

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

why is this changing?

did we change it before because of an update in virtualenv and now rolling it back?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is because the requires parameter creates a new "hidden" pre-step that is listed here.
This is a special one and it starts with a . so it's an easy way to identify.
The same happens when you use isolated_build (see #1203)

@jd jd force-pushed the fix-celery branch 2 times, most recently from 5c5a7eb to 6811282 Compare February 26, 2020 17:03
brettlangdon
brettlangdon previously approved these changes Feb 26, 2020
There's a regression in virtualenv >= 20 that makes one of the ddtrace-run +
Celery test to fails.

virtualenv now adds a site.py which modifies sys.path and breaks the PYTHONPATH
that is set by ddtrace-run.
@jd
Copy link
Contributor Author

jd commented Feb 26, 2020

Bug opened on virtualenv: pypa/virtualenv#1670

@jd jd merged commit ba660f9 into DataDog:master Feb 26, 2020
@jd jd deleted the fix-celery branch February 26, 2020 18:14
@majorgreys majorgreys added this to the 0.35.0 milestone Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants