Commit Graph

63 Commits

Author SHA1 Message Date
Muhammad Farhan
e841d650f7 chore: Update tox.ini to remove Python 3.8 support 2024-10-17 20:34:09 +05:00
Feanil Patel
e9d716375f build: Update to allow tests to run on python 3.11
* Update so tox will allow running on the new version.
* Update so the hosted runner actually respects the python version in
  the matrix
2024-05-01 10:23:34 -04:00
Kyle McCormick
5a785482ab test: remove some unused paver references from CI scripts (#34468)
All CI used to go through scripts/generic-ci-tests.sh, which is a
wrapper around various `paver` test/linting/check invocations.
These days, most edx-platform CI checks just invoke their tools (pylint,
pycodestyle, pytest, etc.) directly.

In anticipation of the proposed Paver deprecation [1], let's remove
the parts of this script that aren't used any more, including several
`paver` command invocations. This should have no impact on CI.

Furthermore, we are able to remove the SHARD environment variable,
which was formely used to split unit and quality checks up into
smaller pieces. Unit tests and pylint checks now have their own
separate sharding logic, so there is only one "quality" shard remaining
(SHARD=4, ie generic quality checks), thus we don't need a SHARD
variable at all.

[1] https://github.com/openedx/edx-platform/issues/34467
2024-04-04 10:05:04 -04:00
edX requirements bot
7050eca5a6 fix: Replaced whitelist_externals with allowlist_externals in tox and removed tox-battery (#33558)
* fix: update tox config
* feat: Upgrade Python dependency tox-battery (#33702)
---------
Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
2023-11-13 15:24:08 +05:00
Feanil Patel
66e987997c Revert "Revert "chore: remove bok-choy settings"" 2023-11-01 13:41:37 -04:00
Robert Raposa
083ccbf09b Revert "chore: remove bok-choy settings" 2023-10-31 15:27:44 -04:00
salman2013
a97845294f chore: update lms,cms port variable names 2023-10-31 15:11:42 +05:00
salman2013
de935e146f chore: update variable for frontend test server hostname 2023-10-30 09:46:16 +05:00
salman2013
f71e650b2f chore: update bok-choy hostname and revert the old logic to chose browser for karma 2023-10-27 09:09:55 +05:00
salman2013
e2560e163f chore: fix tests 2023-10-24 09:17:33 +05:00
salman2013
2ff9ca8c1b chore: fix comments, remove un-used selenium browser 2023-10-23 12:13:30 +05:00
salman2013
d668af2fce chore: fix comments, remove and add some code for karma 2023-10-02 16:04:33 +05:00
salman2013
73c4e110fe chore: remove karma 2023-09-27 11:27:41 +05:00
salman2013
42ca0ddec4 chore: remove bok choy settings 2023-09-27 10:58:37 +05:00
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
Arunmozhi
c54d8a81bf refactor: deprecate node_path attribute of ModuleSystem (#30447)
The node_path attribute & constructor argument of the ModuleSystem is
deprecated without any replacement service or fallback as there doesn't
seem to be any core blocks using it.

It also removes the references to node_path from the LMS settings, the
LoncapaModuleSystem and the XBlock runtime shim.

Co-authored-by: Agrendalath <piotr@surowiec.it>
2022-06-08 18:06:59 +02:00
Awais Qureshi
b97af6ac6e build: Removing un-used django versions from tox and other places. (#30270) 2022-04-19 16:41:29 +05:00
Muhammad Soban Javed
e2dc24af3a fix: update quality checks for django 3.2 (#28958) 2021-10-06 23:44:48 +05:00
Awais Qureshi
6326bdb65b fix: fixing file path in tox requirements. 2021-09-22 18:42:35 +05:00
Awais Qureshi
71567719f2 fix: Don't use django-cookies-samesite on Django > 3.1
BOM-2752
2021-09-20 18:54:52 +05:00
Jawayria
90d5eb122a chore: Executed tox-modernizer codemod 2021-08-03 18:31:55 +05:00
usamasadiq
842c8cfa80 Update tox to remove python35 2021-02-01 16:25:19 +05:00
morenol
dfa1bf158b Add python 3.8 and django30 to tox.ini and remove django111, django20 and django21 (#23889)
Add python 3.8 and django30 to tox.ini and remove django111, django20, and django21 tox environments
2020-05-12 15:21:32 -04:00
Jeremy Bowman
1c91e8a15a Upgrade to Django 2.2 2020-04-10 15:25:49 -04:00
Nimisha Asthagiri
662a1a466a Django2: Add to tox.ini's envlist 2020-03-31 14:16:46 -04:00
Usama Sadiq
3c563e072d BOM-1404 Updated tox settings (#23439)
Issue: https://openedx.atlassian.net/browse/BOM-1404

* Fixed Django 2.x installation process in tox
* Updated xdist worker Django installation code
* Use correct tox environment variable name

Co-authored-by: Jeremy Bowman <jbowman@edx.org>
2020-03-24 15:06:47 -04:00
usamasadiq
1e33a4f3ba BOM-1143
Django-auth-toolkit update

Pinned the latest commit from github to get Django2.2 support in testing.
Pinned the zipp<2.0.0 to get Python<3.5 support too.
2020-01-24 11:52:23 +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
11e163d420 Read the current edx-platform git revision from a file on disk 2019-12-17 07:44:28 -05:00
Feanil Patel
77c5ba62a2 Sort tox passenvs. 2019-11-26 15:31:48 -05:00
Feanil Patel
0b40c9045e Add environment variables that coverage needs.
These are used in the coveragerc to referr to equivalent paths for when
combining coverage files.
2019-11-26 15:30:33 -05:00
Feanil Patel
d1728b3d6a Fixes for bokchoy running in python3. 2019-09-12 10:18:46 -04:00
Feanil Patel
113e0cdc06 Pass the python version to tox. 2019-09-04 15:11:10 -04:00
Michael Youngstrom
4d1a320fa0 Add Vars to tox that are needed to get tests to start running. 2019-07-19 09:48:10 -04:00
Michael Youngstrom
139cdb8ba2 Switch testing from ecs to ec2 (#20846) 2019-06-27 22:04:02 -04:00
Jeremy Bowman
5424155cd0 TE-2861 Use correct version of Django in tests (#20271) 2019-04-19 10:44:41 -04:00
Jeremy Bowman
243f30ec83 TE-2886 Upgrade math/science packages in LMS and Studio 2019-03-22 10:02:36 -04:00
Jeremy Bowman
c7fe747c7f More fixes for Python 3 via tox 2019-02-01 15:01:15 -05:00
Michael Youngstrom
592ab1eb86 Fix quality and python private jobs 2019-01-08 10:36:36 -05:00
Michael Youngstrom
b4fcbbd363 Switch Jenkinsfile over to xdist 2018-08-10 11:19:24 -04:00
Jeremy Bowman
defc987a88 TE-2663 Run bok-choy tests in headless Firefox 2018-08-02 11:44:38 -04:00
Michael Youngstrom
ce2ad15c71 Handle multiple containers per task definition 2018-07-20 16:02:14 -04:00
Michael Youngstrom
28d0c4cb18 Add prepare_xdist_nodes script and git ignore xdist txt files 2018-07-18 11:40:42 -04:00
Michael Youngstrom
17238132b7 Remove NPM install for unittest runs 2018-06-29 12:47:55 -04:00
Jeremy Bowman
08a38fb858 TE-2543 Add tox env for Python 3.5 2018-06-04 13:27:14 -04:00
Jeremy Bowman
9477ad23d1 TE-2528 Upgrade testing dependencies 2018-04-25 16:37:29 -04:00
Jeremy Bowman
9ca9aa44c6 PLAT-2060 Use pip-tools to manage requirements files (take 2)
This reverts commit a7fa0c211d.
2018-04-12 17:22:48 -04:00
Feanil Patel
a7fa0c211d Revert "PLAT-2060 Use pip-tools to manage requirements files" 2018-04-10 12:54:41 -04:00
Jeremy Bowman
432347b881 PLAT-2060 Use pip-tools to manage requirements files 2018-04-09 17:07:02 -04:00
Jeremy Bowman
58c765bc31 PLAT-1834 Support running a11y tests in tox 2018-01-25 18:13:14 -05:00