2026-07-17 08:36:39 +09:00
|
|
|
.PHONY: check-dependencies check-fixture-lib check-kind-sample check-durable check-coordination check-identity check-credentials check-admission check-attempt check-attempt-mutations check-recovery check-stream check-target check-result check-outbound check-http-source check-object-source check-hf-source check-fast check-full check-fast-host check-full-host rust-check web-install web-check web-test-fast web-test-full
|
2026-07-15 19:51:53 +09:00
|
|
|
|
2026-07-16 00:22:31 +09:00
|
|
|
CONTAINER_ENGINE ?= nerdctl
|
2026-07-15 19:51:53 +09:00
|
|
|
CONTAINER_RUN_FLAGS ?= --memory=16g --memory-swap=24g --cpus=4
|
|
|
|
|
PLAYWRIGHT_BROWSERS_PATH := $(CURDIR)/web/.cache/ms-playwright
|
|
|
|
|
export PLAYWRIGHT_BROWSERS_PATH
|
|
|
|
|
|
|
|
|
|
rust-check:
|
|
|
|
|
cargo fmt --all --check
|
|
|
|
|
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
|
|
|
cargo nextest run --workspace --all-features
|
|
|
|
|
cargo test --workspace --doc
|
|
|
|
|
|
|
|
|
|
web-install:
|
|
|
|
|
pnpm --dir web install --frozen-lockfile
|
|
|
|
|
|
|
|
|
|
web-check: web-install
|
|
|
|
|
pnpm --dir web check
|
|
|
|
|
pnpm --dir web lint
|
|
|
|
|
pnpm --dir web build
|
|
|
|
|
|
|
|
|
|
web-test-fast: web-install
|
|
|
|
|
pnpm --dir web exec playwright install chromium
|
|
|
|
|
pnpm --dir web test:unit
|
|
|
|
|
pnpm --dir web test:component
|
|
|
|
|
pnpm --dir web test:e2e
|
|
|
|
|
|
|
|
|
|
web-test-full: web-install
|
|
|
|
|
pnpm --dir web exec playwright install chromium firefox webkit
|
|
|
|
|
pnpm --dir web test:unit
|
|
|
|
|
pnpm --dir web test:component:full
|
|
|
|
|
pnpm --dir web test:e2e:full
|
|
|
|
|
|
2026-07-16 05:39:51 +09:00
|
|
|
check-fast: check-fixture-lib
|
2026-07-15 19:51:53 +09:00
|
|
|
$(CONTAINER_ENGINE) build --file Dockerfile.test --target rust-check --tag remora-rust-check:local .
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm $(CONTAINER_RUN_FLAGS) remora-rust-check:local
|
|
|
|
|
$(CONTAINER_ENGINE) build --file Dockerfile.test --target web-fast --tag remora-web-check:local .
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm $(CONTAINER_RUN_FLAGS) remora-web-check:local
|
|
|
|
|
|
2026-07-16 05:39:51 +09:00
|
|
|
check-full: check-fixture-lib
|
2026-07-15 19:51:53 +09:00
|
|
|
$(CONTAINER_ENGINE) build --file Dockerfile.test --target rust-check --tag remora-rust-check:local .
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm $(CONTAINER_RUN_FLAGS) remora-rust-check:local
|
|
|
|
|
$(CONTAINER_ENGINE) build --file Dockerfile.test --target web-full --tag remora-web-check:local .
|
|
|
|
|
$(CONTAINER_ENGINE) run --rm $(CONTAINER_RUN_FLAGS) remora-web-check:local
|
|
|
|
|
|
|
|
|
|
check-fast-host: rust-check web-check web-test-fast
|
|
|
|
|
|
|
|
|
|
check-full-host: rust-check web-check web-test-full
|
2026-07-16 00:22:02 +09:00
|
|
|
|
|
|
|
|
check-dependencies:
|
|
|
|
|
./tests/kind/run.sh
|
2026-07-16 02:36:58 +09:00
|
|
|
|
2026-07-16 05:39:51 +09:00
|
|
|
check-fixture-lib:
|
|
|
|
|
./tests/kind/lib-test.sh
|
|
|
|
|
|
2026-07-16 02:36:58 +09:00
|
|
|
check-kind-sample:
|
|
|
|
|
./tests/kind/run-sample-job.sh
|
2026-07-16 03:56:44 +09:00
|
|
|
|
|
|
|
|
check-durable:
|
|
|
|
|
./tests/kind/run-durable-job.sh
|
2026-07-16 14:30:58 +09:00
|
|
|
|
|
|
|
|
check-coordination:
|
|
|
|
|
./tests/kind/run-coordination-job.sh
|
2026-07-16 18:27:42 +09:00
|
|
|
|
|
|
|
|
check-identity:
|
|
|
|
|
./tests/kind/run-identity-job.sh
|
2026-07-17 00:18:02 +09:00
|
|
|
|
|
|
|
|
check-credentials:
|
|
|
|
|
./tests/kind/run-credentials-job.sh
|
2026-07-17 01:20:15 +09:00
|
|
|
|
2026-07-17 03:21:09 +09:00
|
|
|
check-admission:
|
|
|
|
|
./tests/kind/run-admission-job.sh
|
|
|
|
|
|
2026-07-17 07:07:43 +09:00
|
|
|
check-attempt:
|
|
|
|
|
./tests/kind/run-attempt-job.sh
|
|
|
|
|
|
2026-07-17 07:40:36 +09:00
|
|
|
check-attempt-mutations:
|
|
|
|
|
./tests/kind/run-attempt-mutations-job.sh
|
|
|
|
|
|
2026-07-17 08:36:39 +09:00
|
|
|
check-recovery:
|
|
|
|
|
./tests/kind/run-recovery-job.sh
|
|
|
|
|
|
2026-07-17 01:20:15 +09:00
|
|
|
check-stream:
|
|
|
|
|
cargo fmt --all --check
|
|
|
|
|
cargo clippy --package remora-stream --all-targets --all-features -- -D warnings
|
|
|
|
|
cargo nextest run --package remora-stream --all-features
|
|
|
|
|
cargo test --package remora-stream --doc
|
2026-07-17 02:54:27 +09:00
|
|
|
|
|
|
|
|
check-target:
|
|
|
|
|
./tests/kind/run-target-job.sh
|
2026-07-17 03:27:08 +09:00
|
|
|
|
|
|
|
|
check-result:
|
|
|
|
|
./tests/kind/run-result-job.sh
|
2026-07-17 04:02:04 +09:00
|
|
|
|
2026-07-17 03:22:15 +09:00
|
|
|
check-outbound:
|
|
|
|
|
./tests/kind/run-outbound-job.sh
|
2026-07-17 05:31:50 +09:00
|
|
|
|
|
|
|
|
check-http-source:
|
|
|
|
|
./tests/kind/run-http-source-job.sh
|
2026-07-17 05:57:27 +09:00
|
|
|
|
|
|
|
|
check-object-source:
|
|
|
|
|
./tests/kind/run-object-source-job.sh
|
2026-07-17 06:32:48 +09:00
|
|
|
|
|
|
|
|
check-hf-source:
|
|
|
|
|
./tests/kind/run-hf-source-job.sh
|