Tim Head
ce11959b1a
Merge pull request #3267 from slemonide/patch-1
...
Update services.md
2020-11-19 14:07:56 +01:00
fyrzbavqr
097974d57d
Update services.md
...
Fix small typo
2020-11-19 04:14:54 -08:00
Omar Richardson
09ff03ca4f
Superfluous import statement
2020-11-19 13:10:48 +01:00
Omar Richardson
313f050c42
Reduced ssl on for active tests only
2020-11-19 12:58:38 +01:00
Omar Richardson
4862831f71
Trying with different configuration
2020-11-19 12:08:10 +01:00
Omar Richardson
c46beb976a
Moving ssl tests to testing matrix
2020-11-19 11:59:03 +01:00
Omar Richardson
71d99e1180
Update with expand group test
2020-11-19 09:57:50 +01:00
IvanaH8
18ed1b58cc
added roles to token model and POST /users/{name}/tokens request body
2020-11-19 09:17:03 +01:00
IvanaH8
c0cadc384d
adding roles to tokens
2020-11-19 08:22:52 +01:00
0mar
54cb31b3a9
Removed circular import
2020-11-18 17:29:15 +01:00
Omar Richardson
99c3f77c58
WIP Implemented scopes
2020-11-18 17:12:26 +01:00
Dan Lester
67c4a86376
Fix RootHandler when default_url is a callable
2020-11-18 12:55:44 +00:00
Alex Weaver
82a1ba8402
Import psutil and perform cmdline check on Windows onlyy
2020-11-17 13:02:35 -06:00
Alex Weaver
7f53ad52fb
Assume that fapermission errors when getting process metadata indicate a non-running proxy
2020-11-17 12:55:34 -06:00
Min RK
3ddc796068
verify that tornado gen.coroutine and run_on_executor are awaitable
...
- our APIs require that methods return 'awaitables'
- make sure that the older ways to create tornado 'yieldables' still produce 'awaitables'
2020-11-17 12:38:42 +01:00
Min RK
3c071467bb
require tornado 5.1, async_generator 1.9
...
- maybe_future relies on changes in 5.1, not in 5.0
- async_generator.asynccontextmanager is new in 1.9
2020-11-17 12:23:39 +01:00
Min RK
0c43feee1b
run tests with oldest-supported versions
...
to catch any cases where we make assumptions about more recent versions than we claim to support
2020-11-17 12:22:46 +01:00
Min RK
5bcbc8b328
Merge pull request #3252 from cmd-ntrf/signin
...
Standardize "Sign in" capitalization on the login page
2020-11-17 11:59:26 +01:00
Min RK
87e4f458fb
only preserve params when ?next= is not specified
2020-11-17 11:58:28 +01:00
Min RK
808e8711e1
Merge pull request #3176 from yuvipanda/async_template
...
Enable async support in jinja2 templates
2020-11-17 11:46:23 +01:00
YuviPanda
19935254a7
Fix pre-commit errors
2020-11-17 15:58:38 +05:30
YuviPanda
a499940309
Remove extreneous coroutine creation
...
You can 'pass through' coroutines like this without
yield.
2020-11-17 15:41:40 +05:30
YuviPanda
74544009ca
Remove extreneous print statement
...
Was a debugging aid
2020-11-17 15:41:22 +05:30
YuviPanda
665f9fa693
Drop Python 3.5 support
...
See https://github.com/jupyterhub/jupyterhub/pull/3176#issuecomment-694315759
For Travis, I push the version cascade down one step.
Should preserve our test coverage while conserving test
duration
2020-11-17 15:39:55 +05:30
YuviPanda
24b555185a
Revert "Run templates synchronously for Python 3.5"
...
This reverts commit f1155d6c2afbcbd875c7addc88784313c77da8e9.
Instead, let's stop supporting 3.5!
2020-11-17 15:39:26 +05:30
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
0mar
2e9ecfff02
WIP: implementing expanding groups
2020-11-17 09:56:48 +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