Skip to content

Investigate using Actions API to retrieve single job run logs #11118

@babakks

Description

@babakks

Context

We have had a good number of issues pointing out gh run view (--log | --log-failed) command fails to display the requested job run logs. One of the reasons, for most of the cases, was the changes made to the ZIP file structure (i.e. file naming and sanitisation of special chars) that gh downloads to extract the logs from.

Suggested approach

As of our internal comms, @robherley, suggested using this API endpoint to fetch individual job run logs.

We need to investigate this and see how we can use this endpoint, and potentially replacing the code around handling downloaded ZIP archives.

Expected outcomes

  • We know if we can safely replace the current behaviour, with the use of the new endpoint API, or at least use the mentioned endpoint in specific scenarios.
  • Either:
    • Another issue is created with clear expectations to proceed with the implementation.
    • This is issue is closed with a comment explaining why we're abandoning the idea.

Metadata

Metadata

Assignees

Labels

coreThis issue is not accepting PRs from outside contributorsgh-runrelating to the gh run command

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions