From fb46ffeadb2b93e9544e88d799ded21a02bb1fdc Mon Sep 17 00:00:00 2001 From: oqyude Date: Wed, 14 Oct 2026 17:53:32 +0300 Subject: [PATCH] ci(gitea): add smoke-test workflow for the ci-sapphira runner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A two-trigger workflow — manual (workflow_dispatch) and on every push to dev — that runs a single shell step on 'runs-on: native' to verify the sapphira runner is healthy: hostname/whoami/pwd plus probes for the common ZeroQ-workflow tools (nix, git, python3) and the act_runner environment variables (RUNNER_NAME, RUNNER_TEMP). Useful as a quick health check after any change to modules/server/ gitea-runner.nix, secrets/gitea-runner-registration.env, or after a NixOS upgrade. --- .gitea/workflows/test-runner.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/test-runner.yml diff --git a/.gitea/workflows/test-runner.yml b/.gitea/workflows/test-runner.yml new file mode 100644 index 0000000..eaac4fe --- /dev/null +++ b/.gitea/workflows/test-runner.yml @@ -0,0 +1,29 @@ +name: test-runner + +# Manual trigger via Gitea UI; auto-fires on every push to dev so a fresh +# commit to the runner config itself can verify the pipeline is healthy. +on: + workflow_dispatch: + push: + branches: [dev] + +jobs: + smoke: + # `native` matches the label our sapphira runner (modules/server/gitea-runner.nix) + # advertises via `labels = [ "native:host" ];` — `native:host` parses as + # label "native" with host-executor schema in upstream act_runner. + runs-on: native + steps: + - name: hello + run: | + echo "Runner reports OK from $(hostname)" + echo "uid=$(id -un) gid=$(id -gn)" + pwd + echo "--- tools probe ---" + command -v nix && nix --version + command -v git && git --version + command -v python3 && python3 --version + echo "--- runner self-declared labels ---" + # sanity printout, fails the step if anything obvious is missing. + test -n "$RUNNER_NAME" && echo "RUNNER_NAME=$RUNNER_NAME" + test -n "$RUNNER_TEMP" && echo "RUNNER_TEMP=$RUNNER_TEMP"