added rust api to control DESI data distribution; updated to utilize bun for renovate
CI / Unit tests (pull_request) Failing after 8m55s

This commit is contained in:
2026-08-31 13:17:05 -06:00
parent 32ab1213fb
commit 5148d7e54f
19 changed files with 978 additions and 16 deletions
+23 -2
View File
@@ -4,12 +4,14 @@
# (infra/). Intended to be called directly by Gitea Actions CI.
ODIN ?= odin
CARGO ?= cargo
BIN ?= bin
BINARY := $(BIN)/desi_explorer
ODIN_FLAGS := -collection:lib=lib/local
WASM_DEFINE := RAYLIB_WASM_LIB=env.o
.PHONY: help setup run build build-debug build-web test clean fmt \
api-run api-build api-test api-check api-fmt \
infra-preview infra-up infra-down infra-refresh infra-static \
renovate-validate
@@ -41,17 +43,36 @@ build-debug: ## Debug build -> bin/desi_explorer
build-web: ## WebAssembly build -> build/web (needs emscripten)
@scripts/build_web.sh
test: ## Run tests (Odin src/ + Go infra/)
test: ## Run tests (Odin src/ + Go infra/ + Rust api/)
@mkdir -p lib/local
$(ODIN) test src $(ODIN_FLAGS)
@cd infra && go test ./...
@cd api && $(CARGO) test
clean: ## Remove build artifacts
rm -rf $(BIN) build
@cd api && $(CARGO) clean
fmt: ## Format Odin sources with odinfmt
odinfmt src
## ---- API (Rust + axum) ---------------------------------------------------
api-run: ## Run the API server (dev)
@cd api && $(CARGO) run
api-build: ## Release build the API -> api/target/release/
@cd api && $(CARGO) build --release
api-test: ## Run API unit/integration tests
@cd api && $(CARGO) test
api-check: ## Typecheck + format-check + lint the API
@cd api && $(CARGO) fmt --all --check && $(CARGO) clippy --all-targets -- -D warnings
api-fmt: ## Format Rust sources with rustfmt
@cd api && $(CARGO) fmt
## ---- Infrastructure (Go + Pulumi) ----------------------------------------
infra-preview: ## Preview infra changes against the cluster
@@ -72,4 +93,4 @@ infra-static: ## Typecheck + vet the Go infra without Pulumi
## ---- Tooling -------------------------------------------------------------
renovate-validate: ## Validate renovate.json
npx --yes renovate-config-validator
bunx --package renovate renovate-config-validator renovate.json --strict