summaryrefslogtreecommitdiff
path: root/tools/releasedate.py
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2022-02-06 15:06:16 -0600
committerGitHub <noreply@github.com>2022-02-06 15:06:16 -0600
commit89569a7684b58ff4b54ac01a984ad2aa95e6beb0 (patch)
treea360a18e7a74eb5659cc2aff4e67bea2ce14e31a /tools/releasedate.py
parent88386db620e1e31d99a158ea75ad460fe78e61e0 (diff)
parent5568f9d12b31e5de5a456d7f06eceb95631cb4e5 (diff)
Merge pull request #10471 from ton31337/fix/release_candidate_procedure
doc: Add a commands snippet to workflow about what to do in RC1 phase
Diffstat (limited to 'tools/releasedate.py')
-rw-r--r--tools/releasedate.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/tools/releasedate.py b/tools/releasedate.py
index 37780501c3..3df1ea48fb 100644
--- a/tools/releasedate.py
+++ b/tools/releasedate.py
@@ -36,21 +36,23 @@ if __name__ == "__main__":
print("Last release was (scheduled) on %s" % last.isoformat())
rel = upcoming.pop(0)
- freeze, rc1, rc2 = rel - w2 * 3, rel - w2 * 2, rel - w2
+ freeze, stabilization, rc = rel - w2 * 3, rel - w2 * 2, rel - w2
if now == rel:
print("It's release day! 🎉")
- elif now >= rc2:
+ elif now >= rc:
print(
- "%d days until release! (rc2 since %s)"
- % ((rel - now).days, rc2.isoformat())
+ "%d days until release! (RC since %s)" % ((rel - now).days, rc.isoformat())
+ )
+ elif now >= stabilization:
+ print(
+ "%d days until RC. (stabilization branch created since %s)"
+ % ((rc - now).days, stabilization.isoformat())
)
- elif now >= rc1:
- print("%d days until rc2. (rc1 since %s)" % ((rc2 - now).days, rc1.isoformat()))
elif now >= freeze:
print(
- "%d days until rc1, master is frozen since %s"
- % ((rc1 - now).days, freeze.isoformat())
+ "%d days until stabilization branch, master is frozen since %s"
+ % ((stabilization - now).days, freeze.isoformat())
)
else:
print(