6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-11 15:51:00 +00:00
Commit Graph

1858 Commits

Author SHA1 Message Date
Overhang.IO
e0d6eaa130 Merge remote-tracking branch 'origin/master' into nightly 2023-09-22 06:56:35 +00:00
dependabot[bot]
c594817743 chore(deps): bump cryptography from 41.0.3 to 41.0.4 in /requirements
Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.3 to 41.0.4.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/41.0.3...41.0.4)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-22 08:37:19 +02:00
Overhang.IO
e8c66bfad6 Merge remote-tracking branch 'origin/master' into nightly 2023-09-13 09:34:56 +00:00
Régis Behmo
00c58e7a9e chore: upgrade nodeenv to fix nodejs install
We upgrade nodeenv as an attempt to fix incomplete reads.

From time to time we face the following error:

	#67 [linux/amd64 nodejs-requirements 2/4] RUN nodeenv /openedx/nodeenv --node=16.14.0 --prebuilt
	#67 0.338  * Install prebuilt node (16.14.0) .Incomplete read while readingfrom https://nodejs.org/download/release/v16.14.0/node-v16.14.0-linux-x64.tar.gz
	#67 204.1 .
	#67 204.1 Traceback (most recent call last):
	#67 204.1   File "/openedx/venv/bin/nodeenv", line 8, in <module>
	#67 204.1     sys.exit(main())
	#67 204.1   File "/openedx/venv/lib/python3.8/site-packages/nodeenv.py", line 1104, in main
	#67 204.1     create_environment(env_dir, args)
	#67 204.1   File "/openedx/venv/lib/python3.8/site-packages/nodeenv.py", line 980, in create_environment
	#67 204.1     install_node(env_dir, src_dir, args)
	#67 204.1   File "/openedx/venv/lib/python3.8/site-packages/nodeenv.py", line 739, in install_node
	#67 204.1     install_node_wrapped(env_dir, src_dir, args)
	#67 204.1   File "/openedx/venv/lib/python3.8/site-packages/nodeenv.py", line 762, in install_node_wrapped
	#67 204.1     download_node_src(node_url, src_dir, args)
	#67 204.1   File "/openedx/venv/lib/python3.8/site-packages/nodeenv.py", line 602, in download_node_src
	#67 204.1     with ctx as archive:
	#67 204.1   File "/opt/pyenv/versions/3.8.15/lib/python3.8/contextlib.py", line 113, in __enter__
	#67 204.1     return next(self.gen)
	#67 204.1   File "/openedx/venv/lib/python3.8/site-packages/nodeenv.py", line 573, in tarfile_open
	#67 204.1     tf = tarfile.open(*args, **kwargs)
	#67 204.1   File "/opt/pyenv/versions/3.8.15/lib/python3.8/tarfile.py", line 1601, in open
	#67 204.1     saved_pos = fileobj.tell()
	#67 204.1 AttributeError: 'bytes' object has no attribute 'tell'

This change was added to 1.8.0 as an attempt to resolve the issue: https://github.com/ekalinin/nodeenv/pull/329

We are not sure it will work every time, but it can't hurt.
2023-09-13 11:01:04 +02:00
Overhang.IO
8b332f9ccc Merge remote-tracking branch 'origin/master' into nightly 2023-09-07 17:33:51 +00:00
Régis Behmo
72906bff8d feat: add cairn to the official list of plugins
This change means that cairn will be automatically installed whenever we
run:

    pip install tutor[full]

or whenever we run the tutor binary.
2023-09-07 19:16:53 +02:00
Overhang.IO
d58df5c70c Merge remote-tracking branch 'origin/master' into nightly 2023-09-06 10:12:16 +00:00
Régis Behmo
51928b0075 fix: parse strings prefixed with "#" in config save --set ...
Pound keys were interpreted as comments. This is annoying when we want
to parse html color codes, such as in:

    $ tutor config save --set "INDIGO_PRIMARY_COLOR=#225522"
    $ tutor config printvalue INDIGO_PRIMARY_COLOR
    null

