Skip to content

Fix issue with client side load balancing between query and store for… #1616

Fix issue with client side load balancing between query and store for…

Fix issue with client side load balancing between query and store for… #1616

Workflow file for this run

name: go
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
env:
golang-version: '1.26'
kind-version: 'v0.30.0'
permissions:
contents: read
pull-requests: read
jobs:
lint:
runs-on: ubuntu-latest
name: Linters (Static Analysis) for Go
steps:
- name: Checkout code into the Go module directory.
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: ${{ env.golang-version }}
- uses: actions/cache@v6
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Linting & vetting.
env:
GOBIN: /tmp/.bin
run: make lint
unit-tests:
runs-on: ubuntu-latest
name: Unit tests
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-go@v7
with:
go-version: ${{ env.golang-version }}
- run: make --always-make test
e2e-tests:
name: E2E tests (Thanos ${{ matrix.thanos-version }}) (${{ matrix.kind-image }})
runs-on: ubuntu-latest
strategy:
matrix:
kind-image: ['kindest/node:v1.34.0']
thanos-version:
- v0.41.0
- v0.42.0
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-go@v7
with:
go-version: ${{ env.golang-version }}
- name: Start kind cluster
uses: helm/kind-action@v1.14.0
with:
version: ${{ env.kind-version }}
node_image: ${{ matrix.kind-image }}
wait: 10s
cluster_name: kind
- name: Wait for cluster to bootstrap
run: kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=300s
- name: Run tests
run: |
export KUBECONFIG="${HOME}/.kube/config"
THANOS_VERSION=${{ matrix.thanos-version }} make test-e2e