Commit graph

1251 commits

Author SHA1 Message Date
Daiderd Jordan 60dfc6d8d3
lapin: 1.0.0-beta3 -> 1.0.0-beta4 2020-05-11 20:48:27 +02:00
Cole Helbling 1112e3a8c8
Merge pull request #480 from LnL7/tracing
tracing logging
2020-05-04 14:39:31 -07:00
Daiderd Jordan 45201a2f0e
Merge pull request #479 from LnL7/lapin-lifetimes
remove static lifetimes from easylapin
2020-05-03 19:10:03 +02:00
Daiderd Jordan 5be617c912
reduce publish logging to trace level
Each log line is pushed to the logs exchange so this is _way_ to verbose
to enable by default.
2020-05-03 15:14:42 +02:00
Daiderd Jordan c65ec0af76
add basic structrue logging to evaluator 2020-05-03 15:14:42 +02:00
Daiderd Jordan 72b41d9ec1
add json logging 2020-05-03 15:14:42 +02:00
Daiderd Jordan 52e2105df7
silence some clippy warnings
It looks like the current version of rustc/clippy seems the include expanded
macros (like tracing) in the complexity.  None of these warnings show up
with rust 1.42.0.
2020-05-02 23:58:21 +02:00
Daiderd Jordan cc89c1a88d
move exit status handling to nix module 2020-05-02 21:24:52 +02:00
Daiderd Jordan 0cef8f4e0d
split out block_on_waiters 2020-05-02 21:24:52 +02:00
Daiderd Jordan 82e12ebe52
add some basic structured logging to the builder 2020-05-02 21:24:52 +02:00
Daiderd Jordan 35e08cb5d1
log -> tracing 2020-05-01 20:33:31 +02:00
Daiderd Jordan a2e5dad97c
update carnix 2020-05-01 20:17:26 +02:00
Daiderd Jordan ceef89c8cc
add tracing
An alternative logging library with support for structured logging as
well as slightly nicer default output.
2020-05-01 19:05:25 +02:00
Daiderd Jordan c4ab7290c5
remove static lifetimes from easylapin
Unlike amqp::Consumer lapin channels don't need to have a 'static
lifetime, the workers just need to live at least as long as the channel.
2020-05-01 14:27:53 +02:00
Graham Christensen 3b6947cd20
Merge pull request #478 from LnL7/publish-persistent
make messages persistent
2020-04-30 15:42:20 -04:00
Graham Christensen c3c0ee723e
Merge pull request #477 from LnL7/lapin-qos
limit prefetch count to one for lapin channels
2020-04-30 14:10:06 -04:00
Daiderd Jordan 3223f32f5c
make messages persistent
Should ensure we don't loose pending builds or evaluations when rabbitmq
restarts.
2020-04-30 20:01:34 +02:00
Daiderd Jordan e0fce0e2fe
limit prefetch count to one for lapin channels
Otherwise the consumer will pull all messages in the queue so other
instances don't have a chance to share the load.
2020-04-30 19:19:28 +02:00
Cole Helbling 7d1014f1c2
Merge pull request #476 from cole-h/trust-me
config.public.json: add cole-h to trusted_users
2020-04-29 15:27:06 -07:00
Cole Helbling b56a432946
Merge pull request #474 from LnL7/lapin
lapin amqp implementation
2020-04-29 15:26:33 -07:00
Daiderd Jordan 7d611646d3
ofborg: 0.1.8 -> 0.1.9 2020-04-30 00:12:47 +02:00
Daiderd Jordan 5b8d7e079a
remove glob imports in easylapin 2020-04-30 00:11:05 +02:00
Daiderd Jordan fb8b4249f1
remove unwraps in lapin
Might help a little bit with debugging if any of these unexpected cases
occur.
2020-04-29 23:00:54 +02:00
Daiderd Jordan 8cb5bfd225
remove unwraps from builder
Mostly the same behaviour, but the result syntax is a bit nicer.
2020-04-29 23:00:54 +02:00
Daiderd Jordan 8dfcccb93e
set content_type for lapin 2020-04-29 23:00:54 +02:00
Daiderd Jordan 7dc8d407a2
implement all declare options for lapin
Many of these are actually not used, probably better to remove them.
2020-04-29 23:00:54 +02:00
Daiderd Jordan 737871ea84
implement ofborg version property for lapin 2020-04-29 23:00:53 +02:00
Daiderd Jordan eae94fe00a
convert builder to easylapin
This is probably the safest thing to start with since it can be tested
separately from the main deployment and isn't only used for secondary
checks.
2020-04-29 23:00:53 +02:00
Daiderd Jordan 0ecd8cc74c
add easylapin module
This isn't very nice, but should implement everything needed to drop in
lapin as the amqp library.
2020-04-29 23:00:53 +02:00
Daiderd Jordan 586d83e6cd
apply carnix patches
https://nest.pijul.com/pmeunier/carnix/discussions/46
https://nest.pijul.com/pmeunier/carnix/discussions/47
2020-04-29 23:00:53 +02:00
Daiderd Jordan 8430fe84ca
update carnix 2020-04-29 23:00:53 +02:00
Daiderd Jordan a3618c84b6
add lapin dependencies
An async amqp library, but more importantly unlike the current amqp
library it implements heartbeats.
2020-04-29 23:00:53 +02:00
Daiderd Jordan 5a75be23ca
generalize SimpleNotifyWorker trait 2020-04-29 23:00:53 +02:00
Daiderd Jordan 3722158a05
generalize SimpleWorker trait 2020-04-29 23:00:52 +02:00
Cole Helbling b8402d69b2
config.public.json: add cole-h to trusted_users
This will let me build packages like `fish` on darwin, to try and catch
any new regressions (there's been one in each of the past two bumps I've
submitted...).
2020-04-28 21:43:43 -07:00
Graham Christensen ed4fcea227
Merge pull request #473 from LnL7/generic-easyamqp
generic easyamqp
2020-04-27 16:51:27 -04:00
Daiderd Jordan 5ad80e878b
make amqp consume generic and split traits
This removes the final library specfic type from the traits.
2020-04-27 22:40:51 +02:00
Daiderd Jordan 98723462a0
remove amqp return types 2020-04-27 22:21:25 +02:00
Daiderd Jordan a34a4accaf
make amqp error type generic 2020-04-27 22:12:31 +02:00
Daiderd Jordan a87cf357d0
remove amqp arguments
These are not used anywhere and the table is a type specific to the amqp
library.
2020-04-27 22:09:10 +02:00
Graham Christensen bef27f6ab9
Merge pull request #471 from LnL7/carnix-workspace
carnix workspace
2020-04-25 08:49:14 -04:00
Daiderd Jordan 5669d9b47e
disable debug build on darwin
Currently broken due to the .dSYM folders it generates next to the binaries.