Close #866.
2023-09-06 12:06:10 +02:00
Overhang.IO
6941021caa Merge remote-tracking branch 'origin/master' into nightly 2023-09-05 14:22:31 +00:00
Régis Behmo
8eccaa61e9 fix: render list config items
Close #867.
2023-09-05 16:06:44 +02:00
Overhang.IO
14dfc82a48 Merge remote-tracking branch 'origin/master' into nightly 2023-08-29 14:29:15 +00:00
Régis Behmo
39d3eaf801 fix: type tests
Type tests were broken following the upgrade of click. We take the
opportunity to simplify the TutorCli implementation.
2023-08-29 16:21:43 +02:00
Régis Behmo
7e443ac40d chore: upgrade reqs
Now that sphinx_rtd support docutils>=0.19 we can drop that max version
requirement. But we need to limit sphinx max version because they
removed python 3.8 support before EOL.
2023-08-29 15:53:27 +02:00
Overhang.IO
ad6cc4fcc7 Merge remote-tracking branch 'origin/master' into nightly 2023-08-29 09:59:22 +00:00
Régis Behmo
748340f751 v16.1.1 2023-08-29 11:43:24 +02:00
Overhang.IO
06b021df23 Merge remote-tracking branch 'origin/master' into nightly 2023-08-28 07:59:39 +00:00
Florian Haas
cfb786ab2d fix: Apply mysqld character set fix to Kubernetes deployment
This is a follow-up fix to #819, where the corresponding change was
added to the mysqld invocation in the "tutor local" (that is,
docker-compose) deployment method, but omitted from its "tutor k8s"
equivalent.
2023-08-28 09:53:38 +02:00
Overhang.IO
c475ff63e6 Merge remote-tracking branch 'origin/master' into nightly 2023-08-28 07:53:24 +00:00
Régis Behmo
edd19fc0d0 docs: fix build 2023-08-28 09:48:42 +02:00
Kyle D. McCormick
ea79dfb85d docs: update README to reflect official ARM64 support 2023-08-28 09:48:42 +02:00
Kyle D. McCormick
97b999b519 docs: tutor uses docker compose now, not docker-compose 2023-08-28 09:48:42 +02:00
Régis Behmo
758b7d0f73 docs: backup with sudo
See:
https://discuss.overhang.io/t/copying-tutor-gives-permission-denied/3500
2023-08-28 09:42:54 +02:00
Overhang.IO
4cd4ddb1e7 Merge remote-tracking branch 'origin/master' into nightly 2023-08-16 17:19:54 +00:00
Régis Behmo
8ccc3588e7 v16.1.0 2023-08-16 19:12:35 +02:00
Régis Behmo
021a305084 Merge branch 'master' into nightly 2023-08-16 19:07:07 +02:00
Régis Behmo
2a47100d6a fix: broken mysql after palm upgrade
This fix is for a rather serious issue that affects users who upgrade
from Olive to Palm. The client mysql charset and collation was
incorrectly set to utf8mb4, while the server stil runs utf8mb3. Only
users who run the mysql container are affected.

To resolve this issue, we explicitely configure the client to use the
utf8mb3 charset/collation.

Important note: users who have somehow managed to upgrade from olive to
Palm before may find themselves in an undefined state. They might have
to fix their mysql data manually. Same thing for users who launched Palm
from scratch; although, according to my preliinary tests, they should be
able to downgrade their connection from utf8mb4 to utf8mb3 without
issue.

In addition, we upgrade to mysql 8.1.0. Among many other fixes, this
avoids a server restart after the upgrade:

