-
Notifications
You must be signed in to change notification settings - Fork 1
[RTC-386] Add webhooks #37
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
Conversation
mickel8
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add an option to easily run tests using Jellyfish that runs locally? Something like mix test.local?
.circleci/config.yml
Outdated
| steps: | ||
| - checkout | ||
| - run: docker compose -f docker-compose-test.yaml run test | ||
| - run: docker compose -f docker-compose-test.yaml up test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH we don't even need to add test at the end. Simply docker compose -f <file> up should be enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure if we can not add a test because without this command, it doesn't exit after the tests finish. Example run of docker compose -f docker-compose-test.yaml up on CircleCI. But this is great issue because by that I remembered why did we use docker compose run previously. Command docker compose up doesn't return exit code from container execution, which results in that tests could fail and CI still would be green example run with failing test with docker compose up test. But this means I have to return most of the changes in docker-compose configuration 😞 .
| iex> %{ | ||
| ...> "notification" => <<18, 76, 10, 36, 102, 98, 102, 52, 49, 57, 48, 99, 45, 53, 99, 55, 54, 45, 52, | ||
| ...> 49, 53, 99, 45, 56, 57, 51, 57, 45, 53, 50, 99, 54, 101, 100, 50, 48, 56, 54, | ||
| ...> 56, 98, 18, 36, 99, 55, 50, 51, 54, 53, 56, 55, 45, 53, 100, 102, 56, 45, 52, | ||
| ...> 98, 52, 49, 45, 98, 54, 101, 52, 45, 50, 54, 56, 101, 55, 49, 49, 51, 51, 101, | ||
| ...> 101, 50>> | ||
| ...> } |> Jellyfish.WebhookNotifier.receive() | ||
| %Jellyfish.Notification.PeerConnected{ | ||
| room_id: "fbf4190c-5c76-415c-8939-52c6ed20868b", | ||
| peer_id: "c7236587-5df8-4b41-b6e4-268e71133ee2" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Michał Śledź <[email protected]>
Co-authored-by: Michał Śledź <[email protected]>
Related to: fishjam-dev/fishjam#104