See https://github.com/NixOS/nixpkgs/pull/83488
2020-04-25 14:38:44 +02:00
Daiderd Jordan 40c759e027
add build for ofborg-simple-build 2020-04-25 14:32:42 +02:00
Daiderd Jordan 96639e9d7e
work around carnix workspace issue
Carnix doesn't properly handle includes for workspace members, this
works around the issue by specifying what should be generated directly
in Cargo.toml.

https://nest.pijul.com/pmeunier/carnix/discussions/46
2020-04-25 14:28:29 +02:00
Daiderd Jordan 0139cd5621
move carnix files to workspace 2020-04-25 13:54:57 +02:00
Graham Christensen 041d96d890
Merge pull request #470 from cole-h/missing-variants
ghevent: add missing variants
2020-04-24 17:33:06 -04:00
Graham Christensen b4afb127df
Merge pull request #469 from LnL7/cargo-workspace
introduce cargo workspace
2020-04-24 17:24:42 -04:00
Cole Helbling db165abf99
ghevent: add missing variants
So we don't see log messages that are literal pages long. Pulled from
here: https://developer.github.com/v3/activity/events/types/#pullrequestevent
2020-04-24 14:18:21 -07:00
Daiderd Jordan 7ccb4943a1
move simple-build to a separate project
This is mostly intended as an example and since this is only useful for
testing it should be relatively safe.
2020-04-24 22:17:12 +02:00
Daiderd Jordan 1c0c5e304c
init cargo workspace
Enables splittig up the code a bit more, and hopefully helps keep the
compilation time down.
2020-04-24 21:27:33 +02:00