From c0848373c30cb96c45e482a6a00bba0bc8cc3504 Mon Sep 17 00:00:00 2001 From: Jiashen Cao Date: Wed, 20 Sep 2023 20:33:52 -0400 Subject: [PATCH 1/3] rm extra changelog modification --- script/releasing/releaser.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/script/releasing/releaser.py b/script/releasing/releaser.py index 9ee912b9dc..4aff4ad1d9 100755 --- a/script/releasing/releaser.py +++ b/script/releasing/releaser.py @@ -415,9 +415,6 @@ def bump_up_version(next_version): publish_wheels(current_version_str_without_dev) if args.upload_assets: - print("upload assets") - release_date = get_commit_id_of_latest_release() - changelog = get_changelog(release_date) upload_assets(changelog, current_version_str_without_dev) if args.bump_up_version: From 603ab42a502b8962ceaa216cef35e55cbcb49cdd Mon Sep 17 00:00:00 2001 From: Jiashen Cao Date: Wed, 20 Sep 2023 20:34:32 -0400 Subject: [PATCH 2/3] trigger rebuild --- evadb/version.py | 1 - 1 file changed, 1 deletion(-) diff --git a/evadb/version.py b/evadb/version.py index d231a99627..fba54a36d7 100644 --- a/evadb/version.py +++ b/evadb/version.py @@ -2,6 +2,5 @@ _MINOR = "3" _REVISION = "5" - VERSION_SHORT = f"{_MAJOR}.{_MINOR}" VERSION = f"{_MAJOR}.{_MINOR}.{_REVISION}" From f89afb5230121184db7c294bcebd659de9176209 Mon Sep 17 00:00:00 2001 From: Jiashen Cao Date: Wed, 20 Sep 2023 21:18:34 -0400 Subject: [PATCH 3/3] fix for the automation flow --- script/releasing/releaser.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/releasing/releaser.py b/script/releasing/releaser.py index 4aff4ad1d9..f05394f6cb 100755 --- a/script/releasing/releaser.py +++ b/script/releasing/releaser.py @@ -174,7 +174,8 @@ def release_version(current_version): run_command(f"git push origin release-{NEXT_RELEASE}") -def get_commit_id_of_latest_release(): +def get_commit_id_of_latest_release(release_index=0): + # Default to the latest release. import requests repo = "georgia-tech-db/evadb" @@ -182,7 +183,7 @@ def get_commit_id_of_latest_release(): response = requests.get(url) data = response.json() - latest_release = data[0] + latest_release = data[release_index] release_date = latest_release["created_at"] return release_date @@ -415,6 +416,8 @@ def bump_up_version(next_version): publish_wheels(current_version_str_without_dev) if args.upload_assets: + release_date = get_commit_id_of_latest_release(release_index=1) + changelog = get_changelog(release_date) upload_assets(changelog, current_version_str_without_dev) if args.bump_up_version: