mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
build: try harder Hurl tests
Some checks failed
CI / 🤖 Check dependabot status (push) Has been cancelled
CI / 🐧 Test on Linux (${{ github.ref_type == 'tag' }}, misc) (push) Has been cancelled
CI / 🐧 Test on Linux (coverage) (push) Has been cancelled
CI / 🐧 Test on Linux (regular) (push) Has been cancelled
CI / ❄️ Build on Nix (push) Has been cancelled
CI / 🍏 Build and test on macOS (push) Has been cancelled
CI / 🧪 End-to-end testing (push) Has been cancelled
CI / 🔍 Upload code coverage (push) Has been cancelled
CI / 🔬 Test only Go (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 20) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 22) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 24) (push) Has been cancelled
CI / ⚖️ Check licenses (push) Has been cancelled
CI / 🐋 Build Docker images (push) Has been cancelled
CI / 🐋 Tag Docker images (push) Has been cancelled
CI / 🚀 Publish release (push) Has been cancelled
Some checks failed
CI / 🤖 Check dependabot status (push) Has been cancelled
CI / 🐧 Test on Linux (${{ github.ref_type == 'tag' }}, misc) (push) Has been cancelled
CI / 🐧 Test on Linux (coverage) (push) Has been cancelled
CI / 🐧 Test on Linux (regular) (push) Has been cancelled
CI / ❄️ Build on Nix (push) Has been cancelled
CI / 🍏 Build and test on macOS (push) Has been cancelled
CI / 🧪 End-to-end testing (push) Has been cancelled
CI / 🔍 Upload code coverage (push) Has been cancelled
CI / 🔬 Test only Go (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 20) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 22) (push) Has been cancelled
CI / 🔬 Test only JS (${{ needs.dependabot.outputs.package-ecosystem }}, 24) (push) Has been cancelled
CI / ⚖️ Check licenses (push) Has been cancelled
CI / 🐋 Build Docker images (push) Has been cancelled
CI / 🐋 Tag Docker images (push) Has been cancelled
CI / 🚀 Publish release (push) Has been cancelled
This commit is contained in:
2
.github/e2e.hurl
vendored
2
.github/e2e.hurl
vendored
@@ -103,7 +103,7 @@ GET http://127.0.0.1:8080/prometheus/api/v1/query
|
||||
query: akvorado_outlet_clickhouse_flow_per_batch{job="akvorado-outlet", quantile="0.5"}
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
jsonpath "$.data.result[0].value[1]" toInt > 100
|
||||
jsonpath "$.data.result[0].value[1]" toInt > 20
|
||||
|
||||
## Check we receive metrics from everything
|
||||
GET http://127.0.0.1:8080/prometheus/api/v1/query
|
||||
|
||||
23
.github/e2e.sh
vendored
23
.github/e2e.sh
vendored
@@ -76,12 +76,25 @@ EOF
|
||||
# logcli -q series '{service_name=~".+"}' --analyze-labels
|
||||
# echo ::endgroup::
|
||||
|
||||
# Run Hurl tests
|
||||
# Run Hurl tests. Some of them may be difficult to get right, notably
|
||||
# the ClickHouse batches (if we are rebalancing). We need to let some
|
||||
# time between two tries because the quantiles need to be updated.
|
||||
echo ::group::Hurl tests
|
||||
nix run nixpkgs#hurl -- --test --error-format=short .github/e2e.hurl || \
|
||||
nix run nixpkgs#hurl -- --test --error-format=short .github/e2e.hurl || \
|
||||
nix run nixpkgs#hurl -- --test --error-format=short .github/e2e.hurl || {
|
||||
sleep 2
|
||||
ok=0
|
||||
for i in $(seq 1 5); do
|
||||
echo "::group::Hurl tests ($i)"
|
||||
if ! nix run nixpkgs#hurl -- --test --error-format=short .github/e2e.hurl; then
|
||||
echo ::endgroup::
|
||||
sleep 10
|
||||
continue
|
||||
else
|
||||
echo ::endgroup::
|
||||
ok=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
[ $ok -eq 1 ] || {
|
||||
sleep 10
|
||||
nix run nixpkgs#hurl -- --test --error-format=long .github/e2e.hurl
|
||||
}
|
||||
echo ::endgroup::
|
||||
|
||||
Reference in New Issue
Block a user