Skip to content

Conversation

@thampiotr
Copy link
Contributor

PR Description

Resolves build and lint failures when the slicelabels build tag is enabled. The labels.Labels type, when slicelabels is active, is a struct, making append() an invalid operation for label creation. Updated internal/service/labelstore/service_test.go to use labels.FromStrings() for correct label initialization.

Which issue(s) this PR fixes

Addresses CI lint failures observed in #4636.

Notes to the Reviewer

This fix ensures internal/service/labelstore/service_test.go correctly initializes labels.Labels when built with the slicelabels tag, resolving issues with go test -tags slicelabels ./....

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

Open in Cursor Open in Web

@cursor
Copy link

cursor bot commented Oct 22, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@thampiotr thampiotr marked this pull request as ready for review October 22, 2025 17:21
@thampiotr thampiotr requested a review from a team as a code owner October 22, 2025 17:21
@thampiotr thampiotr merged commit aa99979 into thampiotr/upgrade-prom Oct 22, 2025
35 of 37 checks passed
@thampiotr thampiotr deleted the cursor/fix-slicelabels-tests-with-timeouts-0a06 branch October 22, 2025 17:21
thampiotr added a commit that referenced this pull request Oct 23, 2025
* WIP: Upgrade Prometheus to v3.7.1 with compatibility fixes

- Updated Prometheus to v1.8.2-0.20251020143145-59659a23710a (staleness_disabling_v3.7.1 branch)
- Upgraded Loki to branch with otlptranslator v1.0.0 support and PreprocessExpr fixes
- Pinned k8s.io/api, k8s.io/apimachinery, k8s.io/client-go, and k8s.io/kube-openapi to v0.32.6 versions
  to maintain networking/v1alpha1 API compatibility and fix structured-merge-diff v4/v6 conflicts
- Fixed Mimir rulefmt.Validate to use model.UTF8Validation parameter
- Removed otlptranslator replace directive (now using v1.0.0)

Known issues requiring manual resolution:
1. yaml.v3 import path mismatch in k8s.io/kube-openapi (go.yaml.in vs gopkg.in)
2. OTel collector pprofile API breaking changes in debugexporter and ottl packages

* Fix errors

* fix pdata issue

* fix issue with k8s clients

* fix code issues from changes upstream

* fix semconv version

* fix validation schemes in tests

* fix more tests

* Fix slicelabels test and CI issues (#4639)

* change loki version

* add missing slicelabels

* fix memory corruption in loki wal

* more fixes

* fix converters

* Refactor: Use labels.FromStrings for label creation (#4650)

Co-authored-by: Cursor Agent <[email protected]>

* fix linter build tags

* clean up and fix lint

* Fix build tags in alloylint

* PR comments

* PR comments

---------

Co-authored-by: Cursor Agent <[email protected]>
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.

3 participants