Commit graph

53 commits

Author SHA1 Message Date
f769eeda50 Specify server/worker in log messages 2023-08-17 17:54:33 +02:00
3c93fcceba Hide reqwest log messages 2023-08-17 17:31:03 +02:00
76ab00c47a Fix local worker not connecting 2023-08-17 17:29:21 +02:00
b9a5cddc42 Log main error as error!() 2023-08-17 17:16:34 +02:00
546de29706 Extract git commands to own module 2023-08-17 17:16:34 +02:00
f12da915a9 Switch from tracing to log crate 2023-08-17 03:09:24 +02:00
a54e842478 Restructure config file 2023-08-17 00:28:58 +02:00
146bab4e7c Add todos 2023-08-15 01:28:25 +02:00
53be0338f2 Launch idle thread for each server 2023-08-12 21:23:36 +02:00
6f4793bcf2 Rename runners to workers 2023-08-11 02:12:38 +02:00
78f945647c Add --local-runner cli flag 2023-08-11 02:12:38 +02:00
b5bdd49d9c Add --open cli flag 2023-08-10 21:10:07 +02:00
8005718584 Generate random runner tokens 2023-08-10 17:50:23 +02:00
f84a5b288e Add --bench-script cli arg 2023-08-10 17:50:23 +02:00
9ff95a2c10 Model server-runner communication 2023-08-10 17:50:23 +02:00
a261bfdd26 Derive repo name based on repo path 2023-08-09 00:24:34 +02:00
3a4a4c1cfa Pass config to Runner 2023-08-08 23:43:54 +02:00
4f69f5cb21 Set up runner subcommand 2023-08-07 14:54:47 +02:00
7635af88cd Move util module to server module 2023-08-07 14:51:26 +02:00
6815c36f5b Start server via subcommand 2023-08-07 14:49:09 +02:00
9bdfc79c8b Restructure server around Server struct 2023-08-07 14:43:36 +02:00
45abda2b6d Move server code into its own module 2023-08-07 14:23:47 +02:00
ad0c1a69cb Move command line args to new file 2023-08-07 14:18:01 +02:00
553a56bb12 Rename db to util and use OffsetDateTime with sqlx 2023-08-06 17:41:07 +02:00
6fcd073738 Don't block tokio when collecting new commits 2023-08-06 15:00:11 +02:00
5709a69694 Shut down faster when receiving second SIGINT/SIGTERM 2023-08-06 14:10:18 +02:00
0146bcb016 Get rid of repo module 2023-08-06 13:14:21 +02:00
7768e4ad4b Serve commit page entirely from the db 2023-08-06 11:53:48 +02:00
3b4d8dab72 List tracked refs on index page 2023-08-05 21:03:18 +02:00
2b4a5d4021 Add somehow::Error wrapping anyhow::Error 2023-08-05 20:42:08 +02:00
a5c0552341 Exclude hyper from normal-verbosity logs 2023-08-05 20:34:28 +02:00
6d93e3bd70 Move web code to web module 2023-08-05 12:58:38 +02:00
b56d0df142 Refactor repo update code again 2023-08-05 11:51:34 +02:00
56dd74b65f Improve verbosity levels 2023-08-05 00:32:40 +02:00
980e84b0f6 Update repo repeatedly 2023-08-04 20:05:44 +02:00
a1d48f6fd3 Use more tracing features 2023-08-04 18:51:12 +02:00
4f7d4f3204 Load config from file 2023-08-04 17:21:59 +02:00
6f95d58e11 Include repo in AppState 2023-08-04 16:44:53 +02:00
4914b03fcd Gracefully shut down on SIGINT/SIGTERM 2023-08-04 16:44:53 +02:00
e76c94a57c Use --verbose instead of RUST_LOG 2023-08-04 16:44:53 +02:00
de767121be Switch to plain commit hash in version number 2023-08-04 16:09:55 +02:00
ed3600a79a Open db from path specified as cl arg 2023-08-04 15:53:15 +02:00
9b55cd1ce2 Include git hash in version 2023-08-04 15:44:29 +02:00
6a64bd2e47 Parse args with clap 2023-08-04 15:40:38 +02:00
a8a58eb103 Set up logging with tracing crate 2023-08-04 15:09:56 +02:00
037f076475 Set up global app state 2023-08-04 14:21:33 +02:00
4028c3eea2 Set up sqlx query* macros 2023-08-04 13:27:23 +02:00
79667c15b8 Set up sqlx 2023-08-04 01:30:32 +02:00
12ec8ac217 Write down some design notes 2023-08-03 23:06:05 +02:00
8b5bfdd231 Use askama to render test template 2023-08-03 19:14:58 +02:00