Skip to content

Commit dafddb3

Browse files
authored
Merge branch 'master' into native-histograms-sample-size-limit
Signed-off-by: Paurush Garg <[email protected]>
2 parents 4cf27d1 + 6dbc78c commit dafddb3

File tree

227 files changed

+3536
-21392
lines changed

Some content is hidden

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

227 files changed

+3536
-21392
lines changed

.errcheck-exclude

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/build-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
2929

3030
- name: Set up Docker Buildx
31-
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
31+
uses: docker/setup-buildx-action@18ce135bb5112fa8ce4ed6c17ab05699d7f3a5e0 # v3.11.0
3232

3333
- name: Save image
3434
run: make save-multiarch-build-image

.github/workflows/scorecards.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
persist-credentials: false
3434

3535
- name: "Run analysis"
36-
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
36+
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
3737
with:
3838
results_file: results.sarif
3939
results_format: sarif
@@ -64,6 +64,6 @@ jobs:
6464
# Upload the results to GitHub's code scanning dashboard (optional).
6565
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
6666
- name: "Upload to code-scanning"
67-
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
67+
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
6868
with:
6969
sarif_file: results.sarif

.github/workflows/test-build-deploy.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
lint:
1818
runs-on: ubuntu-24.04
1919
container:
20-
image: quay.io/cortexproject/build-image:master-281284ac1
20+
image: quay.io/cortexproject/build-image:master-7ce1d1b12
2121
steps:
2222
- name: Checkout Repo
2323
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -46,7 +46,7 @@ jobs:
4646
test:
4747
runs-on: ubuntu-24.04
4848
container:
49-
image: quay.io/cortexproject/build-image:master-281284ac1
49+
image: quay.io/cortexproject/build-image:master-7ce1d1b12
5050
steps:
5151
- name: Checkout Repo
5252
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -64,7 +64,7 @@ jobs:
6464
test-no-race:
6565
runs-on: ubuntu-24.04
6666
container:
67-
image: quay.io/cortexproject/build-image:master-281284ac1
67+
image: quay.io/cortexproject/build-image:master-7ce1d1b12
6868
steps:
6969
- name: Checkout Repo
7070
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -93,21 +93,21 @@ jobs:
9393

9494
# Initializes the CodeQL tools for scanning.
9595
- name: Initialize CodeQL
96-
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
96+
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
9797
with:
9898
languages: go
9999

100100
- name: Autobuild
101-
uses: github/codeql-action/autobuild@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
101+
uses: github/codeql-action/autobuild@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
102102

103103
- name: Perform CodeQL Analysis
104-
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
104+
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
105105

106106

107107
build:
108108
runs-on: ubuntu-24.04
109109
container:
110-
image: quay.io/cortexproject/build-image:master-281284ac1
110+
image: quay.io/cortexproject/build-image:master-7ce1d1b12
111111
steps:
112112
- name: Checkout Repo
113113
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -247,14 +247,14 @@ jobs:
247247
run: |
248248
touch build-image/.uptodate
249249
MIGRATIONS_DIR=$(pwd)/cmd/cortex/migrations
250-
make BUILD_IMAGE=quay.io/cortexproject/build-image:master-281284ac1 TTY='' configs-integration-test
250+
make BUILD_IMAGE=quay.io/cortexproject/build-image:master-7ce1d1b12 TTY='' configs-integration-test
251251
252252
deploy_website:
253253
needs: [build, test]
254254
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex'
255255
runs-on: ubuntu-24.04
256256
container:
257-
image: quay.io/cortexproject/build-image:master-281284ac1
257+
image: quay.io/cortexproject/build-image:master-7ce1d1b12
258258
steps:
259259
- name: Checkout Repo
260260
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -296,7 +296,7 @@ jobs:
296296
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex'
297297
runs-on: ubuntu-24.04
298298
container:
299-
image: quay.io/cortexproject/build-image:master-281284ac1
299+
image: quay.io/cortexproject/build-image:master-7ce1d1b12
300300
steps:
301301
- name: Checkout Repo
302302
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

.golangci.yml

