Skip to content

Commit 23355a6

Browse files
authored
[ES-1214414] Thanos v0.36.0 upgrade (#76)
2 parents eddbbb3 + 7ebb612 commit 23355a6

File tree

158 files changed

+9216
-2100
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+9216
-2100
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
FROM mcr.microsoft.com/devcontainers/go:1.21
33

44
RUN echo "Downloading prometheus..." \
5-
&& curl -sSL -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/prometheus/prometheus/tags" -o /tmp/tags.json \
6-
&& VERSION_LIST="$(jq -r '.[] | select(.name | contains("rc") | not) | .name | split("v") | .[1]' /tmp/tags.json | tr -d '"' | sort -rV)" \
5+
&& curl -sSL -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/prometheus/prometheus/releases" -o /tmp/releases.json \
6+
&& VERSION_LIST="$(jq -r '.[] | select(.tag_name | contains("rc") | not) | .tag_name | split("v") | .[1]' /tmp/releases.json | tr -d '"' | sort -rV)" \
77
&& PROMETHEUS_LATEST_VERSION="$(echo "${VERSION_LIST}" | head -n 1)" \
88
&& PROMETHEUS_FILE_NAME="prometheus-${PROMETHEUS_LATEST_VERSION}.linux-amd64" \
99
&& curl -fsSLO "https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_LATEST_VERSION}/${PROMETHEUS_FILE_NAME}.tar.gz" \

.github/dependabot.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
1+
---
12
version: 2
23
updates:
34
- package-ecosystem: "gomod"
45
directory: "/"
5-
vendor: false
66
schedule:
77
interval: "weekly"
8-
labels: ["dependencies"]
8+
open-pull-requests-limit: 20
99
- package-ecosystem: "docker"
1010
directory: "/"
1111
schedule:
1212
interval: "weekly"
13-
labels: ["dependencies"]
14-
1513
- package-ecosystem: "github-actions"
1614
directory: "/"
1715
schedule:
18-
interval: weekly
19-
labels:
20-
- "dependencies"
21-
16+
interval: weekly

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ jobs:
3535

3636
steps:
3737
- name: Checkout code
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939

4040
- name: Set up Go
41-
uses: actions/setup-go@v3
41+
uses: actions/setup-go@v5
4242
with:
4343
go-version: 1.21.x
4444

4545
# Initializes the CodeQL tools for scanning.
4646
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@v2
47+
uses: github/codeql-action/init@v3
4848
with:
4949
languages: ${{ matrix.language }}
5050
config-file: ./.github/codeql/codeql-config.yml
@@ -56,7 +56,7 @@ jobs:
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below)
5858
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v2
59+
uses: github/codeql-action/autobuild@v3
6060

6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 https://git.io/JvXDl
@@ -70,4 +70,4 @@ jobs:
7070
# make release
7171

7272
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@v2
73+
uses: github/codeql-action/analyze@v3

.github/workflows/container-version.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212

1313
- name: Run busybox updater
1414
run: |
@@ -17,7 +17,7 @@ jobs:
1717
shell: bash
1818

1919
- name: Create Pull Request
20-
uses: peter-evans/create-pull-request@v3
20+
uses: peter-evans/create-pull-request@v6
2121
with:
2222
signoff: true
2323
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docs.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ jobs:
1515
GOBIN: /tmp/.bin
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Install Go
21-
uses: actions/setup-go@v3
21+
uses: actions/setup-go@v5
2222
with:
2323
go-version: 1.21.x
2424

25-
- uses: actions/cache@v3
25+
- uses: actions/cache@v4
2626
with:
2727
path: ~/go/pkg/mod
2828
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
2929
restore-keys: |
3030
${{ runner.os }}-go-
3131
32-
- uses: actions/cache@v3
32+
- uses: actions/cache@v4
3333
with:
3434
path: .mdoxcache
3535
key: ${{ runner.os }}-mdox-${{ hashFiles('docs/**/*.md', 'examples/**/*.md', 'mixin/**/*.md', '*.md') }}

.github/workflows/go.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
GOBIN: /tmp/.bin
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

2121
- name: Install Go
22-
uses: actions/setup-go@v3
22+
uses: actions/setup-go@v5
2323
with:
2424
go-version: 1.21.x
2525

26-
- uses: actions/cache@v3
26+
- uses: actions/cache@v4
2727
with:
2828
path: |
2929
~/.cache/go-build
@@ -43,14 +43,14 @@ jobs:
4343
GOBIN: /tmp/.bin
4444
steps:
4545
- name: Checkout code
46-
uses: actions/checkout@v3
46+
uses: actions/checkout@v4
4747

4848
- name: Install Go
49-
uses: actions/setup-go@v3
49+
uses: actions/setup-go@v5
5050
with:
5151
go-version: 1.21.x
5252

53-
- uses: actions/cache@v3
53+
- uses: actions/cache@v4
5454
with:
5555
path: |
5656
~/.cache/go-build
@@ -115,14 +115,14 @@ jobs:
115115
GOBIN: /tmp/.bin
116116
steps:
117117
- name: Checkout code
118-
uses: actions/checkout@v3
118+
uses: actions/checkout@v4
119119

120120
- name: Install Go.
121-
uses: actions/setup-go@v3
121+
uses: actions/setup-go@v5
122122
with:
123123
go-version: 1.21.x
124124

125-
- uses: actions/cache@v3
125+
- uses: actions/cache@v4
126126
with:
127127
path: |
128128
~/.cache/go-build

.github/workflows/mixin.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Set up Go
17-
uses: actions/setup-go@v3
17+
uses: actions/setup-go@v5
1818
with:
1919
go-version: 1.21.x
2020

