Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
64 lines (54 loc) · 2.4 KB
/
Copy pathjustfile
File metadata and controls
64 lines (54 loc) · 2.4 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
# hoglake — top-level recipes composing the per-component justfiles.
# `just server test`, `just pyhoglake unit`, `just test-all`, ...
mod server
mod pyhoglake
mod webui
mod hedgerow
mod bench
mod millrace
default:
@just --list
# Server and pyhoglake tests. Also run `just live-python` and
# `just test-hoglite` for required live checks.
test-all:
just server test
just pyhoglake test
# CI's hoglite-live (a required check) locally: `just server test` skips
# these classes for want of a Linux hoglited, so this runs them in a Linux
# container on the newest tested build (ci/hoglite-live-local.sh). Needs
# docker and an authenticated gh. Optional Gradle --tests filter, e.g.
# `just test-hoglite 'com.posthog.hoglake.hoglite.HoglitePinned*'`; it must
# match only hoglite *IntegrationTest classes, the ones the check reads.
# The hoglite live tests in a Linux container; fails on skips.
test-hoglite filter='com.posthog.hoglake.hoglite.*IntegrationTest':
ci/hoglite-live-local.sh '{{filter}}'
# Style gates: ktlint (server) + ruff check/format (pyhoglake, hedgerow,
# millrace), every tool pinned. bench is not wired in yet — it passes
# `ruff check` but carries a formatting backlog; see AGENT.md open items.
lint-all:
just server lint
just pyhoglake lint
just hedgerow lint
just millrace lint
# Bring up the dev stack and the server (foreground).
dev:
just server compose-up
just server run
# The whole thing in containers — Postgres + MinIO + hoglake-server +
# hoglake-webui, building the images from the working tree as needed.
# Webui on http://localhost:${HOGLAKE_WEBUI_PORT:-5173} (proxies /v1 to
# the server on :8080, HOGLAKE_SERVER_PORT to override). The compaction
# loop is enabled (60s; HOGLAKE_COMPACTION_INTERVAL_MS=0 just up to
# disable). State persists in named volumes across up/down.
up:
docker compose -f server/docker-compose.yml --profile full up -d --build
# Tear the whole stack down (Postgres/MinIO data volumes survive).
down:
docker compose -f server/docker-compose.yml --profile full down
# Tear down AND wipe all state (drops the named volumes).
down-volumes:
docker compose -f server/docker-compose.yml --profile full down -v
# Required live client tests, with an isolated stack built from this checkout.
# Logs and JUnit reports go to .artifacts/live-python/. No skipped tests allowed.
live-python:
cd server && flox activate -- bash ../ci/live-python.sh