Conversation
PiperOrigin-RevId: 879233823
PiperOrigin-RevId: 879700946
PiperOrigin-RevId: 881057993
Summary of ChangesHello, 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 enhances the Wi-Fi environment validation process by transitioning from counting SSIDs to counting BSSIDs. This change provides a more precise and unique identifier for wireless access points, leading to a more accurate assessment of the test environment's cleanliness. The modifications ensure that Wi-Fi scan results consistently include BSSID information and that all related checks and reporting mechanisms leverage this improved metric. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. 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. Footnotes
|
PiperOrigin-RevId: 881605491
PiperOrigin-RevId: 882066915
PiperOrigin-RevId: 882174457
PiperOrigin-RevId: 883154882
PiperOrigin-RevId: 883207368
PiperOrigin-RevId: 883333904
PiperOrigin-RevId: 883346864
PiperOrigin-RevId: 884570001
PiperOrigin-RevId: 885670011
PiperOrigin-RevId: 885927851
There was a problem hiding this comment.
Code Review
This pull request refactors the Wi-Fi environment check to count BSSIDs instead of SSIDs, updating relevant constants, parsing logic, and how the count is stored and reported in the test summary. A review comment points out that the current implementation for reporting the BSSID count in the test summary will not include a count of zero, which is meaningful information, and suggests modifying the conditional check to ensure zero counts are also reported.
| try: | ||
| current_gms_info = nc_constants.GmsInfo() | ||
| current_gms_info = constants.GmsInfo() |
There was a problem hiding this comment.
The current conditional if wifi_env_bssid_count := ... will evaluate to False if wifi_env_bssid_count is 0. This means the 'wifi_ap_number' key will not be included in the summary when no BSSIDs are detected. A count of 0 is meaningful information and should likely be reported.
To ensure the count is always reported when available (including 0), you should explicitly check if the value is not None. This will align with the previous behavior of reporting the count even when it is zero.
| try: | |
| current_gms_info = nc_constants.GmsInfo() | |
| current_gms_info = constants.GmsInfo() | |
| if (wifi_env_bssid_count := device_specific_info.get('wifi_env_bssid_count')) is not None: | |
| basic_test_summary['wifi_ap_number'] = f'{wifi_env_bssid_count}' |
PiperOrigin-RevId: 887112662
PiperOrigin-RevId: 888834441
PiperOrigin-RevId: 888919028
PiperOrigin-RevId: 888919551
No description provided.