Skip to content

Commit

Permalink
t/redpanda_installer: cache for highest_from_previous_feature_version
Browse files Browse the repository at this point in the history
the method is used in a loop by RedpandaUpgradeTest and it's a bit noisy
  • Loading branch information
andijcr committed Jun 29, 2023
1 parent 93225e9 commit 1c590e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/rptest/services/redpanda_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# by the Apache License, Version 2.0

import errno
from functools import lru_cache
import json
import os
import re
Expand Down Expand Up @@ -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:
"""
Expand Down

0 comments on commit 1c590e8

Please sign in to comment.