From 16289e705695b6504f574ae277e654d0d6120bc1 Mon Sep 17 00:00:00 2001 From: Andrea Barbadoro Date: Thu, 29 Jun 2023 15:30:15 +0200 Subject: [PATCH] t/redpanda_installer: cache for highest_from_previous_feature_version the method is used in a loop by RedpandaUpgradeTest and it's a bit noisy --- tests/rptest/services/redpanda_installer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/rptest/services/redpanda_installer.py b/tests/rptest/services/redpanda_installer.py index d066da71c0cb8..2f5dfba202ce9 100644 --- a/tests/rptest/services/redpanda_installer.py +++ b/tests/rptest/services/redpanda_installer.py @@ -8,6 +8,7 @@ # by the Apache License, Version 2.0 import errno +from functools import lru_cache import json import os import re @@ -445,6 +446,7 @@ def latest_unsupported_line(self) -> tuple[int, int]: latest_unsupported_line = (latest_unsupported_line[0] - 1, 3) return latest_unsupported_line + @lru_cache def highest_from_prior_feature_version( self, version: RedpandaVersion) -> RedpandaVersionTriple: """