From ea86527633bc421d55f9ea90d8f62b934d507716 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Tue, 28 Dec 2021 19:27:03 +0100 Subject: [PATCH] Make mistral reproducible Whilst working on the Reproducible Builds effort [0] we noticed that mistral could not be built reproducibly. This is because some help output enumerated the constants in a Python set without a sort which does not have an implicitly deterministic ordering. Patch attached that applies a sort to the list. [0] https://reproducible-builds.org/ Note this was reported in Debian at: https://bugs.debian.org/960591 and was fixed in the Debian package. Change-Id: Icb899483021777724462e926732a182f2a3390b0 --- mistral/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mistral/config.py b/mistral/config.py index 4fc6d024d..c50258fb6 100644 --- a/mistral/config.py +++ b/mistral/config.py @@ -501,7 +501,7 @@ execution_expiration_policy_opts = [ default=[], help='The states that the expiration policy will filter ' 'out and will not delete.' - 'Valid values are, [{}]'.format(states.TERMINAL_STATES) + 'Valid values are, [{}]'.format(sorted(states.TERMINAL_STATES)) ) ]