From a613d878eb458b42eedc2ce5d323399929155724 Mon Sep 17 00:00:00 2001 From: "octo-sts[bot]" <157150467+octo-sts@users.noreply.github.com> Date: Wed, 28 Jan 2026 07:33:45 +0000 Subject: [PATCH] grafana-pyroscope-1.16: updated --- grafana-pyroscope-1.16.yaml | 116 ++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 grafana-pyroscope-1.16.yaml diff --git a/grafana-pyroscope-1.16.yaml b/grafana-pyroscope-1.16.yaml new file mode 100644 index 00000000000..200e1f0389a --- /dev/null +++ b/grafana-pyroscope-1.16.yaml @@ -0,0 +1,116 @@ +package: + name: grafana-pyroscope-1.16 + version: "1.16.2" + epoch: 0 # CVE-2025-61729 + description: Continuous Profiling Platform. Debug performance issues down to a single line of code + copyright: + - license: AGPL-3.0-only + +environment: + contents: + packages: + - busybox + - ca-certificates-bundle + - cairo-dev + - go + - node-gyp + - nodejs-20 + - pango-dev + - python3 + - yarn + +pipeline: + - uses: git-checkout + with: + expected-commit: 3f3d87b4629bccbd0b8a9fffa43a3aa03e4c20bf + repository: https://github.com/grafana/pyroscope + tag: v${{package.version}} + + - runs: | + # https://github.com/grafana/pyroscope/blob/3da96b8e449de267d4663e14207b8b272f9edc6d/.github/workflows/release.yml#L48C14-L48C33 + mkdir -p pyroscope/scripts/webpack + mkdir -p pyroscope/public/app + mkdir -p pyroscope/public/templates + cp yarn.lock package.json tsconfig.json ./pyroscope + cd pyroscope + yarn --frozen-lockfile + cp -r ../scripts/webpack ./scripts/ + cp -r ../public/app ./public/ + cp -r ../public/templates ./public/ + yarn build + cp -r ./public/build ../public/build + + - uses: go/build + with: + ldflags: | + -X github.com/grafana/pyroscope/pkg/util/build.Branch=main + -X github.com/grafana/pyroscope/pkg/util/build.Version=${{package.version}} + -X github.com/grafana/pyroscope/pkg/util/build.Revision=$(git rev-parse HEAD) + -X github.com/grafana/pyroscope/pkg/util/build.BuildDate=$(date -u -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}" "+%Y-%m-%dT%H:%M:%SZ") + output: pyroscope + tags: embedassets + packages: ./cmd/pyroscope + + - uses: go/build + with: + ldflags: | + -X github.com/grafana/pyroscope/pkg/util/build.Branch=main + -X github.com/grafana/pyroscope/pkg/util/build.Version=${{package.version}} + -X github.com/grafana/pyroscope/pkg/util/build.Revision=$(git rev-parse HEAD) + -X github.com/grafana/pyroscope/pkg/util/build.BuildDate=$(date -u -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}" "+%Y-%m-%dT%H:%M:%SZ") + output: profilecli + packages: ./cmd/profilecli + + - runs: | + mkdir -p "${{targets.contextdir}}"/etc/pyroscope + install -Dm755 ./cmd/pyroscope/pyroscope.yaml "${{targets.contextdir}}"/etc/pyroscope/config.yaml + +update: + enabled: true + github: + identifier: grafana/pyroscope + strip-prefix: v + tag-filter: v1.16. + +test: + environment: + contents: + packages: + - curl + pipeline: + - name: "Verify help and version command output" + runs: | + profilecli -h + profilecli --version | grep -i ${{package.version}} + pyroscope --help + pyroscope -version | grep -i ${{package.version}} + - name: "Start and verify Grafana pyroscope" + uses: test/daemon-check-output + with: + start: | + pyroscope -config.file=/etc/pyroscope/config.yaml + timeout: 30 + expected_output: | + Pyroscope started + server listening on addresses + post: | + # check for the ready endpoint - pyroscope needs ~15s after startup to become ready + wait-for-it -t 15 --strict localhost:4040 -- echo "Server is up" + + # wait for the service to become fully ready (ingester needs 15s warmup) + for i in $(seq 1 30); do + if curl -sf http://localhost:4040/ready; then + echo "Service is ready" + break + fi + echo "Waiting for ready... attempt $i" + sleep 1 + done + + # check for the metrics endpoint + curl -s http://localhost:4040/metrics | grep -i "pyroscopedb_block_opening_duration_bucket" + + PROFILECLI_URL=http://localhost:4040 profilecli query series --query='{service_name="pyroscope"}' | grep -i "pyroscope" + + # check for the UI endpoint + curl -L http://localhost:4040/ui | grep -i "Grafana Pyroscope"