1
0

.triage-policies.yml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. # This is a set of bugbot commands for issues and merge requests - setting any of the
  2. # bugbot::foo labels will trigger gitlab-triage to run with this ruleset (well, the
  3. # one we have on the main branch at the time)
  4. #
  5. # Note that for adding labels, the label must first created in the project.
  6. # Re-used in issues and mrs
  7. .close_needinfo: &close_needinfo
  8. name: "Close stale needinfo bugs"
  9. conditions:
  10. labels:
  11. - "bugbot::needinfo-timeout"
  12. actions:
  13. remove_labels:
  14. - "bugbot::needinfo-timeout"
  15. comment: |
  16. I'm closing this bug because some information we requested a while ago was never supplied and
  17. we're not able to continue without this information.
  18. Please feel free to re-open.
  19. status: "close"
  20. .remind_needinfo: &remind_needinfo
  21. name: "Remind users of needinfo bugs"
  22. conditions:
  23. labels:
  24. - "bugbot::needinfo-reminder"
  25. actions:
  26. labels:
  27. - "waiting on reporter"
  28. remove_labels:
  29. - "bugbot::needinfo-reminder"
  30. comment: |
  31. Hi. This is a friendly reminder that the maintainers are waiting on some information by
  32. you (or maybe someone cc'd on this bug). If the information is not provided we may not
  33. be able to proceed with this issue or merge request. Please check the recent comments, thanks.
  34. .help_needed: &help_needed
  35. name: "Remind users help is needed"
  36. conditions:
  37. labels:
  38. - "bugbot::help-needed"
  39. actions:
  40. labels:
  41. - "help needed"
  42. remove_labels:
  43. - "bugbot::help-needed"
  44. comment: |
  45. Hi. This issue or merge request needs help. This simply means that for
  46. the foreseeable future, the maintainers will not have time to work on
  47. this.
  48. If this is a request for a new feature, then the feature is unlikely to
  49. be implemented unless you or another contributor files a merge request.
  50. If a merge request already exists maybe it needs finishing which often
  51. involves adding documentation or tests.
  52. If this is an issue affecting a specific device then it is unlikely to be
  53. fixed. This may be because it requires specific hardware to reproduce or
  54. it may be that the use case is niche enough that the maintainers do not
  55. have time to implement it.
  56. In short, to resolve this issue or get this merge request into libinput
  57. help is needed.
  58. .libinput_record: &libinput_record
  59. name: "Request libinput record output"
  60. conditions:
  61. labels:
  62. - "bugbot::libinput-record"
  63. actions:
  64. remove_labels:
  65. - "bugbot::libinput-record"
  66. comment: |
  67. Looks like we may need some extra information. Please **attach** (do not paste) the full output
  68. of `libinput record` and `libinput debug-events --verbose` (if you haven't yet).
  69. The [documentation](https://wayland.freedesktop.org/libinput/doc/latest/tools.html#libinput-record-and-libinput-replay)
  70. has some information on what we're looking for to be able to triage bugs.
  71. .hid_recorder: &hid_recorder
  72. name: "Request hid-recorder output"
  73. conditions:
  74. labels:
  75. - "bugbot::hid-recorder"
  76. actions:
  77. remove_labels:
  78. - "bugbot::hid-recorder"
  79. comment: |
  80. Looks like we may need some extra information that isn't yet available in this issue.
  81. Please **attach** (do not paste) the output of [`hid-recorder`](https://github.com/hidutils/hid-recorder/)
  82. for this device (run `sudo hid-recorder` without argument and it will let you pick the device).
  83. This should show the data the kernel receives from the device and may provide a hint on what's going on here.
  84. .udev_hid_bpf: &udev_hid_bpf
  85. name: "Punt to udev-hid-bpf"
  86. conditions:
  87. labels:
  88. - "bugbot::udev-hid-bpf"
  89. actions:
  90. remove_labels:
  91. - "bugbot::udev-hid-bpf"
  92. comment: |
  93. This issue looks like it could or should be fixed with [udev-hid-bpf](https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/).
  94. udev-hid-bpf is a collection of BPF programs that modify the HID Report Descriptor and/or HID Reports from the device,
  95. making it possible to change the properties of a device and/or the events to make them compatible with the
  96. expectations the kernel and userspace has of such devices.
  97. Please see the [udev-hid-bpf documentation](https://libevdev.pages.freedesktop.org/udev-hid-bpf/) for details
  98. and/or in particular the [udev-hid-bpf tutorial](https://libevdev.pages.freedesktop.org/udev-hid-bpf/tutorial.html)
  99. if you need to enable a new device.
  100. status: "close"
  101. resource_rules:
  102. issues:
  103. rules:
  104. - name: "Close kernel bugs"
  105. conditions:
  106. labels:
  107. - "bugbot::kernel"
  108. actions:
  109. labels:
  110. - "kernel"
  111. remove_labels:
  112. - "bugbot::kernel"
  113. comment: |
  114. This bug looks like a kernel issue and it cannot be fixed
  115. in libinput directly. I'm closing this bug but do feel free
  116. to continue discussing the issue here.
  117. Kernel bugs are usually best sent to the [`linux-input` list](https://lore.kernel.org/linux-input/).
  118. status: "close"
  119. - name: "Expect a merge request"
  120. conditions:
  121. labels:
  122. - "bugbot::expect-mr"
  123. actions:
  124. remove_labels:
  125. - "bugbot::expect-mr"
  126. comment: |
  127. I'm closing this bug in anticipation of a merge request that fixes this issue.
  128. If you are a new contributor, please see
  129. [the freedesktop.org wiki](https://gitlab.freedesktop.org/freedesktop/freedesktop/-/wikis/home)
  130. on how to get permissions to fork a project and file a merge request.
  131. The [libinput documentation](https://wayland.freedesktop.org/libinput/doc/latest/contributing.html)
  132. also has more details on how to get started.
  133. status: "close"
  134. - name: "Point to 60-evdev.hwdb"
  135. conditions:
  136. labels:
  137. - "bugbot::evdev-hwdb"
  138. actions:
  139. remove_labels:
  140. - "bugbot::evdev-hwdb"
  141. comment: |
  142. Looks like this issue may be solved with a device-specific entry in systemd's hwdb.
  143. You should have a /usr/lib/udev/hwdb.d/60-evdev.hwdb file which includes those quirks. Please see
  144. the top of the file for instructions and follow those. Once the quirk is confirmed working
  145. this issue (or parts thereof) should be fixed and you can submit a pull request to the
  146. [systemd](https://github.com/systemd/systemd/) repository to get that quirk included.
  147. Please link to the systemd issue here, thanks.
  148. I'm closing this issue now, if the hwdb entry does not fix this issue here, please re-open.
  149. status: "close"
  150. - name: "Close bug for reopening"
  151. conditions:
  152. labels:
  153. - "bugbot::close"
  154. actions:
  155. remove_labels:
  156. - "bugbot::close"
  157. comment: |
  158. I'm temporarily closing this bug. The bug may not be fixed yet (see any comments above)
  159. and we **want you to reopen it when/if it becomes actionable again**.
  160. This process may feel unfamiliar but unfortunately closing/re-opening is the only action
  161. all GitLab users are permitted to do. So we close it, you re-open it when whatever
  162. above has been addressed and then we know we need to look at it again.
  163. This issue may be closed more than once in a similar fashion but I only leave this
  164. comment once since now you understand how it works. :smile:
  165. For a detailed explanation on the how and why of this process please see
  166. the [Closed Issues wiki page](https://gitlab.freedesktop.org/libinput/libinput/-/wikis/Closed-Issues).
  167. status: "close"
  168. - name: "Re-close bug for reopening"
  169. conditions:
  170. labels:
  171. - "bugbot::re-close"
  172. actions:
  173. remove_labels:
  174. - "bugbot::re-close"
  175. comment: |
  176. I'm temporarily closing this bug again. This is not a final close, see my comments above for the open/close process.
  177. status: "close"
  178. - *udev_hid_bpf
  179. - *libinput_record
  180. - *hid_recorder
  181. - *close_needinfo
  182. - *remind_needinfo
  183. - *help_needed
  184. merge_requests:
  185. rules:
  186. - name: "Remind contributor of commit rules"
  187. conditions:
  188. labels:
  189. - "bugbot::commit-rules"
  190. actions:
  191. remove_labels:
  192. - "bugbot::commit-rules"
  193. comment: |
  194. Hi. Looks like the pipeline failed because one or more of the commits in this MR do not meet our requirements.
  195. Most commonly this the format of the commit message itself. The "Test summary" above has the details.
  196. Please see [our docs for commit messages](https://wayland.freedesktop.org/libinput/doc/latest/contributing.html#commit-messages)
  197. and [our docs for submitting code](https://wayland.freedesktop.org/libinput/doc/latest/contributing.html#submitting-code)
  198. that explain how to amend and force-push to this repo.
  199. - name: "Remind contributor that info needs to be in commit messages"
  200. conditions:
  201. labels:
  202. - "bugbot::info-in-commit-message"
  203. actions:
  204. remove_labels:
  205. - "bugbot::info-in-commit-message"
  206. comment: |
  207. Hi. Thanks for the merge request. I'm here to request that you add
  208. some documentation about this merge request to the
  209. **commit message** (or messages). You may have already written some
  210. in the merge request description and in many cases it's fine to
  211. copy/paste that into the commit message(s).
  212. The reason is simple: once merged, no-one really looks at this this
  213. page here anymore. The git log on the other hand is what developers
  214. will use to understand the code so the information must be quickly
  215. accessible via git.
  216. Please see [our docs for submitting code](https://wayland.freedesktop.org/libinput/doc/latest/contributing.html#submitting-code)
  217. that explain how to amend and force-push to this repo.
  218. - *udev_hid_bpf
  219. - *libinput_record
  220. - *hid_recorder
  221. - *close_needinfo
  222. - *remind_needinfo
  223. - *help_needed