diff mbox series

[ovs-dev] checkpatch: Ignore yml files when checking line lenghts.

Message ID 20230623121233.315243-1-dceara@redhat.com
State Accepted
Headers show
Series [ovs-dev] checkpatch: Ignore yml files when checking line lenghts. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/intel-ovs-compilation success test: success

Commit Message

Dumitru Ceara June 23, 2023, 12:12 p.m. UTC
As far as I can tell they're used mostly for CI job definitions and
these tend to result in long lines.

Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2023-June/405796.html
Suggested-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
---
 utilities/checkpatch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Eelco Chaudron June 23, 2023, 12:22 p.m. UTC | #1
On 23 Jun 2023, at 14:12, Dumitru Ceara wrote:

> As far as I can tell they're used mostly for CI job definitions and
> these tend to result in long lines.
>
> Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2023-June/405796.html
> Suggested-by: Aaron Conole <aconole@redhat.com>
> Signed-off-by: Dumitru Ceara <dceara@redhat.com>

Looks good to me.

Acked-by: Eelco Chaudron <echaudro@redhat.com>
Eelco Chaudron June 23, 2023, 12:23 p.m. UTC | #2
On 23 Jun 2023, at 14:22, Eelco Chaudron wrote:

> On 23 Jun 2023, at 14:12, Dumitru Ceara wrote:
>
>> As far as I can tell they're used mostly for CI job definitions and
>> these tend to result in long lines.
>>
>> Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2023-June/405796.html
>> Suggested-by: Aaron Conole <aconole@redhat.com>
>> Signed-off-by: Dumitru Ceara <dceara@redhat.com>
>
> Looks good to me.
>
> Acked-by: Eelco Chaudron <echaudro@redhat.com>

Except that ‘lenghts’ in the subject is spelled wrong :)
Dumitru Ceara June 23, 2023, 12:33 p.m. UTC | #3
On 6/23/23 14:23, Eelco Chaudron wrote:
> 
> 
> On 23 Jun 2023, at 14:22, Eelco Chaudron wrote:
> 
>> On 23 Jun 2023, at 14:12, Dumitru Ceara wrote:
>>
>>> As far as I can tell they're used mostly for CI job definitions and
>>> these tend to result in long lines.
>>>
>>> Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2023-June/405796.html
>>> Suggested-by: Aaron Conole <aconole@redhat.com>
>>> Signed-off-by: Dumitru Ceara <dceara@redhat.com>
>>
>> Looks good to me.
>>
>> Acked-by: Eelco Chaudron <echaudro@redhat.com>
> 
> Except that ‘lenghts’ in the subject is spelled wrong :)
> 

Oh, oops.  I can post a v2 if needed, just let me know please.

Thanks,
Dumitru
Eelco Chaudron June 23, 2023, 12:34 p.m. UTC | #4
On 23 Jun 2023, at 14:33, Dumitru Ceara wrote:

> On 6/23/23 14:23, Eelco Chaudron wrote:
>>
>>
>> On 23 Jun 2023, at 14:22, Eelco Chaudron wrote:
>>
>>> On 23 Jun 2023, at 14:12, Dumitru Ceara wrote:
>>>
>>>> As far as I can tell they're used mostly for CI job definitions and
>>>> these tend to result in long lines.
>>>>
>>>> Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2023-June/405796.html
>>>> Suggested-by: Aaron Conole <aconole@redhat.com>
>>>> Signed-off-by: Dumitru Ceara <dceara@redhat.com>
>>>
>>> Looks good to me.
>>>
>>> Acked-by: Eelco Chaudron <echaudro@redhat.com>
>>
>> Except that ‘lenghts’ in the subject is spelled wrong :)
>>
>
> Oh, oops.  I can post a v2 if needed, just let me know please.

I guess the committer can change that :)
Aaron Conole June 23, 2023, 2:05 p.m. UTC | #5
Dumitru Ceara <dceara@redhat.com> writes:

> As far as I can tell they're used mostly for CI job definitions and
> these tend to result in long lines.
>
> Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2023-June/405796.html
> Suggested-by: Aaron Conole <aconole@redhat.com>
> Signed-off-by: Dumitru Ceara <dceara@redhat.com>
> ---

Acked-by: Aaron Conole <aconole@redhat.com>
Ilya Maximets June 27, 2023, 8:12 p.m. UTC | #6
On 6/23/23 14:12, Dumitru Ceara wrote:
> As far as I can tell they're used mostly for CI job definitions and
> these tend to result in long lines.

