-
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
Adding python code for generating data model xml .gni file #36437
Merged
mergify
merged 10 commits into
project-chip:master
from
vatsalghelani-csa:dataModelXmlGni
Nov 11, 2024
Merged
Adding python code for generating data model xml .gni file #36437
mergify
merged 10 commits into
project-chip:master
from
vatsalghelani-csa:dataModelXmlGni
Nov 11, 2024
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
Changed Files
|
github-actions
bot
added
tests
matter-1.4-te2-script-change
Script changes before end of Matter 1.4 TE2
labels
Nov 8, 2024
andy31415
reviewed
Nov 8, 2024
src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py
Outdated
Show resolved
Hide resolved
andy31415
reviewed
Nov 8, 2024
src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py
Outdated
Show resolved
Hide resolved
andy31415
reviewed
Nov 8, 2024
src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py
Outdated
Show resolved
Hide resolved
andy31415
approved these changes
Nov 8, 2024
andy31415
reviewed
Nov 8, 2024
src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py
Show resolved
Hide resolved
andy31415
reviewed
Nov 8, 2024
src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py
Outdated
Show resolved
Hide resolved
…_model_xmls_gni.py Co-authored-by: Andrei Litvin <[email protected]>
…_model_xmls_gni.py Co-authored-by: Andrei Litvin <[email protected]>
…_model_xmls_gni.py Co-authored-by: Andrei Litvin <[email protected]>
…n be run from anywhere
PR #36437: Size comparison from 18c0788 to 5bdd919 Increases above 0.2%:
Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
andy31415
added
fast track
and removed
matter-1.4-te2-script-change
Script changes before end of Matter 1.4 TE2
labels
Nov 11, 2024
andy31415
reviewed
Nov 11, 2024
src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py
Outdated
Show resolved
Hide resolved
…_model_xmls_gni.py
github-actions
bot
added
the
matter-1.4-te2-script-change
Script changes before end of Matter 1.4 TE2
label
Nov 11, 2024
PR #36437: Size comparison from 18c0788 to b329018 Increases above 0.2%:
Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
yyzhong-g
pushed a commit
to yyzhong-g/connectedhomeip
that referenced
this pull request
Dec 12, 2024
…hip#36437) * Adding python code for granating data model xml .gni file * Fixed python code and remove buildable * Update src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py Co-authored-by: Andrei Litvin <[email protected]> * Update src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py Co-authored-by: Andrei Litvin <[email protected]> * Update src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py Co-authored-by: Andrei Litvin <[email protected]> * Fixed mismatches and typo from suggestion commits * Fixed file configuraton to figure out the right directory, so this can be run from anywhere * Restyled by autopep8 * Restyled by isort * Update src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py --------- Co-authored-by: Andrei Litvin <[email protected]> Co-authored-by: Restyled.io <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
fast track
matter-1.4-te2-script-change
Script changes before end of Matter 1.4 TE2
review - pending
tests
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.
Work for Issue #31317
PR 21 - This script generates the data_model_xmls.gni file by dynamically identifying and listing files located in various data model directories. The chip_root directory path is automatically set relative to the script’s location, ensuring portability. The Jinja2 template is used to format the output, and the generated file is saved in src/python_testing/matter_testing_infrastructure/.