Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testcomp script zulip webhook integration #390

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

filipeom
Copy link
Collaborator

@filipeom filipeom commented Jul 31, 2024

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:

  • Report current commit

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
Copy link
Member

zapashcanon commented Jul 31, 2024

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
Copy link
Member

Thanks!

@zapashcanon zapashcanon merged commit a99b768 into OCamlPro:main Jul 31, 2024
4 checks passed
@filipeom filipeom deleted the testcomp-webhook branch July 31, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants