Updates TC-DD-1.1 for script test steps clarification#713
Updates TC-DD-1.1 for script test steps clarification#713raul-marquez-csa wants to merge 3 commits into
Conversation
Summary of ChangesHello @raul-marquez-csa, 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 focuses on updating and clarifying the 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.
Code Review
This pull request updates the TC-DD-1.1 test script to align with the latest test plan by adding more detailed instructions and logging. While the changes are a good improvement in terms of clarity and alignment with the test plan, I've found a critical syntax error in one of the new test step definitions and a high-severity logic error in how the test steps are advanced, which would cause incorrect test execution and reporting. Please address these issues.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
Other than adding the clarifying logging, I found a mismatch between the script and test plan. In the TC-DD-1.1 test plan there's an extra step at the end, step 3. This step isn't currently implemented in the script. Please advise if this step is to be implemented in the script, or if it's to be removed from the test plan. |
Hi @raul-marquez-csa, Packed Binary Data Structure is available in Spec hence it related test step for verifying this has to be added in script. @cecille Could you please help here to how to add this verification in script. |
Ok, implemented step 3 per spec. |
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces Matter base38 decoding and a new payload padding verification check. It also refines the TC-DD-1.1 test case with more detailed step descriptions and improved logging. Feedback points out a logic error in the padding check which fails to account for optional TLV data, a misalignment in test step sequencing due to extra next_step() calls, and a formatting issue with multi-line strings in the test metadata.


Addresses:
[TC-DD-1.1] Add detailed instructions and verification criteria in TC-DD-1.1 script #711
This is the current test plan for TC-DD-1.1
https://github.com/CHIP-Specifications/chip-test-plans/blob/master/src/devicediscovery.adoc#311-tc-dd-11-qr-code-onboarding-payload-verification-dut---commissionee
General updates:
Additional updates:
_base38_decodeandpayload_padding_checkfunctions toonboarding_script_support.py