-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Switch YAML tests to using templated ReadAttribute. #11607
Merged
bzbarsky-apple
merged 1 commit into
project-chip:master
from
bzbarsky-apple:yaml-reads-complex-types
Nov 10, 2021
Merged
Switch YAML tests to using templated ReadAttribute. #11607
bzbarsky-apple
merged 1 commit into
project-chip:master
from
bzbarsky-apple:yaml-reads-complex-types
Nov 10, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pullapprove
bot
requested review from
andy31415,
anush-apple,
austinh0,
balducci-apple,
carol-apple,
cecille,
chrisdecenzo,
chulspro,
Damian-Nordic,
electrocucaracha,
erjiaqing,
franck-apple,
harimau-qirex,
hawk248,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kghost,
LuDuda,
msandstedt,
mspang,
pan-apple,
robszewczyk,
sagar-apple,
saurabhst and
selissia
November 9, 2021 22:25
pullapprove
bot
requested review from
pan-apple,
robszewczyk,
sagar-apple,
saurabhst,
selissia,
tecimovic,
vivien-apple,
wbschiller,
woody-apple and
yufengwangca
November 9, 2021 22:25
PR #11607: Size comparison from ca811e0 to 8669c3c Increases above 0.2%:
Increases (1 build for linux)
Full report (21 builds for efr32, k32w, linux, p6, qpg, telink)
|
woody-apple
approved these changes
Nov 9, 2021
bzbarsky-apple
force-pushed
the
yaml-reads-complex-types
branch
from
November 9, 2021 23:27
8669c3c
to
755acc0
Compare
woody-apple
approved these changes
Nov 9, 2021
PR #11607: Size comparison from 13297d8 to 755acc0 Increases above 0.2%:
Increases (1 build for linux)
Full report (21 builds for efr32, k32w, linux, p6, qpg, telink)
|
mrjerryjohns
reviewed
Nov 9, 2021
bzbarsky-apple
force-pushed
the
yaml-reads-complex-types
branch
from
November 10, 2021 00:31
755acc0
to
6db7940
Compare
PR #11607: Size comparison from be75489 to 6db7940 Increases above 0.2%:
Increases (1 build for linux)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
This will let us handle reading nullables (and structs once we can have struct-typed attributes) propely.
bzbarsky-apple
force-pushed
the
yaml-reads-complex-types
branch
from
November 10, 2021 04:12
6db7940
to
79bd4d6
Compare
PR #11607: Size comparison from 22e3e9d to 79bd4d6 Increases above 0.2%:
Increases (1 build for linux)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
mrjerryjohns
approved these changes
Nov 10, 2021
@saurabhst @msandstedt @jepenven-silabs @jmartinez-silabs @Damian-Nordic @LuDuda Please take a look? |
saurabhst
approved these changes
Nov 10, 2021
PSONALl
pushed a commit
to PSONALl/connectedhomeip
that referenced
this pull request
Dec 3, 2021
This will let us handle reading nullables (and structs once we can have struct-typed attributes) propely.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will let us handle reading nullables (and structs once we can
have struct-typed attributes) propely.
Problem
YAML tests can't read interesting types (except for lists, which we have some special-case hacks for).
Change overview
Switch to using templated ReadAttribute to allow us to do that.
Also fixes the ReadAttribute templates to instantiate most of the work on a per-type basis, not per-attribute basis.
Testing
No behavior changes so far, but will be building on top of this to expand testing.