Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d090808
Add Bzlmod migration plan for Bazel 8 upgrade
lolski Feb 2, 2026
237dde7
Complete Bzlmod migration for Bazel 8
lolski Feb 2, 2026
2a5bcd4
Remove crate extension isolation for shared type compatibility
lolski Feb 3, 2026
a87b4a5
Replace local_path_override with git_override for ecosystem dependencies
lolski Feb 18, 2026
ecf861a
Add MODULE.bazel and related files to checkstyle coverage
lolski Feb 20, 2026
3d3a2bd
Update git_override commits to latest bazel-8-upgrade branch tips
lolski Feb 20, 2026
54b5e0c
wip
lolski Feb 20, 2026
5dbeabc
Use Bazel rootpath to resolve behaviour feature directory
lolski Feb 20, 2026
b4daa07
Add define.feature as explicit data dep for $(rootpath) resolution
lolski Feb 20, 2026
f8b6b38
Update git_override commits to latest bazel-8-upgrade branch tips
lolski Feb 20, 2026
471961a
Update bazel-distribution to latest commit
lolski Feb 25, 2026
4c74139
Restructure MODULE.bazel into standard sections
lolski Feb 27, 2026
f3232f7
wip
lolski Feb 27, 2026
28d6158
wip
lolski Feb 27, 2026
b3fdbe1
wip
lolski Feb 27, 2026
db24043
wip
lolski Feb 27, 2026
ac2a925
wip
lolski Feb 27, 2026
41b71e6
wip
lolski Feb 27, 2026
7f6e802
Update git_override commits to latest bazel-8-upgrade branch tips
lolski Feb 27, 2026
7bf9980
Update bazel-distribution to latest commit
lolski Mar 9, 2026
f09b357
Update dependencies to latest commit
lolski Mar 9, 2026
772d6f7
Update bazel-distribution to latest commit
lolski Mar 9, 2026
a11320e
Update dependencies to latest commit
lolski Mar 9, 2026
b31a441
Update typedb-protocol, typeql, typedb-behaviour to latest commits
lolski Mar 9, 2026
3fe056d
Update typedb-behaviour to latest commit
lolski Mar 16, 2026
049bea1
Update dependencies and typedb-behaviour to latest commits
lolski Mar 18, 2026
c85030b
Update typedb-behaviour dependency to latest commit
lolski Mar 19, 2026
ba61682
Update dependencies commit (rules_rust patches removed)
lolski Mar 19, 2026
86a200a
Update typedb-behaviour commit to latest
lolski Mar 19, 2026
dcd1b82
Update typedb_dependencies and typedb_behaviour commits
lolski Mar 19, 2026
ea7044b
Update typedb_dependencies and typedb_behaviour commits in repositori…
lolski Mar 19, 2026
89b5406
Update typedb_behaviour commit
lolski Mar 19, 2026
da8be4d
Update typedb_dependencies and typedb_behaviour commits
lolski Mar 24, 2026
1ef9ff6
Update dependencies, bazel-distribution, and typedb-behaviour commits
lolski Mar 26, 2026
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
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

# Enable isolated extension usages for crate universe
common --experimental_isolated_extension_usages

try-import ./.bazel-remote-cache.rc

Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.2.0
8.5.1
2 changes: 1 addition & 1 deletion .factory/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build:
command: |
bazel build //... --test_output=errors
bazel run @typedb_dependencies//tool/checkstyle:test-coverage
bazel test $(bazel query 'kind(checkstyle_test, //...)')
bazel test $(bazel query 'kind(checkstyle_test, //...)') --test_output=errors
bazel test $(bazel query 'kind(rustfmt_test, //...)') --@rules_rust//:rustfmt.toml=//rust:rustfmt_config
# build-dependency:
# image: typedb-ubuntu-22.04
Expand Down
3 changes: 2 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ checkstyle_test(
".gitignore",
".factory/automation.yml",
"BUILD",
"MODULE.bazel",
"WORKSPACE",
"deployment.bzl",
"requirements.txt",
],
exclude = [
".bazel-remote-cache.rc",
".bazel-cache-credential.json",
"MODULE.bazel.lock",
"banner.png",
"Cargo.toml",
],
Expand All @@ -60,6 +62,5 @@ filegroup(
"@typedb_dependencies//tool/release/notes:create",
"@typedb_dependencies//tool/sonarcloud:code-analysis",
"@typedb_dependencies//tool/unuseddeps:unused-deps",
"@rust_analyzer_toolchain_tools//lib/rustlib/src:rustc_srcs"
],
)
81 changes: 81 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

