Skip to content

Commit 1ad9172

Browse files
committed
Merge branch 'main' into xcap-traces
2 parents 4b51c40 + 9825137 commit 1ad9172

File tree

365 files changed

+9764
-17415
lines changed

Some content is hidden

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

365 files changed

+9764
-17415
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
production/docker/.data
22
.cache
3+
tools/dev/kafka/data

.github/release-workflows.jsonnet

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,26 @@ local weeklyImageJobs = {
195195
||| % { name: '%s-image' % name }),
196196
])
197197
for name in std.objectFields(weeklyImageJobs)
198+
} + {
199+
'trigger-cd': job.new()
200+
+ job.withNeeds(['loki-image', 'loki-manifest', 'loki-canary-manifest'])
201+
+ job.withIf("github.ref == 'refs/heads/main'")
202+
+ job.withPermissions({
203+
contents: 'read',
204+
'id-token': 'write',
205+
})
206+
+ job.withEnv({
207+
IMAGE_TAG: '${{ needs.loki-image.outputs.image_tag }}',
208+
})
209+
+ job.withSteps([
210+
step.new('Trigger CD workflow', 'grafana/shared-workflows/actions/trigger-argo-workflow@8b88213bca76e86f9f59b43038cc5d7545452436') // main
211+
+ step.with({
212+
instance: 'ops',
213+
namespace: 'loki-cd',
214+
workflow_template: 'loki-continuous-deployment',
215+
parameters: 'imageTag=${{ env.IMAGE_TAG }}',
216+
}),
217+
]),
198218
},
199219
}),
200220
}

.github/workflows/helm-ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
persist-credentials: false
3737

3838
- name: Set up Helm
39-
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4
39+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
4040
with:
41-
version: v3.8.2
41+
version: v3.18.6
4242

4343
# Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and
4444
# yamllint (https://github.com/adrienverge/yamllint) which require Python
@@ -135,7 +135,9 @@ jobs:
135135
persist-credentials: 'false'
136136

137137
- name: Set up Helm
138-
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
138+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
139+
with:
140+
version: v3.18.6
139141

140142
- name: Install Flux CLI
141143
uses: fluxcd/flux2/action@6bf37f6a560fd84982d67f853162e4b3c2235edb # v2.6.4

.github/workflows/images.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,26 @@
503503
${OUTPUTS_IMAGE_NAME}@${IMAGE_DIGEST_AMD64} \
504504
${OUTPUTS_IMAGE_NAME}@${IMAGE_DIGEST_ARM}
505505
docker buildx imagetools inspect $IMAGE
506+
"trigger-cd":
507+
"env":
508+
"IMAGE_TAG": "${{ needs.loki-image.outputs.image_tag }}"
509+
"if": "github.ref == 'refs/heads/main'"
510+
"needs":
511+
- "loki-image"
512+
- "loki-manifest"
513+
- "loki-canary-manifest"
514+
"permissions":
515+
"contents": "read"
516+
"id-token": "write"
517+
"runs-on": "ubuntu-latest"
518+
"steps":
519+
- "name": "Trigger CD workflow"
520+
"uses": "grafana/shared-workflows/actions/trigger-argo-workflow@8b88213bca76e86f9f59b43038cc5d7545452436"
521+
"with":
522+
"instance": "ops"
523+
"namespace": "loki-cd"
524+
"parameters": "imageTag=${{ env.IMAGE_TAG }}"
525+
"workflow_template": "loki-continuous-deployment"
506526
"name": "Publish images"
507527
"on":
508528
"push":

.github/workflows/logql-correctness.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup Go
3535
uses: actions/setup-go@v4
3636
with:
37-
go-version: "1.24.9"
37+
go-version: "1.25.4"
3838

3939
# The metastore generates invalid filenames for Windows (with colons),
4040
# which get rejected by upload-artifact. We zip these files to avoid this
@@ -51,14 +51,15 @@ jobs:
5151
retention-days: 7
5252

5353
tests:
54-
name: Run correctness tests for ${{ matrix.store }}
54+
name: Run ${{ matrix.store }}/${{ matrix.range_type }}/${{ matrix.remote_transport == true && 'remote' || 'local' }}
5555
runs-on: github-hosted-ubuntu-arm64-large
5656
needs: generate-testdata
5757
timeout-minutes: 60
5858
strategy:
5959
matrix:
6060
store: [dataobj-engine]
6161
range_type: [instant, range]
62+
remote_transport: [true, false]
6263
fail-fast: false # Continue testing other stores if one fails
6364
steps:
6465
- name: Checkout code
@@ -80,7 +81,7 @@ jobs:
8081
- name: Setup Go
8182
uses: actions/setup-go@v4
8283
with:
83-
go-version: "1.24.9"
84+
go-version: "1.25.4"
8485

8586
- name: Create results directory
8687
run: mkdir -p ./pkg/logql/bench/results
@@ -89,7 +90,7 @@ jobs:
8990
shell: bash # Use bash shell to propagate pipe failures
9091
run: |
9192
go test \
92-
-v -slow-tests -timeout=60m \
93+
-v -slow-tests -remote-transport=${{ matrix.remote_transport }} -timeout=60m \
9394
-run=TestStorageEquality/query=.+/kind=.+/store=${{ matrix.store }}$ \
9495
${{ matrix.range_type == 'instant' && '-range-type=instant' || '' }} \
9596
${{ inputs.failfast == true && '-failfast' || '' }} \
@@ -100,6 +101,6 @@ jobs:
100101
uses: actions/upload-artifact@v4
101102
if: always() # Upload results even if one of the test tests fails
102103
with:
103-
name: logql-bench-results-${{ matrix.store }}-${{ matrix.range_type }}-${{ steps.checkout.outputs.commit }}
104+
name: logql-bench-results-${{ matrix.store }}-${{ matrix.range_type }}-${{ matrix.remote_transport == true && 'remote' || 'local' }}-${{ steps.checkout.outputs.commit }}
104105
path: ./pkg/logql/bench/results
105106
retention-days: 7

.github/workflows/querytee-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
IMAGE_TAG=${{ steps.pr-version.outputs.image_version }}
7676
GO_VERSION=${{ env.GO_VERSION }}
7777
context: .
78-
file: ./cmd/querytee/Dockerfile.cross
78+
file: ./cmd/querytee/Dockerfile
7979
outputs: push-by-digest=true,type=image,name=${{ steps.pr-version.outputs.image_name }},push=true
8080
platforms: ${{ matrix.arch }}
8181
provenance: true

0 commit comments

Comments
 (0)