Skip to content

Commit

Permalink
🔥 Don't reset NATS after every test run
Browse files Browse the repository at this point in the history
* It was a workaround for a bug that has since been resolved
  • Loading branch information
rblaine95 committed Nov 5, 2024
1 parent 696510f commit 85aee19
Showing 1 changed file with 0 additions and 64 deletions.
64 changes: 0 additions & 64 deletions .github/workflows/continuous-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1023,70 +1023,6 @@ jobs:
helm-version: ${{ env.HELM_VERSION }}
env:
IMAGE_TAG: ${{ needs.build.outputs.image_version }}

- name: Scale down benthos
run: |
kubectl scale deployment benthos -n dev-cloudapi --replicas=0
- name: Reset NATS
env:
NAMESPACE: dev-cloudapi
run: |
kubectl get secret \
-n ${NAMESPACE} \
${{ secrets.NATS_SECRET_NAME }} \
-o jsonpath='{.data.cloudapi-nats-admin\.creds}' \
| base64 -d > nats.creds
nats --creds ./nats.creds \
--server ${{ secrets.NATS_URL }} \
kv rm cloudapi_aries_sync_locks -f
nats --creds ./nats.creds \
--server ${{ secrets.NATS_URL }} \
kv rm cloudapi_aries_sync_tracking -f
nats --creds ./nats.creds \
--server ${{ secrets.NATS_URL }} \
kv rm cloudapi_aries_unique_events -f
nats --creds ./nats.creds \
--server ${{ secrets.NATS_URL }} \
stream rm cloudapi_aries_events -f
nats --creds ./nats.creds \
--server ${{ secrets.NATS_URL }} \
stream rm acapy_events -f
nats --creds ./nats.creds \
--server ${{ secrets.NATS_URL }} \
kv add cloudapi_aries_sync_locks --ttl 10s --replicas 3 --storage memory
nats --creds ./nats.creds \
--server ${{ secrets.NATS_URL }} \
kv add cloudapi_aries_sync_tracking --replicas 3
nats --creds ./nats.creds \
--server ${{ secrets.NATS_URL }} \
kv add cloudapi_aries_unique_events --replicas 3
nats --creds ./nats.creds \
--server ${{ secrets.NATS_URL }} \
stream add cloudapi_aries_events --subjects "cloudapi.aries.events.*.*" \
--defaults \
--storage file \
--replicas 3 \
--compression s2
nats --creds ./nats.creds \
--server ${{ secrets.NATS_URL }} \
stream add acapy_events --subjects "acapy.>" \
--defaults \
--storage file \
--replicas 3 \
--compression s2
rm -f ./nats.creds
- name: Scale benthos back up
run: |
kubectl scale deployment benthos -n dev-cloudapi --replicas=1
k6:
if: github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false
name: K6
Expand Down

0 comments on commit 85aee19

Please sign in to comment.