> An in-place upgrade from MySQL 5.7 to MySQL 8.0, without a server
> restart, could result in unexpected errors when executing queries on
> tables. This fix eliminates the need to restart the server between the
> upgrade and queries. (Bug #35410528)

https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-34.html

See also the 8.1.0 release notes:

https://dev.mysql.com/doc/relnotes/mysql/8.1/en/news-8-1-0.html

Close #887.
2023-08-16 19:01:41 +02:00
0x29a
df07422adb fix: race condition could cause mkdirs() to fail with "dir exists" 2023-08-16 18:59:15 +02:00
Régis Behmo
b51fdb46f3 fix: ask whether we run as prod in local launch
User was no longer asked whether they wanted to run on prod or not. In
other words, it was not convenient to run as local.overhang.io.
2023-08-16 18:57:26 +02:00
Régis Behmo
67009fb857 fix: improve support of non-buildkit Docker build
See comment here:
https://github.com/overhangio/tutor/pull/868#issuecomment-1640429396

See also the conversation that spawned this PR:
https://discuss.openedx.org/t/issue-in-tutor-palm-release-with-tuotr-dev-launch-while-installing/10629
2023-08-16 18:56:59 +02:00
Emad Rad
ef30dbc193 chore: left out "Filters" word added 2023-08-14 16:25:59 +02:00
Régis Behmo
f6507f995a v16.0.5 2023-08-09 22:42:32 +02:00
Régis Behmo
a6338e2880 feat: upgrade to open-release/palm.2 2023-08-09 22:41:34 +02:00
Overhang.IO
1e0f71450a Merge remote-tracking branch 'origin/master' into nightly 2023-08-03 09:43:18 +00:00
Régis Behmo
bb23afcc60 v16.0.4 2023-08-03 11:19:17 +02:00
Régis Behmo
8de5edfab7 chore: upgrade cryptography in dev
See: https://github.com/overhangio/tutor/security/dependabot/18
2023-08-03 11:13:45 +02:00
Emad Rad
8414200262
fix: remove references to the wizard edition 2023-08-03 11:08:35 +02:00
Régis Behmo
63c8f8ec58 feat: add support for http/3
It was observed that waiting time was cut in half after http/3 was
enabled. Plus, supporting http/3 is super easy :)

Close #845
2023-08-03 10:59:43 +02:00
Régis Behmo
6988a0fdd1 Merge branch 'master' into nightly 2023-07-31 16:24:37 +02:00
Régis Behmo
d7eb539277 fix: ignore discussion units when forum is not enabled
This is a backport of a commit to the master branch:
https://github.com/openedx/edx-platform/pull/32464

In particular, it will fix many issues that appear when the demo course
is imported.
2023-07-31 16:00:18 +02:00
Overhang.IO
982e425d9a Merge remote-tracking branch 'origin/master' into nightly 2023-07-31 13:59:14 +00:00
Régis Behmo
2bca024daf docs: fix many verbatim issues in catalog 2023-07-31 15:52:13 +02:00
Overhang.IO
43a633fb38 Merge remote-tracking branch 'origin/master' into nightly 2023-07-31 07:30:12 +00:00
Régis Behmo
97d9f5a75c chore: upgrade certifi
Fix minor vulnerability:
https://github.com/overhangio/tutor/security/dependabot/17
2023-07-31 09:23:01 +02:00
Overhang.IO
95f95c0946 Merge remote-tracking branch 'origin/master' into nightly 2023-07-28 20:03:50 +00:00
Régis Behmo
78ba4ea7cf fix: don't apply edx-platform patches in nightly 2023-07-28 21:58:10 +02:00
Régis Behmo
e9723bd7dc v16.0.3 2023-07-28 21:56:37 +02:00
Overhang.IO
82eeca8f57 Merge remote-tracking branch 'origin/master' into nightly 2023-07-28 19:32:12 +00:00
Régis Behmo
a1945245b8 security: fix unprivileged content libraries creation
See:
https://github.com/openedx/edx-platform/security/advisories/GHSA-3q74-3rfh-g37j
https://github.com/openedx/edx-platform/pull/32838
https://discuss.openedx.org/t/security-upcoming-security-release-for-edx-platform-on-2023-07-25/10769
2023-07-28 21:04:26 +02:00
Overhang.IO
e192227297 Merge remote-tracking branch 'origin/master' into nightly 2023-07-21 10:52:06 +00:00
Régis Behmo
faf43bd3b0 chore: actually do upgrade cryptography req
See: https://github.com/overhangio/tutor/security/dependabot/14
2023-07-21 12:45:29 +02:00