Skip to content

Commit aec4b6a

Browse files
committed
Disable host unit test config
By default the Python controller gets built with unit test configuration enabled. This adds extra functionality to inject errors etc. for testing. There is no known negative effect to have it enabled, but it is certainly better to disable it for a production setup. Furthermore this fixes error handling for APIs with callbacks and improves logging somewhat. Specifically, this integrates changes from the following PRs - project-chip/connectedhomeip#34346 - project-chip/connectedhomeip#34354 - project-chip/connectedhomeip#34368
1 parent 7b2bfcc commit aec4b6a

File tree

34 files changed

+813
-31
lines changed

34 files changed

+813
-31
lines changed

0001-Support-custom-platform-tag.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From bcd84a21c67a681fcaba43118d9d9bb7ed618b55 Mon Sep 17 00:00:00 2001
1+
From 44cc7593f34d07501c67f06e5f6d7fcf719aae71 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Tue, 22 Nov 2022 10:51:17 +0100
44
Subject: [PATCH] Support custom platform tag

0002-Use-data-as-platform-storage-location.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 5c1316070604e8e7ade9b518ad717c63276dd06a Mon Sep 17 00:00:00 2001
1+
From 703b75caecae8638ea0caeda0c9f4f4a2bdc1819 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Fri, 27 May 2022 16:38:14 +0200
44
Subject: [PATCH] Use /data as platform storage location

0003-Linux-Increase-number-of-endpoints.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 3bcfcd1d91050868d0153bf7692db3ac844ccc94 Mon Sep 17 00:00:00 2001
1+
From b5b1aa29c7db8aa4b03f13cd51f9ec4a7b979446 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Thu, 29 Feb 2024 19:07:15 +0100
44
Subject: [PATCH] Linux: Increase number of endpoints

0004-Implement-async-friendly-GetConnectedDevice.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 7ce75765081aeebef5f3adc397dff4db256348eb Mon Sep 17 00:00:00 2001
1+
From 005112398921c0b0a2cdf9805390311d5b49f4f3 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Wed, 27 Mar 2024 22:13:19 +0100
44
Subject: [PATCH] Implement async friendly GetConnectedDevice

0006-Fix-OnRead-Event-Attribute-DataCallback-for-Arm64-Ap.patch 0005-Fix-OnRead-Event-Attribute-DataCallback-for-Arm64-Ap.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 113143a945bbe5663b78b59b05d6b00670d79292 Mon Sep 17 00:00:00 2001
1+
From 20422009f55822b8dbd0b4cbc2855b756943ce08 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Thu, 25 Apr 2024 15:19:17 +0200
44
Subject: [PATCH] Fix OnRead[Event|Attribute]DataCallback for Arm64 Apple

0007-Add-raw-attribute-callback.patch 0006-Add-raw-attribute-callback.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 4fe4daf7f165dc007ab6092bee2adef67650d129 Mon Sep 17 00:00:00 2001
1+
From 749cd076e35127092efa8f680902bebf8967389d Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Thu, 23 May 2024 12:48:54 +0200
44
Subject: [PATCH] Add raw attribute callback

