Skip to content

Bump tim-actions/commit-message-checker-with-regex from e16b08b1a7f5cafeb1f8167de05bf1d40239eb5d to 094fc16ff83d04e2ec73edb5eaf6aa267db33791 #7246

Bump tim-actions/commit-message-checker-with-regex from e16b08b1a7f5cafeb1f8167de05bf1d40239eb5d to 094fc16ff83d04e2ec73edb5eaf6aa267db33791

Bump tim-actions/commit-message-checker-with-regex from e16b08b1a7f5cafeb1f8167de05bf1d40239eb5d to 094fc16ff83d04e2ec73edb5eaf6aa267db33791 #7246

Workflow file for this run

---
name: Prometheus Tests
on:
pull_request:
types: [labeled, opened, synchronize, reopened]
jobs:
check:
name: Metrics Exported
timeout-minutes: 20
runs-on: ubuntu-latest
if: |
( github.event.action == 'labeled' && github.event.label.name == 'check-prometheus' )
|| ( github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'check-prometheus') )
steps:
- name: Check out the Shipyard repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
repository: submariner-io/shipyard
- name: Reclaim free space
run: |
sudo swapoff -a
sudo rm -f /swapfile
df -h
free -h
- name: Deploy clusters+Submariner using the latest image, with Prometheus
run: make deploy using=prometheus
- name: Expose the first cluster's Prometheus
run: >-
KUBECONFIG=$(find $(git rev-parse --show-toplevel)/output/kubeconfigs/ -type f -printf %p:)
kubectl --context=cluster1 port-forward service/prometheus-operated 9090 &
- name: Make sure the submariner_gateways metric is exported
run: >-
for i in {1..10};
do sleep 5; if test "$(curl -s --data-urlencode query=submariner_gateways http://localhost:9090/api/v1/query |
jq -r '.data.result[0].metric.__name__')" = "submariner_gateways";
then exit 0;
fi;
done;
curl -s --data-urlencode query=submariner_gateways http://localhost:9090/api/v1/query | jq .;
exit 1