@@ -29,10 +29,10 @@ jobs:
2929
name: Linters (Static Analysis) for Jsonnet (mixin)
3030
steps:
3131
- name: Checkout code
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333

3434
- name: Install Go
35-
uses: actions/setup-go@v3
35+
uses: actions/setup-go@v5
3636
with:
3737
go-version: 1.21.x
3838

.github/workflows/react.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
name: React UI test on Node ${{ matrix.node }}
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Install nodejs
21-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
2222
with:
2323
node-version: ${{ matrix.node }}
2424

25-
- uses: actions/cache@v3
25+
- uses: actions/cache@v4
2626
with:
2727
path: ~/.npm
2828
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.mdox.validate.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ validators:
4242
type: 'ignore'
4343
- regex: 'twitter\.com'
4444
type: 'ignore'
45+
# 500 when requested my mdox in GH actions.
46+
- regex: 'outshift\.cisco\.com'
47+
type: 'ignore'

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,38 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
1212

1313
### Fixed
1414

15+
- [#7323](https://github.com/thanos-io/thanos/pull/7323) Sidecar: wait for prometheus on startup
16+
- [#7326](https://github.com/thanos-io/thanos/pull/7326) Query: fixing exemplars proxy when querying stores with multiple tenants.
17+
- [#7335](https://github.com/thanos-io/thanos/pull/7335) Dependency: Update minio-go to v7.0.70 which includes support for EKS Pod Identity.
18+
- [#6948](https://github.com/thanos-io/thanos/pull/6948) Receive: fix goroutines leak during series requests to thanos store api.
19+
- [#7392](https://github.com/thanos-io/thanos/pull/7392) Query: fix broken min, max for pre 0.34.1 sidecars
20+
21+
### Added
22+
23+
- [#7317](https://github.com/thanos-io/thanos/pull/7317) Tracing: allow specifying resource attributes for the OTLP configuration.
24+
- [#7363](https://github.com/thanos-io/thanos/pull/7363) Query-frontend: set value of remote_user field in Slow Query Logs from HTTP header
25+
- [#7335](https://github.com/thanos-io/thanos/pull/7335) Dependency: Update minio-go to v7.0.70 which includes support for EKS Pod Identity.
26+
- [#7477](https://github.com/thanos-io/thanos/pull/7477) *: Bump objstore to `20240622095743-1afe5d4bc3cd`
27+
28+
### Changed
29+
30+
- [#7334](https://github.com/thanos-io/thanos/pull/7334) Compactor: do not vertically compact downsampled blocks. Such cases are now marked with `no-compact-mark.json`. Fixes panic `panic: unexpected seriesToChunkEncoder lack of iterations`.
31+
- [#7382](https://github.com/thanos-io/thanos/pull/7382) *: Ensure objstore flag values are masked & disable debug/pprof/cmdline
32+
- [#7393](https://github.com/thanos-io/thanos/pull/7393) *: *breaking :warning:* Using native histograms for grpc middleware metrics. Metrics `grpc_client_handling_seconds` and `grpc_server_handling_seconds` will now be native histograms, if you have enabled native histogram scraping you will need to update your PromQL expressions to use the new metric names.
33+
34+
### Removed
35+
36+
## [v0.35.1](https://github.com/thanos-io/thanos/tree/release-0.35) - 28.05.2024
37+
38+
### Fixed
39+
40+
- [#7323](https://github.com/thanos-io/thanos/pull/7323) Sidecar: wait for prometheus on startup
41+
- [#6948](https://github.com/thanos-io/thanos/pull/6948) Receive: fix goroutines leak during series requests to thanos store api.
42+
- [#7382](https://github.com/thanos-io/thanos/pull/7382) *: Ensure objstore flag values are masked & disable debug/pprof/cmdline
43+
- [#7392](https://github.com/thanos-io/thanos/pull/7392) Query: fix broken min, max for pre 0.34.1 sidecars
44+
- [#7373](https://github.com/thanos-io/thanos/pull/7373) Receive: Fix stats for remote write
45+
- [#7318](https://github.com/thanos-io/thanos/pull/7318) Compactor: Recover from panic to log block ID
46+
1547
### Added
1648

1749
### Changed
@@ -54,6 +86,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
5486
- [#7271](https://github.com/thanos-io/thanos/pull/7271) Query: fixing dedup iterator when working on mixed sample types.
5587
- [#7289](https://github.com/thanos-io/thanos/pull/7289) Query Frontend: show warnings from downstream queries.
5688
- [#7308](https://github.com/thanos-io/thanos/pull/7308) Store: Batch TSDB Infos for blocks.
89+
- [#7301](https://github.com/thanos-io/thanos/pull/7301) Store Gateway: fix index header reader `PostingsOffsets` returning wrong values.
5790

5891
### Added
5992

@@ -158,6 +191,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
158191
- [#6753](https://github.com/thanos-io/thanos/pull/6753) mixin(Rule): *breaking :warning:* Fixed the mixin rules with duplicate names and updated the promtool version from v0.37.0 to v0.47.0
159192
- [#6772](https://github.com/thanos-io/thanos/pull/6772) *: Bump prometheus to v0.47.2-0.20231006112807-a5a4eab679cc
160193
- [#6794](https://github.com/thanos-io/thanos/pull/6794) Receive: the exported HTTP metrics now uses the specified default tenant for requests where no tenants are found.
194+
- [#6651](https://github.com/thanos-io/thanos/pull/6651) *: Update go_grpc_middleware to v2.0.0. Remove Tags Interceptor from Thanos. Tags interceptor is removed from v2.0.0 go-grpc-middleware and is not needed anymore.
161195

162196
### Removed
163197

0 commit comments

Comments
 (0)