From edd92b84675ea60533c5133f73f905fe38bcebc3 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 6 Jan 2024 22:49:16 +0100 Subject: [PATCH] Fix: Ensure that components cache keys are ordered before dumping to file. Reason: The CI/CD automation regenerates the cache file, and commits the changes if it differs from the previous version. The only way to ensure semantic equivalence is to sort the keys upon dump. --- platypush/plugins/inspect/_cache.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/plugins/inspect/_cache.py b/platypush/plugins/inspect/_cache.py index 092238d9f..9494e1aff 100644 --- a/platypush/plugins/inspect/_cache.py +++ b/platypush/plugins/inspect/_cache.py @@ -123,6 +123,7 @@ class Cache: 'items': self.to_dict(), }, cls=Message.Encoder, + sort_keys=True, ).encode() )