0008-Python-Eliminate-ZCLSubscribeAttribute-33337.patch 0007-Python-Eliminate-ZCLSubscribeAttribute-33337.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From ba5d91afca90d186fb78de54f5d71705747b097a Mon Sep 17 00:00:00 2001
1+
From a1e13f098c1e8a140b016bd10d76b36ebf3d6df2 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Mon, 13 May 2024 15:16:56 +0200
44
Subject: [PATCH] [Python] Eliminate ZCLSubscribeAttribute (#33337)

0009-Python-Eliminate-ZCLReadAttribute-ZCLSend-33428.patch 0008-Python-Eliminate-ZCLReadAttribute-ZCLSend-33428.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 393dbaae77c7bf26a869b8498ce5e731ff0b9651 Mon Sep 17 00:00:00 2001
1+
From 18e6fcae6e2dcaa0a39306c19de0246b6d0a5764 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Thu, 16 May 2024 09:13:00 +0200
44
Subject: [PATCH] [Python] Eliminate ZCLReadAttribute/ZCLSend (#33428)

0010-Python-Create-pairingDelegate-for-each-DeviceControl.patch 0009-Python-Create-pairingDelegate-for-each-DeviceControl.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 25180ab3236c2af49f6003109e1a2e8769c3ba4b Mon Sep 17 00:00:00 2001
1+
From e6f0f69d0d61c60cd7ad3b84f59c50794d95797a Mon Sep 17 00:00:00 2001
22
From: "tianfeng.yang" <130436698+tianfeng-yang@users.noreply.github.com>
33
Date: Wed, 17 Apr 2024 21:53:13 +0800
44
Subject: [PATCH] [Python] Create pairingDelegate for each DeviceController

0011-Python-Call-SDK-asyncio-friendly-32764.patch 0010-Python-Call-SDK-asyncio-friendly-32764.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 56b56ee08006d935cb86dd3fb38e96d79c78bb45 Mon Sep 17 00:00:00 2001
1+
From b079cfb8fabc4927dd59e8913684a2b58fcb4f3c Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Thu, 16 May 2024 09:35:25 +0200
44
Subject: [PATCH] [Python] Call SDK asyncio friendly (#32764)

0012-Python-Make-AttributePath-more-pythonic-33571.patch 0011-Python-Make-AttributePath-more-pythonic-33571.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 518fdbac13ace67cfbd4482286320f4c45ab1b05 Mon Sep 17 00:00:00 2001
1+
From 34be5d25e6038dd22a1e80fa10b548065b6e6215 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Fri, 24 May 2024 10:39:41 +0200
44
Subject: [PATCH] [Python] Make AttributePath more pythonic (#33571)

0013-Python-Drop-chip-device-ctrl-33488.patch 0012-Python-Drop-chip-device-ctrl-33488.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 9be9b5e5f8b7988c71b178ffc24c76590c8f0f88 Mon Sep 17 00:00:00 2001
1+
From c6838582c226796198993741aaa8cd1a1022fed3 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Fri, 24 May 2024 16:19:35 +0200
44
Subject: [PATCH] [Python] Drop chip-device-ctrl (#33488)

0014-Python-Remove-obsolete-callback-handling-33665.patch 0013-Python-Remove-obsolete-callback-handling-33665.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 3997a66e9e436646a4652448bc72309d8afee2bf Mon Sep 17 00:00:00 2001
1+
From 3297c2f2240ac4b3dcf740a2604e1f22a42799d5 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Thu, 30 May 2024 22:41:35 +0200
44
Subject: [PATCH] [Python] Remove obsolete callback handling (#33665)

0015-Python-Add-automation-level-to-log-defines-33670.patch 0014-Python-Add-automation-level-to-log-defines-33670.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 0fe7d8b3d9c920ce7dc970097962dca14f9d8f03 Mon Sep 17 00:00:00 2001
1+
From 235286b7c98474afc9434a3eec0c07157b4c3679 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Fri, 31 May 2024 15:24:42 +0200
44
Subject: [PATCH] [Python] Add "automation" level to log defines (#33670)

0016-Python-Remove-obsolete-logging-callbacks-33718.patch 0015-Python-Remove-obsolete-logging-callbacks-33718.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 92dc4417ed88d016d0b21e377d1c04a97e55f34e Mon Sep 17 00:00:00 2001
1+
From 4111dc126f04bce71a0f712c59cc7294c2fcad5d Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Tue, 4 Jun 2024 07:14:58 +0200
44
Subject: [PATCH] [Python] Remove obsolete logging callbacks (#33718)

0017-Python-Drop-network-lock-33720.patch 0016-Python-Drop-network-lock-33720.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 025bdb7a1e9b9669ab091b96f9ac0adefe3a53dd Mon Sep 17 00:00:00 2001
1+
From 155d4471de2c988b5089325bb0e9eb59e93d3c0d Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Wed, 5 Jun 2024 16:06:15 +0200
44
Subject: [PATCH] [Python] Drop network lock (#33720)

0018-Python-Remove-Python-Bluetooth-and-ChipStack-event-l.patch 0017-Python-Remove-Python-Bluetooth-and-ChipStack-event-l.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From a4fb58131d9023ad3a3ec01d44c5ae87946d6b59 Mon Sep 17 00:00:00 2001
1+
From 1edc2acd9f8faeb481e79154c065c2b85eb87fc8 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Thu, 6 Jun 2024 17:11:34 +0200
44
Subject: [PATCH] [Python] Remove Python Bluetooth and ChipStack event loop

0019-Python-Add-TriggerResubscribeIfScheduled-to-Subscrip.patch 0018-Python-Add-TriggerResubscribeIfScheduled-to-Subscrip.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 9e3eeeaf21a3a258ea6d068f8ade8c321b7b5563 Mon Sep 17 00:00:00 2001
1+
From 29e6e6b1c0a6925abc33510297f6f49470bcf016 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Fri, 7 Jun 2024 15:50:34 +0200
44
Subject: [PATCH] [Python] Add TriggerResubscribeIfScheduled to

0020-Python-Drop-deprecated-discovery-APIs-33882.patch 0019-Python-Drop-deprecated-discovery-APIs-33882.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 75954f9f6c493726c004f31631c9c7baf30ffff4 Mon Sep 17 00:00:00 2001
1+
From 08d23c879cd47a9ba2d0675ea04a0abb041a8d9e Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Wed, 12 Jun 2024 19:49:51 +0200
44
Subject: [PATCH] [Python] Drop deprecated discovery APIs (#33882)

0021-Remove-unnecessary-error-log-from-CurrentFabricRemov.patch 0020-Remove-unnecessary-error-log-from-CurrentFabricRemov.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 92f9e7d0d746087ff4c6b0d86b80f7deba661d5d Mon Sep 17 00:00:00 2001
1+
From 3734bb27d8de27b957698b54d2a03b88619905fc Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Thu, 13 Jun 2024 16:13:56 +0200
44
Subject: [PATCH] Remove unnecessary error log from CurrentFabricRemover

0022-Python-Use-thread-safe-futures-for-concurrent-operat.patch 0021-Python-Use-thread-safe-futures-for-concurrent-operat.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From c50c9fe22beee19242de04ea01fa5eb031506c0b Mon Sep 17 00:00:00 2001
1+
From 0d035c3060a931a7205e64aafb48bf99c82b8301 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Thu, 13 Jun 2024 16:44:23 +0200
44
Subject: [PATCH] [Python] Use thread-safe futures for concurrent operations

0023-Avoid-errors-when-using-on-network-commissioning-338.patch 0022-Avoid-errors-when-using-on-network-commissioning-338.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 005887af17aa03eb655cee10871e16ff65ceb34e Mon Sep 17 00:00:00 2001
1+
From 69daf2756196568bd80cc3debe6c11cc6beaa222 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Thu, 13 Jun 2024 22:29:36 +0200
44
Subject: [PATCH] Avoid errors when using on-network commissioning (#33880)

0024-Add-success-message-on-removing-current-fabric-33914.patch 0023-Add-success-message-on-removing-current-fabric-33914.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 5ec1d9c49d505d5e462f6c935b7f325cbf632e8f Mon Sep 17 00:00:00 2001
1+
From 988b3fbd5db017f49fc6dd0151a6906f4e47844e Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Fri, 14 Jun 2024 01:34:21 +0200
44
Subject: [PATCH] Add success message on removing current fabric (#33914)

0025-Python-Drop-unnecessary-null-termination-33915.patch 0024-Python-Drop-unnecessary-null-termination-33915.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 049c5803b347e520ba4b3653ce623b6543ae05b6 Mon Sep 17 00:00:00 2001
1+
From e5ecc03b7ae65eda30357af92687b36c23bcf36d Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Fri, 14 Jun 2024 15:43:44 +0200
44
Subject: [PATCH] [Python] Drop unnecessary null termination (#33915)

0026-Fix-python-Wi-Fi-Thread-setup-with-manual-code-33933.patch 0025-Fix-python-Wi-Fi-Thread-setup-with-manual-code-33933.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 462bd9d6a8a9dcf60ab9f674e41c762c602fd8e0 Mon Sep 17 00:00:00 2001
1+
From bed8252a3ee1cf41510c470514cc86ae4a3a0bf3 Mon Sep 17 00:00:00 2001
22
From: Tennessee Carmel-Veilleux <tennessee.carmelveilleux@gmail.com>
33
Date: Fri, 14 Jun 2024 18:52:44 -0400
44
Subject: [PATCH] Fix python Wi-Fi/Thread setup with manual code (#33933)

0027-Python-Store-original-PyChipError-in-ChipStackExcept.patch 0026-Python-Store-original-PyChipError-in-ChipStackExcept.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From d9231b499271843b4501ea84bfa56a5b3ac9a1b5 Mon Sep 17 00:00:00 2001
1+
From 65334ba37c6187dc1d3cf2f2a49fa57ee086d277 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Tue, 18 Jun 2024 14:45:11 +0200
44
Subject: [PATCH] [Python] Store original PyChipError in ChipStackException

0028-Python-Make-Commissioning-APIs-more-pythonic-and-con.patch 0027-Python-Make-Commissioning-APIs-more-pythonic-and-con.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From a5a507e055db590fe4965fbfa8b2a3b368368cd0 Mon Sep 17 00:00:00 2001
1+
From 73f66667b8e34ba483b5131bf0697c1456e53746 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Tue, 18 Jun 2024 23:16:47 +0200
44
Subject: [PATCH] [Python] Make Commissioning APIs more pythonic and consistent

0029-Python-Reset-chip-error-in-test-commissioner-34001.patch 0028-Python-Reset-chip-error-in-test-commissioner-34001.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 8cf4a7a4a642fc60bc5716860f63292b316335f1 Mon Sep 17 00:00:00 2001
1+
From f17afe57391c7346af140fcc8cf7442f6f11f781 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Wed, 19 Jun 2024 16:26:32 +0200
44
Subject: [PATCH] [Python] Reset chip error in test commissioner (#34001)

0030-Python-Convert-async-API-functions-to-python-asyncio.patch 0029-Python-Convert-async-API-functions-to-python-asyncio.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From b60b4c443d21fe3486e1c4c9c7ab92557fa7dda5 Mon Sep 17 00:00:00 2001
1+
From a574e6a55ed3fa2dfe14f4f2475b2623f5b10cb0 Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Thu, 20 Jun 2024 16:14:52 +0200
44
Subject: [PATCH] [Python] Convert async API functions to python asyncio

0032-Python-Convert-DiscoverCommissionableNodes-to-asynci.patch 0030-Python-Convert-DiscoverCommissionableNodes-to-asynci.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 47d800809a9979b3162f5f676f308ebd9282c361 Mon Sep 17 00:00:00 2001
1+
From 0b589b17b4c638afb67e4bd6ed91a0c4fabb619d Mon Sep 17 00:00:00 2001
22
From: Stefan Agner <stefan@agner.ch>
33
Date: Fri, 21 Jun 2024 14:28:03 +0200
44
Subject: [PATCH] [Python] Convert DiscoverCommissionableNodes to asyncio

0 commit comments

Comments
 (0)