Skip to content

Commit d15f914

Browse files
committed
Partly revert "proper mockups for s3-related tests + retrying setup"
This partly reverts commit b89339b. Signed-off-by: Tobias Wolf <[email protected]>
1 parent 6ba28d5 commit d15f914

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/gardenlinux/constants.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,3 @@
161161
# https://github.com/gardenlinux/gardenlinux/issues/3044
162162
# Empty string is the 'legacy' variant with traditional root fs and still needed/supported
163163
IMAGE_VARIANTS = ["", "_usi", "_tpm2_trustedboot"]
164-
165-
# configuration for https://github.com/groodt/retrying
166-
RETRYING_MAX_ATTEMPTS = 5
167-
RETRYING_WAIT_EXPONENTIAL_MULTIPLIER = 1000
168-
RETRYING_WAIT_EXPONENTIAL_MAX = 16000

src/gardenlinux/s3/bucket.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import boto3
1515
from retrying import retry
1616

17-
from ..constants import RETRYING_MAX_ATTEMPTS, RETRYING_WAIT_EXPONENTIAL_MAX, RETRYING_WAIT_EXPONENTIAL_MULTIPLIER
1817
from ..logger import LoggerSetup
1918

2019

@@ -90,9 +89,7 @@ class tree for self).
9089

9190
return getattr(self._bucket, name)
9291

93-
@retry(stop_max_attempt_number=RETRYING_MAX_ATTEMPTS,
94-
wait_exponential_multiplier=RETRYING_WAIT_EXPONENTIAL_MULTIPLIER,
95-
wait_exponential_max=RETRYING_WAIT_EXPONENTIAL_MAX)
92+
@retry(stop_max_attempt_number=5, wait_exponential_multiplier=1000, wait_exponential_max=16000)
9693
def download_file(self, key, file_name, *args, **kwargs):
9794
"""
9895
boto3: Download an S3 object to a file.

0 commit comments

Comments
 (0)