Commit Graph

49 Commits

Author SHA1 Message Date
895e159502
Add tests for successful and fatal exit codes 2018-12-19 17:28:39 +00:00
711db92b8e
Test process restarts when exit normally 2018-12-19 17:10:58 +00:00
fffcbf8f48
Allow processes to be restarted and terminated 2018-12-19 15:44:03 +00:00
1e190c7932
Better handle stopping router in tests 2018-12-19 13:43:28 +00:00
f6c8d5b19d
Move environment definition onto Project 2018-12-18 21:45:42 +00:00
ae5b3eeefb
Add env file parsing 2018-12-18 21:42:23 +00:00
9870342567
Add additional environment variables to processes 2018-12-18 21:24:44 +00:00
76b02ed5f9
Don't raise if a process vanishes before evaluation 2018-12-18 21:12:29 +00:00
fbdef2ecbf
Use process ident for logs socket filename 2018-12-18 21:04:29 +00:00
9b937d25c3
Change payload type to enum 2018-12-18 20:41:23 +00:00
f5d27f558e
Run worker inline so it's easier to see errors 2018-12-18 20:36:34 +00:00
f9476ee1df
Add idents to processes 2018-12-18 20:16:43 +00:00
7af173c0cf
Replace uses of os.path with pathlib 2018-12-18 15:49:20 +00:00
c63c709c79
Add project names 2018-12-18 15:34:57 +00:00
53b3d29baa
Read procfile 2018-12-17 21:43:46 +00:00
5997412b98
Add base project class 2018-12-17 20:40:11 +00:00
3bc8de98e6
Kill all dummy processes after launch
Just in case
2018-12-15 16:24:55 +00:00
f1b4017789
Remove unnecessary file 2018-12-15 16:10:40 +00:00
ec58111360
Allow router to be tested properly 2018-12-15 16:08:37 +00:00
9ac2e60843
Use aiohttp application rather than server
We can do some route checking stuff later
2018-12-15 14:48:10 +00:00
eec4e46f3e
Kill all child processes when server terminates 2018-12-14 22:58:50 +00:00
697c8cb6eb
Add timeout to starting worker 2018-12-14 22:44:39 +00:00
b184038cc4
Don't show starting process in tests 2018-12-14 22:43:20 +00:00
73328303d4
Start worker using subprocess
This is because it ends up forking the tests else, which is really weird, and bad
2018-12-14 22:33:11 +00:00
ea7f195d0a
Show errors when starting worker in tests 2018-12-14 21:48:49 +00:00
bedc434332
Sort out detecing worker running 2018-12-14 21:46:45 +00:00
c17484b0ec
Don't constantly retry socket 2018-12-14 19:07:39 +00:00
28a127b619
Safely create base socket dir 2018-12-14 19:04:37 +00:00
c2b6c38d37
Allow running the worker on a custom port 2018-12-13 18:01:40 +00:00
cd8cae18c5
Use the CLI to run the app 2018-12-13 17:10:14 +00:00
c722c12ba4
Pipe stdout to socket 2018-12-13 16:54:24 +00:00
ce29af5459
Use custom program rather than yes
Yes may be too IO intensive, and may not exist on all systems
2018-12-13 14:06:47 +00:00
4bd7ce6f15
Move all sockets into subdir 2018-12-13 11:44:41 +00:00
81bbcf8761
Add and test ping command 2018-12-13 11:36:22 +00:00
31b1bc957c
Test if a process is running 2018-12-13 11:36:04 +00:00
1d32eeb24a
Add worker socket server 2018-12-13 11:25:09 +00:00
5b03540601
Test multiple hostname lookup 2018-12-12 23:19:05 +00:00
aff11d7d84
add utils to get hostname from request and process from hostname 2018-12-12 23:15:37 +00:00
9168ac32de
Move router to its own app 2018-12-12 22:34:51 +00:00
c2c5f955e8
Add function to get root process 2018-12-12 22:29:42 +00:00
3ed8ba7eb3
Add base test case for worker 2018-12-12 21:55:45 +00:00
81789ec29e
Init server 2018-12-12 20:03:45 +00:00
96c52a0328
Test worker stop/start works 2018-12-12 18:47:40 +00:00
3212a3326d
Document where function came from 2018-12-12 18:46:41 +00:00
dd656e17a7
Report coverage as HTML 2018-12-12 18:46:31 +00:00
4f05b88abf
Init CLI 2018-12-12 16:52:37 +00:00
198eb1f209
Actually add a tests file 2018-12-12 15:06:03 +00:00
90abb31c12
Add status badge 2018-12-12 15:05:04 +00:00
c0c08ecfc2
Init project 2018-12-12 15:03:22 +00:00