Skip to content

Provide more info on run/log from gh run watch, especially/only on error #6741

Open

Description

@petrbouchal

Describe the feature or problem you’d like to solve

When I watch a run and it fails, I typically want to go inspect the log, which currently requires me to switch the browser and click through the web interface. It would be great to have more information immediately or a simple way to get more information, especially when a run ends in error. Even viewing the log/run is quite difficult as I do not typically have the run ID to hand

Proposed solution

It may be useful to provide some or more of the following:

  • a link to the run (as the output of gh run view currently does)
  • a link to the log
  • make it easy to directly view the log through a command hint
  • provide a menu-based option to view the log or open it in the browser

How will it benefit CLI and its users?

Faster way to understanding what went wrong without opening the browser and clicking or without figuring out another command and ID.

Activity

  1. added
    enhancement
    on Dec 17, 2022
  2. added
    needs-triage
    on Dec 17, 2022
  3. vilmibm commented on Dec 19, 2022

    @vilmibm
    Contributor

    Just to help me understand -- is the functionality of gh run view <id> --log-failed useful? because if a hint to run that isn't currently printed with <id> filled in I am definitely in favor of adding that

  4. added
    needs-design
    core
    and removed
    needs-triage
    on Dec 19, 2022
  5. petrbouchal commented on Dec 19, 2022

    @petrbouchal
    Author

    Yes, that is useful! And having the hint would be great - would save copy-pasting the ID as you say.

    However, looking at how overwhelming the log can be when printed raw in the console, a link pointing directly to the log online may be as/more helpful in some cases.

  6. vilmibm commented on Dec 20, 2022

    @vilmibm
    Contributor

    cool, I think we could hint to both.

  7. Nidacoke commented on Apr 11, 2023

    @Nidacoke
  8. devurandom commented on Sep 25, 2023

    @devurandom

    #3484 seems related.

  9. added
    gh-run
    on Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreenhancementgh-runneeds-design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions