[PATCH v2 0/2] gitlab: Add issue templates

Gitlab allows projects to define templates for filing issues [1]. Libvirt didn't have them yet. We can use them to encourage users to file better bug reports and feature requests. Differences to v1: - dropped bug-qemu.md template - vastly shortened comment blocks - all comments are single line only to prevent users adding info inside of them - more fill-in fields instead of comment guidance You can test-drive the proposed templates in my test repo: https://gitlab.com/pipo.sk/test/-/issues/new Peter Krempa (2): gitlab: Add issue template for reporting a generic bug gitlab: Add issue template for a feature request .gitlab/issue_templates/bug.md | 26 ++++++++++++++++++++++++++ .gitlab/issue_templates/feature.md | 14 ++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .gitlab/issue_templates/bug.md create mode 100644 .gitlab/issue_templates/feature.md -- 2.28.0

When reporting an issue in gitlab, the project can define a template for various scenarios which are meant to guide the users to add the relevant information the project needs to the reported issue. Add a template for a generic bug report against libvirt. The template adds sections which motivate users to add version information and also link to documentation about fetching logs and such. Another section then motivates the users to describe the steps taken and also the expected outcome if it's not obvious. Finally a template also automatically applies one or more labels, so new issues are already partially pre-triaged. Note that markdown seems to be the only supported format for now. Signed-off-by: Peter Krempa <pkrempa@redhat.com> --- .gitlab/issue_templates/bug.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitlab/issue_templates/bug.md diff --git a/.gitlab/issue_templates/bug.md b/.gitlab/issue_templates/bug.md new file mode 100644 index 0000000000..f3a9f3e722 --- /dev/null +++ b/.gitlab/issue_templates/bug.md @@ -0,0 +1,26 @@ +<!-- See https://libvirt.org/bugs.html#quality for guidance --> + +## Software environment + - Operating system: + - Architecture: + - kernel version: + - libvirt version: + - Hypervisor and version: + +## Description of problem + +## Steps to reproduce +1. +2. +3. + +## Expected behavior + +## Additional information +<!-- Attach XML configs, logs, stack traces, etc. Compress the files if necessary --> +<!-- See https://libvirt.org/kbase/debuglogs.html on how to configure logging --> + + + +<!-- The line below ensures that proper tags are added to the issue. -- > +/label ~bug -- 2.28.0

On Tue, Dec 01, 2020 at 06:52:16AM +0100, Peter Krempa wrote:
When reporting an issue in gitlab, the project can define a template for various scenarios which are meant to guide the users to add the relevant information the project needs to the reported issue.
Add a template for a generic bug report against libvirt. The template adds sections which motivate users to add version information and also link to documentation about fetching logs and such.
Another section then motivates the users to describe the steps taken and also the expected outcome if it's not obvious.
Finally a template also automatically applies one or more labels, so new issues are already partially pre-triaged.
Note that markdown seems to be the only supported format for now.
Signed-off-by: Peter Krempa <pkrempa@redhat.com> --- .gitlab/issue_templates/bug.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitlab/issue_templates/bug.md
diff --git a/.gitlab/issue_templates/bug.md b/.gitlab/issue_templates/bug.md new file mode 100644 index 0000000000..f3a9f3e722 --- /dev/null +++ b/.gitlab/issue_templates/bug.md @@ -0,0 +1,26 @@ +<!-- See https://libvirt.org/bugs.html#quality for guidance --> + +## Software environment + - Operating system: + - Architecture: + - kernel version: + - libvirt version: + - Hypervisor and version: + +## Description of problem + +## Steps to reproduce +1. +2. +3. + +## Expected behavior
I wonder if we need this - I've always found the expected/actual behaviour sections in bugzilla's template redundant, as the description should already cover it. Regardless of answer, though it can have Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
+ +## Additional information +<!-- Attach XML configs, logs, stack traces, etc. Compress the files if necessary --> +<!-- See https://libvirt.org/kbase/debuglogs.html on how to configure logging --> + + + +<!-- The line below ensures that proper tags are added to the issue. -- > +/label ~bug -- 2.28.0
Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

On Tue, Dec 01, 2020 at 09:19:20 +0000, Daniel Berrange wrote:
On Tue, Dec 01, 2020 at 06:52:16AM +0100, Peter Krempa wrote:
When reporting an issue in gitlab, the project can define a template for various scenarios which are meant to guide the users to add the relevant information the project needs to the reported issue.
Add a template for a generic bug report against libvirt. The template adds sections which motivate users to add version information and also link to documentation about fetching logs and such.
Another section then motivates the users to describe the steps taken and also the expected outcome if it's not obvious.
Finally a template also automatically applies one or more labels, so new issues are already partially pre-triaged.
Note that markdown seems to be the only supported format for now.
Signed-off-by: Peter Krempa <pkrempa@redhat.com> --- .gitlab/issue_templates/bug.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitlab/issue_templates/bug.md
diff --git a/.gitlab/issue_templates/bug.md b/.gitlab/issue_templates/bug.md new file mode 100644 index 0000000000..f3a9f3e722 --- /dev/null +++ b/.gitlab/issue_templates/bug.md @@ -0,0 +1,26 @@ +<!-- See https://libvirt.org/bugs.html#quality for guidance --> + +## Software environment + - Operating system: + - Architecture: + - kernel version: + - libvirt version: + - Hypervisor and version: + +## Description of problem + +## Steps to reproduce +1. +2. +3. + +## Expected behavior
I wonder if we need this - I've always found the expected/actual behaviour sections in bugzilla's template redundant, as the description should already cover it.
Hmm, yeah. In many cases it's just "$THING is happening" in description and expected behaviour: "$THING should not happen"
Regardless of answer, though it can have
I'll drop it. Bugzilla had it maybe to cover the "Feature request" use case where the "current behaviour" field is redundant.

Try to motivate the users to describe what they want to achieve before diving down into technical specifics. Signed-off-by: Peter Krempa <pkrempa@redhat.com> --- .gitlab/issue_templates/feature.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitlab/issue_templates/feature.md diff --git a/.gitlab/issue_templates/feature.md b/.gitlab/issue_templates/feature.md new file mode 100644 index 0000000000..f32faae82b --- /dev/null +++ b/.gitlab/issue_templates/feature.md @@ -0,0 +1,14 @@ +## Goal +<!-- Describe the final result you want to achieve. Avoid design specifics. --> + + +## Technical details +<!-- Describe technical details, design specifics, suggestions, versions, etc. --> + + +## Additional information + + + +<!-- The line below ensures that proper tags are added to the issue. -- > +/label ~enhancement -- 2.28.0

On Tue, Dec 01, 2020 at 06:52:17AM +0100, Peter Krempa wrote:
Try to motivate the users to describe what they want to achieve before diving down into technical specifics.
Signed-off-by: Peter Krempa <pkrempa@redhat.com> --- .gitlab/issue_templates/feature.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitlab/issue_templates/feature.md
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
participants (2)
-
Daniel P. Berrangé
-
Peter Krempa