Files
clusterlogs/Makefile
T
fernandoandClaude Sonnet 5 f178ecdcc7
CI / validate-and-build (push) Successful in 7s
CI / runme (push) Failing after 7s
fix(ci): forzar entorno no interactivo y agregar diagnóstico a runme-ci
El job runme fallaba en el runner real con "could not execute command:
aborted" justo al iniciar "runme run", algo que no se pudo reproducir
localmente (incluso forzando stdin/stdout no interactivos) — probable
diferencia de cómo act_runner en modo nativo/host expone el proceso
frente a una sesión interactiva. Se agrega CI=true y TERM=dumb al job
(convención estándar que muchas TUIs respetan) y --log/--log-file a
runme-ci para que, si vuelve a fallar, el paso de diagnóstico imprima
el log real en vez de repetir el ciclo de adivinar a ciegas.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-27 01:40:21 -06:00

60 lines
1.4 KiB
Makefile

SHELL := /usr/bin/env bash
ZOLA ?= zola
BINARY ?= bin/clusterlog
.PHONY: all build theme templates sync sync-check validate validate-local site serve smoke ci clean runme-install runme-list runme-check runme-ci
all: build
# "build" ya no compila (esta instancia no tiene código Go): descarga el
# binario fijado en .clusterlog-version desde fenandosr/clusterlog,
# verificando su checksum. Se mantiene el nombre "build" para no romper
# RUNBOOK.md ni el hábito de make build/make sync-check de siempre.
build:
./scripts/fetch-engine.sh bin $(BINARY)
theme:
./scripts/bootstrap-theme.sh
templates:
./scripts/fetch-engine.sh templates templates
sync: build
./$(BINARY) --root . sync
sync-check: build
./$(BINARY) --root . sync --check
validate: build
./$(BINARY) --root . validate --require-zola
validate-local: build
./$(BINARY) --root . validate --skip-zola
site: theme templates sync validate
$(ZOLA) build
serve: theme templates sync
$(ZOLA) serve --interface 127.0.0.1
smoke: build
./scripts/smoke.sh
ci: theme templates build sync sync-check validate
$(ZOLA) build
clean:
rm -rf bin public themes/zola.386 templates
runme-install:
./scripts/runme-install.sh
runme-list:
runme ls --filename RUNBOOK.md
runme-check: build
./scripts/runme-check.sh
runme-ci: build
runme --log --log-file /tmp/runme-ci.log run --filename RUNBOOK.md --tag ci-safe --all --skip-prompts