YuviPanda
24f4b7b6b6
Run templates synchronously for Python 3.5
...
jinja2's async support requires Python 3.6+. That should
be an implementation detail - so we render it in the main
thread (current behavior) but pretend we did not
2020-11-17 15:39:26 +05:30
YuviPanda
217dffa845
Fix typo in format string
2020-11-17 15:39:26 +05:30
YuviPanda
a7b796fa57
Autoformat with black
2020-11-17 15:39:21 +05:30
YuviPanda
6c5fb5fe97
F-strings are Python 3.6, not 3.5
2020-11-17 15:38:29 +05:30
Yuvi Panda
20ea322e25
Fix typo
...
Co-authored-by: Tim Head <betatim@gmail.com >
2020-11-17 15:38:29 +05:30
YuviPanda
4f9664cfe2
Provide sync versions of render_template too
...
write_error is a synchronous method called by an async
method from inside the event loop. This means we can't just
schedule an async render_templates in the same loop and wait
for it - that would deadlock.
jinja2 compiled your code differently based on wether you
enable async support or not. Templates compiled with async
support can't be used in cases like ours, where we already
have an event loop running and calling a sync function. So
we maintain two almost identical jinja2 environments
2020-11-17 15:38:29 +05:30
YuviPanda
be211a48ef
Enable async jinja2 template rendering
...
Follows https://jinja.palletsprojects.com/en/2.11.x/api/#async-support
- This blocks the main thread fewer times
- We can use async methods inside templates too
2020-11-17 15:38:29 +05:30
Min RK
553ee26312
preserve url params in ?next
from root page
2020-11-17 10:45:11 +01:00
Erik Sundell
7e6111448a
Merge pull request #3253 from minrk/wait-admin-form
...
wait for pending spawns in spawn_form_admin_access
2020-11-16 02:39:11 +01:00
Erik Sundell
ccc0294f2e
Merge pull request #3257 from manics/jupyterhub_idle_culler
...
Update services-basics.md to ues jupyterhub_idle_culler
2020-11-14 17:37:17 +01:00
Simon Li
3232ad61aa
Update services-basics.md to ues jupyterhub_idle_culler
...
Closes https://github.com/jupyterhub/jupyterhub/issues/3256
2020-11-14 15:59:56 +00:00
Min RK
202a5bf9a5
Merge pull request #3255 from fcollonval/patch-1
...
Environment marker on pamela
2020-11-13 10:28:28 +01:00
Frédéric Collonval
47136f6a3c
Environment marker on pamela
2020-11-13 09:57:20 +01:00
Min RK
5d3161c6ef
wait for pending spawns in spawn_form_admin_access
...
copy logic from test_spawn_admin_access
2020-11-12 10:16:48 +01:00
Félix-Antoine Fortin
9da4aa236e
Standardize Sign in capitalization on the login page
2020-11-11 13:01:14 -05:00
Erik Sundell
d581cf54cb
Retain an assertion and update comments
2020-11-11 15:40:54 +01:00
Erik Sundell
fca2528332
Retain explicit pytest mark asyncio of our coroutines
2020-11-11 14:47:41 +01:00
Erik Sundell
5edd246474
Replace @async_generator/yeild_ with async/yeild
2020-11-11 14:47:29 +01:00
Erik Sundell
77ed2faf31
Replace gen.multi(futures) with asyncio.gather(*futures)
2020-11-11 14:47:24 +01:00
Erik Sundell
4a17441e5a
Replace gen.sleep with asyncio.sleep
2020-11-11 14:40:59 +01:00
Erik Sundell
e1166ec834
Replace @gen.coroutine/yield with async/await
2020-11-11 14:36:56 +01:00
Erik Sundell
2a1d341586
Merge pull request #3250 from minrk/test-condition
...
remove push-branch conditions for CI
2020-11-11 12:21:52 +01:00
Min RK
55a59a2e43
remove push-branch conditions for CI
...
testing other branches is useful, and there's little cost to removing the conditions:
- we don't run PRs from our repo, so test runs aren't duplicated on the repo
- testing on a fork without opening a PR is still useful (I use this often)
- if we push a branch, it should probably be tested (e.g. backport branch), and filters make this extra work
- the cost of running a few extra tests is low, especially given actions' current quotas and parallelism
2020-11-11 09:12:58 +01:00
Min RK
e019a33509
Merge pull request #3246 from consideRatio/pr/migrate-to-gh-actions-from-travis
...
Migrate from travis to GitHub actions
2020-11-11 09:06:58 +01:00
Erik Sundell
737dcf65eb
Fix mysql/postgresql auth and comment struggles
2020-11-10 19:20:47 +01:00
Erik Sundell
9deaeb1fa9
Final variable name update
2020-11-10 16:19:22 +01:00
Erik Sundell
bcfc2c1b0d
Cleanup use of database related environment variables
2020-11-10 16:16:28 +01:00
Erik Sundell
f71bacc998
Apply suggestions from code review
...
Co-authored-by: Min RK <benjaminrk@gmail.com >
2020-11-10 15:39:46 +01:00
Erik Sundell
ff14b1aa71
CI: use --maxfail=2
2020-11-10 11:14:59 +01:00
Erik Sundell
ebbbdcb2b1
Refactor ci/docker-db and ci/init-db
2020-11-10 11:14:40 +01:00
Erik Sundell
d0fca9e56b
Reword comment
2020-11-10 10:03:53 +01:00
Erik Sundell
517737aa0b
Add notes about not needing "set -e" etc.
2020-11-10 02:17:44 +01:00
Erik Sundell
5dadd34a87
Help GitHub UI present the job parameterization + inline comments
2020-11-10 02:17:40 +01:00
Erik Sundell
df134fefd0
Refactor pre-commit to its own job
2020-11-10 01:17:30 +01:00
Erik Sundell
47cec97e63
Let pytest fail on first error
2020-11-10 01:16:12 +01:00
Erik Sundell
0b8b87d7d0
Remove debugging trigger
2020-11-09 07:43:42 +01:00
Erik Sundell
3bf1d72905
Test in Ubuntu 20.04
2020-11-09 07:42:45 +01:00
Erik Sundell
8cdd449cca
Unpin mysql-connector-python and resolve errors
2020-11-09 07:42:12 +01:00
Erik Sundell
6fc3c19763
For CI readability, exit on first failure
2020-11-09 07:41:05 +01:00
Erik Sundell
265dc07c78
Remove .travis.yml, add GitHub workflow
2020-11-09 07:40:15 +01:00
Erik Sundell
1ae039ddef
Remove py3.7+ breaking test variation (has~x)
...
The jupyterhub/tests/test_spawner.py::test_spawner_routing[has~x] test
failed in py37+ but not in py36, and I think it is foundational to the
socket library of Python that has changed.
This is a stacktrace from Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/util/connection.py:61
```
> for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
E socket.gaierror: [Errno -2] Name or service not known
```
Here is relevant documentation about socket.getaddrinfo.
https://docs.python.org/3.7/library/socket.html#socket.getaddrinfo
2020-11-09 07:32:11 +01:00
Erik Sundell
378d34b213
Don't ignore outer env vars
2020-11-09 07:31:16 +01:00
Mohammad Wasil
9657430cac
Fix reverse proxy redirect from https
2020-11-04 17:59:28 +01:00
Mohammad Wasil
6271535f46
Merge pull request #1 from jupyterhub/master
...
Merge from jupyterhub/jupyterhub master
2020-11-04 17:02:28 +01:00
agp8x
2bef5ba981
Add prefix to prometheus metrics to group all jupyter metrics (see #1585 )
2020-11-04 13:54:31 +01:00
Alex Weaver
efb1f3c824
Run precommit hooks, fix formatting issue
2020-10-30 12:35:01 -05:00
Alex Weaver
53050a5836
Merge branch 'master' of https://github.com/jupyterhub/jupyterhub into cleanup-leftover-proxy
2020-10-30 12:14:08 -05:00
Alex Weaver
6428ad9f0b
Check proxy cmd before shutting down, cleaner shutdown on Windows
2020-10-30 12:13:50 -05:00
Min RK
9068ff2239
back to dev
2020-10-30 13:22:14 +01:00
Min RK
fc6cd33ce0
release 1.2.1
1.2.1
2020-10-30 13:20:43 +01:00