Skip to content

Sync changes from internal dev branch.#92

Merged
kaishi05 merged 5 commits into
mainfrom
copybara_HEAD
Apr 24, 2026
Merged

Sync changes from internal dev branch.#92
kaishi05 merged 5 commits into
mainfrom
copybara_HEAD

Conversation

@lip-liu

@lip-liu lip-liu commented Apr 24, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

lip-liu added 5 commits April 24, 2026 00:44
PiperOrigin-RevId: 904494095
PiperOrigin-RevId: 904516222
PiperOrigin-RevId: 904713390
PiperOrigin-RevId: 904715961
PiperOrigin-RevId: 904720856

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

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 renames the configuration parameter ignore_indoor_5g_test_for_china_ap to ignore_indoor_5g_test_for_china_triband_ap to clarify that it specifically applies to China tri-band APs and their incompatibility with Japan devices on the UNII-3 band. Review feedback highlights that this is a breaking change for existing configurations and recommends maintaining backward compatibility by keeping the old field as a deprecated alias and updating the test logic to check both parameters.

Comment thread betocq/constants.py
ignore_indoor_5g_test_for_china_ap: bool = False
# Ignore the indoor 5g test for China tri-band AP, as China tri-band AP only
# can use UNII-3 band for 5G wifi, which is not supported by Japan devices.
ignore_indoor_5g_test_for_china_triband_ap: bool = False

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Renaming ignore_indoor_5g_test_for_china_ap to ignore_indoor_5g_test_for_china_triband_ap is a breaking change for existing test configurations. Since from_user_params dynamically maps user parameters to dataclass fields, any configuration using the old name will now be ignored, and the test will default to False (not ignored). Consider maintaining backward compatibility by keeping the old field as a deprecated alias.

Suggested change
ignore_indoor_5g_test_for_china_triband_ap: bool = False
ignore_indoor_5g_test_for_china_triband_ap: bool = False
# Deprecated: use ignore_indoor_5g_test_for_china_triband_ap instead.
ignore_indoor_5g_test_for_china_ap: bool = False

asserts.skip_if(
self.test_parameters.ignore_indoor_5g_test_for_china_ap,
'Skip indoor 5g test for China AP',
self.test_parameters.ignore_indoor_5g_test_for_china_triband_ap,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To support backward compatibility with existing configurations that still use the old parameter name, consider checking both the new and the deprecated flags.

Suggested change
self.test_parameters.ignore_indoor_5g_test_for_china_triband_ap,
self.test_parameters.ignore_indoor_5g_test_for_china_triband_ap or self.test_parameters.ignore_indoor_5g_test_for_china_ap,

@kaishi05 kaishi05 merged commit 379d623 into main Apr 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants