mbox series

[ovs-dev,v2,0/2] tests: Replace wget with curl.

Message ID cover.1731418592.git.echaudro@redhat.com
Headers show
Series tests: Replace wget with curl. | expand

Message

Eelco Chaudron Nov. 12, 2024, 2:01 p.m. UTC
Version history:

v2: - Updated documentation, removed dependency for wget
    - Changed independend curls calls with macros
    - Removed dependancy from ci

Eelco Chaudron (2):
  system-traffic: Replace wget with curl for negative and ftp tests.
  system-traffic: Standardize by replacing all wget instances with curl.

 .cirrus.yml                             |   2 +-
 Documentation/intro/install/general.rst |   3 -
 tests/system-common-macros.at           |  27 ++++
 tests/system-tap.at                     |   2 +-
 tests/system-traffic.at                 | 158 ++++++++++++------------
 5 files changed, 108 insertions(+), 84 deletions(-)

Comments

Eelco Chaudron Nov. 29, 2024, 12:11 p.m. UTC | #1
On 12 Nov 2024, at 15:01, Eelco Chaudron wrote:

> Version history:
>
> v2: - Updated documentation, removed dependency for wget
>     - Changed independend curls calls with macros
>     - Removed dependancy from ci
>
> Eelco Chaudron (2):
>   system-traffic: Replace wget with curl for negative and ftp tests.
>   system-traffic: Standardize by replacing all wget instances with curl.
>

Thanks for the reviews. I’ve applied this to main to start with. Simon/Ilya, do think I should backport this, if so, how far back (and both patches)?

//Eelco
Ilya Maximets Nov. 29, 2024, 12:28 p.m. UTC | #2
On 11/29/24 13:11, Eelco Chaudron wrote:
> 
> 
> On 12 Nov 2024, at 15:01, Eelco Chaudron wrote:
> 
>> Version history:
>>
>> v2: - Updated documentation, removed dependency for wget
>>     - Changed independend curls calls with macros
>>     - Removed dependancy from ci
>>
>> Eelco Chaudron (2):
>>   system-traffic: Replace wget with curl for negative and ftp tests.
>>   system-traffic: Standardize by replacing all wget instances with curl.
>>
> 
> Thanks for the reviews. I’ve applied this to main to start with. Simon/Ilya,
> do think I should backport this, if so, how far back (and both patches)?

Thanks, Eelco!

I think, it would be good to have both down to 3.3.  Otherwise, backporting
test changes might be hard in the future.  Older branches do not have that
much support time left.  They also do not run system tests in CI.

Best regards, Ilya Maximets.
Eelco Chaudron Nov. 29, 2024, 12:38 p.m. UTC | #3
On 29 Nov 2024, at 13:28, Ilya Maximets wrote:

> On 11/29/24 13:11, Eelco Chaudron wrote:
>>
>>
>> On 12 Nov 2024, at 15:01, Eelco Chaudron wrote:
>>
>>> Version history:
>>>
>>> v2: - Updated documentation, removed dependency for wget
>>>     - Changed independend curls calls with macros
>>>     - Removed dependancy from ci
>>>
>>> Eelco Chaudron (2):
>>>   system-traffic: Replace wget with curl for negative and ftp tests.
>>>   system-traffic: Standardize by replacing all wget instances with curl.
>>>
>>
>> Thanks for the reviews. I’ve applied this to main to start with. Simon/Ilya,
>> do think I should backport this, if so, how far back (and both patches)?
>
> Thanks, Eelco!
>
> I think, it would be good to have both down to 3.3.  Otherwise, backporting
> test changes might be hard in the future.  Older branches do not have that
> much support time left.  They also do not run system tests in CI.

Thanks, will commit once tests are completed.

//Eelco
Eelco Chaudron Nov. 29, 2024, 1:46 p.m. UTC | #4
On 29 Nov 2024, at 13:38, Eelco Chaudron wrote:

> On 29 Nov 2024, at 13:28, Ilya Maximets wrote:
>
>> On 11/29/24 13:11, Eelco Chaudron wrote:
>>>
>>>
>>> On 12 Nov 2024, at 15:01, Eelco Chaudron wrote:
>>>
>>>> Version history:
>>>>
>>>> v2: - Updated documentation, removed dependency for wget
>>>>     - Changed independend curls calls with macros
>>>>     - Removed dependancy from ci
>>>>
>>>> Eelco Chaudron (2):
>>>>   system-traffic: Replace wget with curl for negative and ftp tests.
>>>>   system-traffic: Standardize by replacing all wget instances with curl.
>>>>
>>>
>>> Thanks for the reviews. I’ve applied this to main to start with. Simon/Ilya,
>>> do think I should backport this, if so, how far back (and both patches)?
>>
>> Thanks, Eelco!
>>
>> I think, it would be good to have both down to 3.3.  Otherwise, backporting
>> test changes might be hard in the future.  Older branches do not have that
>> much support time left.  They also do not run system tests in CI.
>
> Thanks, will commit once tests are completed.

Tests passed and pushed to the 3.3 and 3.4 branches.
Ilya Maximets Nov. 29, 2024, 10:07 p.m. UTC | #5
On 11/29/24 14:46, Eelco Chaudron wrote:
> 
> 
> On 29 Nov 2024, at 13:38, Eelco Chaudron wrote:
> 
>> On 29 Nov 2024, at 13:28, Ilya Maximets wrote:
>>
>>> On 11/29/24 13:11, Eelco Chaudron wrote:
>>>>
>>>>
>>>> On 12 Nov 2024, at 15:01, Eelco Chaudron wrote:
>>>>
>>>>> Version history:
>>>>>
>>>>> v2: - Updated documentation, removed dependency for wget
>>>>>     - Changed independend curls calls with macros
>>>>>     - Removed dependancy from ci
>>>>>
>>>>> Eelco Chaudron (2):
>>>>>   system-traffic: Replace wget with curl for negative and ftp tests.
>>>>>   system-traffic: Standardize by replacing all wget instances with curl.
>>>>>
>>>>
>>>> Thanks for the reviews. I’ve applied this to main to start with. Simon/Ilya,
>>>> do think I should backport this, if so, how far back (and both patches)?
>>>
>>> Thanks, Eelco!
>>>
>>> I think, it would be good to have both down to 3.3.  Otherwise, backporting
>>> test changes might be hard in the future.  Older branches do not have that
>>> much support time left.  They also do not run system tests in CI.
>>
>> Thanks, will commit once tests are completed.
> 
> Tests passed and pushed to the 3.3 and 3.4 branches.
> 

Unfortunately, this patch set broke the testsuite with a few syntax
errors and tests are not actually running:

  https://github.com/openvswitch/ovs/actions/runs/12084460716/job/33699718393#step:13:2726

I sent a patch to fix the issues here:

  https://patchwork.ozlabs.org/project/openvswitch/patch/20241129220350.2747976-1-i.maximets@ovn.org/

Please, take a look.


Also, we use curl for TFTP calls, should we replace those with a
macro as well and remove the CURL_OPT variable?

Best regards, Ilya Maximets.