nix-community / lorri

Your project’s nix-env [maintainer=@Profpatsch,@nyarly]
Apache License 2.0
663 stars 24 forks source link

Integration test for stream-events #29

Open Profpatsch opened 3 years ago

Profpatsch commented 3 years ago

We broke the stream-events in the last update, so we should create some integration tests that call the lorri executable

What will be interesting:

nyarly commented 2 years ago

how to start a lorri service and stop it as soon as an event arrives

You don't want the service to exit after the event, right? You want to get the events actually streamed out first, and then kill the service. Exiting the stream-events process is trickier, but a timeout is called for regardless. In a testing context, a watchdog timer seems appropriate.

how to trigger events in lorri without depending on too many nix internals

cp start-version shell.nix
lorri internal ping shell.nix
cp updated-version shell.nix
lorri internal stream-events --kind 
kill $DAEMON #?