From e162b538792388c064b20925904345ef0db3437a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=C3=ACnh=20Ngh=C4=A9a?= <64945160+nghiand16@users.noreply.github.com> Date: Sun, 12 Jan 2025 14:41:49 +0700 Subject: [PATCH] grafana-mimir add subpkgs metaconvert, mimirtool, query-tee (#39322) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: Related: [#39230](https://github.com/wolfi-dev/os/issues/39230) ### Pre-review Checklist #### For new package PRs only - [ ] This PR is marked as fixing a pre-existing package request bug - [ ] Alternatively, the PR is marked as related to a pre-existing package request bug, such as a dependency - [x] REQUIRED - The package is available under an OSI-approved or FSF-approved license - [x] REQUIRED - The version of the package is still receiving security updates - [ ] This PR links to the upstream project's support policy (e.g. `endoflife.date`) #### For new version streams - [ ] The upstream project actually supports multiple concurrent versions. - [ ] Any subpackages include the version string in their package name (e.g. `name: ${{package.name}}-compat`) - [ ] The package (and subpackages) `provides:` logical unversioned forms of the package (e.g. `nodejs`, `nodejs-lts`) - [ ] If non-streamed package names no longer built, open PR to withdraw them (see [WITHDRAWING PACKAGES](https://github.com/wolfi-dev/os/blob/main/WITHDRAWING_PACKAGES.md)) #### For package updates (renames) in the base images When updating packages part of base images (i.e. cgr.dev/chainguard/wolfi-base or ghcr.io/wolfi-dev/sdk) - [ ] REQUIRED cgr.dev/chainguard/wolfi-base and ghcr.io/wolfi-dev/sdk images successfully build - [ ] REQUIRED cgr.dev/chainguard/wolfi-base and ghcr.io/wolfi-dev/sdk contain no obsolete (no longer built) packages - [ ] Upon launch, does `apk upgrade --latest` successfully upgrades packages or performs no actions #### For security-related PRs - [ ] The security fix is recorded in the [advisories](https://github.com/wolfi-dev/advisories) repo #### For version bump PRs - [ ] The `epoch` field is reset to 0 #### For PRs that add patches - [ ] Patch source is documented --- grafana-mimir.yaml | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/grafana-mimir.yaml b/grafana-mimir.yaml index 4b019f04f9e..ea2eb80d269 100644 --- a/grafana-mimir.yaml +++ b/grafana-mimir.yaml @@ -1,11 +1,18 @@ package: name: grafana-mimir version: 2.15.0 - epoch: 0 + epoch: 1 description: Grafana Mimir provides horizontally scalable, highly available, multi-tenant, long-term storage for Prometheus. copyright: - license: AGPL-3.0-or-later +data: + - name: grafana-mimir-subpackages + items: + metaconvert: metaconvert --help + mimirtool: mimirtool version | grep ${{package.version}} + query-tee: query-tee --help + environment: contents: packages: @@ -28,8 +35,30 @@ pipeline: with: modroot: . packages: ./cmd/mimir + ldflags: | + -X github.com/grafana/mimir/pkg/util/version.Branch=$(git rev-parse --abbrev-ref HEAD) + -X github.com/grafana/mimir/pkg/util/version.Revision=$(git rev-parse --short HEAD) + -X github.com/grafana/mimir/pkg/util/version.Version=${{package.version}} output: grafana-mimir +subpackages: + - range: grafana-mimir-subpackages + name: ${{package.name}}-${{range.key}} + pipeline: + - uses: go/build + with: + modroot: . + packages: ./cmd/${{range.key}} + ldflags: | + -X github.com/grafana/mimir/pkg/util/version.Branch=$(git rev-parse --abbrev-ref HEAD) + -X github.com/grafana/mimir/pkg/util/version.Revision=$(git rev-parse --short HEAD) + -X github.com/grafana/mimir/pkg/util/version.Version=${{package.version}} + output: ${{range.key}} + test: + pipeline: + - runs: |- + ${{range.value}} + update: enabled: true ignore-regex-patterns: @@ -42,6 +71,6 @@ update: test: pipeline: - - runs: | - grafana-mimir -version - grafana-mimir --version + - runs: |- + grafana-mimir -version | grep ${{package.version}} + grafana-mimir --version | grep ${{package.version}}