OCamlPro / owi

WebAssembly Swissknife & cross-language bugfinder
https://ocamlpro.github.io/owi/
GNU Affero General Public License v3.0
137 stars 18 forks source link

Testcomp script zulip webhook integration #390

Closed filipeom closed 4 months ago

filipeom commented 4 months ago

Adds an environment variable ZULIP_WEBHOOK that allows specifying a webhook to send a notification upon the termination of the testcomp script.

Example usage on my dummy zulip:

ZULIP_WEBHOOK="https://formalsec.zulipchat.com/api/v1/external/slack_incoming?api_key=dG28edLNmRyaf7BATr5WiPUenJrpf6zo&stream=448636&topic=webhook" dune exec ./testcomp/testcomp.exe

Preview:

image

TODO:

Is there a good library to just fetch the git HEAD? Or, should I just simply get the output of: git rev-parse --short HEAD?

zapashcanon commented 4 months ago

Great !

Do you want me to merge now or wait for the current commit to be added in the report ? There are OCaml library to work with git but for this bench I'd simply parse the output of the command. :)

zapashcanon commented 4 months ago

Thanks!