module(
name = "typeql",
version = "0.0.0",
compatibility_level = 1,
)

# ===========================================================
# Common
# ===========================================================

bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_pkg", version = "1.0.1")

# ===========================================================
# Languages & toolchains
# ===========================================================

# Rust
bazel_dep(name = "rules_rust", version = "0.56.0")
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(
edition = "2021",
versions = ["1.81.0"],
)
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")

# Python
bazel_dep(name = "rules_python", version = "1.0.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
is_default = True,
python_version = "3.11",
)

# Kotlin
bazel_dep(name = "rules_kotlin", version = "2.0.0")
register_toolchains("@rules_kotlin//kotlin/internal:default_toolchain")

# Java
bazel_dep(name = "rules_java", version = "8.6.2")

# ===========================================================
# Package managers
# ===========================================================

# Rust crates
crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate")
use_repo(crate, "crates")

# Maven
bazel_dep(name = "rules_jvm_external", version = "6.6")

# ===========================================================
# TypeDB repos
# ===========================================================

bazel_dep(name = "typedb_dependencies", version = "0.0.0")
git_override(
module_name = "typedb_dependencies",
remote = "https://github.com/typedb/dependencies",
commit = "a798dc0869d494bf0c7b033ee226df2efbef2830",
)

bazel_dep(name = "typedb_bazel_distribution", version = "0.0.0")
git_override(
module_name = "typedb_bazel_distribution",
remote = "https://github.com/typedb/bazel-distribution",
commit = "a6363bf0b6208cabcfbf8865601e9eb03641559f",
)

bazel_dep(name = "typedb_behaviour", version = "0.0.0")
git_override(
module_name = "typedb_behaviour",
remote = "https://github.com/typedb/typedb-behaviour",
commit = "dabc971c4b9b9e63196c45b748e5cb6037e71076",
)
1,450 changes: 1,450 additions & 0 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dependencies/typedb/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ def typedb_dependencies():
git_repository(
name = "typedb_dependencies",
remote = "https://github.com/typedb/typedb-dependencies",
commit = "f6e710f9857b1c30ad1764c1c41afce4e4e02981", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_dependencies
commit = "9d1b79eb4bff2cbc00b0a6a977dd659335d16653", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_dependencies
)

def typedb_behaviour():
git_repository(
name = "typedb_behaviour",
remote = "https://github.com/typedb/typedb-behaviour",
commit = "cf13e741844025a8a0210f25dc295ce966e26d16", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_behaviour
commit = "31b05b66f4ae29ef63841277886324fa57c3cd88", # sync-marker: do not remove this comment, this is used for sync-dependencies by @typedb_behaviour
)
4 changes: 4 additions & 0 deletions rust/tests/behaviour/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ rust_test(
data = [
"@typedb_behaviour//query/functions:features",
"@typedb_behaviour//query/language:features",
"@typedb_behaviour//query/language:define.feature",
],
env = {
"TYPEDB_BEHAVIOUR_FEATURE_MARKER": "$(rootpath @typedb_behaviour//query/language:define.feature)",
},
)

rust_test(
Expand Down
10 changes: 9 additions & 1 deletion rust/tests/behaviour/test_behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

use std::path::Path;

use steps::*;

#[tokio::test]
async fn test() {
assert!(TypeQLWorld::test("../typedb_behaviour/").await);
let marker = std::env::var("TYPEDB_BEHAVIOUR_FEATURE_MARKER")
.expect("TYPEDB_BEHAVIOUR_FEATURE_MARKER env var must be set by Bazel");
let behaviour_root = Path::new(&marker)
.parent().unwrap() // .../query/language/
.parent().unwrap() // .../query/
.parent().unwrap(); // .../typedb_behaviour+/
assert!(TypeQLWorld::test(behaviour_root).await);
}
Loading