Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/chip_tool_fixes' into chip_tool_…
Browse files Browse the repository at this point in the history
…fixes
  • Loading branch information
gmarcosb committed Jan 13, 2023
2 parents 894c6b8 + f6ec05f commit 333b8bb
Show file tree
Hide file tree
Showing 151 changed files with 8,714 additions and 556 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,13 @@ jobs:
scripts/run_in_build_env.sh 'pip3 install ./out/controller/python/chip_repl-0.0-py3-none-any.whl'
scripts/run_in_build_env.sh '(cd src/controller/python/test/unit_tests/ && python3 -m unittest -v)'
- name: Run Python Setup Payload Generator Test
timeout-minutes: 10
run: |
scripts/run_in_build_env.sh 'scripts/examples/gn_build_example.sh examples/chip-tool out/'
scripts/run_in_build_env.sh 'pip3 install -r src/setup_payload/python/requirements.txt'
scripts/run_in_build_env.sh 'python3 src/setup_payload/tests/run_python_setup_payload_gen_test.py out/chip-tool'
build_darwin:
name: Build on Darwin (clang, python_lib, simulated)
timeout-minutes: 200
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ jobs:
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build Java Mattter Controller and all clusters app
- name: Build Java Matter Controller and all clusters app
timeout-minutes: 50
run: |
scripts/run_in_build_env.sh './scripts/build_python.sh --install_wheel build-env'
Expand All @@ -463,7 +463,9 @@ jobs:
build \
"
- name: Run Discover Tests
timeout-minutes: 65
# temporarily disable the failing test, would re-enable it later
if: false
timeout-minutes: 10
run: |
scripts/run_in_build_env.sh \
'./scripts/tests/run_java_test.py \
Expand All @@ -475,7 +477,7 @@ jobs:
--factoryreset \
'
- name: Run Pairing Tests
timeout-minutes: 65
timeout-minutes: 10
run: |
scripts/run_in_build_env.sh \
'./scripts/tests/run_java_test.py \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3078,7 +3078,7 @@ server cluster TemperatureMeasurement = 1026 {

