Skip to content

Commit 1003601

Browse files
authored
Merge branch 'main' into botocore-region-attribute
2 parents 21041fc + dc37067 commit 1003601

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

RELEASING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
(otherwise the workflow will pick up the version from `main` and just remove the `.dev` suffix).
1010
* Review the two pull requests that it creates.
1111
(one is targeted to the release branch and one is targeted to `main`).
12-
* The builds will fail for both the `main` and release pr because of validation rules. Follow the [release workflow](https://github.com/open-telemetry/opentelemetry-python/blob/main/RELEASING.md) for the core repo up until this same point. Change the SHAs of each PR to point at each other to get the `main` and release builds to pass.
12+
* The builds will fail for the release PR because of validation rules. Follow the [release workflow](https://github.com/open-telemetry/opentelemetry-python/blob/main/RELEASING.md) for the core repo up until this same point.
13+
* Close and reopen the PR so that the workflow will take into account the label automation we have in place
1314
* Merge the release PR.
1415
* Merge the PR to main (this can be done separately from [making the release](#making-the-release))
1516

tests/opentelemetry-docker-tests/tests/check_availability.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
MSSQL_PORT = int(os.getenv("MSSQL_PORT", "1433"))
4343
MSSQL_USER = os.getenv("MSSQL_USER", "sa")
4444
MSSQL_PASSWORD = os.getenv("MSSQL_PASSWORD", "yourStrong(!)Password")
45-
RETRY_COUNT = 8
46-
RETRY_INTERVAL = 5 # Seconds
45+
RETRY_COUNT = 5
46+
RETRY_INITIAL_INTERVAL = 2 # Seconds
4747

4848
logger = logging.getLogger(__name__)
4949

@@ -56,14 +56,16 @@ def wrapper():
5656
func()
5757
return
5858
except Exception as ex: # pylint: disable=broad-except
59+
# Exponential backoff
60+
backoff_interval = RETRY_INITIAL_INTERVAL * (2**i)
5961
logger.error(
6062
"waiting for %s, retry %d/%d [%s]",
6163
func.__name__,
6264
i + 1,
6365
RETRY_COUNT,
6466
ex,
6567
)
66-
time.sleep(RETRY_INTERVAL)
68+
time.sleep(backoff_interval)
6769
raise Exception(f"waiting for {func.__name__} failed")
6870

6971
return wrapper

0 commit comments

Comments
 (0)