Skip to content

Commit

Permalink
WIP - add debug stmts to integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpromislow committed May 15, 2024
1 parent 03e0113 commit 0b5cdcb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/fossa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
uses: rancher-eio/read-vault-secrets@main
with:
secrets: |
secret/data/github/repo/${{ github.repository }}/fossa/credentials token | FOSSA
secret/data/github/repo/${{ github.repository }}/fossa/credentials token | FOSSA_API_KEY
- name: Checkout Repo
uses: actions/checkout@v4
- name: Run FOSSA Analyze
uses: fossas/fossa-action@v1.3.3
with:
api-key: ${{ env.FOSSA }}
api-key: ${{ env.FOSSA_API_KEY }}
- name: Run FOSSA test
uses: fossas/fossa-action@v1.3.3
with:
api-key: ${{ env.FOSSA }}
api-key: ${{ env.FOSSA_API_KEY }}
run-tests: true
9 changes: 6 additions & 3 deletions scripts/integration-test
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export CATTLE_FEATURES="harvester=false"
cd $(dirname $0)/../

echo "Starting Rancher Server"
which entrypoint.sh
cat $(which entrypoint.sh)
entrypoint.sh >./rancher.log 2>&1 &
RANCHER_PID=$!

Expand All @@ -18,8 +20,9 @@ while ! curl -sf http://localhost:80/healthz >/dev/null 2>&1; do
((RETRIES++))
if (( RETRIES > 300 )) ; then
echo "Timed out waiting for Rancher to restart"
kill -9 $RANCHER_PID
fi
echo "Try # $RETRIES waiting for rancher"
echo "Try #$RETRIES waiting for rancher"
sleep 2
done

Expand All @@ -39,10 +42,10 @@ echo "Webhook deployed"
kill ${TAIL_PID}

# Wait for helm operation to complete and save rancher-webhook release info before we kill rancher and the cluster.
while
while
status=$(kubectl get apps.catalog.cattle.io -n cattle-system rancher-webhook -o jsonpath="{@.status.summary.state}")
[[ "$status" != "deployed" ]]
do
do
echo "Waiting for helm operation to finish, current status $status"
sleep 2
done
Expand Down

0 comments on commit 0b5cdcb

Please sign in to comment.