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
Upgrade the ddt package to a version supports Python 3 #18837
Conversation
Thanks for the pull request, @shadinaif! I've created OSPR-2566 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. |
@OmarIthawi would you please take a look into this? |
Sure, thanks @shadinaif! Will take a look in the next few days. |
@mduboseedx Hi! I'm trying to review this PR but it seems that Jenkins isn't running the tests. Do you mind white-listing @shadinaif's contributions? cc: @jmbowman I think this is one of the INCR issues that you've suggested. I'm doing an initial review. If you're interested to review it, perhaps we could skip the usual review pipeline? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me. Thanks @shadinaif!
I've tested the following:
- Tests run as expected, for anything uses
@file_data
($ git grep -e @file_data -A2 -- '*.py'
) - Code quality looks good to me
- Need Jenkins to run.
- Should rebase the branch to resolve conflicts
@shadinaif it appears that there are conflicts with your branch. Here's how to fix them:
|
Thank you very much @OmarIthawi |
all done dear @OmarIthawi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Thanks @shadinaif!
Approving, as Iv'e tested the following:
- Tests run as expected, for anything uses
@file_data
($ git grep -e @file_data -A2 -- '*.py'
) - Code quality looks good to me
- The branch is rebased and the conflicts are resolved
- Jenkins tests are passing
Hello @mduboseedx , @nedbat ; would you please authorize my PR for Jenkins ? this is a simple PR for an upgrade suggested by your team |
jenkins ok to test |
@shadinaif Sorry for the delay on this PR. Our entire Open Source team was out of town last week, but the tests should now be running. |
Thanks a lot @mduboseedx and @OmarIthawi |
@jmbowman This PR is for https://openedx.atlassian.net/browse/INCR-6. Could you give this a look over? |
@nedbat ; maybe jenkins needs to run the test again after the last commit |
Ohhh it is required for sure to run the test again (not a maybe) |
@shadinaif you can use this command Anyway, Jenkins will run on every git push. |
@shadinaif About the version of pytest-cov: I'm trying a fix for the latest version in this pull request: https://github.com/edx/edx-platform/pull/18880 |
@shadinaif It looks like we can't use pytest-cov 2.6.0 yet. To make progress on this pull request, I guess you should pin it to 2.5.1. @jmbowman pytest-cov 2.6.0 produces failures in HTML report, "no data to report." Seems related to pytest-dev/pytest-cov#222 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the stale review. The PR now is a bit different. Will take another look if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shadinaif Could you please resolve the conflicts in testing.in
?
Removing the stale review. The PR now is a bit different. Will take another look if needed.
@nedbat I couldn't add the comment as requested. There were a conflict with https://github.com/edx/edx-platform/pull/18879 |
…latest version that supports Python3 (version 1.2.0 as of this commit) This commit is intended to close INCR-6 issue (see https://openedx.atlassian.net/browse/INCR-6 )
jenkins run bokchoy |
Your PR has finished running tests. There were no failures. |
@shadinaif Looks like the pytest-cov situation has been taken care of, though I wish the other developer had left a comment! I'll merge this now. |
@shadinaif 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production on Tuesday, September 11, 2018. |
EdX Release Notice: This PR may have caused e2e tests to fail on Stage. E2E tests have failed. https://gocd.tools.edx.org/go/tab/pipeline/history/STAGE_edxapp_M-D |
EdX Release Notice: This PR has been deployed to the production environment. |
Thank you all 😃 |
@nedbat ; please be informed that the following tests will fail until the docker image is updated (developers must run |
Catching up on notifications from while I was out on vacation; I've closed INCR-6 now that this has been merged, and created TE-2733 to fix the issue behind the original comment regarding ddt being present in the base edx-platform dependencies. |
Upgrade the ddt package from the old version 0.8.0 to the latest version that supports Python3 (version 1.2.0 as of this commit).
This commit is intended to close INCR-6 issue (see https://openedx.atlassian.net/browse/INCR-6 )
This will update requirements file base.in to remove the version restriction. It will also update few lines of code affected by the ddt upgrade