Tim McCormack
b8a34f0c57
build: Set Django version for tests more safely; drop support for non-GHA ( #31387 )
...
We have a need to lock the version of Django for production and tests, but
also to test on newer versions of Django so that we can get the repo ready
for long-term-support releases.
We've been doing that by extracting the `django==x.y.z` from the
pip-compiled files and moving it to a django.txt that is then co-installed
but can be overridden during tests. The problem is that this can result
in broken packages.
The approach here is to have `make test-requirements` continue to
ensure a consistent set of packages, and then install a different
Django on top of that in the CI script -- and call `pip check` to make
sure that combination isn't broken.
Adding Django 4.0 to the unit-tests.yml matrix will now correctly
result in this error and a failing job:
`django-splash 1.2.1 has requirement Django<4.0, but you have django 4.0.8.`
The other half of this is to change other CI runners to remove their
ability to control the Django version, since it's complicated to make
this work, and we probably only need it in unit-tests.yml. Convert them
to just use `make test-requirements`.
Also:
- Simplify handling of `pip --src` by setting `PIP_SRC` (rather than our
own `PIP_SRC_DIR`, which pip ignores because `--src-dir` isn't an option
that it knows). This is needed to allow `make test-requirements` to do
the pip calls. An alternative would be to set a pip-options env var for
the make target to use, but `PIP_SRC` already exists.
- Remove outdated modifications to common_constraints
- Add comment explaining why pylint tests need dev-requirements
2022-12-12 21:45:15 +00:00
UsamaSadiq
897cb3617f
refactor!: delete common/lib and related usages
2022-09-22 14:16:34 +05:00
Usama Sadiq
1795008686
fix: Removed pylint constraint ( #28222 )
...
Disabled pylint warnings in pylint_tweaks
2021-07-23 18:35:57 +05:00
Jeremy Bowman
1692081dd0
Fix diff-cover with recent git versions on shallow repositories ( #26879 )
...
When we tried upgrading Jenkins workers from Ubuntu 16.04 to 20.04, `diff-cover` started silently failing with a return code of `1`. We suspect this is due to https://github.com/Bachmann1234/diff_cover/issues/153 , so we're adding the workaround described in that ticket.
2021-03-08 10:23:50 -05:00
M. Zulqarnain
e35d3de376
refactor: pyupgrade on docs & pavelib ( #26768 )
2021-03-05 15:24:59 +05:00
M. Zulqarnain
bc568309ec
BOM-1701: Ran pyupgrade on pavelib ( #24230 )
2020-06-17 17:09:38 +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
Calen Pennington
82c49f0db9
Separate bokchoy coverage files by shard
2019-07-26 14:58:44 -04:00
Calen Pennington
fdd212248a
Check the test-suite specific coverage file, and upload it earlier in the process
2019-07-24 13:13:30 -04:00
Calen Pennington
5025567711
Add paver commands and environment variables to capture and run coverage-driven test selection
2019-07-24 12:06:07 -04:00
arbisoft
0726356d7c
Fixing python-modernize issues.
2019-07-10 18:35:47 +05:00
bmedx
e11e062292
Mock CourseEnrollment history for test performance
2019-05-06 18:03:41 -04:00
Calen Pennington
78c8950ea3
Clean up a few remaining unicode format string errors
2019-02-20 15:28:14 -05:00
Matthew Piatetsky
6cf44a0467
fix unicode strings in pavelib/
2019-02-05 09:14:20 -05:00
cclauss
8fca11b85c
Use print() function in both Python 2 and Python 3
2019-01-13 17:16:37 +01:00
Michael Youngstrom
b4fcbbd363
Switch Jenkinsfile over to xdist
2018-08-10 11:19:24 -04:00
Michael Youngstrom
4662624165
Starter code for xdist with ecs
2018-07-11 13:23:05 -04:00
Stuart Young
1fd2167144
rebalance python unittests onto new shards
2018-05-03 11:16:05 -04:00
bmedx
40951a28cf
Fixing some violations to assuage pylint and get a bit of overhead
2018-01-24 11:26:43 -05:00
Stuart Young
078f3e6be4
paver flag to run unittests without coverage
2018-01-16 11:30:20 -05:00
Jeremy Bowman
1dbdee9c54
Revert "PLAT-1858 Better capture of deprecation warnings"
2017-12-18 21:18:02 -05:00
Jeremy Bowman
b26fe5fd24
PLAT-1858 Better capture of deprecation warnings
2017-12-18 14:59:05 -05:00
Jeremy Bowman
05e7a4d671
PLAT-1830 Allow running any test suite in tox
2017-12-11 15:43:01 -05:00
Stuart Young
77ed0ed46c
add option to disable capturing stderr in pytest
2017-11-02 10:33:53 -04:00
John Eskew
5d1363b428
fixup! Enable tox testing of system and commonlib via paver. Add support for django_version option to support Django 1.8/1.11.
2017-09-29 10:39:51 -04:00
John Eskew
bbae00a480
Enable tox testing of system and commonlib via paver.
...
Add support for django_version option to support Django 1.8/1.11.
2017-09-29 10:39:51 -04:00
Jeremy Bowman
ca97e946a6
Switch to pytest for unit tests
2017-09-22 16:07:53 -04:00
Andy Armstrong
93235d118d
Reorder imports using isort (except lms and cms)
2017-05-30 16:04:54 -04:00
Calen Pennington
42617545ec
Remove paver handling for --failed (because nose already handles it)
2016-12-01 13:04:31 -05:00
Jesse Zoldak
fea64a66ff
Only install python coverage prereqs for coverage paver tasks TE-1673
2016-10-26 10:15:08 -04:00
Jesse Zoldak
ac1e4643a0
Add enable-migrations parameter for python unit tests
2016-10-17 15:59:44 -04:00
Calen Pennington
ea28eb6197
Revert "Revert "Merge pull request #13021 from cpennington/paver-timing""
...
This reverts commit acf50c4469 .
2016-08-03 16:13:10 -04:00
Ned Batchelder
8b1978ba6c
Fix unused-import errors
2016-08-03 12:44:41 -04:00
Calen Pennington
acf50c4469
Revert "Merge pull request #13021 from cpennington/paver-timing"
...
This reverts commit ed80381b41 , reversing
changes made to 205cb8b3eb .
2016-07-26 13:32:59 -04:00
Calen Pennington
f94530ba12
[EV-62] Add the ability to log timing information during paver tasks
2016-07-22 10:54:48 -04:00
Calen Pennington
88d826cfb2
Allow the diff_coverage command to share options with the coverage command
2016-06-29 10:31:33 -04:00
Calen Pennington
0e90567f37
Remove the --pdb option, because it was just a passthrough to nose
2016-06-28 13:33:33 -04:00
Calen Pennington
81d347d93f
Push defaults up to option definition to limit option-parsing repetitiveness
2016-06-28 10:46:54 -04:00
Calen Pennington
ef89c75b19
Deprecate paver arguments with '_' in them in favor of versions with '-'
2016-06-27 15:21:28 -04:00
Calen Pennington
206cedf55e
Deprecate extra_args in favor of just passing through all unknown options
2016-06-27 15:19:50 -04:00
Calen Pennington
e60114c716
Add paver arguments to control concurrency and randomization
2016-05-18 14:39:00 -04:00
muzaffaryousaf
db672f4631
Karma configurations for common, lms and cms.
...
TNL-4102
2016-04-22 19:09:27 +05:00
Usman Khalid
2586f09d7a
Add option to disable migrations when running tests
...
By default, migrations are applied as they always have been. Exporting DISABLE_MIGRATIONS=1 or passing --disable-migrations to Paver commands will create tables directly from apps' models.
2016-02-29 11:47:32 -05:00
Ned Batchelder
f5d0f3ff55
Remove useless pylint suppressions
2015-11-22 07:41:19 -05:00
Matt Drayer
1eab25f292
mattdrayer/increment-edx-lint: Bump to v0.2.9 and address pylint/pep8 violations
...
* Fix paver violations to stablize edx-lint update
* Parens, Line2Long
* Fix missing docstrings
* Fix PEP8 issues
* Address PR feedback (thanks @nedbat!)
2015-10-19 10:11:59 -04:00
Justin Abrahms
86864116e1
Fix help description for test's --fail_fast flag
2015-10-13 15:17:27 -07:00
Sarina Canelake
b41e70f541
Remove Pylint violations deprecated-pragma, bad-option-value
2015-07-13 17:33:26 -04:00
Sarina Canelake
ba8fd1c21d
Eliminate instances of unused-import Pylint violation
2015-07-13 17:33:25 -04:00
Christine Lytwynec
e9e4e3cf65
use 1 coveragerc file to generate 1 coverage report per build
2015-07-01 16:07:49 -04:00
Christine Lytwynec
590a64bed1
resolve path differences with coverage combine using a coveragerc file specifically for jenkins
...
Conflicts:
scripts/jenkins-report.sh
2015-05-06 11:31:50 -04:00