Carol Willing
057a52dd32
Add oauth to swagger api doc
2017-07-27 19:44:59 -07:00
Carol Willing
cc24f36e80
Merge pull request #1281 from minrk/no-test-threads
...
eliminate test application thread
2017-07-27 08:43:45 -07:00
Min RK
e7fe6d25b6
set ASYNC_TEST_TIMEOUT=15 on Travis
...
Travis is super slow and default timeout is 5 seconds, which is too low sometimes.
2017-07-27 12:48:46 +02:00
Min RK
afc968146d
fix race in test_proxy
...
prevent `.check_routes` from firing while we wait for a new proxy to come up
We check explicitly that it comes up with no routes, so makes sure check_routes hasn't restored its state, which is causing intermittent failures
2017-07-27 12:48:25 +02:00
Min RK
471decdbb6
Merge pull request #1280 from yuvipanda/hub_connect_port
...
Add hub_connect_port
2017-07-27 12:07:12 +02:00
Min RK
638f980281
fix race waiting for slow spawners
...
wait for `.running` instead of `._spawn_pending`,
since we now have `._proxy_pending` as well to wait for.
2017-07-27 11:46:33 +02:00
Min RK
8f1115a257
remove handling of changing db sessions
...
this was purely for accessing the db from multiple threads in tests
2017-07-27 11:37:19 +02:00
Min RK
9e8b6503a0
use gen_test in place of IOLoop.run_sync
...
even where not strictly required
for consistency, now that we are using gen_test on the main app tests
2017-07-27 11:29:58 +02:00
Min RK
91d042f6f3
get the rest of tests running without threads
...
all tests pass!
2017-07-27 11:29:58 +02:00
Min RK
d559cad042
test_pages without threads
2017-07-27 11:29:56 +02:00
Min RK
f05aecf5f9
test_api passes without threads
...
just put requests in a thread via `utils.async_requests`
eliminates db threads issue
2017-07-27 11:29:16 +02:00
Min RK
58f072e5af
start MockHub without threads
...
everything's going to run with gen_test
need our own io_loop fixture that's module_scoped to go with our app fixture
2017-07-27 11:28:32 +02:00
yuvipanda
afc3bcbc75
Fix more references to port that should be connect_port
2017-07-26 18:12:01 -07:00
yuvipanda
8ee2fd2cf8
Fix possible redirect loop
2017-07-26 18:05:50 -07:00
yuvipanda
be7faacd07
Add ability to set hub_connect_port
2017-07-26 17:53:40 -07:00
Yuvi Panda
dc97433d9b
Merge pull request #1272 from yuvipanda/exponential-function
...
Move exponential backoff into a function
2017-07-26 15:38:01 -07:00
Carol Willing
da10a8e7dd
Edit docstring and comments
2017-07-26 13:00:16 -07:00
Carol Willing
847ae21ccb
Merge pull request #1267 from minrk/auto-login
...
add login_user and get_next_url methods
2017-07-26 10:16:47 -07:00
Carol Willing
128cf115a7
Merge pull request #1269 from willingc/network-docs
...
Streamline networking and using REST API Docs
2017-07-26 09:50:49 -07:00
Carol Willing
1b9cff6d5f
Add minrk comments
2017-07-26 09:48:58 -07:00
Carol Willing
110a8e22ae
Edit for clarity
2017-07-26 09:26:21 -07:00
Carol Willing
7f058c0c77
Minor edits
2017-07-26 09:26:21 -07:00
Carol Willing
1e3512ac84
Update TOC placement
2017-07-26 09:26:21 -07:00
Carol Willing
8662a4a807
Edit networking and REST API usage docs
2017-07-26 09:26:21 -07:00
Carol Willing
63d1c918e5
Merge pull request #1276 from minrk/stop-button
...
running is a method now
2017-07-26 06:45:35 -07:00
Min RK
0a89090dc2
add login_user and get_next_url methods
...
for easier re-use of login in custom handlers
Further, enable auto_login + no custom login handler to mean that auth info is already present in requests
(e.g. REMOTE_USER)
2017-07-26 15:40:13 +02:00
Min RK
645575239f
running is a method now
...
a few that were missed on the home page
2017-07-26 15:38:34 +02:00
Min RK
8de38b1708
add some jitter to the deadline itself
...
so that we don't re-align a bunch of timing out calls once the deadline is reached.
(±10% of timeout by default)
2017-07-26 14:12:28 +02:00
Min RK
6db987972a
exponential backoff
...
- apply jitter to first iteration
- due to jitter, double start_wait to 0.2 so that <first wait> is still 0.1
- keep scaling by start_wait, rather than previous dt
- limit last wait to deadline so timeout is not overshot
2017-07-26 14:06:07 +02:00
Min RK
0ddf6bf579
restore wait_for_death
...
- don't raise TimeoutError
- keep Spawner.death_interval for subclasses
2017-07-26 14:06:07 +02:00
yuvipanda
9f8033a147
Move exponential backoff into a function
...
Also use the 'Full Jitter' jitter algorithm from
https://www.awsarchitectureblog.com/2015/03/backoff.html
2017-07-26 14:06:07 +02:00
Carol Willing
d007b40e15
Merge pull request #1275 from minrk/log-spawn-start
...
add log statement when spawn starts
2017-07-26 04:30:02 -07:00
Carol Willing
bbfd36fc92
Merge pull request #1274 from minrk/hub-token
...
simplify Hub object a bit
2017-07-26 04:24:24 -07:00
Min RK
3faa02b00d
add log statement when spawn starts
...
for easier monitoring of spawn time
and improve consistency of named spawner logging
2017-07-26 12:57:15 +02:00
Min RK
eb1895e980
simplify Hub object a bit
...
- remove use of deprecated Hub.server
- add deprecation warning to Hub.server property
- move cookie_name declaration to Hub
It should now be possible to use Hub.from_url('http://1.2.3.4:1234/hub/ ') without missing information
2017-07-26 11:48:30 +02:00
Min RK
7ee8e96ece
Merge pull request #1243 from minrk/named_servers
...
Flesh out named-servers
2017-07-26 11:15:16 +02:00
Min RK
3e796b579d
Address review in named_servers
...
from willingc
- consistency of repr/str when logging usernames
- cleanup some attribute declarations
- add comments about db session weirdness
2017-07-26 10:47:35 +02:00
Carol Willing
74d9e2f421
Merge pull request #1268 from Carreau/flake8
...
Ignore a couple other of regularly non followed lint rules.
2017-07-25 13:58:47 -07:00
Matthias Bussonnier
2603cbb102
Ignore a couple other of regularly non followed lint rules.
...
These rules are not followed in a lot of place leading to too many
warnnigs which (at least in my editor) make code unreadable.
2017-07-25 13:50:13 -07:00
Min RK
194d6c9d4c
Merge branch 'master' into named_servers
2017-07-25 18:29:01 +02:00
Yuvi Panda
f364f8e832
Merge pull request #1250 from yuvipanda/exponential-backoff-redirect
...
Apply exponential backoff when we're redirecting to ourselves
2017-07-25 08:19:10 -07:00
Carol Willing
ba6af85e9d
Merge pull request #1264 from willingc/tech-overview
...
Streamline technical overview docs
2017-07-25 08:02:19 -07:00
Carol Willing
d2e411dba0
Edits per @minrk review
2017-07-25 08:01:14 -07:00
Min RK
e15a6bb758
Merge branch 'master' into named_servers
2017-07-25 16:56:16 +02:00
Carol Willing
96c04f3c60
Edit section intro
2017-07-25 07:49:06 -07:00
Carol Willing
9c9bc68092
Expand section overview and prune auth/spawners
2017-07-25 07:49:06 -07:00
Carol Willing
46f003fe14
Minor edits
2017-07-25 07:49:06 -07:00
Carol Willing
1404965b07
Edit and deduplicate the document text
2017-07-25 07:49:06 -07:00
Carol Willing
9fbb1417f2
Update table of contents
2017-07-25 07:49:06 -07:00
Carol Willing
158a7090a3
Combine tech overview docs into one
2017-07-25 07:49:06 -07:00