Skip to content

Commit

Permalink
grafana-mimir add subpkgs metaconvert, mimirtool, query-tee (#39322)
Browse files Browse the repository at this point in the history
<!---
update grafana-mimir to build additional subpkgs like metaconvert,
mimirtool, query-tee

<!--
Issue [#39230](#39230)
 -->

Fixes:

Related: [#39230](#39230)

### Pre-review Checklist

<!--
This checklist is mostly useful as a reminder of small things that can
easily be
forgotten – it is meant as a helpful tool rather than hoops to jump
through.

At the moment of this PR you have the most information on what all the
change
will affect, so please take the time to jot it down.

Put an `x` in all the items that apply, make notes next to any that
haven't been
addressed, and remove any items that are not relevant to this PR.

-->

#### For new package PRs only
<!-- remove if unrelated -->
- [ ] 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
<!-- remove if unrelated -->
- [ ] 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
<!-- remove if unrelated -->
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
<!-- remove if unrelated -->
- [ ] The security fix is recorded in the
[advisories](https://github.com/wolfi-dev/advisories) repo

#### For version bump PRs
<!-- remove if unrelated -->
- [ ] The `epoch` field is reset to 0

#### For PRs that add patches
<!-- remove if unrelated -->
- [ ] Patch source is documented
  • Loading branch information
nghiand16 authored Jan 12, 2025
1 parent 854e927 commit e162b53
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions grafana-mimir.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -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}}

0 comments on commit e162b53

Please sign in to comment.