Skip to content

Commit

Permalink
ghactions: more rte logs on error
Browse files Browse the repository at this point in the history
turns out that if we target a specific pod we get the full
available logs, vs a reduced log amount if we target by label

since in CI the RTE pod name is fairly predicatable and
we have few pods, let's find (hackishly) the pod name and
let's target it to get more context.

Signed-off-by: Francesco Romani <[email protected]>
  • Loading branch information
ffromani committed Apr 10, 2024
1 parent 6a3fe8d commit a850148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
- name: show RTE logs
if: ${{ failure() }}
run: |
kubectl logs -l name=resource-topology -c resource-topology-exporter-container || :
kubectl logs -c resource-topology-exporter-container $( kubectl get pods --no-headers -o custom-columns=":metadata.name" | grep -- resource-topology-exporter ) || :
e2e-metrics:
strategy:
Expand Down Expand Up @@ -183,4 +183,4 @@ jobs:
- name: show RTE logs
if: ${{ failure() }}
run: |
kubectl logs -l name=resource-topology -c resource-topology-exporter-container || :
kubectl logs -c resource-topology-exporter-container $( kubectl get pods --no-headers -o custom-columns=":metadata.name" | grep -- resource-topology-exporter ) || :

0 comments on commit a850148

Please sign in to comment.