server cluster PressureMeasurement = 1027 {
bitmap PressureFeature : BITMAP32 {
kExt = 0x1;
kExtended = 0x1;
}

readonly attribute nullable int16s measuredValue = 0;
Expand Down
22 changes: 11 additions & 11 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -7857,7 +7857,7 @@
"enabled": 1,
"attributes": [
{
"name": "measured value",
"name": "MeasuredValue",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -7873,7 +7873,7 @@
"reportableChange": 0
},
{
"name": "min measured value",
"name": "MinMeasuredValue",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -7889,7 +7889,7 @@
"reportableChange": 0
},
{
"name": "max measured value",
"name": "MaxMeasuredValue",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -7905,7 +7905,7 @@
"reportableChange": 0
},
{
"name": "tolerance",
"name": "Tolerance",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -15553,7 +15553,7 @@
"enabled": 1,
"attributes": [
{
"name": "temperature display mode",
"name": "TemperatureDisplayMode",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -15569,7 +15569,7 @@
"reportableChange": 0
},
{
"name": "keypad lockout",
"name": "KeypadLockout",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -15585,7 +15585,7 @@
"reportableChange": 0
},
{
"name": "schedule programming visibility",
"name": "ScheduleProgrammingVisibility",
"code": 2,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -17299,7 +17299,7 @@
"enabled": 1,
"attributes": [
{
"name": "measured value",
"name": "MeasuredValue",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -17315,7 +17315,7 @@
"reportableChange": 0
},
{
"name": "min measured value",
"name": "MinMeasuredValue",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -17331,7 +17331,7 @@
"reportableChange": 0
},
{
"name": "max measured value",
"name": "MaxMeasuredValue",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -17347,7 +17347,7 @@
"reportableChange": 0
},
{
"name": "tolerance",
"name": "Tolerance",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down
1 change: 0 additions & 1 deletion examples/all-clusters-app/ameba/chip_main.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ list(
${chip_dir}/examples/all-clusters-app/ameba/main/CHIPDeviceManager.cpp
${chip_dir}/examples/all-clusters-app/ameba/main/Globals.cpp
${chip_dir}/examples/all-clusters-app/ameba/main/LEDWidget.cpp
${chip_dir}/examples/all-clusters-app/ameba/main/DsoHack.cpp

${chip_dir}/examples/platform/ameba/route_hook/ameba_route_hook.c
${chip_dir}/examples/platform/ameba/route_hook/ameba_route_table.c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2476,7 +2476,7 @@ server cluster TemperatureMeasurement = 1026 {

server cluster PressureMeasurement = 1027 {
bitmap PressureFeature : BITMAP32 {
kExt = 0x1;
kExtended = 0x1;
}

readonly attribute nullable int16s measuredValue = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7857,7 +7857,7 @@
"enabled": 1,
"attributes": [
{
"name": "measured value",
"name": "MeasuredValue",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -7873,7 +7873,7 @@
"reportableChange": 0
},
{
"name": "min measured value",
"name": "MinMeasuredValue",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -7889,7 +7889,7 @@
"reportableChange": 0
},
{
"name": "max measured value",
"name": "MaxMeasuredValue",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -7905,7 +7905,7 @@
"reportableChange": 0
},
{
"name": "tolerance",
"name": "Tolerance",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -15045,7 +15045,7 @@
"enabled": 1,
"attributes": [
{
"name": "temperature display mode",
"name": "TemperatureDisplayMode",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -15061,7 +15061,7 @@
"reportableChange": 0
},
{
"name": "keypad lockout",
"name": "KeypadLockout",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -15077,7 +15077,7 @@
"reportableChange": 0
},
{
"name": "schedule programming visibility",
"name": "ScheduleProgrammingVisibility",
"code": 2,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -16791,7 +16791,7 @@
"enabled": 1,
"attributes": [
{
"name": "measured value",
"name": "MeasuredValue",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -16807,7 +16807,7 @@
"reportableChange": 0
},
{
"name": "min measured value",
"name": "MinMeasuredValue",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -16823,7 +16823,7 @@
"reportableChange": 0
},
{
"name": "max measured value",
"name": "MaxMeasuredValue",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -16839,7 +16839,7 @@
"reportableChange": 0
},
{
"name": "tolerance",
"name": "Tolerance",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down
1 change: 0 additions & 1 deletion examples/chef/ameba/chip_main.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ list(
${matter_example_path}//main/CHIPDeviceManager.cpp
${matter_example_path}//main/Globals.cpp
${matter_example_path}//main/LEDWidget.cpp
${matter_example_path}//main/DsoHack.cpp

${chip_dir}/examples/providers/DeviceInfoProviderImpl.cpp
)
Expand Down
4 changes: 3 additions & 1 deletion examples/chef/create_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@
image[0].tag(docker_image_name, tag=f'revision-id_{args.revision_id}')

print(f'Pushing image: {docker_image_name}')
client.images.push(docker_image_name)
response = client.images.push(docker_image_name, stream=True, decode=True)
for line in response:
print(line)
8 changes: 4 additions & 4 deletions examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.zap
Original file line number Diff line number Diff line change
Expand Up @@ -6001,7 +6001,7 @@
"enabled": 1,
"attributes": [
{
"name": "measured value",
"name": "MeasuredValue",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -6017,7 +6017,7 @@
"reportableChange": 0
},
{
"name": "min measured value",
"name": "MinMeasuredValue",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -6033,7 +6033,7 @@
"reportableChange": 0
},
{
"name": "max measured value",
"name": "MaxMeasuredValue",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -6049,7 +6049,7 @@
"reportableChange": 0
},
{
"name": "tolerance",
"name": "Tolerance",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ server cluster UserLabel = 65 {

server cluster PressureMeasurement = 1027 {
bitmap PressureFeature : BITMAP32 {
kExt = 0x1;
kExtended = 0x1;
}

readonly attribute nullable int16s measuredValue = 0;
Expand Down
6 changes: 3 additions & 3 deletions examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.zap
Original file line number Diff line number Diff line change
Expand Up @@ -7347,7 +7347,7 @@
"enabled": 1,
"attributes": [
{
"name": "temperature display mode",
"name": "TemperatureDisplayMode",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -7363,7 +7363,7 @@
"reportableChange": 0
},
{
"name": "keypad lockout",
"name": "KeypadLockout",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -7379,7 +7379,7 @@
"reportableChange": 0
},
{
"name": "schedule programming visibility",
"name": "ScheduleProgrammingVisibility",
"code": 2,
"mfgCode": null,
"side": "server",
Expand Down
2 changes: 2 additions & 0 deletions examples/java-matter-controller/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ java_binary("java-matter-controller") {
"java/src/com/matter/controller/commands/common/Command.java",
"java/src/com/matter/controller/commands/common/CommandManager.java",
"java/src/com/matter/controller/commands/common/CredentialsIssuer.java",
"java/src/com/matter/controller/commands/common/FutureResult.java",
"java/src/com/matter/controller/commands/common/IPAddress.java",
"java/src/com/matter/controller/commands/common/MatterCommand.java",
"java/src/com/matter/controller/commands/common/RealResult.java",
"java/src/com/matter/controller/commands/discover/DiscoverCommand.java",
"java/src/com/matter/controller/commands/discover/DiscoverCommissionablesCommand.java",
"java/src/com/matter/controller/commands/discover/DiscoverCommissionersCommand.java",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ public static void main(String[] args) {
commandManager.run(args);
} catch (IllegalArgumentException e) {
logger.log(Level.INFO, "Arguments init failed with exception: " + e.getMessage());
System.exit(1);
} catch (Exception e) {
logger.log(Level.INFO, "Run command failed with exception: " + e.getMessage());
System.exit(1);
}
controller.shutdownCommissioning();
}
Expand Down
Loading

0 comments on commit 333b8bb

Please sign in to comment.