-
Notifications
You must be signed in to change notification settings - Fork 245
test: push notification e2e tests #486
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
Summary of ChangesHello @lkawka, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request implements comprehensive end-to-end tests to validate the default push notification system. It sets up a robust testing infrastructure, including a simulated agent server and a dedicated notification ingestion server, to ensure that push notifications are correctly triggered, sent, and received under various configuration scenarios, thereby enhancing the reliability of the notification mechanism. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request adds end-to-end tests for push notifications, which is a great addition for ensuring the feature works as expected. The tests are well-structured, using separate processes for the agent and notification servers, and include good patterns like polling with timeouts. My review includes a few suggestions for minor improvements, such as fixing typos, improving error handling in the test notification server, and using more specific exception types.
tests/e2e/push_notifications/test_default_push_notification_support.py
Outdated
Show resolved
Hide resolved
This is required for e2e testing.
852ef93
to
b103d78
Compare
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.
Overall the structure looks good, just had a few small comments.
tests/e2e/push_notifications/test_default_push_notification_support.py
Outdated
Show resolved
Hide resolved
tests/e2e/push_notifications/test_default_push_notification_support.py
Outdated
Show resolved
Hide resolved
tests/e2e/push_notifications/test_default_push_notification_support.py
Outdated
Show resolved
Hide resolved
tests/e2e/push_notifications/test_default_push_notification_support.py
Outdated
Show resolved
Hide resolved
b103d78
to
a6a8c6a
Compare
tests/e2e/push_notifications/test_default_push_notification_support.py
Outdated
Show resolved
Hide resolved
tests/e2e/push_notifications/test_default_push_notification_support.py
Outdated
Show resolved
Hide resolved
Since Python is single-threaded and the fixtures turning-up servers aren't async, we don't need the lock.
Description
This PR adds two end-to-end tests for push notifications, designed to verify that the default push notification implementation functions as expected. These tests involve setting up two distinct servers: an agent server that hosts a basic test agent, and a notifications server responsible for receiving notifications from the agent server.
BEGIN_COMMIT_OVERRIDE
test: push notification e2e tests
END_COMMIT_OVERRIDE