archive
/
catfish
Archived
1
Fork 0
Commit Graph

64 Commits

Author SHA1 Message Date
Jake Howard e1c4903281
Remove unused function 2018-12-23 14:47:46 +00:00
Jake Howard 5fee87b3a2
Test project status command 2018-12-23 14:37:53 +00:00
Jake Howard 4b5880cb36
Test process port 2018-12-23 13:01:32 +00:00
Jake Howard 5c04b5f85c
Assign ports to processes 2018-12-23 12:55:56 +00:00
Jake Howard cce567d30e
Test process colours and running pid 2018-12-23 12:07:31 +00:00
Jake Howard ef5ce9f442
Add project status command 2018-12-21 16:46:30 +00:00
Jake Howard af45867376
Add custom logfmt parser based off python-logfmt
This specifically doesn't add quotes where they're not necessary
2018-12-21 15:37:42 +00:00
Jake Howard 9362be50b9
Add function to process to detect if it's running 2018-12-21 14:35:41 +00:00
Jake Howard 2c9af76b88
Add tests for commands working directories 2018-12-21 14:02:27 +00:00
Jake Howard 3646407227
Print running test steps 2018-12-21 13:03:11 +00:00
Jake Howard 84bc0bbbd9
Complete project run command 2018-12-21 13:00:20 +00:00
Jake Howard f7f457e6c2
WIP project run command 2018-12-20 18:59:25 +00:00
Jake Howard 5869befecb
Call module directly rather than binary 2018-12-20 16:00:57 +00:00
Jake Howard fc89f29693
Requires 3.7 to run 2018-12-20 14:05:43 +00:00
Jake Howard 1706f81ce5
Remove daemonize hack, as PR shippped
Fixed by https://github.com/thesharp/daemonize/pull/70
2018-12-20 14:04:57 +00:00
Jake Howard 895e159502
Add tests for successful and fatal exit codes 2018-12-19 17:28:39 +00:00
Jake Howard 711db92b8e
Test process restarts when exit normally 2018-12-19 17:10:58 +00:00
Jake Howard fffcbf8f48
Allow processes to be restarted and terminated 2018-12-19 15:44:03 +00:00
Jake Howard 1e190c7932
Better handle stopping router in tests 2018-12-19 13:43:28 +00:00
Jake Howard f6c8d5b19d
Move environment definition onto Project 2018-12-18 21:45:42 +00:00
Jake Howard ae5b3eeefb
Add env file parsing 2018-12-18 21:42:23 +00:00
Jake Howard 9870342567
Add additional environment variables to processes 2018-12-18 21:24:44 +00:00
Jake Howard 76b02ed5f9
Don't raise if a process vanishes before evaluation 2018-12-18 21:12:29 +00:00
Jake Howard fbdef2ecbf
Use process ident for logs socket filename 2018-12-18 21:04:29 +00:00
Jake Howard 9b937d25c3
Change payload type to enum 2018-12-18 20:41:23 +00:00
Jake Howard f5d27f558e
Run worker inline so it's easier to see errors 2018-12-18 20:36:34 +00:00
Jake Howard f9476ee1df
Add idents to processes 2018-12-18 20:16:43 +00:00
Jake Howard 7af173c0cf
Replace uses of os.path with pathlib 2018-12-18 15:49:20 +00:00
Jake Howard c63c709c79
Add project names 2018-12-18 15:34:57 +00:00
Jake Howard 53b3d29baa
Read procfile 2018-12-17 21:43:46 +00:00
Jake Howard 5997412b98
Add base project class 2018-12-17 20:40:11 +00:00
Jake Howard 3bc8de98e6
Kill all dummy processes after launch
Just in case
2018-12-15 16:24:55 +00:00
Jake Howard f1b4017789
Remove unnecessary file 2018-12-15 16:10:40 +00:00
Jake Howard ec58111360
Allow router to be tested properly 2018-12-15 16:08:37 +00:00
Jake Howard 9ac2e60843
Use aiohttp application rather than server
We can do some route checking stuff later
2018-12-15 14:48:10 +00:00
Jake Howard eec4e46f3e
Kill all child processes when server terminates 2018-12-14 22:58:50 +00:00
Jake Howard 697c8cb6eb
Add timeout to starting worker 2018-12-14 22:44:39 +00:00
Jake Howard b184038cc4
Don't show starting process in tests 2018-12-14 22:43:20 +00:00
Jake Howard 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
Jake Howard ea7f195d0a
Show errors when starting worker in tests 2018-12-14 21:48:49 +00:00
Jake Howard bedc434332
Sort out detecing worker running 2018-12-14 21:46:45 +00:00
Jake Howard c17484b0ec
Don't constantly retry socket 2018-12-14 19:07:39 +00:00
Jake Howard 28a127b619
Safely create base socket dir 2018-12-14 19:04:37 +00:00
Jake Howard c2b6c38d37
Allow running the worker on a custom port 2018-12-13 18:01:40 +00:00
Jake Howard cd8cae18c5
Use the CLI to run the app 2018-12-13 17:10:14 +00:00
Jake Howard c722c12ba4
Pipe stdout to socket 2018-12-13 16:54:24 +00:00
Jake Howard 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
Jake Howard 4bd7ce6f15
Move all sockets into subdir 2018-12-13 11:44:41 +00:00
Jake Howard 81bbcf8761
Add and test ping command 2018-12-13 11:36:22 +00:00
Jake Howard 31b1bc957c
Test if a process is running 2018-12-13 11:36:04 +00:00