Skip to content

Commit

Permalink
test disable print logs
Browse files Browse the repository at this point in the history
  • Loading branch information
aflanagan committed Jan 16, 2025
1 parent 2fb5878 commit 84cd971
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
cd e2e-test/
if echo "${{ matrix.kind_image }}" | grep -q -e v1.15 -e v1.16 -e v1.17 -e v1.18 -e v1.19 -e v1.20 -e v1.21 -e v1.22 -e v1.23 ; then
kubectl apply -k kustomize/pre-batchv1/
else
else
kubectl apply -k kustomize/current/
fi
Expand Down Expand Up @@ -128,12 +128,12 @@ jobs:
run: sleep $((60 * 3))
shell: bash

- name: Print logs always
if: always()
run: |
echo "::group::Kubernetes agent logs"
kubectl logs $(kubectl get po -l app.kubernetes.io/name=cronitor-kubernetes -o name)
echo "::endgroup::"
# - name: Print logs always
# if: always()
# run: |
# echo "::group::Kubernetes agent logs"
# kubectl logs $(kubectl get po -l app.kubernetes.io/name=cronitor-kubernetes -o name)
# echo "::endgroup::"

- run: pip install -r requirements.txt
if: always()
Expand All @@ -151,12 +151,12 @@ jobs:
TEST_CONFIGURATION: ${{ matrix.test_configuration }}
RANDOM_ID: "${{ steps.generate_random_id.outputs.random_id }}"
run: pytest

- name: Delete created monitors
# Always need to clean up the leftover monitors, even with test failures
if: always()
working-directory: ./e2e-test/api/
env:
env:
CRONITOR_API_KEY: ${{ secrets.CRONITOR_API_KEY }}
run: |
python main.py --ci-tag 'ci:${{ steps.generate_random_id.outputs.random_id }}'

0 comments on commit 84cd971

Please sign in to comment.