-
Notifications
You must be signed in to change notification settings - Fork 15
test: add e2e tests for RV bypass functionality #127
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
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @sarmahaj, 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 introduces a new set of end-to-end tests to ensure the correct behavior of the Rendezvous (RV) bypass feature. This feature streamlines the device onboarding process by allowing devices to directly connect with the Owner during the TO2 phase, bypassing the initial TO1 interaction with the Rendezvous service. The changes include new test scripts, updates to utility functions to support the RV bypass flag, and a dedicated Docker Compose setup for testing this scenario. Highlights
Ignored Files
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 introduces end-to-end tests for the RV bypass functionality, which allows a device to skip the TO1 protocol. The changes include a new docker-compose file for the test environment, modifications to utility scripts to support the rv_bypass flag, and new test scripts for both CI (local binaries) and container-based environments. The changes are well-structured and the tests seem to cover the new functionality correctly. I've provided a few suggestions to improve code clarity, fix a bug related to redundant cleanup, and follow best practices in shell scripting.
c9cce4e to
7e15cf5
Compare
| with: | ||
| path: go-fdo-server | ||
|
|
||
| # TODO: Update to upstream once RV bypass PR is merged in go-fdo-client |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
| with: | ||
| path: go-fdo-server | ||
|
|
||
| # TODO: Update to upstream once RV bypass PR is merged in go-fdo-client |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
|
/gemini review |
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 introduces end-to-end tests for the RV bypass functionality, which is a solid addition for ensuring the feature works as expected. The changes include new Docker Compose files for a test setup, a new test script to verify the bypass behavior, and updates to utility scripts. The approach of reusing test logic for both binary and container-based tests is well-structured. I have a couple of suggestions to enhance the robustness and reliability of the test scripts, primarily concerning safer parameter handling in shell scripts and avoiding side effects in the client installation process. Overall, these are valuable tests for the project.
7e15cf5 to
dccf00e
Compare
|
/gemini review |
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 introduces comprehensive end-to-end tests for the RV bypass functionality, covering both binary-based CI and containerized environments. The changes are well-structured, adding new test scripts and Docker Compose configurations. The core logic for enabling RV bypass via a flag in the rendezvous information is correctly implemented. My review includes a critical fix for a potential resource leak in a test script, along with suggestions to improve script readability and correct a minor typo in a log message.
dccf00e to
54835c0
Compare
|
Tested this out, I think the e2e tests are good and seem to work as expected with my manual testing. The RV bypass API correctly accepts |
Add comprehensive e2e test for RV bypass (skip TO1) with CI support. Signed-off-by: Sarita Mahajan <[email protected]>
54835c0 to
a07377c
Compare
|
Thanks for review and testing @djach7 ! |
Note:
This PR is dependent on fix: properly handle onboard and delaying between retries go-fdo-client#38,
so until it's merged, the tests in this PR are running on top of PR38.
I will update it to run on latest@main once it's merged.