Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 517890f

Browse files
Update release notes workflow (#291)
## What is the goal of this PR? We integrate the new release notes tooling. The release notes are now to be written by a person and committed to the repo. ## What are the changes implemented in this PR? `tools/release/create_notes.sh` is a manual replacement for automatic `@vaticle_dependencies//tool/release/notes:create` in CI. The script is meant to be executed manually by the writer of the release notes, who will edit the autocompiled notes before committing LATEST_RELEASE_NOTES.md to the repository. In the Release job in Factory, we check to see whether there were any changes committed since the release notes have last been changed, as a safeguard against accidentally releasing with stale release notes.
1 parent f93aad4 commit 517890f

File tree

31 files changed

+83
-28
lines changed

31 files changed

+83
-28
lines changed

.factory/automation.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ release:
265265
validate-dependencies:
266266
image: vaticle-ubuntu-22.04
267267
command: bazel test //:release-validate-python-deps --test_output=streamed
268+
validate-release-notes:
269+
image: vaticle-ubuntu-22.04
270+
command: |
271+
export NOTES_VALIDATE_TOKEN=$REPO_GITHUB_TOKEN
272+
bazel run @vaticle_dependencies//tool/release/notes:validate --test_output=streamed -- $FACTORY_OWNER $FACTORY_REPO ./RELEASE_NOTES_LATEST.md
268273
deployment:
269274
deploy-github:
270275
image: vaticle-ubuntu-22.04
@@ -279,8 +284,6 @@ release:
279284
export ARTIFACT_USERNAME=$REPO_VATICLE_USERNAME
280285
export ARTIFACT_PASSWORD=$REPO_VATICLE_PASSWORD
281286
bazel run @vaticle_dependencies//distribution/artifact:create-netrc
282-
export NOTES_CREATE_TOKEN=$REPO_GITHUB_TOKEN
283-
bazel run @vaticle_dependencies//tool/release/notes:create -- $FACTORY_OWNER $FACTORY_REPO $FACTORY_COMMIT $(cat VERSION) ./RELEASE_TEMPLATE.md
284287
export DEPLOY_GITHUB_TOKEN=$REPO_GITHUB_TOKEN
285288
bazel run --define version=$(cat VERSION) //:deploy-github -- $FACTORY_COMMIT
286289
deploy-pip-release:

BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# under the License.
2020
#
2121

22-
exports_files(["requirements.txt", "deployment.bzl", "RELEASE_TEMPLATE.md"])
22+
exports_files(["requirements.txt", "deployment.bzl"])
2323

2424
load("@vaticle_typedb_client_python_pip//:requirements.bzl",
2525
vaticle_typedb_client_python_requirement = "requirement")
@@ -99,7 +99,7 @@ deploy_pip(
9999

100100
deploy_github(
101101
name = "deploy-github",
102-
release_description = "//:RELEASE_TEMPLATE.md",
102+
release_description = "//:RELEASE_NOTES_LATEST.md",
103103
title = "TypeDB Client Python",
104104
title_append_version = True,
105105
organisation = github_deployment["github.organisation"],

RELEASE_NOTES_LATEST.md

Whitespace-only changes.

dependencies/vaticle/repositories.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ def vaticle_dependencies():
2525
git_repository(
2626
name = "vaticle_dependencies",
2727
remote = "https://github.com/vaticle/dependencies",
28-
commit = "385716283e1e64245c3679a06054e271a0608ac1", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_dependencies
28+
commit = "51fdda8c935d5f9fc34bfdf41b0a6ac1ca77e2ee", # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_dependencies
2929
)
3030

3131
def vaticle_typedb_common():
3232
git_repository(
3333
name = "vaticle_typedb_common",
3434
remote = "https://github.com/vaticle/typedb-common",
35-
commit = "9372dfb227d54c6eb631eed02e67f250e55e657e" # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_common
35+
tag = "2.18.0" # sync-marker: do not remove this comment, this is used for sync-dependencies by @vaticle_typedb_common
3636
)
3737

3838
def vaticle_typedb_behaviour():

tests/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121

2222
# Note: Do NOT rename this folder to 'test' as it conflicts with a built-in Python package!
23-
load("//tools:cluster_test_rule.bzl", "typedb_cluster_py_test")
23+
load("//tool:cluster_test_rule.bzl", "typedb_cluster_py_test")
2424
load("@vaticle_bazel_distribution//artifact:rules.bzl", "artifact_extractor")
2525
load("@vaticle_typedb_common//test:rules.bzl", "native_typedb_artifact")
2626
load("@vaticle_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test")

tests/behaviour/concept/serialization/json/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121

2222
package(default_visibility = ["//tests/behaviour:__subpackages__"])
23-
load("//tools:behave_rule.bzl", "typedb_behaviour_py_test")
23+
load("//tool:behave_rule.bzl", "typedb_behaviour_py_test")
2424
load("@vaticle_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test")
2525

2626
py_library(

tests/behaviour/concept/thing/attribute/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121

2222
package(default_visibility = ["//tests/behaviour:__subpackages__"])
23-
load("//tools:behave_rule.bzl", "typedb_behaviour_py_test")
23+
load("//tool:behave_rule.bzl", "typedb_behaviour_py_test")
2424
load("@vaticle_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test")
2525

2626
py_library(

tests/behaviour/concept/thing/entity/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121

2222
package(default_visibility = ["//tests/behaviour:__subpackages__"])
23-
load("//tools:behave_rule.bzl", "typedb_behaviour_py_test")
23+
load("//tool:behave_rule.bzl", "typedb_behaviour_py_test")
2424
load("@vaticle_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test")
2525

2626
py_library(

tests/behaviour/concept/thing/relation/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121

2222
package(default_visibility = ["//tests/behaviour:__subpackages__"])
23-
load("//tools:behave_rule.bzl", "typedb_behaviour_py_test")
23+
load("//tool:behave_rule.bzl", "typedb_behaviour_py_test")
2424
load("@vaticle_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test")
2525

2626
py_library(

tests/behaviour/concept/type/attributetype/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121

2222
package(default_visibility = ["//tests/behaviour:__subpackages__"])
23-
load("//tools:behave_rule.bzl", "typedb_behaviour_py_test")
23+
load("//tool:behave_rule.bzl", "typedb_behaviour_py_test")
2424
load("@vaticle_dependencies//tool/checkstyle:rules.bzl", "checkstyle_test")
2525

2626
py_library(

0 commit comments

Comments
 (0)