Verified Commit 49e003d8 authored by Michael Usachenko's avatar Michael Usachenko Committed by GitLab
Browse files

feat(testing): sqlparser-based test assertions in compiler integration tests

parent c9d9287b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4,9 +4,9 @@ GitLab Knowledge Graph (Orbit). Rust service that builds a property graph from G

## Quick start

All tasks use mise. `mise build`, `mise test:fast`, `mise lint:code`, `mise server:start`, `mise server:dispatch`.
All tasks use mise. `mise build`, `mise test:fast`, `mise test:compiler`, `mise lint:code`, `mise server:start`, `mise server:dispatch`.
Fix linting issues: `mise lint:code:fix`. Validate docs: `mise lint:docs`. Validate ontology: `mise ontology:validate`.
Integration tests need Docker: `mise test:integration`.
Integration tests need Docker: `mise test:integration`. Correctness subset: `mise test:integration:server`.

**Worktrees:** after creating a git worktree, run `mise trust` and `git config core.hooksPath "$(git rev-parse --git-common-dir)/hooks"` so that lefthook and mise work correctly.

+2 −2
Original line number Diff line number Diff line
@@ -4,9 +4,9 @@ GitLab Knowledge Graph (Orbit). Rust service that builds a property graph from G

## Quick start

All tasks use mise. `mise build`, `mise test:fast`, `mise lint:code`, `mise server:start`, `mise server:dispatch`.
All tasks use mise. `mise build`, `mise test:fast`, `mise test:compiler`, `mise lint:code`, `mise server:start`, `mise server:dispatch`.
Fix linting issues: `mise lint:code:fix`. Validate docs: `mise lint:docs`. Validate ontology: `mise ontology:validate`.
Integration tests need Docker: `mise test:integration`.
Integration tests need Docker: `mise test:integration`. Correctness subset: `mise test:integration:server`.

**Worktrees:** after creating a git worktree, run `mise trust` and `git config core.hooksPath "$(git rev-parse --git-common-dir)/hooks"` so that lefthook and mise work correctly.

+1 −0
Original line number Diff line number Diff line
@@ -3498,6 +3498,7 @@ dependencies = [
 "serde_json",
 "sha2",
 "siphon-proto",
 "sqlparser",
 "tar",
 "tempfile",
 "testcontainers",
+1 −0
Original line number Diff line number Diff line
@@ -53,3 +53,4 @@ labkit = { workspace = true, features = ["http"] }
opentelemetry = { workspace = true }
opentelemetry_sdk = { version = "0.31", features = ["metrics", "rt-tokio", "testing"] }
zstd = "0.13.3"
sqlparser.workspace = true
+4 −2
Original line number Diff line number Diff line
@@ -36,11 +36,13 @@ Tests are split across two binaries:

## Running

Requires Docker via Colima. All tasks are defined in `mise.toml` at the repo root:
All tasks are defined in `mise.toml` at the repo root:

```shell
mise test:compiler                                  # compiler tests (no Docker)
mise colima:start                                   # start Docker runtime (12 GB RAM)
mise test:integration                               # run all integration tests
mise test:integration                               # run all server integration tests
mise test:integration:server                        # correctness, hydration, redaction, graph formatter
mise colima:stop                                    # stop when done
```

Loading