Skip to content

quality: extend test thanos package #53290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 46 additions & 2 deletions thanos.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: thanos
version: "0.38.0"
epoch: 2
epoch: 3
description: Highly available Prometheus setup with long term storage capabilities.
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -49,8 +49,52 @@ update:
tag-filter: v

test:
environment:
contents:
packages:
- curl
pipeline:
# AUTOGENERATED
- runs: |
thanos --version
VERSION_OUTPUT=$(thanos --version 2>&1)
echo "$VERSION_OUTPUT" | grep "version ${{ package.version }}"
thanos --help
thanos query --help
thanos sidecar --help
thanos tools bucket verify --help
- name: Validate thanos with local filesystem
uses: test/daemon-check-output
with:
setup: |
mkdir -p /tmp/bucket-test
echo "placeholder" > /tmp/bucket-test/obj1.txt

cat <<EOF > /tmp/filesystem.yaml
type: FILESYSTEM
config:
directory: /tmp/bucket-test
EOF
start: thanos tools bucket verify --objstore.config-file=/tmp/filesystem.yaml
timeout: 30
expected_output: |
started verifying issue
loading bucket configuration
verify task completed
- name: Launch Thanos Query
uses: test/daemon-check-output
with:
setup: |
mkdir -p /tmp/data
start: thanos query --http-address=127.0.0.1:19192 --log.level=debug
timeout: 30
expected_output: |
starting query node
changing probe status
listening for requests and metrics
Listening on
post: |
if curl -sf --retry 5 http://127.0.0.1:19192/-/healthy; then
echo "Thanos query is healthy"
else
echo "Thanos query is not healthy"
fi
Loading