From 80db33945d1aa1882e1aea95ae34008be976de25 Mon Sep 17 00:00:00 2001 From: Jan Novak Date: Thu, 7 May 2026 14:01:46 +0200 Subject: [PATCH] chore: add make go-sync-debug target Wraps `LOG_LEVEL=DEBUG ./bin/fuj sync -dry-run -print-fio-table -days N` behind a single make target. Default DAYS=30, override with `make go-sync-debug DAYS=90`. Builds the Go binary first via go-build. Co-Authored-By: Claude Opus 4.7 --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4c521d4..1f1efe2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help fees match web web-py web-debug web-go go-build go-test go-test-all go-parity go-run go-lint capture-fixtures image run sync sync-2026 test test-v docs +.PHONY: help fees match web web-py web-debug web-go go-build go-test go-test-all go-parity go-run go-sync-debug go-lint capture-fixtures image run sync sync-2026 test test-v docs export PYTHONPATH := scripts:$(PYTHONPATH) VENV := .venv @@ -27,6 +27,7 @@ help: @echo " make go-parity - Run Go parity tests (requires -tags=parity fixture corpus)" @echo " make go-test-all - Run both unit and parity tests" @echo " make go-lint - Run golangci-lint on Go code" + @echo " make go-sync-debug [DAYS=N] - Dry-run Go sync with Fio debug logs and txn table (default DAYS=30)" @echo " make capture-fixtures - Regenerate parity fixture corpus from live Python" @echo " make image - Build Python OCI container image" @echo " make run - Run the built Python Docker image locally" @@ -91,6 +92,10 @@ capture-fixtures: $(PYTHON) go-run: go-build ./$(GO_BIN) $(ARGS) +DAYS ?= 30 +go-sync-debug: go-build + LOG_LEVEL=DEBUG ./$(GO_BIN) sync -dry-run -print-fio-table -days $(DAYS) + go-lint: cd $(GO_SRC) && golangci-lint run ./...