Commit Graph

685 Commits

Author SHA1 Message Date
Manjinder Singh
6c69b6d435 Adding code to output pytest warnings. (#22570)
* Added pytest-json-report plugin
	- modifying app-opts in setup.cfg
	- adding hook to all conftest.py files in repo
	- setting report to be saved to test_root/log/warnings.json
	- Writing custom logic to save json report to avoid overwrite if pytest called twice
This was created to allow us to easily parse through test warnings in jenkins
2020-01-02 10:01:52 -05:00
Jeremy Bowman
3941e40b1b Skip date comments on all bok-choy DB dumps (#22651)
In the script used to create the bok-choy database cache files, we've been passing in the parameters to omit timestamps that change for every run in some of the mysqldump commands but not all of them. Use them consistently so we can stop creating new redundant automated bok-choy DB cache PRs on almost every merge to edx-platform.
2019-12-30 15:14:21 -05:00
Feanil Patel
d63aaaa4c3 Lower the pylint threshold.
We fixed various deprecation warnings as part of BOM-1024
2019-12-30 13:52:15 -05:00
Feanil Patel
046feb0cf0 Merge pull request #22649 from edx/feanil/fix_pep8
Fix all E303 pep8 errors.
2019-12-30 13:32:26 -05:00
Feanil Patel
6e3fe00fff Fix all E303 pep8 errors. 2019-12-30 12:25:38 -05:00
Feanil Patel
2df8b8226b Merge pull request #22643 from edx/feanil/2to3_asserts
Run `2to3 -f asserts . -w` on edx-platform.
2019-12-30 12:13:42 -05:00
Feanil Patel
9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Feanil Patel
70294b0ad2 Run 2to3 -f asserts . -w on edx-platform.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-asserts
2019-12-30 10:22:19 -05:00
Jeremy Bowman
b2046f6674 Switch make upgrade to Python 3.5 (#22609)
* Switch make upgrade to Python 3.5

* bok-choy fixes, constrain django-debug-toolbar

* Remove flaky bok-choy test
2019-12-26 15:13:02 -05:00
Calen Pennington
842adc6fcd Archive WTW artifacts and send splunk files at the end of the WTW collection phase 2019-12-12 13:49:44 -05:00
Albert (AJ) St. Aubin
12a416486a Upgrade edx-enterprise 2019-12-06 13:20:14 -05:00
Jeremy Bowman
052f853ec1 Fix Jenkins virtualenv cleanup (#22356) 2019-11-21 11:05:05 -05:00
Feanil Patel
b405c20139 Merge pull request #22256 from edx/feanil/fix_py3_quality
Fix pep 8 violations.
2019-11-12 09:59:18 -05:00
Awais Qureshi
f8b1ff538e BOM-1027
guincorn just released its version on 9th-nov-2019 (20.0.0)
and it requires Python 3.x >= 3.4.
so adding constraint < 20.0.0

execute make upgrade
2019-11-12 11:09:25 +05:00
Feanil Patel
2204e92f8e Up the pylint limit because we get a bunch of deprecated-metod warnings in python 3.
We should fix them eventually but don't want them to block going
to python 3.
2019-11-07 09:09:08 -05:00
Feanil Patel
e863c50054 Fix pep 8 violations. 2019-11-06 13:39:07 -05:00
Jeremy Bowman
c1274ba765 Fix the last bok-choy shard in Python 3 (#22221) 2019-11-04 15:24:29 -05:00
Diana Huang
a4d70cb127 Remove nodeenv install for jenkins. 2019-10-29 11:04:13 -04:00
Ned Batchelder
d71224e0a1 Use sphinxcontrib-openapi to do the heavy lifting of Open API rendering. 2019-10-22 17:45:28 -04:00
Diana Huang
c4a8dc9eb7 Update node version used for Jenkins. 2019-10-22 12:33:32 -04:00
Jeremy Bowman
df38babb7e Archive bok-choy JUnit XML files (#22071) 2019-10-18 10:18:42 -04:00
Ben Holt
523bb0ea5d Add stable_bucketer helper tool (#21783)
Add stable_bucketer helper tool
2019-10-17 21:47:26 -04:00
AsadAzam
b8a19b7b92 Merge pull request #21809 from edx/asad/prod-694
Upgrade python 3 decode error
2019-10-11 17:22:29 +05:00
Feanil Patel
5d7bdf91b1 Revert requirements changes due to memory issues.
Some change in the requirements here may be responsible for increased
CPU and memory usage.  This is causing production LMS for edx.org to run
into lots of performance issues.  Reverting for now until we can narrow
it down to which change caused the issue.
2019-10-09 16:47:26 -04:00
asadazam93
7a43721f81 Upgrade python 3 decode error 2019-10-04 16:17:11 +05:00
Stu Young
7de7bcb398 Revert "Upgrade edx-lint" (#21930) 2019-10-03 16:23:44 -04:00
Calen Pennington
2fa5ff0067 TEST: increase the timeout on the linting jobs 2019-10-01 14:00:54 -04:00
aarif
66942bc74c python 3 fixes
python 3 fixes

python 3 fixes
2019-09-26 14:19:18 +05:00
edX requirements bot
1cc925b624 Updating Python Requirements (#21771) 2019-09-25 09:06:00 -04:00
Awais Qureshi
2c8b17a153 Merge pull request #21741 from edx/awais786/BOM-594
awais786/bom 594
2019-09-24 14:24:25 +05:00
Stu Young
e7e7873e96 fix variable in feature toggle script (#21737) 2019-09-23 09:41:18 -04:00
Awais Qureshi
8fcb74efa4 BOM-594
Python3 fix.
2019-09-22 04:25:31 +05:00
Awais Qureshi
0dcee53c1c BOM-594
Python3 fix.
2019-09-21 23:42:54 +05:00
edX requirements bot
04aa8fb7fd Updating Python Requirements 2019-09-20 06:49:36 -04:00
Thomas Tracy
b0d731b829 Version bump 2019-09-19 15:39:27 -04:00
Stu Young
13bbf85257 clean up toggle annotations (#21673)
clean up toggle annotations and lint when running feature toggle report
2019-09-17 11:11:20 -04:00
Jeremy Bowman
636220cb14 TE-2862 Switch to warnings-ng Jenkins plugin (#21646) 2019-09-12 13:36:37 -04:00
Feanil Patel
9acad23fc4 Remove snakefood and our usage of it.
Unfortunately snakefood is not supported in python3 so I'm removing it
and the tools built on top of it for now as they are not in active use.

If you're looking at this wishing it still existed,

Check out https://github.com/bwohlberg/jonga or https://pypi.org/project/findimports/
2019-09-12 10:18:46 -04:00
DawoudSheraz
652dee611f send grace period info to edx-proctoring 2019-09-12 15:01:32 +05:00
Feanil Patel
f59258446f Fix test collection for XSS lint tests.
This was failing before because DDT was trying to get an attribute
from an XSS Lint RuleSet object but that was throwing an exception
because the RuleSet object didn't have that attribute.

In python 2 such exceptions were automatically swallowed by the
getattr function but in python 3 they get raised.
2019-09-05 12:43:17 -04:00
Feanil Patel
666f1b748d Be explicit about the location of the home on the remote machine. 2019-09-04 15:11:10 -04:00
Feanil Patel
04025cd8c7 Untar the correct venv as a part of preparing the xdist worker. 2019-09-04 15:11:10 -04:00
Calen Pennington
37c92fe8d4 Merge pull request #21354 from cpennington/specific-wtw-context-for-s3-files
Set a specific WTW context to name coverage files to upload/download …
2019-08-30 12:22:37 -04:00
Jeremy Bowman
b44be34756 TE-2847 Send more Jenkins data to Splunk (#21436) 2019-08-23 15:06:36 -04:00
Stu Young
b3556ba2ee use archived venv on jenkins (#21378) 2019-08-19 12:55:58 -04:00
Stu Young
d66655ae8a add script to create annotation report for feature toggles (#20970) 2019-08-16 13:36:44 -04:00
Calen Pennington
b7f3223ea4 Set a specific WTW context to name coverage files to upload/download from s3 2019-08-16 12:57:19 -04:00
Stu Young
8cf86012cf modernize xdist scripts (#21347) 2019-08-16 11:26:36 -04:00
Feanil Patel
20b7f96770 Merge pull request #21310 from edx/feanil/moar_test_collection_fixes
More test collection fixes.
2019-08-08 16:23:15 -04:00
Feanil Patel
189b135c37 Update linting threshold since master is broken. 2019-08-08 15:14:42 -04:00