Skip to content
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

[TC-GC-1.1]General commissioning cluster---Value mismatch for FeatureMap attribute #18028

Closed
Rajashreekalmane opened this issue May 4, 2022 · 9 comments · Fixed by #18526
Closed
Assignees
Labels
utility-cluster Work for Utility Clusters V1.0

Comments

@Rajashreekalmane
Copy link

Rajashreekalmane commented May 4, 2022

Problem

As per test plan [TC-GC-1.1] FeatureMap attribute showing value mismatch error when executed, DUT should
responds with feature map value 0 but currently DUT responding feature map value has 6.

  • expected behavior:-FeatureMap attribute value should be bit 0.

  • actual behavior:- DUT responds has bit 6

  • steps to reproduce:-./chip-tool generalcommissioning read feature-map 1 0

- system configuration:-
Chip-Tool: RPI
DUT: RPI
Platform : IP and Wifi
Commit-ID:4d50b1084284018c4a628f919b0d2e01ea2a39f8
Dut: all-cluster-app

PFA log
TC-GC-1.1.txt

TestPlan reference:-
https://github.com/CHIP-Specifications/chip-test-plans/blob/master/src/cluster/General_Commissioning.adoc#tc-gc-1-1-global-attributes-dut-commissionee

@bzbarsky-apple
Copy link
Contributor

@Rajashreekalmane This is using all-clusters-app as the DUT?

@bzbarsky-apple
Copy link
Contributor

It looks like this changed in #17840. @fessehaeve could you please take a look? Is this just a bad merge on the ZAP file, so the feature map default for the wrong cluster ended up getting changed?

@bzbarsky-apple bzbarsky-apple added V1.0 utility-cluster Work for Utility Clusters labels May 9, 2022
@Rajashreekalmane
Copy link
Author

@bzbarsky-apple Yes I am using DUT as all-clusters-app.

@fessehaeve
Copy link
Contributor

fessehaeve commented May 10, 2022

It looks like this changed in #17840. @fessehaeve could you please take a look? Is this just a bad merge on the ZAP file, so the feature map default for the wrong cluster ended up getting changed?

@bzbarsky-apple It must be a bad merge since I did nothing related to General commissioning cluster. The feature-map value was already 6 in the previous state a9656d5 from @yufengwangca .

@bzbarsky-apple
Copy link
Contributor

Good catch. @yufengwangca Do you recall why it's 6 there?

@cecille
Copy link
Contributor

cecille commented May 16, 2022

Here the DUT is the commissionee - should the test not be expecting the feature map to match the features supported by the device? General commissioning cluster has 4 features (not sure what the first feature is for). Value 6 corresponds to bits 1 and 2, which are wifi and thread. This is expected on the all clusters app. IMO the test is wrong here - it should be expecting a value that relates to the features of the device under test.

@bzbarsky-apple
Copy link
Contributor

The General Commissioning cluster has no features defined at all in the spec, so its FeatureMap should always be 0 and the test is correct....

@cecille
Copy link
Contributor

cecille commented May 17, 2022

Ah, you're correct. It did until https://github.com/CHIP-Specifications/connectedhomeip-spec/pull/4956. So that's where the 6 came from. It was a spec change without a corresponding SDK change.

@bzbarsky-apple
Copy link
Contributor

Ah, great catch. I'll just put up a PR, then.

bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this issue May 17, 2022
Spec changed and now there are no features defined.

Fixes project-chip#18028
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this issue May 19, 2022
Spec changed and now there are no features defined.

Fixes project-chip#18028
bzbarsky-apple added a commit that referenced this issue May 19, 2022
…8526)

Spec changed and now there are no features defined.

Fixes #18028
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
utility-cluster Work for Utility Clusters V1.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants