How to see the full log while a workflow is in progress?

Sometimes a workflow hangs and then one wants to see the full output so far to help debug it.

However, this doesn’t seem possible on GitHub Actions, because the full log only seems available when the step or job is terminated.

The only workaround therefore seems to terminate the job, but that’s impractical as sometimes a step just takes a long time to execute without much output, and yet seeing the intermediate output would reveal why it’s hanging or what it did last.

So, is there any way to see the current output of a step while it is in progress?

8 Likes

Hi @eregon,

For in progress steps, we stream (best effort) the logs to the browser. If you have the logs open, when the step starts, you’ll have the complete log in the UI.

The ability to backscroll in progress steps is on our backlog. Definitely agree this would be useful for a lot of people.

4 Likes

Thanks for the reply.

Indeed, in my case I come back to the workflow since it runs for quite a while, and therefore I don’t keep a tab open.

Good to hear it’s in the backlog.

@mscoutermarsh, is it possible to selectively retrieve the log for an individual step within a job?

@mscoutermarsh wrote:

Hi @eregon,

 

For in progress steps, we stream (best effort) the logs to the browser. If you have the logs open, when the step starts, you’ll have the complete log in the UI.

 

The ability to backscroll in progress steps is on our backlog. Definitely agree this would be useful for a lot of people.

@bhuwan-agarwal We don’t have that available currently.

Were you wanting to download in the UI? Or via an API?

API.

Any idea when it’ll be available?

1 Like

Is this really still an issue? I have steps that takes few minutes. I really need to wait for them to finish before seeing the logs?

Any updates on this, or workarounds people have developed (ways to access logs via the REST API, etc)?

I second that this is useful.

I envision simply including the arrow, and stream normally. When the arrow is clicked, the log file is loaded to replace the previous output. Should be able to reuse existing code