Skip to content

Navigation Menu

Sign in
Sign up

Refresh the Thanos and promql-engine pins and document why they are pinned to main - #7788

Merged
CharlieTLe merged 3 commits into
cortexproject:master from
CharlieTLe:release-1.22-pr-b-dependency-pins
Sep 4, 2026
Merged

Refresh the Thanos and promql-engine pins and document why they are pinned to main #7788
CharlieTLe merged 3 commits into
cortexproject:master from
CharlieTLe:release-1.22-pr-b-dependency-pins

Conversation

@CharlieTLe

@CharlieTLe CharlieTLe commented Aug 20, 2026

Copy link
Copy Markdown
Member

Groundwork for v1.22.0. Refresh both pins once here, ahead of the release-1.22 cut, and
record in go.mod what each pin is needed for so the next shepherd does not have to
re-derive it.

thanos-io/thanos v0.42.1-0.20260727122508-92397939e4cc -> v0.42.5-0.20260817064418-8908023d563b
thanos-io/promql-engine v0.0.0-20260729073658-f8bd3f940687 -> v0.0.0-20260817205454-68fb2c2c5d9b

Why these stay on pseudo-versions

Re-pinning to released tags is not possible, and I checked rather than assumed:

  • promql-engine has zero tags. git ls-remote --tags returns nothing. There is no
    tag to pin to, now or ever. A pseudo-version is the only option.
  • The newest Thanos tag is v0.42.4, and it is not on main. The 0.42.x patches
    live on a release branch that was never merged back. Downgrading would revert the main
    commits that -querier.selector-batch-size (expose SelectorBatchSize config for Thanos engine #7763 ) and pkg/distributed_execution
    compile against.
  • Shipping on Thanos pseudo-versions is already the norm here — v1.19.0, v1.20.x and
    v1.21.x all did.

One incidental improvement: the old pin's base (v0.42.1-0) sorted below v0.42.4; the
new one (v0.42.5-0) sorts above it, because main now contains v0.42.4 as an ancestor.

After this lands

No dependency bumps go to release-1.22 after rc.0 except security fixes. If Thanos cuts
v0.43.0 before 09-07 it is worth evaluating, but it should not gate rc.0.

Notes for the reviewer

  • The #7740 changelog entry ("Upgrade Thanos and promql-engine to latest") already covers
    this refresh; I will append this PR's number to it rather than adding a new entry.
  • Conflicts with Curate the 1.22.0 changelog #7787 on CHANGELOG.md if that merges first — trivial to rebase.

Verification

make mod-check clean, go build ./... clean, and go test ./... shows no new failures.

@dosubot dosubot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code sync-vendor labels Aug 20, 2026
CharlieTLe force-pushed the release-1.22-pr-b-dependency-pins branch from 9c22591 to d5ffaab Compare August 20, 2026 01:20
CharlieTLe requested review from a team and SungJin1212 and removed request for a team August 20, 2026 19:08
...inned to main
Both dependencies track main rather than a tag. Refresh them once here, ahead of the
release-1.22 cut, and record in go.mod what each pin is actually needed for so the next
shepherd does not have to re-derive it:
- promql-engine has never cut a tag, so a pseudo-version is the only option.
- The newest Thanos tag (v0.42.4) sits on a release branch that was never merged back to
 main, so it is behind what promql-engine needs to compile against.
After this lands, no dependency bumps go to release-1.22 except security fixes.
Signed-off-by: Charlie Le <charlie_le@apple.com>
CharlieTLe force-pushed the release-1.22-pr-b-dependency-pins branch from d5ffaab to f34dfb1 Compare September 1, 2026 22:12
CharlieTLe requested a review from a team as a code owner September 1, 2026 22:12
Comment thread go.mod Outdated
CharlieTLe and others added 2 commits September 3, 2026 10:57
Co-authored-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: Charlie Le <charlie_le@apple.com>
go mod vendor reindents the comment block above the thanos require line, which made the lint job's mod-check fail. Run go mod edit -fmt so the file matches canonical formatting.
Signed-off-by: Charlie Le <charlie_le@apple.com>
CharlieTLe merged commit 959ab62 into cortexproject:master Sep 4, 2026
40 checks passed
CharlieTLe added a commit to CharlieTLe/cortex that referenced this pull request Sep 11, 2026
Get the unreleased section into the shape RELEASE.md asks for before the
release-1.22 cut, so operators reading the notes see the changes that affect them:
- Delete the stale duplicate of cortexproject#7375, which already shipped in 1.21.0 as cortexproject#7370.
- Re-sort into CHANGE -> FEATURE -> ENHANCEMENT -> BUGFIX.
- Correct the gRPC entry: the bump landed at v1.82.1, not v1.79.3.
- Fold follow-up PRs into the entry they belong to.
- Add three missing user-facing entries: cortexproject#7513, cortexproject#7514 and cortexproject#7559.
- Reclassify as CHANGE the entries that break existing configs or log consumers:
 the sign-key validation (cortexproject#7587), the Alertmanager per-tenant *_file rejections
 (cortexproject#7767, cortexproject#7768, now one entry) and the time_taken -> time_taken_ms rename (cortexproject#7649).
- Note the operator impact of the distroless base image (cortexproject#7637) and of the
 500 -> 499 reclassification (cortexproject#7717).
Rebased onto master, which added eight entries after this was first written.
They are curated the same way:
- Sorted into their categories: the deprecated flag removal (cortexproject#7790) and the
 max-exemplars deprecation (cortexproject#7793) under CHANGE, the X-Grafana-User query log
 (cortexproject#7799) under ENHANCEMENT, the YAML zero-value validation (cortexproject#7700) and the
 ReadPartitionedGroupInfo error handling (cortexproject#7766) under BUGFIX.
- Folded the Go toolchain bump (cortexproject#7807, cortexproject#7814) into the existing build image
 entry, which now reads 1.27.0 rather than carrying a second entry for it.
- Folded cortexproject#7745 into cortexproject#7698: both are the same wipe-on-transient-DNS-failure bug,
 cortexproject#7698 on the A record path and cortexproject#7745 on the SRV path.
- Folded cortexproject#7743 into cortexproject#7640: both are panics in the active request tracker's
 truncation of match[]/query values.
Rebased again onto master, which added eight more entries. Same treatment:
- Sorted into their categories: the evaluation-delay-duration removal (cortexproject#7792)
 and the fifocache/ingester-metadata-streaming removals (cortexproject#7791) under CHANGE,
 the parquet max-block-label-names limit (cortexproject#7625), the non-pointer
 HistogramBucket slice (cortexproject#7809) and the merge iterator BatchSize (cortexproject#7823) under
 ENHANCEMENT, and the CSV-list empty-string fix (cortexproject#7714) under BUGFIX.
- Folded the Thanos/promql-engine refresh (cortexproject#7788) into the existing upgrade
 entry, which already carries cortexproject#7691, cortexproject#7505 and cortexproject#7740.
Signed-off-by: Charlie Le <charlie_le@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@SungJin1212 SungJin1212 SungJin1212 approved these changes

Assignees

No one assigned

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code size/S sync-vendor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /