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

Stop relying on the input .zap file in Matter test codegen. #1035

Merged

Conversation

bzbarsky-apple
Copy link
Contributor

To keep backwards compat with old Matter revisions, we require explicit includeAllClusters=true in the templates to get the new behavior.

To keep backwards compat with old Matter revisions, we require explicit
includeAllClusters=true in the templates to get the new behavior.
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this pull request May 19, 2023
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this pull request May 19, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #1035 (78f6547) into master (4e0ae8c) will decrease coverage by 0.01%.
The diff coverage is 72.72%.

@@            Coverage Diff             @@
##           master    #1035      +/-   ##
==========================================
- Coverage   67.04%   67.03%   -0.01%     
==========================================
  Files         157      157              
  Lines       17198    17202       +4     
  Branches     3756     3760       +4     
==========================================
+ Hits        11531    11532       +1     
- Misses       5667     5670       +3     
Impacted Files Coverage Δ
.../app/zap-templates/common/ClusterTestGeneration.js 15.26% <33.33%> (-0.05%) ⬇️
.../matter/app/zap-templates/common/ClustersHelper.js 87.20% <83.33%> (-0.15%) ⬇️
...tes/common/simulated-clusters/SimulatedClusters.js 74.00% <100.00%> (ø)

bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this pull request May 19, 2023
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this pull request May 20, 2023
Copy link
Collaborator

@brdandu brdandu left a comment

Choose a reason for hiding this comment

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

Assuming these changes are just for backwards compatibility and not being used by any of our latest application templates.

@bzbarsky-apple
Copy link
Contributor Author

bzbarsky-apple commented May 22, 2023

Assuming these changes are just for backwards compatibility and not being used by any of our latest application templates.

Our latest "application templates" (as in, the test codegen) would be setting includeAllClusters=true right now. The support for includeAllClusters=false (or unset) is for backwards compat.

@bzbarsky-apple bzbarsky-apple merged commit 070854a into project-chip:master May 22, 2023
@bzbarsky-apple bzbarsky-apple deleted the test-gen-all-clusters branch May 22, 2023 14:13
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this pull request May 22, 2023
yufengwangca pushed a commit to project-chip/connectedhomeip that referenced this pull request May 23, 2023
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.

4 participants