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

chore: label-actions comments when logs:problem label is applied #9242

Merged
merged 10 commits into from
Mar 25, 2021

Conversation

HonkingGoose
Copy link
Collaborator

@HonkingGoose HonkingGoose commented Mar 22, 2021

Changes:

  • label-actions will comment when logs:problem label is applied
  • Explain logs:problem label usage in the development/issue-labeling.md docs

Context:

Originally this PR was just to add a logs:formatting label and comment.

We have decided to make a logs:problem label and capture all 3 things that can go wrong with the logs:

  • No logs at all
  • Logs insufficient
  • Logs badly formatted (wall of text in issue or comment)

After this PR gets merged, @rarkins will need to create the new label, and add a description to the label.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added unit tests, or
  • No new tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@rarkins
Copy link
Collaborator

rarkins commented Mar 22, 2021

Do you think we need a separate label/text for each type of logs problem, or can we combine? I was thinking we can maybe combine these three cases:

  • Logs are missing and we need them (including instructions on how to log locally or retrieve from the app)
  • Logs provided are not sufficient and user needs to provide more
  • User should format them

Or maybe we now have so many labels.. who cares if we split them?

@HonkingGoose
Copy link
Collaborator Author

So we have 2 directions we can take this.
I have listed the options below for discussion.

Option 1: separate logs labels

  • logs:needed: Explain why we need a log, and explain how to log locally/retrieve from app + how to format.
  • logs:insufficient: Explain that provided logs are not sufficient, explain how to log locally/retrieve from app + how to format.
  • logs:formatting: Explain how to format provided logs.

Having 3 logs type labels might be too much, as we already have a lot of labels.

Option 2: one logs:problem label to rule them all

logs:problem: how to log locally/retrieve from app + how to format logs

There's a problem with the logs, we either need a log, or better logs, or the current logs are formatted poorly.
Depending on what situation applies follow one, some or all instructions:

Do .... to retrieve logs from app.
Do .... to retrieve logs from local instance.
Do .... to format the logs properly.

I like the simplicity of just one catch-all label, if there's something wrong, just slap a logs:problem label on it and be done with it. 😄
We do need to take care to craft a comment that works for all 3 use-cases.

@rarkins
Copy link
Collaborator

rarkins commented Mar 22, 2021

Option 2!

@HonkingGoose
Copy link
Collaborator Author

HonkingGoose commented Mar 22, 2021

Well, I made a bunch of changes:

  • Add 3 sections (No logs at all, Insufficient logs, Formatting your logs)
  • Provide instructions for hosted app, and self-hosted (DRAFT!)
  • Use backticks in formatting your logs example (now that I use 4 spaces for indentation backticks work properly again... 🎉 )

Ready for another round of review and suggestions.

If you want to see the current output of the draft v2 commit go to:
https://github.com/HonkingGoose/test-label-action-markdown-log-hint/issues/8

@rarkins
Copy link
Collaborator

rarkins commented Mar 22, 2021

Is it possible for this comment to include details/ summary collapsed sections of its own? Eg one for each case

@HonkingGoose
Copy link
Collaborator Author

HonkingGoose commented Mar 22, 2021

Is it possible for this comment to include details/ summary collapsed sections of its own? Eg one for each case

That's a great idea! 😄 And we can actually do this, though the formatting is getting really tricky now. 👻

See https://github.com/HonkingGoose/test-label-action-markdown-log-hint/issues/10 for a example of what the draft v3 commit gives you.

We still need to improve the text for finding logs on self-hosted instances of Renovate, as that is still placeholder text basically.
EDIT: Copy/pasted instructions from our bug report template, as that had some help on finding self-hosted logs. 😄

Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
.github/label-actions.yml Outdated Show resolved Hide resolved
.github/label-actions.yml Outdated Show resolved Hide resolved
HonkingGoose and others added 2 commits March 23, 2021 11:32
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
@HonkingGoose
Copy link
Collaborator Author

I think this is ready for another review, and possibly a merge. 😄

See https://github.com/HonkingGoose/test-label-action-markdown-log-hint/issues/11 for a live preview of the message from commit 156c060.

@HonkingGoose HonkingGoose marked this pull request as ready for review March 23, 2021 15:57
@HonkingGoose HonkingGoose changed the title chore: add formatting hint to label action config chore: label-actions comments when logs:problem label is applied Mar 23, 2021
@HonkingGoose
Copy link
Collaborator Author

Do you want me to update the development/issue-labeling.md docs within this PR as well?

I think it makes sense to add the label and some explanatory text in the issue-labeling, Housekeeping section.

@rarkins
Copy link
Collaborator

rarkins commented Mar 23, 2021

Great job with figuring out the nested formatting!

@rarkins rarkins merged commit de80ec8 into renovatebot:master Mar 25, 2021
@HonkingGoose HonkingGoose deleted the patch-1 branch March 25, 2021 10:15
@HonkingGoose
Copy link
Collaborator Author

Great job with figuring out the nested formatting!

Thank you! 😄

And thank you again for merging my work! ✨

Can you create the label logs:problem, I don't have the rights needed to create labels here, I can only apply existing labels. 😉

@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 24.94.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@HonkingGoose
Copy link
Collaborator Author

@viceice can you please create a new label logs:problem? I don't have the rights to create new labels. 😉

@rarkins rarkins added the auto:logs Issue or Discussion is needs logs/more logs label Apr 22, 2021
@HonkingGoose
Copy link
Collaborator Author

@viceice or @rarkins Thank you for making the label! 🎉

By the way the label action only works on "issues" not on "pull requests":

on:
issues:
types: [labeled]

I'll go try it out on a issue of mine. 😄

@HonkingGoose HonkingGoose removed the auto:logs Issue or Discussion is needs logs/more logs label Apr 22, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants