Skip to content

Commit eeb5695

Browse files
committed
ci(mutation): record the templ pre-build as intentional drift
check-template-drift blocks on any deviation from templates/go-app. ci.yml, release.yml, codeql.yml and container.yml already carry a templ entry; mutation.yml is the one workflow that never got it, which is why gremlins was building three packages short. Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
1 parent c91999e commit eeb5695

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/template.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,17 @@ intentional-drift:
6363
pass. Other go-app consumers without templ-style codegen don't
6464
need this, hence intentional-drift rather than a template
6565
change."
66+
- path: .github/workflows/mutation.yml
67+
reason: "Same templ-extraction problem as ci.yml, release.yml, codeql.yml and
68+
container.yml — and the one workflow that never got the treatment. gremlins
69+
compiles the packages it mutates, so without `templ generate` it cannot
70+
build internal/web/templates, internal/web or cmd/ldap-manager. It reports
71+
them as `[build failed]`, drops them from the run, and publishes a score
72+
computed over the rest while the job stays green: the mutation score never
73+
covered the handler, auth and routing layer. Passes `pre-build-cmd`
74+
(introduced in netresearch/.github#314, which also makes `[build failed]`
75+
fail the job) with the same go.mod-pinned templ CLI invocation ci.yml uses.
76+
Other go-app consumers without templ-style codegen don't need this, hence
77+
intentional-drift rather than a template change."
6678
- path: .github/dependabot.yml
6779
reason: "Opt-in devcontainers ecosystem. The trimmed go-app template (netresearch/.github#166) declares only gomod/github-actions/docker; this repo has a .devcontainer so it self-manages dependabot.yml to keep devcontainers updates. Core blocks are kept in step with the template manually."

0 commit comments

Comments
 (0)