Giter VIP home page Giter VIP logo

Comments (10)

SamYuan1990 avatar SamYuan1990 commented on June 14, 2024

https://github.com/sustainable-computing-io/kepler/actions/runs/3073381944/jobs/4965474260#step:8:233
I see latest CI passed, @rootfs is this issue able to reproduce easily?

from kepler.

rootfs avatar rootfs commented on June 14, 2024

let's keep an eye on it and re-open this issue if it happens again.

from kepler.

marceloamaral avatar marceloamaral commented on June 14, 2024

Maybe we need a larger timeout?
Let's see if it happen again

from kepler.

rootfs avatar rootfs commented on June 14, 2024

#231 (comment)

from kepler.

SamYuan1990 avatar SamYuan1990 commented on June 14, 2024

need further investigate with https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging

from kepler.

marceloamaral avatar marceloamaral commented on June 14, 2024

Thanks @SamYuan1990!

What we need is the artifacts https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts

So we will dump the logs and description of the pods to files in the artifact folder
Something like:

kubectl describe pod -n $1 $2 > $artifacts/describe/pod/$2
kubectl logs -n $1 $2 > $artifacts/logs/pod/$2

But, to save space we just dump the info when something fail

from kepler.

SamYuan1990 avatar SamYuan1990 commented on June 14, 2024

Thanks @SamYuan1990!

What we need is the artifacts https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts

So we will dump the logs and description of the pods to files in the artifact folder Something like:

kubectl describe pod -n $1 $2 > $artifacts/describe/pod/$2
kubectl logs -n $1 $2 > $artifacts/logs/pod/$2

But, to save space we just dump the info when something fail

any suggestion for fail handle?
I suppose our points is

when fail happnes.
kubectl describe pod -n $1 $2 > $artifacts/describe/pod/$2
kubectl logs -n $1 $2 > $artifacts/logs/pod/$2

from kepler.

marceloamaral avatar marceloamaral commented on June 14, 2024

@SamYuan1990 something like:

function logdump {
   kubectl get po -A -o custom-columns=namespace:.metadata.namespace,name:.metadata.name | tail +2 | while read -r line ; do 
     line=($line)
     namespace=${line[0]}
     podname=${line[1]}
     
     mkdir -p $artifacts/describe/pod/$namespace
     mkdir -p$artifacts/logs/pod/$namespace
     
     kubectl describe pod -n $namespace $podname > $artifacts/describe/pod/$namespace/$podname
     kubectl logs -n $namespace $podname > $artifacts/logs/pod/$namespace/$podname
   done
   
}

trap 'logdump' ERR

from kepler.

SamYuan1990 avatar SamYuan1990 commented on June 14, 2024

@rootfs ,is this issue able to be reproduced after we fixed panic issue?

from kepler.

rootfs avatar rootfs commented on June 14, 2024

@SamYuan1990 we are not seeing it recently.

from kepler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.