Why not just wrap them?  AFAIK, syntax in most CI systems allows
line wrapping.

Not a strong opinion though, just curious.

Best regards, Ilya Maximets.

> 
> Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2023-June/405796.html
> Suggested-by: Aaron Conole <aconole@redhat.com>
> Signed-off-by: Dumitru Ceara <dceara@redhat.com>
> ---
>  utilities/checkpatch.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
> index 0d30b71b5b7f..64f0efeb474e 100755
> --- a/utilities/checkpatch.py
> +++ b/utilities/checkpatch.py
> @@ -195,7 +195,7 @@ skip_signoff_check = False
>  #
>  # Python isn't checked as flake8 performs these checks during build.
>  line_length_ignore_list = re.compile(
> -    r'\.(am|at|etc|in|m4|mk|patch|py)$|^debian/.*$')
> +    r'\.(am|at|etc|in|m4|mk|patch|py|yml)$|^debian/.*$')
>  
>  # Don't enforce a requirement that leading whitespace be all spaces on
>  # files that include these characters in their name, since these kinds
Dumitru Ceara June 28, 2023, 8:18 a.m. UTC | #7
On 6/27/23 22:12, Ilya Maximets wrote:
> On 6/23/23 14:12, Dumitru Ceara wrote:
>> As far as I can tell they're used mostly for CI job definitions and
>> these tend to result in long lines.
> 
> Why not just wrap them?  AFAIK, syntax in most CI systems allows
> line wrapping.
> 
> Not a strong opinion though, just curious.
> 

I found it less readable in some cases, e.g.:

https://github.com/openvswitch/ovs/blob/master/appveyor.yml#L39-L55

https://github.com/ovn-org/ovn/blob/main/.github/workflows/test.yml#L32-L55

https://github.com/ovn-org/ovn/blob/main/.github/workflows/ovn-kubernetes.yml#L86

It's a personal opinion, of course.

Thanks,
Dumitru

> Best regards, Ilya Maximets.
> 
>>
>> Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2023-June/405796.html
>> Suggested-by: Aaron Conole <aconole@redhat.com>
>> Signed-off-by: Dumitru Ceara <dceara@redhat.com>
>> ---
>>  utilities/checkpatch.py | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
>> index 0d30b71b5b7f..64f0efeb474e 100755
>> --- a/utilities/checkpatch.py
>> +++ b/utilities/checkpatch.py
>> @@ -195,7 +195,7 @@ skip_signoff_check = False
>>  #
>>  # Python isn't checked as flake8 performs these checks during build.
>>  line_length_ignore_list = re.compile(
>> -    r'\.(am|at|etc|in|m4|mk|patch|py)$|^debian/.*$')
>> +    r'\.(am|at|etc|in|m4|mk|patch|py|yml)$|^debian/.*$')
>>  
>>  # Don't enforce a requirement that leading whitespace be all spaces on
>>  # files that include these characters in their name, since these kinds
>
Ilya Maximets June 28, 2023, 11:19 a.m. UTC | #8
On 6/28/23 10:18, Dumitru Ceara wrote:
> On 6/27/23 22:12, Ilya Maximets wrote:
>> On 6/23/23 14:12, Dumitru Ceara wrote:
>>> As far as I can tell they're used mostly for CI job definitions and
>>> these tend to result in long lines.
>>
>> Why not just wrap them?  AFAIK, syntax in most CI systems allows
>> line wrapping.
>>
>> Not a strong opinion though, just curious.
>>
> 
> I found it less readable in some cases, e.g.:
> 
> https://github.com/openvswitch/ovs/blob/master/appveyor.yml#L39-L55

Yeah, I don't have a good alternative for that.

> 
> https://github.com/ovn-org/ovn/blob/main/.github/workflows/test.yml#L32-L55

These do not look good, IMHO.  So, the reminder that these are not great,
in a form of a line length warning, is kind of OK.

> 
> https://github.com/ovn-org/ovn/blob/main/.github/workflows/ovn-kubernetes.yml#L86

And this doesn't fit into a screen even in a browser window for me.
So, I'd not call it readable.  :)  I literally can't read it, I have
to scroll.


I agree with the appveyor example though, so applied.  Thanks!

Best regards, Ilya Maximets.