Lines changed: 49 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,6 @@
1-
output:
2-
format: line-number
3-
4-
linters:
5-
enable:
6-
- goimports
7-
- revive
8-
- gofmt
9-
- misspell
10-
- depguard
11-
- sloglint
12-
- unused
13-
14-
linters-settings:
15-
staticcheck:
16-
checks:
17-
- all
18-
errcheck:
19-
# path to a file containing a list of functions to exclude from checking
20-
# see https://github.com/kisielk/errcheck#excluding-functions for details
21-
exclude: ./.errcheck-exclude
22-
goimports:
23-
local-prefixes: "github.com/cortexproject/cortex"
24-
revive:
25-
severity: error # We only want critical issues.
26-
govet:
27-
disable:
28-
- printf
29-
30-
depguard:
31-
rules:
32-
main:
33-
list-mode: lax
34-
files:
35-
- $all
36-
deny:
37-
- pkg: "github.com/go-kit/kit/log"
38-
desc: Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
39-
1+
version: "2"
402
run:
413
timeout: 5m
42-
434
# List of build tags, all linters use it.
445
build-tags:
456
- netgo
@@ -51,3 +12,51 @@ run:
5112
- integration_querier
5213
- integration_ruler
5314
- integration_query_fuzz
15+
output:
16+
formats:
17+
text:
18+
path: stdout
19+
colors: false
20+
linters:
21+
enable:
22+
- depguard
23+
- misspell
24+
- revive
25+
- sloglint
26+
settings:
27+
depguard:
28+
rules:
29+
main:
30+
list-mode: lax
31+
files:
32+
- $all
33+
deny:
34+
- pkg: github.com/go-kit/kit/log
35+
desc: Use github.com/go-kit/log instead of github.com/go-kit/kit/log"
36+
errcheck:
37+
exclude-functions:
38+
- io/ioutil.WriteFile
39+
- io/ioutil.ReadFile
40+
- io.Copy
41+
- (github.com/go-kit/log.Logger).Log
42+
- (*github.com/cortexproject/cortex/pkg/util/spanlogger.SpanLogger).Error
43+
- (github.com/opentracing/opentracing-go.Tracer).Inject
44+
govet:
45+
disable:
46+
- printf
47+
revive:
48+
severity: error
49+
exclusions:
50+
presets:
51+
- comments
52+
- common-false-positives
53+
- legacy
54+
- std-error-handling
55+
formatters:
56+
enable:
57+
- gofmt
58+
- goimports
59+
settings:
60+
goimports:
61+
local-prefixes:
62+
- github.com/cortexproject/cortex

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
* [ENHANCEMENT] Ingester: Handle runtime errors in query path #6769
3939
* [ENHANCEMENT] Compactor: Support metadata caching bucket for Cleaner. Can be enabled via `-compactor.cleaner-caching-bucket-enabled` flag. #6778
4040
* [ENHANCEMENT] Compactor, Store Gateway: Introduce user scanner strategy and user index. #6780
41+
* [ENHANCEMENT] Querier: Support chunks cache for parquet queryable. #6805
42+
* [ENHANCEMENT] Parquet Storage: Add some metrics for parquet blocks and converter. #6809 #6821
43+
* [ENHANCEMENT] Compactor: Optimize cleaner run time. #6815
44+
* [ENHANCEMENT] Parquet Storage: Allow percentage based dynamic shard size for Parquet Converter. #6817
45+
* [ENHANCEMENT] Query Frontend: Enhance the performance of the JSON codec. #6816
46+
* [ENHANCEMENT] Store Gateway: Allow to ignore syncing blocks older than certain time using `ignore_blocks_before`. #6830
4147
* [ENHANCEMENT] Distributor: Add native histograms max sample size bytes limit validation. #6834
4248
* [BUGFIX] Ingester: Avoid error or early throttling when READONLY ingesters are present in the ring #6517
4349
* [BUGFIX] Ingester: Fix labelset data race condition. #6573
@@ -55,6 +61,7 @@
5561
* [BUGFIX] Fix race condition in active user. #6773
5662
* [BUGFIX] Ruler: Prevent counting 2xx and 4XX responses as failed writes. #6785
5763
* [BUGFIX] Ingester: Allow shipper to skip corrupted blocks. #6786
64+
* [BUGFIX] Compactor: Delete the prefix `blocks_meta` from the metadata fetcher metrics. #6832
5865

5966
## 1.19.0 2025-02-27
6067

MAINTAINERS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
|--------------------|-----------------------|---------------|---------------------|
55
| Alan Protasio | [email protected] | @alanprot | Amazon Web Services |
66
| Ben Ye | [email protected] | @yeya24 | Amazon Web Services |
7-
| Charlie Le | [email protected]> | @CharlieTLe | Apple |
7+
| Charlie Le | [email protected] | @CharlieTLe | Apple |
88
| Daniel Blando | [email protected] | @danielblando | Amazon Web Services |
9-
| Friedrich Gonzalez | [email protected] | @friedrichg | Adobe |
9+
| Friedrich Gonzalez | [email protected] | @friedrichg | Apple |
1010

1111
### Triagers
1212

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ build-image/$(UPTODATE): build-image/*
115115
SUDO := $(shell docker info >/dev/null 2>&1 || echo "sudo -E")
116116
BUILD_IN_CONTAINER := true
117117
BUILD_IMAGE ?= $(IMAGE_PREFIX)build-image
118-
LATEST_BUILD_IMAGE_TAG ?= master-281284ac1
118+
LATEST_BUILD_IMAGE_TAG ?= master-7ce1d1b12
119119

120120
# TTY is parameterized to allow Google Cloud Builder to run builds,
121121
# as it currently disallows TTY devices. This value needs to be overridden

docs/blocks-storage/querier.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,11 @@ blocks_storage:
13771377
# CLI flag: -blocks-storage.bucket-store.ignore-blocks-within
13781378
[ignore_blocks_within: <duration> | default = 0s]
13791379

1380+
# The blocks created before `now() - ignore_blocks_before` will not be
1381+
# synced. 0 to disable.
1382+
# CLI flag: -blocks-storage.bucket-store.ignore-blocks-before
1383+
[ignore_blocks_before: <duration> | default = 0s]
1384+
13801385
bucket_index:
13811386
# True to enable querier and store-gateway to discover blocks in the
13821387
# storage via bucket index instead of bucket scanning.

docs/blocks-storage/store-gateway.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,11 @@ blocks_storage:
14981498
# CLI flag: -blocks-storage.bucket-store.ignore-blocks-within
14991499
[ignore_blocks_within: <duration> | default = 0s]
15001500

1501+
# The blocks created before `now() - ignore_blocks_before` will not be
1502+
# synced. 0 to disable.
1503+
# CLI flag: -blocks-storage.bucket-store.ignore-blocks-before
1504+
[ignore_blocks_before: <duration> | default = 0s]
1505+
15011506
bucket_index:
15021507
# True to enable querier and store-gateway to discover blocks in the
15031508
# storage via bucket index instead of bucket scanning.

0 commit comments

Comments
 (0)