Skip to content

ci: add promtail config validation (#193)#504

Merged
mvillmow merged 1 commit into
mainfrom
193-promtail-config-validation
May 13, 2026
Merged

ci: add promtail config validation (#193)#504
mvillmow merged 1 commit into
mainfrom
193-promtail-config-validation

Conversation

@mvillmow
Copy link
Copy Markdown
Contributor

Summary

  • Adds a CI step in the validate job that runs promtail -check-syntax against configs/promtail.yml using grafana/promtail:3.1.2 (the version pinned in docker-compose.yml).
  • Adds a just validate-promtail recipe and chains it into just validate so local runs catch syntax regressions before push.
  • Closes Add promtail config validation to CI #193

Test plan

  • docker run --rm -v "$PWD/configs/promtail.yml:/etc/promtail/promtail.yml:ro" grafana/promtail:3.1.2 -config.file=/etc/promtail/promtail.yml -config.expand-env=true -check-syntax -> "Valid config file! No syntax issues found"
  • pre-commit run --files .github/workflows/ci.yml justfile passes (yamllint, no-silent-failure guard, continue-on-error guard)
  • CI passes on the PR

Generated with Claude Code

@mvillmow mvillmow enabled auto-merge (squash) May 13, 2026 00:20
Adds a CI step that runs `promtail -check-syntax` against
configs/promtail.yml using the same image version pinned in
docker-compose.yml. Mirrors the validation as a `just validate-promtail`
recipe and chains it into the existing `just validate` target so local
runs catch syntax regressions before push.

Closes #193

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mvillmow mvillmow force-pushed the 193-promtail-config-validation branch from c40c80d to 54bdcba Compare May 13, 2026 14:12
@mvillmow mvillmow merged commit 1270c14 into main May 13, 2026
20 checks passed
@mvillmow mvillmow deleted the 193-promtail-config-validation branch May 13, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add promtail config validation to CI

1 participant