Commit Graph

809 Commits

Author SHA1 Message Date
Aarif
aa31f3b255 refactor: remove a11y tests setup (#29813) 2022-02-15 18:56:34 +05:00
edX requirements bot
2862fa8775 chore: Updating Python Requirements (#29925) 2022-02-15 13:20:47 +05:00
Carlos Muniz
8e8d8404be Carlos muniz/symmath removal unrevert (#29912)
* Revert "Merge pull request #29909 from openedx/revert-29869-Carlos-Muniz/symmath-removal"

This reverts commit 8c0db8ddff, reversing
changes made to 1156c62014.

* fix: Remove misplaced `-e`

`-e` was wrongfully placed in front of `common/lib/sandbox-packages`,
which may have most likely been causing the edxAPP to break.

* fix: Change regex to apply to right dirs

`py38.txt` does not include `common/lib/xmodule` so it doesn't match the
regex. Therefore, it never got its lines in `common/lib/sandbox-packages`
fixed. If we change the regex to match any `common/lib/<packagename>` it
should work correctly.
2022-02-14 10:26:40 -05:00
Phillip Shiu
6ac1dd688a Revert "Remove symmath from edx-platform" 2022-02-11 10:30:08 -05:00
Carlos Muniz
d5a41ec9f3 feat: Change symmath to xmodule
scripts/post-pip-compile.sh uses common/lib/symmath/ as its sample
directory to clean up after using pip-tools. Since symmath has been
removed, xmodule, the largest of the directories in common/lib/ will
replace it.
2022-02-10 15:06:20 -05:00
Carlos Muniz
b80d8d6030 refactor: Remove all mentions of symmath 2022-02-10 14:55:22 -05:00
edX requirements bot
429cee1fb2 chore: Updating Python Requirements (#29849) 2022-02-01 14:35:00 +05:00
Muhammad Soban Javed
4e22a38ca5 test: run openedx and common tests with both lms and cms settings (#29676) 2022-01-21 11:58:57 +05:00
Tim McCormack
05704eea39 fix: When xsslint fails with error, list which file it failed on (#29780)
In my case, xsslint was failing with a UnicodeDecodeError -- having this
try/except block helped me discover that it was reading files in my
virtualenv.
2022-01-18 20:24:49 +00:00
edX requirements bot
551acc1a0e chore: Updating Python Requirements (#29740) 2022-01-11 13:35:28 +05:00
Kyle McCormick
29ed3d911a build: expose working openedx/lms and openedx/cms docker images (#29549)
This commits prepares edx-platform's experimental Dockerfile
for optional use in devstack. Presently, the image built by this
Dockerfile isn't used anywhere.

Notable changes:
* Drop the openedx/edx-platform image name in favor of
  openedx/lms and openedx/cms.
* Drop the newrelic stages and tags.
* Create openedx/lms-dev and openedx/cms-dev image
  variants which use Django devserver, install dev
  requirements, and specify devstack Django settings.
* Add config files at (lms,cms)/envs/devstack-experimental.yml,
  extracted from the existing edxapp docker image.
* Adds three new scripts, each of which replaces an Ansible
  or Paver-supported function with a pure bash + Django
  management command implementation.
2022-01-10 11:20:10 -05:00
Tim McCormack
1e55b4e1b6 feat: Add utility for logging sensitive information using encryption (#29682)
Introduces `common.djangoapps.util.log_sensitive module` for
public-key encryption of sensitive debug information in log
messages, including CLI commands for generating keys and
decrypting log output.

Also:

- Adds `PyNaCl` to base requirements for encryption tools
- Requirements upgrade

ref: ARCHBOM-1940
2022-01-05 21:37:45 +00:00
edX requirements bot
781d248088 chore: Updating Python Requirements (#29702) 2022-01-04 14:33:02 +05:00
Aarif
76a8aaf6cd fix: updated the unit tests workflow to simplify job names and read test paths from a separate file (#29472) 2021-12-09 18:21:17 +05:00
edX requirements bot
bb20b17428 Python Requirements Update (#29516)
* chore: Updating Python Requirements

* fix: fix pylint issues

Co-authored-by: Mohammad Ahtasham ul Hassan <mohammad.ahtasham@arbisoft.com>
2021-12-08 14:13:27 +05:00
Mohammad Ahtasham ul Hassan
8320dcb0e8 build: update stylint and eslint thresholds (#29471)
* build: update stylint and eslint thresholds

* Removed stylint threshold

* Update test_stylelint.py

* fix: fix eslint issues
2021-12-07 20:09:13 +05:00
Usama Sadiq
780a6f3c2d Revert "chore: install codejail from pypi (#29481)" (#29501)
This reverts commit 21551095ac.
2021-12-02 22:19:15 +05:00
Mohammad Ahtasham ul Hassan
21551095ac chore: install codejail from pypi (#29481)
* chore: install codejail from pypi

* chore: Updating Python Requirements

* chore: Updating Python Requirements

* fix: fixed failing tests

* fix: fixed pytest failures

* fix: fixed failing test bug

* Update mocks.py

Co-authored-by: edX requirements bot <testeng+edx-requirements-bot@edx.org>
2021-12-02 17:07:29 +05:00
Aarif
39fe1a20e4 feat: move unit tests to github actions on self-hosted runners (#28873) 2021-11-18 19:09:31 +05:00
Kyle McCormick
470be08a83 build: check for __init__.py files in each directory 2021-10-21 09:54:22 -04:00
Usama Sadiq
5a6d056568 build: remove python 3.5 requirement files (#29070) 2021-10-20 15:59:35 +05:00
Ned Batchelder
a6cc52144b test: don't run xss-commit-linter unless we have a target branch 2021-10-19 12:24:16 -04:00
Ned Batchelder
d1aa75e3f2 build: run xss-commit-linter verbosely 2021-10-19 12:24:16 -04:00
Ned Batchelder
79a7ad52a7 build: use the correct base branch for xsscommitlint
It might not be master!

(cherry picked from commit fc894e1fd8977ac450118887a1914ca248e3571c)
2021-10-16 07:39:46 -04:00
edX requirements bot
6f600d495c chore: Updating Python Requirements (#29010) 2021-10-14 13:53:43 +05:00
Usama Sadiq
db99cbf79c Use latest pip & pip-tools in jenkins_env (#29004)
* fix: replace pip-sync with pip install in env creation

* fix: use pip-tools==6.4.0 with pip==21.3
2021-10-13 18:40:18 +05:00
Muhammad Soban Javed
e2dc24af3a fix: update quality checks for django 3.2 (#28958) 2021-10-06 23:44:48 +05:00
Aarif
c162a25045 fix: fixed build errors blocking django 3.1 and 3.2 tests (#28923) 2021-10-05 00:39:08 +05:00
M. Zulqarnain
0fa556992c BOM-2850: Upgrade django-cors-headers to 3.5.0 (#28833)
* chore: upgrade django-cors-headers

* chore: Updating Python Requirements (#28834)

Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
2021-09-24 17:06:06 +05:00
edX requirements bot
0f528f9125 Python Requirements Update (#28806)
* chore: Updating Python Requirements

* fix: disabled unused import warnings

Co-authored-by: Usama Sadiq <usama.sadiq@arbisoft.com>
2021-09-21 14:21:00 +05:00
edX requirements bot
633ba0a40b chore: Updating Python Requirements (#28771) 2021-09-17 13:17:20 +05:00
Aarif
0d58faa926 added a workflow to build and push CI runner docker image (#28539) 2021-09-10 05:44:21 +05:00
Usama Sadiq
c6ecdf735c BOM-2715: Update the post-pip-compile script (#28301)
* update the post-pip-compile script to fix the py38.txt parsing for sandbox requirements.
2021-08-23 12:09:40 +05:00
edX requirements bot
c09d226b24 chore: Updating Python Requirements (#28375) 2021-08-03 12:34:51 +05:00
edX requirements bot
5d64b6bf3d chore: Updating Python Requirements (#28227) 2021-07-20 11:03:37 +05:00
edX requirements bot
2bf176d523 chore: Updating Python Requirements (#28055) 2021-06-29 12:22:47 +05:00
Kshitij Sobti
b083ad13d6 refactor: Move CourseEditLTIFieldsEnabledFlag to xblock-lti-consumer (#27529) 2021-06-24 14:31:50 +05:00
Julia Eskew
47b37ed191 Revert "fix: Disable column-statistics during mysqldump command."
This reverts commit b84e8937ff.
2021-06-10 16:30:08 -04:00
Julia Eskew
b84e8937ff fix: Disable column-statistics during mysqldump command. This option
was recently enabled by default in mysqldump, but the generation of
histogram statistics fails in devstack during this script's mysqldump
commands. The SQL statement and output of the failure:

mysql> SELECT \
COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') \
FROM information_schema.COLUMN_STATISTICS \
WHERE \
SCHEMA_NAME = 'edxtest' AND \
TABLE_NAME = 'agreements_integritysignature';
ERROR 1109 (42S02): Unknown table 'COLUMN_STATISTICS' in information_schema
2021-06-10 12:21:24 -04:00
Aarif
58a54f8d0b BOM-2543: Remove the diff-quality step from quality checks (#27619)
* build: Removed the diff-quality step
Applied lint-amnesty on all the warnings
Removed pylint thresholds comparison code and related tests

Co-authored-by: Usama Sadiq <usama.sadiq@arbisoft.com>
2021-06-07 18:37:06 +05:00
edX requirements bot
01408d986e Updating Python Requirements (#27778) 2021-05-31 11:44:46 +05:00
edX requirements bot
5d69d858e2 Updating Python Requirements (#27740) 2021-05-27 12:27:37 +05:00
stvn
2f2355b705 build: add script to list installed XBlocks
Story
=====
As an XBlock developer,
I want to know which XBlocks are installed
so I can debug (and know which to add to Advanced Settings in Studio).

Testing
=======
- `make studio-shell`
- `python scripts/xblock/list-installed.py`

Integration
===========
I plan to invoke this from `devstack` (after installing XBlocks).

Tickets
=======
Fixes CENG-95
Fixes stvstnfrd/openedx-meta#153
2021-05-26 15:02:22 -07:00
edX requirements bot
acb106c913 chore: Updating Python Requirements 2021-05-17 03:15:59 -04:00
Usama Sadiq
4f4be6538a BOM-2477: pylint warnings lint-amnesty (#27585) 2021-05-11 17:22:40 +05:00
Usama Sadiq
a597f1c783 refactor: ran pyupgrade second iteration (#27463) 2021-05-11 15:19:48 +05:00
Ali-D-Akbar
3da5198a5f chore: updating thresholds after security fixes #27391 2021-04-22 13:43:03 +05:00
Kyle McCormick
4531e15519 refactor!: stop using import_shims
Attempting to import packages from
lms/djangoapps, cms/djangoapps, or common/djangoapps
as if they are import roots will now
simply raise ImportErrors (like any other invalid
import) instead of DeprecatedEdxPlatformImportError.

See docs/decisions/0007-sys-path-modification-removal.rst
for more details.
2021-04-12 09:43:59 -04:00
Jawayria
96e1bffc97 Refactor: Removed unused imports
Removed unused imports from docs, scripts, pavelib
2021-04-09 16:03:53 +05:00
Azan Bin Zahid
705253e20a chore: update thresholds after IM security fixes 10 2021-04-06 15:40:04 +05:00