ci: seal promtool from Prometheus 2.50.1 over the current runner image, so infra's alert-rule tests run (noel/infra#2595) #36
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/promtool-2501"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part (1) of noel/infra#2595. infra's 11 alert-rule tests (
tools/monitoring/tests/test-*-rules) look promtool up withcommand -v promtool. No runner image ships it, so none of them runs in CI. cw-ci wires them into infra's contract checks once this image is adopted.What it adds: an additive leaf over v11 (
act-node-docker@sha256:68de3cca…, the supplychain 47a53e3 image). It installs only promtool from the official Prometheus 2.50.1 release, the version the system-hz-eu-1 monitoring stack runs (quay.io/prometheus/prometheus:v2.50.1), at/usr/local/bin/promtool, with LICENSE and NOTICE under/usr/local/share/licenses/promtool-2.50.1/. The Prometheus server,prometheus.ymland the consoles from the archive aren't installed.Inputs (
promtool-inputs.json): one archive,prometheus-2.50.1.linux-amd64.tar.gz, sha256936f3777…bd05b, as the release'ssha256sums.txtlists it. That file's own sha256 (d31b01c6…34ac) is recorded. Prometheus publishes no keyless signature, so the checksum list is the trust anchor, and the README says so. The binary, LICENSE and NOTICE are pinned too.Build: one
RUN,--network=none, tmpfs/tmp, so one layer. It asserts the parent's Node.js, jq, Kyverno placement and supplychain selection are unchanged, and that noprometheuslands on PATH.Installed verifier (16 commands, UID 1000, read-only root, no network or credentials):
--version;promtool test rulesthat passes a matching alert test and fails a mismatched one;Checked locally:
sha256sums.txt;promtool, version 2.50.1 (… revision 8c9b0285…)inside the v11 image;The image pipeline's build and installed verification run after merge, then promotion and the infra adoption, at the next quiet moment.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.