Skip to content
Merged
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
File renamed without changes.
57 changes: 57 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Release-plz

on:
push:
branches:
- main
workflow_dispatch:
inputs:
dry_run:
description: 'Dry run only (no publishing)'
required: false
type: boolean
default: false

permissions:
pull-requests: write
contents: write

env:
CARGO_TERM_COLOR: always

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest-8-cores
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y jq libjq-dev protobuf-compiler

- name: Set JQ_LIB_DIR
run: echo "JQ_LIB_DIR=/usr/lib/x86_64-linux-gnu" >> $GITHUB_ENV

- name: Install Rust toolchain
uses: dtolnay/rust-action@stable

- name: Run release-plz (dry-run)
if: ${{ inputs.dry_run == true }}
uses: release-plz/action@v0.5
with:
command: release
args: --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run release-plz
if: ${{ inputs.dry_run != true }}
uses: release-plz/action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
27 changes: 26 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,32 @@ exclude = [
resolver = "2"

[workspace.package]
version = "0.2.3"
version = "0.3.1"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/drasi-project/drasi-core"
keywords = ["drasi"]
categories = ["database"]

[workspace.dependencies]
# Internal workspace crates
drasi-query-ast = { version = "0.3.1", path = "query-ast" }
drasi-query-cypher = { version = "0.3.1", path = "query-cypher" }
drasi-query-gql = { version = "0.3.1", path = "query-gql" }
drasi-core = { version = "0.3.1", path = "core" }
drasi-functions-cypher = { version = "0.3.1", path = "functions-cypher" }
drasi-functions-gql = { version = "0.3.1", path = "functions-gql" }
drasi-middleware = { version = "0.3.1", path = "middleware" }
drasi-lib = { version = "0.3.1", path = "lib" }

# Component plugins
drasi-source-postgres = { version = "0.1.1", path = "components/sources/postgres" }
drasi-source-application = { version = "0.1.1", path = "components/sources/application" }
drasi-bootstrap-application = { version = "0.1.1", path = "components/bootstrappers/application" }
drasi-reaction-http = { version = "0.1.2", path = "components/reactions/http" }
drasi-reaction-grpc = { version = "0.2.0", path = "components/reactions/grpc" }
drasi-index-rocksdb = { version = "0.2.0", path = "components/indexes/rocksdb" }
drasi-index-garnet = { version = "0.1.1", path = "components/indexes/garnet" }

[workspace.lints.rust]
warnings = "deny"
Expand Down
72 changes: 72 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# git-cliff changelog configuration for drasi-core
# See: https://git-cliff.org/docs/configuration

[changelog]
# Header of the changelog
header = """
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
"""

# Template for the body of the changelog
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [Unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | upper_first }}\
{% endfor %}
{% endfor %}\n
"""

# Template for the footer of the changelog
footer = """
<!-- generated by git-cliff -->
"""

# Remove leading and trailing whitespace from the template
trim = true

[git]
# Parse conventional commits
conventional_commits = true
filter_unconventional = true
split_commits = false

# Process commits that match the following patterns
commit_preprocessors = [
{ pattern = '\(#([0-9]+)\)', replace = "([#${1}](https://github.com/drasi-project/drasi-core/issues/${1}))" },
]

# Group commits by type
commit_parsers = [
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug Fixes" },
{ message = "^doc", group = "Documentation" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Refactor" },
{ message = "^style", group = "Styling" },
{ message = "^test", group = "Testing" },
{ message = "^chore\\(release\\):", skip = true },
{ message = "^chore\\(deps\\)", group = "Dependencies" },
{ message = "^chore|^ci", group = "Miscellaneous Tasks" },
{ body = ".*security", group = "Security" },
]

# Protect breaking changes from being skipped
protect_breaking_commits = false

# Filter out commits by patterns
filter_commits = false

# Sort commits by oldest to newest
date_order = false
sort_commits = "oldest"
4 changes: 2 additions & 2 deletions components/bootstrappers/application/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ categories = ["development-tools"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-core = { version = "0.2.3", path = "../../../core" }
drasi-lib.workspace = true
drasi-core.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion components/bootstrappers/noop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ categories = ["development-tools"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-lib.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions components/bootstrappers/platform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ categories = ["network-programming"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-core = { version = "0.2.3", path = "../../../core" }
drasi-lib.workspace = true
drasi-core.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
Expand Down
6 changes: 3 additions & 3 deletions components/bootstrappers/postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ categories = ["database"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-core = { version = "0.2.3", path = "../../../core" }
drasi-lib.workspace = true
drasi-core.workspace = true
drasi-source-postgres.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
Expand All @@ -44,4 +45,3 @@ serde_json = "1.0"
postgres-types = "0.2"
redis = { version = "0.25", features = ["tokio-comp"] }
tokio = { version = "1.0", features = ["full"] }
drasi-source-postgres = { version = "0.1.1", path = "../../sources/postgres" }
4 changes: 2 additions & 2 deletions components/bootstrappers/scriptfile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ categories = ["filesystem"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-core = { version = "0.2.3", path = "../../../core" }
drasi-lib.workspace = true
drasi-core.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions components/indexes/garnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ readme = "../../../readme.md"
workspace = true

[dependencies]
drasi-core = { version = "0.2.3", path = "../../../core" }
drasi-query-ast = { version = "0.2.3", path = "../../../query-ast" }
drasi-core.workspace = true
drasi-query-ast.workspace = true
redis = { version = "0.25", features = ["tokio-comp"] }
async-trait = "0.1.68"
hashers = "1.0.1"
Expand Down
6 changes: 3 additions & 3 deletions components/indexes/rocksdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

[package]
name = "drasi-index-rocksdb"
version = "0.1.1"
version = "0.2.0"
edition = "2021"
license = "Apache-2.0"
description = "Drasi Core RocksDb Index Plugin"
Expand All @@ -27,8 +27,8 @@ readme = "../../../readme.md"
workspace = true

[dependencies]
drasi-core = { version = "0.2.3", path = "../../../core" }
drasi-query-ast = { version = "0.2.3", path = "../../../query-ast" }
drasi-core.workspace = true
drasi-query-ast.workspace = true
rocksdb = { version = "0.21.0", features = ["default", "multi-threaded-cf"] }
async-trait = "0.1.68"
hashers = "1.0.1"
Expand Down
4 changes: 2 additions & 2 deletions components/reactions/application/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

[package]
name = "drasi-reaction-application"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
authors = ["Drasi Project"]
description = "Application reaction plugin for Drasi"
Expand All @@ -27,7 +27,7 @@ categories = ["development-tools"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-lib.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions components/reactions/grpc-adaptive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ categories = ["network-programming"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-lib.workspace = true
drasi-reaction-grpc.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
Expand All @@ -42,7 +43,6 @@ chrono = "0.4"
uuid = { version = "1.0", features = ["v4"] }
prost-types = "0.12"
ordered-float = "3.0"
drasi-reaction-grpc = { version = "0.1.1", path = "../grpc" }

[build-dependencies]
tonic-build = "0.11"
4 changes: 2 additions & 2 deletions components/reactions/grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

[package]
name = "drasi-reaction-grpc"
version = "0.1.1"
version = "0.2.0"
edition = "2021"
authors = ["Drasi Project"]
description = "gRPC reaction plugin for Drasi"
Expand All @@ -27,7 +27,7 @@ categories = ["network-programming"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-lib.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
Expand Down
6 changes: 3 additions & 3 deletions components/reactions/http-adaptive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

[package]
name = "drasi-reaction-http-adaptive"
version = "0.1.1"
version = "0.2.0"
edition = "2021"
authors = ["Drasi Project"]
description = "HTTP Adaptive reaction plugin for Drasi"
Expand All @@ -27,7 +27,8 @@ categories = ["network-programming"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-lib.workspace = true
drasi-reaction-http.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
Expand All @@ -41,4 +42,3 @@ uuid = { version = "1.0", features = ["v4"] }
tokio-stream = "0.1"
prost-types = "0.12"
ordered-float = "3.0"
drasi-reaction-http = { version = "0.1.1", path = "../http" }
6 changes: 3 additions & 3 deletions components/reactions/http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

[package]
name = "drasi-reaction-http"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = ["Drasi Project"]
description = "HTTP reaction plugin for Drasi"
Expand All @@ -27,8 +27,8 @@ categories = ["network-programming"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-core = { version = "0.2.3", path = "../../../core" }
drasi-lib.workspace = true
drasi-core.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions components/reactions/log/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ categories = ["development-tools::debugging"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-lib.workspace = true
drasi-core.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
tokio = { version = "1.0", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
drasi-core = { version = "0.2.3", path = "../../../core" }
futures = "0.3"
chrono = "0.4"
uuid = { version = "1.0", features = ["v4"] }
Expand Down
6 changes: 3 additions & 3 deletions components/reactions/platform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

[package]
name = "drasi-reaction-platform"
version = "0.1.1"
version = "0.2.0"
edition = "2021"
authors = ["Drasi Project"]
description = "Platform reaction plugin for Drasi"
Expand All @@ -27,7 +27,8 @@ categories = ["network-programming"]
workspace = true

[dependencies]
drasi-lib = { version = "0.2.3", path = "../../../lib" }
drasi-lib.workspace = true
drasi-core.workspace = true
anyhow = "1.0"
async-trait = "0.1"
log = "0.4"
Expand All @@ -40,4 +41,3 @@ chrono = "0.4"
tokio-stream = "0.1"
prost-types = "0.12"
ordered-float = "3.0"
drasi-core = { version = "0.2.3", path = "../../../core" }
Loading
Loading