Skip to content
代码片段 群组 项目
该项目从 https://github.com/project-chip/zap 镜像。 拉取镜像更新于
  1. 5月 09, 2023
    • Jing T's avatar
      create linux arm64 release package · 4861f737
      Jing T 创作于
      * support for creating linux arm64 artifacts
      
      1) NOTE: workaround for arm64 with pkg via "--no-bytecode --public"
      
      the packaging utilility (pkg) has following issues:
      
      * bytecode generation fails for arm64:
        Warning Failed to make bytecode node16-arm64 for file /snapshot/zap/node_modules/...
      
        "--no-bytecode" flag is used to skip the bytecode generation
      
      * --no-bytecode flag is broken:
        "Error! --no-bytecode and no source breaks final executable"
      
        "--public" flag is used as a workaround
        ref: https://github.com/vercel/pkg/issues/1139
      
      2) update mac artifacts to be platform/architecture specific
      
      3) pkg: version bump to pick up codesign error for macOS arm64
      未验证
      4861f737
  2. 5月 05, 2023
  3. 5月 03, 2023
  4. 4月 28, 2023
  5. 4月 21, 2023
    • Bharat Raju's avatar
      Adding struct item helper based on struct and cluster name (#1002) · 01d8e001
      Bharat Raju 创作于
      - Add zcl_struct_items_by_struct_and_cluster_name helper for retrieving struct items based on struct and cluster name in helper-zcl.js
      - Updating selectAllStructItemsByStructName to handle cluster name as well
      - Updating the xml for TargetStruct such that it is now present in binding and access control clusters
      - Adding a test to make sure the right struct items are generated based on cluster names
      - Github: ZAP#916
  6. 4月 19, 2023
    • Boris Zbarsky's avatar
      Add isSupported helper for Darwin. (#1000) · a702abf6
      Boris Zbarsky 创作于
      * Add isSupported helper for Darwin.
      
      This supports marking this as "provisional", which unlike "removed" can be
      overridden by a later "introduced".
      
      * Make handling of introduced things inside a provisional thing better.
      
      * Also include description in zcl_clusters, to match all_user_clusters.
    • Timotej Ecimovic's avatar
      Make zap files smaller (#992) · 313e73a4
      Timotej Ecimovic 创作于
      * Add fileFormat to the file.
      * Add the cli logic.
      * Add both builtin metafiles as default and refresh matter test file.
      * Wrap up the type 1 format, keep default to 0.
      * Add unit test and trigger proper conversion.
      * Allow for injected key/value pairs.
      * Fix the reportable.
      * Fix the reportable change.
      * Fix a unit test.
      * Add name ordering.
      * Upgrade one matter file.
      * Convert an all-cluster matter file.
      * Convert some more files.
      * Add some more unit tests.
      未验证
      313e73a4
    • Bharat Raju's avatar
      Adding the type to bitmap fields. This change is specific to the dotdot loader... · f699d85d
      Bharat Raju 创作于
      Adding the type to bitmap fields. This change is specific to the dotdot loader and is a backwards compatible fix which was broken during the ZCL data type schema update. (#1001)
      
      JIRA: ZAPP-1122
      未验证
      f699d85d
  7. 4月 18, 2023
  8. 4月 13, 2023
  9. 4月 07, 2023
  10. 4月 06, 2023
  11. 4月 04, 2023
  12. 3月 31, 2023
  13. 3月 30, 2023
  14. 3月 29, 2023
    • Bharat Raju's avatar
      Deprecating stateful helpers with stateless helpers (#982) · 1b876c11
      Bharat Raju 创作于
      - Deprecating chip_client_clusters, chip_cluster_commands, chip_cluster_responses and chip_cluster_command_arguments with all_user_clusters, zcl_commands, zcl_command_responses and zcl_command_arguments respectively
      - Adding more attributes to the command in db-mapping along with the extension to the zcl_command query
      - Updating selectAllClustersDetailsFromEndpointTypes such that all_user_clusters can be filtered based on side of cluster
      - Adding zcl_command_responses to retrieve all commands which are also command responses.a
      - Extending asJavaType to handle asJavaBoxedType properly under all block helpers and not just chipType block helpers
      - Updating the local map for command query
      - Minor cleanup
      - Github: ZAP#971
  15. 3月 28, 2023
  16. 3月 25, 2023
  17. 3月 23, 2023
  18. 3月 22, 2023
  19. 3月 18, 2023
  20. 3月 17, 2023
    • Bharat Raju's avatar
      Adding to enabled_attributes_for_cluster_and_side and zcl_attributes_server... · feb352cb
      Bharat Raju 创作于
      Adding to enabled_attributes_for_cluster_and_side and zcl_attributes_server helper to replace chip_server_cluster_attributes (#899)
      
      - chip_server_cluster_attributes is returning server attributes which are not actually enabled because the server side cluster is disabled.
      - The reason chip_server_cluster_attributes is picking the server side attributes which are not enabled is because those are enabled in the .zap file(Which is the case for saving user selections and ease of use). However the helper is not actually checking if the cluster is enabled as well.
      - enabled_attributes_for_cluster_and_side is solving this issue correctly and actually only showing attributes which are truly enabled.
      - Extending endpointTypeAttributeExtended such that there is a common place for an attribute map
      - Updating endpointTypeAttributeExtended with everything that attributeExportMapping had such that it can act as a common place for all other temporary maps that have been created across our code. Also sorting endpointTypeAttributeExtended for easier readability and avoiding duplicate keys
      - Updating zcl_attributes_server block helper such that it can behave like chip_server_cluster_attributes.
      - Updating attribute map such that it can be used more widely
      - Adding additional helpers to remove the stateful helpers
      - Adding removeKeys option for removing certain columns which are not needed in a block helper such as enabled_attributes_for_cluster_and_side and zcl_attributes_server
      - Adding if_unsupported_attribute_type and if_attribute_complex to check for unsupported and complex zcl data types
      - Deprecating old stateful helpers with new stateless helpers
      - Adding select data type using type name and cluster id to data_types, enums, bitmap,  numbers and structs
      - Adding if_unsupported_attribute_callback helper and if_basic_attribute if helpers for java code generation
      - Deprecating java and python zcl type helpers with new zcl type helpers such that they do not need any stateful information coming from parent block helpers. For eg chipType and chipCallback.type
      - Adding tests for all the newly introduced helpers.
      - Updating Api documentation
      - Adding if_is_data_type_signed and as_zcl_data_type_size to determine sign and size of zcl data types
      - if_is_data_type_signed and as_zcl_data_type_size take type name and cluster id to return size and sign of the zcl data types
      - Github: ZAP#898
  21. 3月 11, 2023
    • Jing T's avatar
      invalidate cache per generation (#966) · f6306798
      Jing T 创作于
      when a user changes configurations, such change might have invalidated some configuration specific setting that has been cached already. By flushing the cache, it enables us to cache SQL results without disregarding user inputs.
      未验证
      f6306798
  22. 3月 10, 2023
    • Jing T's avatar
      cache high traffic SQL used by zap-config.h (#965) · 2dec0188
      Jing T 创作于
      7x speed up on zap-config.h generation speed
      
      machine: mac x86 2.6 GHz 6-Core Intel Core i7
      Before:
      PASS  test/gen-zigbee-9.test.js (91.223 s)
        ✓ Basic gen template parsing and generation (18 ms)
        ✓ Validate package loading (1 ms)
        ✓ Load the zap file: /Users/jiteng/repo/zap/test/resource/full-th.zap (1149 ms)
        ✓ Generate "zap-cluster-command-parser.h" (196 ms)
        ✓ Generate "zap-print.h" (14 ms)
        ✓ Generate "zap-id.h" (402 ms)
        ✓ Generate "zap-event.c" (111 ms)
        ✓ Generate "zap-enabled-incoming-commands.h" (41 ms)
        ✓ Generate "zap-event.h" (746 ms)
        ✓ Generate "zap-config.h" (72763 ms)
        ✓ Generate "zap-type.h" (223 ms)
        ✓ Generate "zap-tokens.h" (574 ms)
        ✓ Generate "zap-cli.c" (3542 ms)
        ✓ Generate "zap-command.h" (1161 ms)
        ✓ Generate "zap-command-structs.h" (448 ms)
        ✓ Generate "zap-cluster-command-parser.c" (275 ms)
      
      After:
      
       PASS  test/gen-zigbee-9.test.js (24.919 s)
        ✓ Basic gen template parsing and generation (21 ms)
        ✓ Validate package loading
        ✓ Load the zap file: /Users/jiteng/repo/zap/test/resource/full-th.zap (1667 ms)
        ✓ Generate "zap-cluster-command-parser.h" (156 ms)
        ✓ Generate "zap-print.h" (39 ms)
        ✓ Generate "zap-id.h" (439 ms)
        ✓ Generate "zap-event.c" (127 ms)
        ✓ Generate "zap-enabled-incoming-commands.h" (49 ms)
        ✓ Generate "zap-event.h" (905 ms)
        ✓ Generate "zap-config.h" (10471 ms)
        ✓ Generate "zap-type.h" (241 ms)
        ✓ Generate "zap-tokens.h" (627 ms)
        ✓ Generate "zap-cli.c" (3802 ms)
        ✓ Generate "zap-command.h" (1238 ms)
        ✓ Generate "zap-command-structs.h" (555 ms)
        ✓ Generate "zap-cluster-command-parser.c" (251 ms)
      未验证
      2dec0188
  23. 3月 07, 2023
  24. 3月 03, 2023
    • Gergely Kiss's avatar
      Support touring with Vue.js 3. (#963) · 8acc6a8c
      Gergely Kiss 创作于
      未验证
      8acc6a8c
    • Jing T's avatar
      Feature/zap profiling (#913) · 54ebd9e4
      Jing T 创作于
      * node-cache: return refs instead of clone for speed.
      * add '--disableDbCaching' flag
      * reduce heap usage by 50% (118MB -> 58.8MB via Chrome Heap Profiler) via disabling source map during build
      * improve generation speed by 75% via SQL query caching
      
      Using full-th sample app as reference, there are 108,871 SQL query calls
      spread over the following query functions
      
      * selectAtomicType()
      * selectBitmapByName()
      * selectDataTypeByName()
      * selectEnumByName()
      * selectNumberByName()
      * selectStructByName()
      
      Performance metric:
        test runner: ./src-script/gen-test-runner.js
        machine: macbook 2.6 Ghz 6-core Intel Core i7 / 32GB DDR4
      
        Before:
          average generation time: 42.851s
      
        After:
          initial cache warm up generation time: 17.699s
          average generation time: 11.766s
      未验证
      54ebd9e4
  25. 3月 01, 2023
  26. 2月 28, 2023
    • Timotej Ecimovic's avatar
      Add some more content-based matter tests. (#958) · 5f38bdfd
      Timotej Ecimovic 创作于
      * Add some more content-based matter tests.
      * Check the content to further depth of details.
      * Add a cautionary tale that nobody will read... :(
      * Get coverage reports.
      * Clean up some typos.
      * Use proper English.
      * Remove xvfb-run, we do not need it.
      * Clean up coverage for cypress, which is not being produced.
      * Add the differently-ordered list to the generation.
      * Fix the code coverage job.
      未验证
      5f38bdfd
    • Bharat Raju's avatar
      Set the order of token attributes for minimal diff upon resetting token config (#957) · bbe44859
      Bharat Raju 创作于
      The token attributes are being set in the following order:
      For Standard attributes:
      - All singleton attributes
      - All non singleton attributes
      - Both of the above are followed by subsequent ordering of cluster mfg code, attribute mfg code, endpoint identifier(smallest endpoint identifier for singleton), cluster code, attribute code
      Configuring the tests according to the above order
    • Timotej Ecimovic's avatar
      Unit test reorganization (#954) · f838810b
      Timotej Ecimovic 创作于
      * Cut down unnecessary repeat generations from same source.
      * Break up zigbee tests into individual generations.
      * Split database files.
      * Fix the problem with the result.
      * Clean up some custom package stuff.
      * Consistently name tests.
      * Add another generation for performance analysis.
      * Add a full-th test for performance analysis.
      * Sort out some nuances of the test.
      * Separate each individual file for generation.
      * There is no need to run Zigbee cypress tests twice.
      * Support array for generateOnly option, and limit unit test generation to just what we test.
      * Exclude more generations of things not needed for tests.
      * Restore Matter test data to reasonably recent, and mandate the Matter tests to pass without errors.
      * Add the all-clusters test for Matter.
      * Bring back old matter XML files to keep Cypress fixtures happy.
      * Comment out a code coverage. It was not doing much useful now, so we are commenting it out for now, until we restore it to correct functioning later, using the cache.
      未验证
      f838810b
  27. 2月 26, 2023
  28. 2月 25, 2023
加载中