-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathjustfile
More file actions
81 lines (63 loc) · 2.46 KB
/
justfile
File metadata and controls
81 lines (63 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
style skip_notebooks="false":
uv sync --frozen
SKIP_NOTEBOOKS={{skip_notebooks}} ./scripts/makestyle && ./scripts/checkstyle
check-notebooks:
./scripts/nb2doc/check.sh
convert-notebooks:
./scripts/nb2doc/convert.sh
manual-docs:
./scripts/render_docs.sh
api-docs:
./scripts/render_api_docs
pre-release:
./scripts/release_helper/pre_release.py
post-release-main version="":
./scripts/release_helper/post_release_main.py {{version}}
unit-tests extra_options="":
uv run pytest tests/unit {{extra_options}}
# just it test true "--durations=20"
it filter="" enterprise="true" extra_options="":
#!/usr/bin/env bash
set -e
if [ "{{enterprise}}" = "true" ]; then
ENV_DIR="scripts/test_envs/gds_plugin_enterprise"
EXTRA_FLAGS="--include-model-store-location --include-enterprise {{extra_options}}"
else
ENV_DIR="scripts/test_envs/gds_plugin_community"
EXTRA_FLAGS="{{extra_options}}"
fi
trap "cd $ENV_DIR && docker compose down" EXIT
cd $ENV_DIR && docker compose up -d
cd -
uv run pytest tests/integration $EXTRA_FLAGS --basetemp=tmp/ {{ if filter != "" { "-k '" + filter + "'" } else { "" } }}
# such as `just it-v2 wcc`
it-v2 filter="" extra_options="":
uv run pytest tests/integrationV2 --include-integration-v2 --basetemp=tmp/ {{extra_options}} {{ if filter != "" { "-k '" + filter + "'" } else { "" } }}
# runs the
session-v1-it:
#!/usr/bin/env bash
set -e
ENV_DIR="scripts/test_envs/gds_session"
trap "cd $ENV_DIR && docker compose down" EXIT
cd $ENV_DIR && docker compose up -d
cd -
sleep 5 # wait for the containers to be ready
NEO4J_URI=bolt://localhost:7688 \
NEO4J_USER=neo4j \
NEO4J_PASSWORD=password \
NEO4J_DB=neo4j \
NEO4J_AURA_DB_URI=bolt://localhost:7687 \
uv run pytest tests --include-cloud-architecture
update-session-image:
docker pull europe-west1-docker.pkg.dev/gds-aura-artefacts/gds/gds-session:latest
update-neo4j-image:
docker pull neo4j:enterprise
update-neo4j-aura-image:
# check https://console.cloud.google.com/artifacts/docker/neo4j-aura-image-artifacts/europe-west1/aura-dev/neo4j-enterprise?project=neo4j-aura-image-artifacts to pull a later image
docker pull europe-west1-docker.pkg.dev/neo4j-aura-image-artifacts/aura-dev/neo4j-enterprise:2026.03.1
update-test-images:
just update-session-image
just update-neo4j-image
just update-neo4j-aura-image
prs:
gh pr list --author "@me"