Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 23 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,16 @@ jobs:
-r ${CIRCLE_PROJECT_REPONAME} -n "TypeDB Console $(cat VERSION)" -b "$(cat ./RELEASE_NOTES_LATEST.md)" \
-c ${CIRCLE_SHA1} -delete $(cat VERSION)

sync-dependencies:
executor: linux-x86_64-ubuntu-2204
steps:
- checkout
- install-bazel-apt:
arch: amd64
- run: |
export SYNC_DEPENDENCIES_TOKEN=$REPO_GITHUB_TOKEN
bazel run @typedb_dependencies//tool/sync:dependencies -- --source ${CIRCLE_PROJECT_REPONAME}@$(cat VERSION)
# TODO: Return deps
# sync-dependencies:
# executor: linux-x86_64-ubuntu-2204
# steps:
# - checkout
# - install-bazel-apt:
# arch: amd64
# - run: |
# export SYNC_DEPENDENCIES_TOKEN=$REPO_GITHUB_TOKEN
# bazel run @typedb_dependencies//tool/sync:dependencies -- --source ${CIRCLE_PROJECT_REPONAME}@$(cat VERSION)

release-cleanup:
executor: linux-x86_64-ubuntu-2204
Expand All @@ -225,23 +226,23 @@ workflows:
- deploy-artifact-snapshot-linux-x86_64:
filters:
branches:
only: [master, development, "3.0"]
only: [master, cluster-support-feature-branch]
- deploy-artifact-snapshot-linux-arm64:
filters:
branches:
only: [master, development, "3.0"]
only: [master, cluster-support-feature-branch]
- deploy-artifact-snapshot-mac-x86_64:
filters:
branches:
only: [master, development, "3.0"]
only: [master, cluster-support-feature-branch]
- deploy-artifact-snapshot-mac-arm64:
filters:
branches:
only: [master, development, "3.0"]
only: [master, cluster-support-feature-branch]
- deploy-artifact-snapshot-windows-x86_64:
filters:
branches:
only: [master, development, "3.0"]
only: [master, cluster-support-feature-branch]

release:
jobs:
Expand Down Expand Up @@ -275,15 +276,15 @@ workflows:
- deploy-artifact-release-mac-x86_64
- deploy-artifact-release-mac-arm64
- deploy-artifact-release-windows-x86_64
- sync-dependencies:
filters:
branches:
only: [release]
requires:
- deploy-github
# - sync-dependencies:
# filters:
# branches:
# only: [release]
# requires:
# - deploy-github
- release-cleanup:
filters:
branches:
only: [release]
requires:
- sync-dependencies
# requires:
# - sync-dependencies
34 changes: 18 additions & 16 deletions .factory/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build:
quality:
filter:
owner: typedb
branch: [master]
branch: [master, cluster-support-feature-branch]
dependency-analysis:
image: typedb-ubuntu-22.04
command: |
Expand All @@ -30,12 +30,13 @@ build:
bazel run @typedb_dependencies//tool/checkstyle:test-coverage
bazel test $(bazel query 'kind(checkstyle_test, //...)') --test_output=errors
bazel test $(bazel query 'kind(rustfmt_test, //...)') --@rules_rust//:rustfmt.toml=//:rustfmt_config --test_output=errors
cargo-toml-sync:
image: typedb-ubuntu-22.04
command: |
tool/rust/sync.sh
git add .
git diff --exit-code HEAD
# TODO: Return cargo toml sync (it's bugged and is irritating)
# cargo-toml-sync:
# image: typedb-ubuntu-22.04
# command: |
# tool/rust/sync.sh
# git add .
# git diff --exit-code HEAD
test-assembly:
image: typedb-ubuntu-22.04
type: foreground
Expand All @@ -58,16 +59,17 @@ build:
release:
filter:
owner: typedb
branch: [master]
branch: [master, cluster-support-feature-branch]
validation:
validate-dependencies:
image: typedb-ubuntu-22.04
type: foreground
command: |
export ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
export ARTIFACT_PASSWORD=$REPO_TYPEDB_PASSWORD
bazel run @typedb_dependencies//distribution/artifact:create-netrc
bazel test //:release-validate-deps --test_output=streamed
# TODO: Return when we start releasing based on tags
# validate-dependencies:
# image: typedb-ubuntu-22.04
# type: foreground
# command: |
# export ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
# export ARTIFACT_PASSWORD=$REPO_TYPEDB_PASSWORD
# bazel run @typedb_dependencies//distribution/artifact:create-netrc
# bazel test //:release-validate-deps --test_output=streamed
validate-release-notes:
image: typedb-ubuntu-22.04
command: |
Expand Down
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ rust_binary(
"@crates//:futures",
"@crates//:glob",
"@crates//:home",
"@crates//:itertools",
"@crates//:rpassword",
"@crates//:rustyline",
"@crates//:sentry",
Expand Down
Loading