Limit PR labeling#4795
Conversation
|
The PR preview for b80e0d1 is available at theforeman-foreman-documentation-preview-pr-4795.surge.sh The following output files are affected by this PR: |
|
I don't understand why a guide is affected by this change... the diff should be clean. |
maximiliankolb
left a comment
There was a problem hiding this comment.
LGTM; more input welcome.
| Needs testing: | ||
| - changed-files: | ||
| - any-glob-to-any-file: ['guides/**'] | ||
| - any-glob-to-any-file: ['guides/common/modules/proc_*.adoc'] |
There was a problem hiding this comment.
I think this misses some things. An assembly can be changed to include another pre-existing procedure (that isn't modified), resulting in some final change that does need to be tested. I'd be safe and accept some false positives over false negatives.
There was a problem hiding this comment.
Thanks, Ewoud. In that case, I'll add assemblies as well.
There was a problem hiding this comment.
| - any-glob-to-any-file: ['guides/common/modules/proc_*.adoc'] | |
| - any-glob-to-any-file: ['guides/common/assembly_*.adoc','guides/common/modules/proc_*.adoc'] |
There was a problem hiding this comment.
I think you missed my point. I was suggesting to not change the line because the master.adoc files could also make a difference. Or attributes. If anything, it's probably guides/**/*.adoc.
There was a problem hiding this comment.
@aneta-petrova What is your opinion on this?
There was a problem hiding this comment.
@ekohl I disagree in principle because I don't think we should make functional changes in such a large scope. When we change master.adoc, it's most often a restructuring without functional changes. With attributes, I'm not sure, that's less than 50 % where attributes would be changed that affects procedures. And when the attribute change does affect procedures, it goes with changes in steps -> proc_* files. I'd go with adding the label manually for edge cases.
There was a problem hiding this comment.
We can always try it out and change it later ;)
There was a problem hiding this comment.
@aneta-petrova What is your opinion on this?
I haven't had a chance to take a closer look so I don't have one :) There are four clever people trying to get this right already, I don't think there's a need to throw my brain into the mix too ;)
There was a problem hiding this comment.
@ekohl I disagree in principle because I don't think we should make functional changes in such a large scope. When we change
master.adoc, it's most often a restructuring without functional changes. With attributes, I'm not sure, that's less than 50 % where attributes would be changed that affects procedures. And when the attribute change does affect procedures, it goes with changes in steps -> proc_* files. I'd go with adding the label manually for edge cases.
And I'm still worried about missing those changes and think it's more important to avoid false negatives at the cost of some false positives.
There's no reason it can't be dropped later when there are too many false positives, but I think the changes to master.adoc and attributes are rare enough that still deserve a special look.
There was a problem hiding this comment.
"Special look" is what the tech review is for, which is labeled for every change under guides/**. Testing means going through a procedure step-by-step.
Perhaps a race condition between merges? |
|
@Lennonka This is just a change to which labels are assigned automatically, correct? We can still manually add "needs testing" to whichever PR we need, right? |
|
@jafiala Correct. |
It only affects creation: foreman-documentation/.github/workflows/labeler.yml Lines 8 to 11 in 9a80761 So if you open an empty PR then it won't attach any labels, even if you later add files. |
|
I'm going to merge this so that we can try it out. If we're not happy with it later, we can always change it back. I'll keep those commits separate. And we still can add the labels manually if needed. |
What changes are you introducing?
guides/folderWhy are you introducing these changes? (Explanation, links to references, issues, etc.)
guides/folder don't really need formal tech/style reviews, just community agreementAnything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)
Contributor checklists
Please cherry-pick my commits into: Not sure how far we label