Skip to content
代码片段 群组 项目
该项目从 https://github.com/project-chip/zap 镜像。 拉取镜像更新于
  1. 4月 06, 2023
  2. 4月 04, 2023
  3. 3月 31, 2023
  4. 3月 30, 2023
  5. 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
  6. 3月 28, 2023
  7. 3月 25, 2023
  8. 3月 23, 2023
  9. 3月 22, 2023
  10. 3月 18, 2023
  11. 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
  12. 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
  13. 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
  14. 3月 07, 2023
  15. 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
  16. 3月 01, 2023
  17. 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
  18. 2月 26, 2023
  19. 2月 25, 2023
  20. 2月 24, 2023
    • Bharat Raju's avatar
      Backwards Compatibility Fix (#947) · 76d6233a
      Bharat Raju 创作于
      - Changing the default order of endpoint_attribute_list to what it was such that previously released SDKs continue to build their apps seamlessly. Newer templates can mention this order within the template itself
      - fixing the endpoint_config test to default to old order
      - JIRA: ZAPP-1081
      未验证
      76d6233a
  21. 2月 23, 2023
    • Timotej Ecimovic's avatar
      Deal with ordering in the endpoint-config generated structs. (#945) · d8f65035
      Timotej Ecimovic 创作于
      * Extract the reporting into an array before laying out into a struct init line.
      * Add a unit test for reporting generation.
      * Allow parametrized reordering of reporting configuration struct elements.
      * Parametrize the attribute list struct item ordering.
      * Parametrize min/max struct order for the reporting helper.
      * Another ordering issue.
      未验证
      d8f65035
    • Bharat Raju's avatar
      Fix backwards compatibility for recent zap changes (#944) · 99ad196f
      Bharat Raju 创作于
      - Throwing a warning in the notifications page of the zap UI instead of throwing an error in template-engine such that we backwards compatibility can be maintained
      - Changes to helper.js files have been made to fall back to old way of implementation in the case of global.resource([key]) not finding the data required
      - Github: ZAP#941
      未验证
      99ad196f
  22. 2月 18, 2023
  23. 2月 16, 2023
  24. 2月 15, 2023
  25. 2月 11, 2023
加载中