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

Restore matter unit tests and fix backwards compatibility. #948

Merged

Conversation

tecimovic
Copy link
Collaborator

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Feb 24, 2023

Codecov Report

Merging #948 (90e74fb) into master (76d6233) will decrease coverage by 0.12%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #948      +/-   ##
==========================================
- Coverage   62.13%   62.01%   -0.12%     
==========================================
  Files         155      155              
  Lines       16624    16661      +37     
  Branches     3674     3687      +13     
==========================================
+ Hits        10330    10333       +3     
- Misses       5596     5627      +31     
- Partials      698      701       +3     
Impacted Files Coverage Δ
...r/matter/app/zap-templates/templates/app/helper.js 8.73% <0.00%> (-0.62%) ⬇️
.../matter/app/zap-templates/templates/chip/helper.js 14.53% <0.00%> (+1.06%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@tecimovic tecimovic marked this pull request as ready for review February 24, 2023 19:12
@tecimovic
Copy link
Collaborator Author

This work also uncovered the fact that gen-matter2.test.js and gen-matter3.test.js were largely useless as unit tests. I dabbled a bit initially (hence some commits to the gen-matter3.test.js and the zapt files), but I'll first fix a functional issue here to unblock some people that are trying to release something, and then we can address that in a separate work.

tecimovic added a commit to tecimovic/matter that referenced this pull request Feb 24, 2023
…erated struct.

Previous change just added them directly in the generation code, which promptly
destroyed all backwards compatibility. With this approach, the default zap
generates as it "always did", but you can request an override to do things
like add new elements, or reorder them.

This should go hand it hand with the PR:
  project-chip/zap#948

If ZAP PR gets merged first, Matter will stay broken with latest zap until this commit is merge in.
Matter, however, can merge this commit first without ill effect, and use older zap if it chooses.
test/gen-template/matter3/t.json Show resolved Hide resolved
@tecimovic tecimovic merged commit 3ca4ddf into project-chip:master Feb 24, 2023
@tecimovic tecimovic deleted the another-backwards-compatibility branch February 24, 2023 21:38
andy31415 pushed a commit to project-chip/connectedhomeip that referenced this pull request Feb 25, 2023
…erated struct. (#25316)

Previous change just added them directly in the generation code, which promptly
destroyed all backwards compatibility. With this approach, the default zap
generates as it "always did", but you can request an override to do things
like add new elements, or reorder them.

This should go hand it hand with the PR:
  project-chip/zap#948

If ZAP PR gets merged first, Matter will stay broken with latest zap until this commit is merge in.
Matter, however, can merge this commit first without ill effect, and use older zap if it chooses.
kkasperczyk-no pushed a commit to kkasperczyk-no/sdk-connectedhomeip that referenced this pull request Mar 15, 2023
…erated struct. (#25316)

Previous change just added them directly in the generation code, which promptly
destroyed all backwards compatibility. With this approach, the default zap
generates as it "always did", but you can request an override to do things
like add new elements, or reorder them.

This should go hand it hand with the PR:
  project-chip/zap#948

If ZAP PR gets merged first, Matter will stay broken with latest zap until this commit is merge in.
Matter, however, can merge this commit first without ill effect, and use older zap if it chooses.
lecndav pushed a commit to lecndav/connectedhomeip that referenced this pull request Mar 22, 2023
…erated struct. (project-chip#25316)

Previous change just added them directly in the generation code, which promptly
destroyed all backwards compatibility. With this approach, the default zap
generates as it "always did", but you can request an override to do things
like add new elements, or reorder them.

This should go hand it hand with the PR:
  project-chip/zap#948

If ZAP PR gets merged first, Matter will stay broken with latest zap until this commit is merge in.
Matter, however, can merge this commit first without ill effect, and use older zap if it chooses.
@tecimovic tecimovic mentioned this pull request Apr 11, 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