> 
> It's a personal opinion, of course.
> 
> Thanks,
> Dumitru
> 
>> Best regards, Ilya Maximets.
>>
>>>
>>> Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2023-June/405796.html
>>> Suggested-by: Aaron Conole <aconole@redhat.com>
>>> Signed-off-by: Dumitru Ceara <dceara@redhat.com>
>>> ---
>>>  utilities/checkpatch.py | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
>>> index 0d30b71b5b7f..64f0efeb474e 100755
>>> --- a/utilities/checkpatch.py
>>> +++ b/utilities/checkpatch.py
>>> @@ -195,7 +195,7 @@ skip_signoff_check = False
>>>  #
>>>  # Python isn't checked as flake8 performs these checks during build.
>>>  line_length_ignore_list = re.compile(
>>> -    r'\.(am|at|etc|in|m4|mk|patch|py)$|^debian/.*$')
>>> +    r'\.(am|at|etc|in|m4|mk|patch|py|yml)$|^debian/.*$')
>>>  
>>>  # Don't enforce a requirement that leading whitespace be all spaces on
>>>  # files that include these characters in their name, since these kinds
>>
>
Dumitru Ceara June 28, 2023, 11:46 a.m. UTC | #9
On 6/28/23 13:19, Ilya Maximets wrote:
> On 6/28/23 10:18, Dumitru Ceara wrote:
>> On 6/27/23 22:12, Ilya Maximets wrote:
>>> On 6/23/23 14:12, Dumitru Ceara wrote:
>>>> As far as I can tell they're used mostly for CI job definitions and
>>>> these tend to result in long lines.
>>>
>>> Why not just wrap them?  AFAIK, syntax in most CI systems allows
>>> line wrapping.
>>>
>>> Not a strong opinion though, just curious.
>>>
>>
>> I found it less readable in some cases, e.g.:
>>
>> https://github.com/openvswitch/ovs/blob/master/appveyor.yml#L39-L55
> 
> Yeah, I don't have a good alternative for that.
> 
>>
>> https://github.com/ovn-org/ovn/blob/main/.github/workflows/test.yml#L32-L55
> 
> These do not look good, IMHO.  So, the reminder that these are not great,
> in a form of a line length warning, is kind of OK.
> 
>>
>> https://github.com/ovn-org/ovn/blob/main/.github/workflows/ovn-kubernetes.yml#L86
> 
> And this doesn't fit into a screen even in a browser window for me.
> So, I'd not call it readable.  :)  I literally can't read it, I have
> to scroll.
> 

Maybe we should fix it at some point.

> 
> I agree with the appveyor example though, so applied.  Thanks!
> 

Thanks!

> Best regards, Ilya Maximets.
> 
>>
>> It's a personal opinion, of course.
>>
>> Thanks,
>> Dumitru
>>
>>> Best regards, Ilya Maximets.
>>>
>>>>
>>>> Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2023-June/405796.html
>>>> Suggested-by: Aaron Conole <aconole@redhat.com>
>>>> Signed-off-by: Dumitru Ceara <dceara@redhat.com>
>>>> ---
>>>>  utilities/checkpatch.py | 2 +-
>>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
>>>> index 0d30b71b5b7f..64f0efeb474e 100755
>>>> --- a/utilities/checkpatch.py
>>>> +++ b/utilities/checkpatch.py
>>>> @@ -195,7 +195,7 @@ skip_signoff_check = False
>>>>  #
>>>>  # Python isn't checked as flake8 performs these checks during build.
>>>>  line_length_ignore_list = re.compile(
>>>> -    r'\.(am|at|etc|in|m4|mk|patch|py)$|^debian/.*$')
>>>> +    r'\.(am|at|etc|in|m4|mk|patch|py|yml)$|^debian/.*$')
>>>>  
>>>>  # Don't enforce a requirement that leading whitespace be all spaces on
>>>>  # files that include these characters in their name, since these kinds
>>>
>>
>
diff mbox series

Patch

diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
index 0d30b71b5b7f..64f0efeb474e 100755
--- a/utilities/checkpatch.py
+++ b/utilities/checkpatch.py
@@ -195,7 +195,7 @@  skip_signoff_check = False
 #
 # Python isn't checked as flake8 performs these checks during build.
 line_length_ignore_list = re.compile(
-    r'\.(am|at|etc|in|m4|mk|patch|py)$|^debian/.*$')
+    r'\.(am|at|etc|in|m4|mk|patch|py|yml)$|^debian/.*$')
 
 # Don't enforce a requirement that leading whitespace be all spaces on
 # files that include these characters in their name, since these kinds