Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Add log file to GitHub issue output #11158

Merged
merged 12 commits into from
Apr 24, 2021

Conversation

spowelljr
Copy link
Member

@spowelljr spowelljr commented Apr 20, 2021

Closes #9398

Adds a line to the output when we tell the user to create a GitHub issue. The line contains the path of the latest log file to be attached to the GitHub issue to aid in debugging the issue.

Tested on Mac and Linux so far, will test on Windows as well.

Before

❌  Exiting due to GUEST_START: wait 6m0s for node: waiting for apps_running: expected k8s-apps: missing components: kube-dns

😿  If the above advice does not help, please let us know: 
👉  https://github.com/kubernetes/minikube/issues/new/choose

After

❌  Exiting due to GUEST_START: wait 6m0s for node: waiting for apps_running: expected k8s-apps: missing components: kube-dns

╭────────────────────────────────────────────────────────────────────╮
│                                                                    │
│    😿  If the above advice does not help, please let us know:      │
│    👉  https://github.com/kubernetes/minikube/issues/new/choose    │
│                                                                    │
│    Please attach the following file to the GitHub issue:           │
│    - /Users/powellsteven/.minikube/logs/lastStart.txt              │
│                                                                    │
╰────────────────────────────────────────────────────────────────────╯

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 20, 2021
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 20, 2021
@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@spowelljr spowelljr changed the title Add log file to GitHub issue Add log file to GitHub issue output Apr 20, 2021
Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add before after this PR to the description

pkg/minikube/out/out.go Outdated Show resolved Hide resolved
pkg/minikube/out/out.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 20, 2021
Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also change UI to be more easy to see
maybe use the Red Box ui helper we have

❌  Exiting due to GUEST_START: wait 6m0s for node: waiting for apps_running: expected k8s-apps: missing components: kube-dns

-----------------  Red Box thing --------------------------------- 
😿  If the above advice does not help, please let us know by filing an issue
👉  https://github.com/kubernetes/minikube/issues/new/choose
and provide the following information in the issue
   -  /Users/powellsteven/.minikube/logs/lastStart.txt
   -     - minikube logs
----------------------------------------------------------------- 

@medyagh
Copy link
Member

medyagh commented Apr 21, 2021

please update the UI in the PR description whenever new UI ready

Copy link
Member

@medyagh medyagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets add back the crying cat emoji
😿

@medyagh medyagh merged commit f854a08 into kubernetes:master Apr 24, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: medyagh, spowelljr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 24, 2021
@medyagh medyagh changed the title Add log file to GitHub issue output UI: Add log file to GitHub issue output Apr 24, 2021
@spowelljr spowelljr deleted the addLogFileToGithubIssue branch June 28, 2021 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fatal errors should include the path to the post-mortem INFO log
4 participants