From 62bc15a979d2cc06c30b69d1a99c6f39777b377c Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Tue, 17 Mar 2026 19:49:21 -0400 Subject: [PATCH 01/10] refactor: rename `lint.yml` to `ci.yml` The `lint.yml` workflow contains more than just linting jobs. Renaming it to `ci.yml`, which is more general, and common practice. --- .gitea/workflows/{lint.yml => ci.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .gitea/workflows/{lint.yml => ci.yml} (100%) diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/ci.yml similarity index 100% rename from .gitea/workflows/lint.yml rename to .gitea/workflows/ci.yml -- 2.49.1 From 9726670dea4faf041731a7de1e971dc79b79903b Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Tue, 17 Mar 2026 19:51:19 -0400 Subject: [PATCH 02/10] feat: only one CI job at a time per PR This prevents the Gitea runner from getting clogged up with stale CI checks. --- .gitea/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f40f322..f5f6cec 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,5 +1,9 @@ name: CI +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: push: branches: [main] -- 2.49.1 From a9b157d4b256fcc50830b7c70e6be13c43e6c2ca Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Tue, 17 Mar 2026 19:54:02 -0400 Subject: [PATCH 03/10] test: does the previous CI check get canceled? --- .gitea/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f5f6cec..d5f20d0 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: CI TEST concurrency: group: ${{ github.workflow }}-${{ github.ref }} -- 2.49.1 From f31100b23ab4bfeb4f98d50ec7265a06b172d64e Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Tue, 17 Mar 2026 20:03:23 -0400 Subject: [PATCH 04/10] test: try again, doubled the job capacity --- .gitea/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d5f20d0..cec415c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI TEST +name: CI TEST2 concurrency: group: ${{ github.workflow }}-${{ github.ref }} -- 2.49.1 From 7148704dd3953323c439579de4d50a5db2c4def5 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Tue, 17 Mar 2026 20:04:05 -0400 Subject: [PATCH 05/10] test: will this cancel? --- .gitea/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index cec415c..ed6c945 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI TEST2 +name: CI TEST3 concurrency: group: ${{ github.workflow }}-${{ github.ref }} -- 2.49.1 From 2faa8feedc2db3dc4baf310e30f52d878241abf4 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Tue, 17 Mar 2026 20:09:53 -0400 Subject: [PATCH 06/10] revert: remove concurrency from gha The `cancel-in-progress` option for concurrency is not really supported by Gitea, so the whole point of the block no longer makes any sense. --- .gitea/workflows/ci.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ed6c945..7b6c804 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,9 +1,5 @@ name: CI TEST3 -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - on: push: branches: [main] -- 2.49.1 From 6a9505316a59383777b98020856221f946a6405e Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Tue, 17 Mar 2026 20:17:30 -0400 Subject: [PATCH 07/10] revert: keep workflow title as "CI" --- .gitea/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7b6c804..f40f322 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI TEST3 +name: CI on: push: -- 2.49.1 From 334e59483432cd51b37518a6b7a6067f2f84e0aa Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Tue, 17 Mar 2026 20:26:48 -0400 Subject: [PATCH 08/10] style: add human-readable job names --- .gitea/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f40f322..bc87c0d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -7,6 +7,7 @@ on: jobs: lint: + name: Golang Lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -20,6 +21,7 @@ jobs: version: latest unit-test: + name: Unit Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -32,6 +34,7 @@ jobs: run: go test ./... -cover -v fuzz-test: + name: Fuzz Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -47,6 +50,7 @@ jobs: done mutation-test: + name: Mutation Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 -- 2.49.1 From b23f7226e33824aaba5ef95d19a5105d52442617 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Tue, 17 Mar 2026 20:36:08 -0400 Subject: [PATCH 09/10] feat: add `go mod tidy` check job --- .gitea/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bc87c0d..d5d0a9d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -16,6 +16,9 @@ jobs: with: go-version-file: go.mod + - name: Check go mod tidy + run: go mod tidy && git diff --exit-code go.mod go.sum + - uses: golangci/golangci-lint-action@v7 with: version: latest -- 2.49.1 From 65de0bd6afa7731f130b065754ece8263d983e42 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Tue, 17 Mar 2026 20:38:23 -0400 Subject: [PATCH 10/10] fix: tidy up `go.sum` The `go mod tidy` job caught something! --- go.sum | 1 + 1 file changed, 1 insertion(+) diff --git a/go.sum b/go.sum index cc8b3f4..c4c1710 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,7 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -- 2.49.1