diff --git a/README.md b/README.md index e69de29..5c63bb0 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,26 @@ +# ci-health + +This repository exists to be cloned. That is all it does. + +`home-lab-dell` is private, so proving that Gitea can still hand over git +objects would need a stored credential — a poor trade for testing the +service that holds every other credential. This one is public and holds +nothing, so an anonymous clone proves the path with nothing to leak. + +Two contracts in `home-lab-dell/tests/contracts.yaml` use it: + +| probe | proves | +|---|---| +| `GET /vmmilev/ci-health/info/refs?service=git-upload-pack` | the git http backend is mounted and the repo reads anonymously | +| `git clone` + read this file | discovery, want/have negotiation, a pack built on the fly, a checkout that arrives | + +**Do not delete this repository, and do not make it private.** It looks like +an empty leftover and it is a test fixture. The deploy on the NAS is +`git fetch && git reset --hard origin/main`, so if object transfer breaks, +every Gitea API check stays green while the house quietly stops being +deployable. This is the only thing that notices. + +The clone contract reads this file and asserts the string `ci-health` is in +it — an empty repository clones perfectly happily and exits 0, so the text +is what distinguishes "it worked" from "nothing came back". +