-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Demo for Vale review comments in Prow CI #72450
Conversation
@@ -6,6 +6,8 @@ | |||
[id="cnf-performing-end-to-end-tests-disconnected-mode_{context}"] | |||
= Running latency tests in a disconnected cluster | |||
|
|||
Adding the error term GIT to trigger a Vale alert. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[error] RedHat.CaseSensitiveTerms: Use 'Git' rather than 'GIT'.
|
||
This is passive tense - the cat was eaten by the dog - but it is only a Vale suggestion so won't trigger a Vale review comment. | ||
|
||
However, if I use the term white hat hacker, this term is a Vale error and triggers a Vale review comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[error] RedHat.TermsErrors: Use 'offensive security researcher' rather than 'white hat hacker'.
@@ -46,7 +46,7 @@ spec: | |||
---- | |||
<1> The `storagePools` stanza is an array that can contain both basic and PVC template storage pools. | |||
<2> Specify the storage pool directories under this node path. | |||
<3> Optional: The `volumeMode` parameter can be either `Block` or `Filesystem` as long as it matches the provisioned volume format. If no value is specified, the default is `Filesystem`. If the `volumeMode` is `Block`, the mounting pod creates an XFS file system on the block volume before mounting it. | |||
<3> Optional: The `volumeMode` parameter can be either `Block` or `Filesystem` as long as it matches the provisioned volume format. If no value is specified, the default is `Filesystem`. If the `volumeMode` is `Block`, the mounting pod creates an XFS file system on the block volume before mounting it. Editing this sentence triggers a Vale review comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[error] RedHat.TermsErrors: Use 'if' or 'provided that' rather than 'as long as'.
ebe559a
to
7ac5bb8
Compare
@@ -6,6 +6,10 @@ | |||
[id="cnf-performing-end-to-end-tests-disconnected-mode_{context}"] | |||
= Running latency tests in a disconnected cluster | |||
|
|||
Adding the error term GIT to trigger a Vale alert. | |||
|
|||
Adding this in a second commit to show only 1 further Vale review comment: lower case podman is an error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[error] RedHat.CaseSensitiveTerms: Use 'Podman' rather than 'podman'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 further Vale review comment
Is it possible to point out where numeral should be spelled out? ISG: In general write in words numbers that are less than 10.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Michael, this would be a potential Vale rule. If it the rule was created with a level of "error", then yes it would trigger a review comment. Good idea. The only tricky part is avoiding false positives. I opened a Vale issue. Thanks!
7ac5bb8
to
3c5b608
Compare
@rohennes: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Proof of concept (POC) for running Vale in the Prow CI. All feedback welcome.
level: error
) Vale rules.Test it out by PR'ing the
prow-test-2
branch with content that will trigger an error level Vale rule. For example, use the term "hyperthreading" in content.