From c3ca5f76346087e5bd415a4f9f81d5c23cb4c0f6 Mon Sep 17 00:00:00 2001 From: ysh329 Date: Mon, 3 Jul 2023 10:25:45 +0800 Subject: [PATCH 1/3] Update version to 0.14.dev0 on main branch --- conda/recipe/meta.yaml | 2 +- include/tvm/runtime/c_runtime_api.h | 2 +- python/tvm/_ffi/libinfo.py | 2 +- version.py | 2 +- web/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conda/recipe/meta.yaml b/conda/recipe/meta.yaml index 4a537bfa4950..077f542a4f46 100644 --- a/conda/recipe/meta.yaml +++ b/conda/recipe/meta.yaml @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -{% set version = '0.13.dev0' %} +{% set version = '0.14.dev0' %} {% set pkg_name = 'tvm' %} {% set cuda_tag = cuda_version | replace('.', '') %} # [cuda] {% set pkg_name = pkg_name + '-cu' + cuda_tag %} # [cuda] diff --git a/include/tvm/runtime/c_runtime_api.h b/include/tvm/runtime/c_runtime_api.h index c0c04810e8e4..36ae5c6b158e 100644 --- a/include/tvm/runtime/c_runtime_api.h +++ b/include/tvm/runtime/c_runtime_api.h @@ -73,7 +73,7 @@ #endif // TVM version -#define TVM_VERSION "0.13.dev0" +#define TVM_VERSION "0.14.dev0" // TVM Runtime is DLPack compatible. #include diff --git a/python/tvm/_ffi/libinfo.py b/python/tvm/_ffi/libinfo.py index 33047ff84d54..19b8b50bbf29 100644 --- a/python/tvm/_ffi/libinfo.py +++ b/python/tvm/_ffi/libinfo.py @@ -222,4 +222,4 @@ def find_include_path(name=None, search_path=None, optional=False): # We use the version of the incoming release for code # that is under development. # The following line is set by tvm/python/update_version.py -__version__ = "0.13.dev0" +__version__ = "0.14.dev0" diff --git a/version.py b/version.py index ddbb6ae11dcb..3f18a7dd3395 100644 --- a/version.py +++ b/version.py @@ -44,7 +44,7 @@ # Two tag formats are supported: # - vMAJ.MIN.PATCH (e.g. v0.8.0) or # - vMAJ.MIN.devN (e.g. v0.8.dev0) -__version__ = "0.13.dev0" +__version__ = "0.14.dev0" # --------------------------------------------------- diff --git a/web/package.json b/web/package.json index 4389d2d707ef..4378517dd5c8 100644 --- a/web/package.json +++ b/web/package.json @@ -2,7 +2,7 @@ "name": "tvmjs", "displayName": "TVM Wasm JS runtime", "license": "Apache-2.0", - "version": "0.13.0-dev0", + "version": "0.14.0-dev0", "scripts": { "prepwasm": "make && python3 tests/python/prepare_test_libs.py", "build": "tsc -b && make rmtypedep", From 1b5806a64f03029444dc15fcb102d3e925ea2225 Mon Sep 17 00:00:00 2001 From: ysh329 Date: Wed, 5 Jul 2023 10:52:32 +0800 Subject: [PATCH 2/3] [Miscs] Enhance script about generate release note. --- tests/scripts/release/README.md | 2 ++ tests/scripts/release/gather_prs.py | 22 +++++++++++++--------- tests/scripts/release/make_notes.py | 8 +++++++- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/tests/scripts/release/README.md b/tests/scripts/release/README.md index ba71c7fe1190..5d068c65f9ea 100644 --- a/tests/scripts/release/README.md +++ b/tests/scripts/release/README.md @@ -30,6 +30,8 @@ Once done, you can download the csv file assuming with name `out_pr_gathered_cor ```bash # example: use a csv of tags-corrected PRs to create a markdown file +# If you want to export monthly report on forum, you need append arg +# `--is-pr-with-link true`. python make_notes.py --notes-csv out_pr_gathered_corrected.csv > out.md ``` diff --git a/tests/scripts/release/gather_prs.py b/tests/scripts/release/gather_prs.py index b85989428769..5df8721bdf5c 100644 --- a/tests/scripts/release/gather_prs.py +++ b/tests/scripts/release/gather_prs.py @@ -98,15 +98,19 @@ def fetch_pr_data(args, cache): cursor = f"{args.from_commit} {i}" while True: - r = github.graphql( - query=PRS_QUERY, - variables={ - "owner": user, - "name": repo, - "after": cursor, - "pageSize": page_size, - }, - ) + try: + r = github.graphql( + query=PRS_QUERY, + variables={ + "owner": user, + "name": repo, + "after": cursor, + "pageSize": page_size, + }, + ) + except RuntimeError as e: + print(f"{e}\nPlease check enviroment variable GITHUB_TOKEN whether is valid.") + exit(1) data = r["data"]["repository"]["defaultBranchRef"]["target"]["history"] if not data["pageInfo"]["hasNextPage"]: break diff --git a/tests/scripts/release/make_notes.py b/tests/scripts/release/make_notes.py index 81aedebf048a..14105700b636 100644 --- a/tests/scripts/release/make_notes.py +++ b/tests/scripts/release/make_notes.py @@ -157,6 +157,7 @@ def categorize_csv_file(csv_path: str): help = "List out commits with attached PRs since a certain commit" parser = argparse.ArgumentParser(description=help) parser.add_argument("--notes-csv", required=True, help="csv file of categorized PRs in order") + parser.add_argument("--is-pr-with-link", required=False, help="exported pr number with hyper-link for forum format") args = parser.parse_args() user = "apache" repo = "tvm" @@ -204,7 +205,12 @@ def pr_title(number, heading): misc += value.get("n/a", []) misc += value.get("Misc", []) for pr_number in misc: - output += f" * #{pr_number} - {pr_title(pr_number, '[' + key + ']')}\n" + if args.is_pr_with_link: + pr_number_str = f"[#{pr_number}](https://github.com/apache/tvm/pull/{pr_number})" + else: + pr_number_str = f"#{pr_number}" + pr_str = f" * {pr_number_str} - {pr_title(pr_number, '[' + key + ']')}\n" + output += pr_str for subheading, pr_numbers in value.items(): if subheading == "DO NOT INCLUDE": From d16505661bcfe2c75153b0210ee1f54e8c8bdade Mon Sep 17 00:00:00 2001 From: ysh329 Date: Wed, 5 Jul 2023 14:23:02 +0800 Subject: [PATCH 3/3] Fix lint --- tests/scripts/release/make_notes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/scripts/release/make_notes.py b/tests/scripts/release/make_notes.py index 14105700b636..aa034b1d113c 100644 --- a/tests/scripts/release/make_notes.py +++ b/tests/scripts/release/make_notes.py @@ -157,7 +157,11 @@ def categorize_csv_file(csv_path: str): help = "List out commits with attached PRs since a certain commit" parser = argparse.ArgumentParser(description=help) parser.add_argument("--notes-csv", required=True, help="csv file of categorized PRs in order") - parser.add_argument("--is-pr-with-link", required=False, help="exported pr number with hyper-link for forum format") + parser.add_argument( + "--is-pr-with-link", + required=False, + help="exported pr number with hyper-link for forum format", + ) args = parser.parse_args() user = "apache" repo = "tvm"