Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIFI-9786] Chg: move tests logs after the tests in separate step #633

Merged
merged 1 commit into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ runs:
kubectl cp $podname:/wlan-testing/tests/test_everything.xml test_everything.xml >/dev/null 2>&1
done
echo "tests completed"
kubectl logs $podname
rm -rf allure-results
echo "downloading allure results..."
kubectl cp $podname:/tmp/allure-results allure-results >/dev/null 2>&1
echo "waiting for pod to exit"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,14 @@ jobs:
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
allure_results_artifact_name: allure-results-${{ matrix.testbed }}

# necessary because if conditionals in composite actions are currently not respected
# necessary because if conditionals in composite actions are currently not respected
- name: get tests logs
if: always()
continue-on-error: true
run: |
podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true

- name: delete namespace
if: always()
continue-on-error: true
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/interop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ jobs:
CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }}

# necessary because if conditionals in composite actions are currently not respected
- name: get tests logs
if: always()
continue-on-error: true
run: |
podname=$(kubectl get pods -n interop-${{ github.run_id }}-galaxy-s9 --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
kubectl logs --timestamps -n interop-${{ github.run_id }}-galaxy-s9 $podname || true

- name: delete namespace
if: always()
continue-on-error: true
Expand Down Expand Up @@ -234,6 +241,13 @@ jobs:
CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }}

# necessary because if conditionals in composite actions are currently not respected
- name: get tests logs
if: always()
continue-on-error: true
run: |
podname=$(kubectl get pods -n interop-${{ github.run_id }}-iphone-11 --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
kubectl logs --timestamps -n interop-${{ github.run_id }}-iphone-11 $podname || true

- name: delete namespace
if: always()
continue-on-error: true
Expand Down Expand Up @@ -322,6 +336,13 @@ jobs:
CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }}

# necessary because if conditionals in composite actions are currently not respected
- name: get tests logs
if: always()
continue-on-error: true
run: |
podname=$(kubectl get pods -n interop-${{ github.run_id }}-galaxy-s10 --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
kubectl logs --timestamps -n interop-${{ github.run_id }}-galaxy-s10 $podname || true

- name: delete namespace
if: always()
continue-on-error: true
Expand Down Expand Up @@ -411,6 +432,13 @@ jobs:
CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }}

# necessary because if conditionals in composite actions are currently not respected
- name: get tests logs
if: always()
continue-on-error: true
run: |
podname=$(kubectl get pods -n interop-${{ github.run_id }}-iphone-7 --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
kubectl logs --timestamps -n interop-${{ github.run_id }}-iphone-7 $podname || true

- name: delete namespace
if: always()
continue-on-error: true
Expand Down Expand Up @@ -498,6 +526,13 @@ jobs:
CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }}

# necessary because if conditionals in composite actions are currently not respected
- name: get tests logs
if: always()
continue-on-error: true
run: |
podname=$(kubectl get pods -n interop-${{ github.run_id }}-galaxy-s20 --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
kubectl logs --timestamps -n interop-${{ github.run_id }}-galaxy-s20 $podname || true

- name: delete namespace
if: always()
continue-on-error: true
Expand Down Expand Up @@ -584,6 +619,13 @@ jobs:
CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }}

# necessary because if conditionals in composite actions are currently not respected
- name: get tests logs
if: always()
continue-on-error: true
run: |
podname=$(kubectl get pods -n interop-${{ github.run_id }}-iphone-xr --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
kubectl logs --timestamps -n interop-${{ github.run_id }}-iphone-xr $podname || true

- name: delete namespace
if: always()
continue-on-error: true
Expand Down Expand Up @@ -672,6 +714,13 @@ jobs:
CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }}

# necessary because if conditionals in composite actions are currently not respected
- name: get tests logs
if: always()
continue-on-error: true
run: |
podname=$(kubectl get pods -n interop-${{ github.run_id }}-pixel-4 --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
kubectl logs --timestamps -n interop-${{ github.run_id }}-pixel-4 $podname || true

- name: delete namespace
if: always()
continue-on-error: true
Expand Down Expand Up @@ -757,6 +806,13 @@ jobs:
CLOUDSHELL_PASSWORD: ${{ secrets.CLOUDSHELL_PASSWORD }}

# necessary because if conditionals in composite actions are currently not respected
- name: get tests logs
if: always()
continue-on-error: true
run: |
podname=$(kubectl get pods -n interop-${{ github.run_id }}-iphone-12 --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
kubectl logs --timestamps -n interop-${{ github.run_id }}-iphone-12 $podname || true

- name: delete namespace
if: always()
continue-on-error: true
Expand Down
Loading