You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Pushkar Pradhan <pp...@oath.com.INVALID> on 2019/01/07 22:57:40 UTC
RE: autest failures
I tried running the autests on the master branch and saw many many failures.
Most of them failed because my RHEL box doesn't have a recent curl that
supports http1.1 option.
The fix was obvious but I got no warning about this, I had to figure this
out.
Would it be reasonable to include and build the latest curl sources?
Just like how we include yaml-cpp.
--
pushkar
Re: autest failures
Posted by Leif Hedstrom <zw...@apache.org>.
> On Jan 8, 2019, at 4:06 PM, Pushkar Pradhan <pp...@oath.com.INVALID> wrote:
>
> Even RHEL7 sucks, they are also shipping with an old curl version that
> doesn't support http1.1.
> The test was not being skipped, it tries to run the test.
> The quickest thing to do would be add a condition checking for http1.1?
Also, as was mentioned, I’d be fine installing/requiring e.g. httpd24-curl on the CI boxes etc. for a more modern version of Curl. It’s easy to active this. As long as we document such package dependencies, it’s all good.
— leif
>
> On Tue, Jan 8, 2019 at 2:32 PM Jason Kenny <jk...@oath.com.invalid> wrote:
>
>> I do plan to add a switch to allow one to error on condition testing. This
>> should be easy to do. However I do report which test are skipped and why (
>> and if that reason is not good enough one can help fix the test as most if
>> not all these should be reason that can be provided with the condition
>> call.)
>>
>> As far as Curl goes. building a curl could be done. It would help with
>> having a consistent curl for testing. However I don't think that this is
>> needed to get http 1.1 support. The issue I think is if you are using rhel6
>> and the supper old curl that come with it by default. you need to install
>> the httpd24-curl package and then enable it. Once this is done the support
>> you need should work as needed. There are a few test that still will not
>> run ( they should be skipped) with this version as it is built with openssl
>> 1.0.1 and this lack certain TLS features that we have tests for. You may
>> want to test if the option to use http 1.1 needs to be added to curl when
>> you run it. I have found that Curl on Fedora and Ubuntu tend to work
>> different from curl on RHEL systems.
>>
>> If you are using RHEL system you may have to configure it correctly.
>>
>> Jason
>>
>> On Mon, Jan 7, 2019 at 9:39 PM Leif Hedstrom <zw...@apache.org> wrote:
>>
>>>
>>>
>>>> On Jan 7, 2019, at 5:28 PM, Pushkar Pradhan <ppradhan@oath.com.INVALID
>>>
>>> wrote:
>>>>
>>>> Yes I saw that condition later. I think it could be done for http1.1
>> but
>>> is
>>>> it a good idea to skip tests?
>>>
>>> I’ve had this discussion before, and my personal preference would be that
>>> we never do these types of checks, but rather, have the check fail, with
>> a
>>> good (obvious!) error message explaining what actions needs to be taken.
>>>
>>> The danger with the current approach, which we’ve run into numerous
>> times,
>>> is that it essentially silently skips tests.
>>>
>>> If I have a vote, i’d say get rid of all “feature” tests like this, and
>>> let them fail (again, with good errors). Then we can fix our CI and our
>> dev
>>> tools accordingly.
>>>
>>> My $.01,
>>>
>>> — Leif
>>>
>>>>
>>>> On Mon, Jan 7, 2019 at 4:14 PM Walt Karas <wk...@oath.com.invalid>
>>> wrote:
>>>>
>>>>> Many have this to skip if no http2 support but I don't know if it can
>>>>> be use to test support for http1.1 :
>>>>>
>>>>> # need Curl
>>>>> Test.SkipUnless(
>>>>> Condition.HasProgram("curl", "Curl need to be installed on system
>>>>> for this test to work"),
>>>>> Condition.HasCurlFeature('http2')
>>>>> )
>>>>>
>>>>> On Mon, Jan 7, 2019 at 4:58 PM Pushkar Pradhan
>>>>> <pp...@oath.com.invalid> wrote:
>>>>>>
>>>>>> I tried running the autests on the master branch and saw many many
>>>>> failures.
>>>>>> Most of them failed because my RHEL box doesn't have a recent curl
>> that
>>>>>> supports http1.1 option.
>>>>>> The fix was obvious but I got no warning about this, I had to figure
>>> this
>>>>>> out.
>>>>>>
>>>>>> Would it be reasonable to include and build the latest curl sources?
>>>>>> Just like how we include yaml-cpp.
>>>>>> --
>>>>>> pushkar
>>>>>
>>>>
>>>>
>>>> --
>>>> pushkar
>>>
>>>
>>
>
>
> --
> pushkar
Re: autest failures
Posted by Miles Libbey <ml...@apache.org>.
I'd bet that the vast majority of the use of the http1.1 option was to
make sure the headers returned match the gold file. Perhaps autest
could know about headers and make case insensitive header name
matches?
(fwiw, the --http1.1 option was added in curl 7.33.0.)
On Wed, Jan 9, 2019 at 12:13 PM Pushkar Pradhan
<pp...@oath.com.invalid> wrote:
>
> I am inclined towards just skipping the tests if curl doesn't have
> --http1.1 option. That would be the quickest workaround.
> People who really want to run all the skipped tests can download it then.
>
> On Wed, Jan 9, 2019 at 8:49 AM Walt Karas <wk...@oath.com.invalid> wrote:
>
> > tcp_client.py doesn't support TLS. But, other than that major
> > deficiency, it's better for automated testing than curl. curl is
> > designed to work around problems in tricky ways in order to succeed in
> > copying the resource. It can sometimes mask problems that one is
> > hoping to find with automated regression testing.
> >
> > On Tue, Jan 8, 2019 at 11:15 PM Leif Hedstrom <zw...@apache.org> wrote:
> > >
> > >
> > >
> > > > On Jan 8, 2019, at 5:34 PM, Pushkar Pradhan <pp...@oath.com.INVALID>
> > wrote:
> > > >
> > > > Miles is right. Here's my output:
> > > > [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ cat
> > /etc/redhat-release
> > > > Red Hat Enterprise Linux Server release 7.5 (Maipo)
> > > > [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ curl --version
> > > > curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.28.4
> > zlib/1.2.7
> > > > libidn/1.28 libssh2/1.4.3
> > >
> > >
> > > Ah, that makes a lot more sense :).
> > >
> > > I honestly think it’s fine to require a more recent version of curl (or,
> > use some curl like interface in Python?). Retaining compatibility with all
> > the versions of Linux that we support is important for ATS, but I don’t
> > think that applies to running autest. As long as it’s well document what
> > tool chain is required for autest, we should be fine IMO.
> > >
> > > Cheers,
> > >
> > > — Leif
> > >
> >
>
>
> --
> pushkar
Re: autest failures
Posted by Pushkar Pradhan <pp...@oath.com.INVALID>.
I am inclined towards just skipping the tests if curl doesn't have
--http1.1 option. That would be the quickest workaround.
People who really want to run all the skipped tests can download it then.
On Wed, Jan 9, 2019 at 8:49 AM Walt Karas <wk...@oath.com.invalid> wrote:
> tcp_client.py doesn't support TLS. But, other than that major
> deficiency, it's better for automated testing than curl. curl is
> designed to work around problems in tricky ways in order to succeed in
> copying the resource. It can sometimes mask problems that one is
> hoping to find with automated regression testing.
>
> On Tue, Jan 8, 2019 at 11:15 PM Leif Hedstrom <zw...@apache.org> wrote:
> >
> >
> >
> > > On Jan 8, 2019, at 5:34 PM, Pushkar Pradhan <pp...@oath.com.INVALID>
> wrote:
> > >
> > > Miles is right. Here's my output:
> > > [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ cat
> /etc/redhat-release
> > > Red Hat Enterprise Linux Server release 7.5 (Maipo)
> > > [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ curl --version
> > > curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.28.4
> zlib/1.2.7
> > > libidn/1.28 libssh2/1.4.3
> >
> >
> > Ah, that makes a lot more sense :).
> >
> > I honestly think it’s fine to require a more recent version of curl (or,
> use some curl like interface in Python?). Retaining compatibility with all
> the versions of Linux that we support is important for ATS, but I don’t
> think that applies to running autest. As long as it’s well document what
> tool chain is required for autest, we should be fine IMO.
> >
> > Cheers,
> >
> > — Leif
> >
>
--
pushkar
Re: autest failures
Posted by Walt Karas <wk...@oath.com.INVALID>.
tcp_client.py doesn't support TLS. But, other than that major
deficiency, it's better for automated testing than curl. curl is
designed to work around problems in tricky ways in order to succeed in
copying the resource. It can sometimes mask problems that one is
hoping to find with automated regression testing.
On Tue, Jan 8, 2019 at 11:15 PM Leif Hedstrom <zw...@apache.org> wrote:
>
>
>
> > On Jan 8, 2019, at 5:34 PM, Pushkar Pradhan <pp...@oath.com.INVALID> wrote:
> >
> > Miles is right. Here's my output:
> > [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ cat /etc/redhat-release
> > Red Hat Enterprise Linux Server release 7.5 (Maipo)
> > [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ curl --version
> > curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.28.4 zlib/1.2.7
> > libidn/1.28 libssh2/1.4.3
>
>
> Ah, that makes a lot more sense :).
>
> I honestly think it’s fine to require a more recent version of curl (or, use some curl like interface in Python?). Retaining compatibility with all the versions of Linux that we support is important for ATS, but I don’t think that applies to running autest. As long as it’s well document what tool chain is required for autest, we should be fine IMO.
>
> Cheers,
>
> — Leif
>
Re: autest failures
Posted by Leif Hedstrom <zw...@apache.org>.
> On Jan 8, 2019, at 5:34 PM, Pushkar Pradhan <pp...@oath.com.INVALID> wrote:
>
> Miles is right. Here's my output:
> [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ cat /etc/redhat-release
> Red Hat Enterprise Linux Server release 7.5 (Maipo)
> [iwonttellyoumyusername@iwonttellyoumyhostname ~]$ curl --version
> curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.28.4 zlib/1.2.7
> libidn/1.28 libssh2/1.4.3
Ah, that makes a lot more sense :).
I honestly think it’s fine to require a more recent version of curl (or, use some curl like interface in Python?). Retaining compatibility with all the versions of Linux that we support is important for ATS, but I don’t think that applies to running autest. As long as it’s well document what tool chain is required for autest, we should be fine IMO.
Cheers,
— Leif
Re: autest failures
Posted by Pushkar Pradhan <pp...@oath.com.INVALID>.
Miles is right. Here's my output:
[iwonttellyoumyusername@iwonttellyoumyhostname ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
[iwonttellyoumyusername@iwonttellyoumyhostname ~]$ curl --version
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.28.4 zlib/1.2.7
libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz
unix-sockets
[iwonttellyoumyusername@iwonttellyoumyhostname ~]$ curl -D - -o /dev/null
-s https://docs.trafficserver.apache.org/en/latest/ | grep HTTP/
HTTP/1.1 200 OK
[iwonttellyoumyusername@iwonttellyoumyhostname ~]$ curl -D - -o /dev/null
-s --http1.1 https://docs.trafficserver.apache.org/en/latest/ | grep HTTP/
curl: option --http1.1: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
On Tue, Jan 8, 2019 at 4:19 PM Miles Libbey <ml...@apache.org> wrote:
> On Tue, Jan 8, 2019 at 3:45 PM Leif Hedstrom <zw...@apache.org> wrote:
> > > On Jan 8, 2019, at 4:06 PM, Pushkar Pradhan <pp...@oath.com.INVALID>
> wrote:
> > >
> > > Even RHEL7 sucks, they are also shipping with an old curl version that
> > > doesn't support http1.1.
> >
> >
> > I find that highly unlikely…
> >
> > [root@98291c1384a2 /]# cat /etc/redhat-release
> > CentOS Linux release 7.6.1810 (Core)
> > [root@98291c1384a2 /]# curl -D - -o /dev/null -s
> https://docs.trafficserver.apache.org/en/latest/ | grep HTTP/
> > HTTP/1.1 200 OK
>
> I think the test is to add the "--http1.1", not that curl doesn't
> support http 1.1. Mainly that is "needed" to avoid h2.
> $ curl -D - -o /dev/null -s
> https://docs.trafficserver.apache.org/en/latest/ --http1.1
>
> If the curl version doesn't support --http1.1, it certainly doesn't
> support http2 (at all). So, wonder if there could be a way to only use
> that feature if its available?
> miles
>
--
pushkar
Re: autest failures
Posted by Miles Libbey <ml...@apache.org>.
On Tue, Jan 8, 2019 at 3:45 PM Leif Hedstrom <zw...@apache.org> wrote:
> > On Jan 8, 2019, at 4:06 PM, Pushkar Pradhan <pp...@oath.com.INVALID> wrote:
> >
> > Even RHEL7 sucks, they are also shipping with an old curl version that
> > doesn't support http1.1.
>
>
> I find that highly unlikely…
>
> [root@98291c1384a2 /]# cat /etc/redhat-release
> CentOS Linux release 7.6.1810 (Core)
> [root@98291c1384a2 /]# curl -D - -o /dev/null -s https://docs.trafficserver.apache.org/en/latest/ | grep HTTP/
> HTTP/1.1 200 OK
I think the test is to add the "--http1.1", not that curl doesn't
support http 1.1. Mainly that is "needed" to avoid h2.
$ curl -D - -o /dev/null -s
https://docs.trafficserver.apache.org/en/latest/ --http1.1
If the curl version doesn't support --http1.1, it certainly doesn't
support http2 (at all). So, wonder if there could be a way to only use
that feature if its available?
miles
Re: autest failures
Posted by Leif Hedstrom <zw...@apache.org>.
> On Jan 8, 2019, at 4:06 PM, Pushkar Pradhan <pp...@oath.com.INVALID> wrote:
>
> Even RHEL7 sucks, they are also shipping with an old curl version that
> doesn't support http1.1.
I find that highly unlikely…
[root@98291c1384a2 /]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@98291c1384a2 /]# curl -D - -o /dev/null -s https://docs.trafficserver.apache.org/en/latest/ | grep HTTP/
HTTP/1.1 200 OK
Now, HTTP/2 is a different story of course.
— Leif
Re: autest failures
Posted by Pushkar Pradhan <pp...@oath.com.INVALID>.
Even RHEL7 sucks, they are also shipping with an old curl version that
doesn't support http1.1.
The test was not being skipped, it tries to run the test.
The quickest thing to do would be add a condition checking for http1.1?
On Tue, Jan 8, 2019 at 2:32 PM Jason Kenny <jk...@oath.com.invalid> wrote:
> I do plan to add a switch to allow one to error on condition testing. This
> should be easy to do. However I do report which test are skipped and why (
> and if that reason is not good enough one can help fix the test as most if
> not all these should be reason that can be provided with the condition
> call.)
>
> As far as Curl goes. building a curl could be done. It would help with
> having a consistent curl for testing. However I don't think that this is
> needed to get http 1.1 support. The issue I think is if you are using rhel6
> and the supper old curl that come with it by default. you need to install
> the httpd24-curl package and then enable it. Once this is done the support
> you need should work as needed. There are a few test that still will not
> run ( they should be skipped) with this version as it is built with openssl
> 1.0.1 and this lack certain TLS features that we have tests for. You may
> want to test if the option to use http 1.1 needs to be added to curl when
> you run it. I have found that Curl on Fedora and Ubuntu tend to work
> different from curl on RHEL systems.
>
> If you are using RHEL system you may have to configure it correctly.
>
> Jason
>
> On Mon, Jan 7, 2019 at 9:39 PM Leif Hedstrom <zw...@apache.org> wrote:
>
> >
> >
> > > On Jan 7, 2019, at 5:28 PM, Pushkar Pradhan <ppradhan@oath.com.INVALID
> >
> > wrote:
> > >
> > > Yes I saw that condition later. I think it could be done for http1.1
> but
> > is
> > > it a good idea to skip tests?
> >
> > I’ve had this discussion before, and my personal preference would be that
> > we never do these types of checks, but rather, have the check fail, with
> a
> > good (obvious!) error message explaining what actions needs to be taken.
> >
> > The danger with the current approach, which we’ve run into numerous
> times,
> > is that it essentially silently skips tests.
> >
> > If I have a vote, i’d say get rid of all “feature” tests like this, and
> > let them fail (again, with good errors). Then we can fix our CI and our
> dev
> > tools accordingly.
> >
> > My $.01,
> >
> > — Leif
> >
> > >
> > > On Mon, Jan 7, 2019 at 4:14 PM Walt Karas <wk...@oath.com.invalid>
> > wrote:
> > >
> > >> Many have this to skip if no http2 support but I don't know if it can
> > >> be use to test support for http1.1 :
> > >>
> > >> # need Curl
> > >> Test.SkipUnless(
> > >> Condition.HasProgram("curl", "Curl need to be installed on system
> > >> for this test to work"),
> > >> Condition.HasCurlFeature('http2')
> > >> )
> > >>
> > >> On Mon, Jan 7, 2019 at 4:58 PM Pushkar Pradhan
> > >> <pp...@oath.com.invalid> wrote:
> > >>>
> > >>> I tried running the autests on the master branch and saw many many
> > >> failures.
> > >>> Most of them failed because my RHEL box doesn't have a recent curl
> that
> > >>> supports http1.1 option.
> > >>> The fix was obvious but I got no warning about this, I had to figure
> > this
> > >>> out.
> > >>>
> > >>> Would it be reasonable to include and build the latest curl sources?
> > >>> Just like how we include yaml-cpp.
> > >>> --
> > >>> pushkar
> > >>
> > >
> > >
> > > --
> > > pushkar
> >
> >
>
--
pushkar
Re: autest failures
Posted by Jason Kenny <jk...@oath.com.INVALID>.
I do plan to add a switch to allow one to error on condition testing. This
should be easy to do. However I do report which test are skipped and why (
and if that reason is not good enough one can help fix the test as most if
not all these should be reason that can be provided with the condition
call.)
As far as Curl goes. building a curl could be done. It would help with
having a consistent curl for testing. However I don't think that this is
needed to get http 1.1 support. The issue I think is if you are using rhel6
and the supper old curl that come with it by default. you need to install
the httpd24-curl package and then enable it. Once this is done the support
you need should work as needed. There are a few test that still will not
run ( they should be skipped) with this version as it is built with openssl
1.0.1 and this lack certain TLS features that we have tests for. You may
want to test if the option to use http 1.1 needs to be added to curl when
you run it. I have found that Curl on Fedora and Ubuntu tend to work
different from curl on RHEL systems.
If you are using RHEL system you may have to configure it correctly.
Jason
On Mon, Jan 7, 2019 at 9:39 PM Leif Hedstrom <zw...@apache.org> wrote:
>
>
> > On Jan 7, 2019, at 5:28 PM, Pushkar Pradhan <pp...@oath.com.INVALID>
> wrote:
> >
> > Yes I saw that condition later. I think it could be done for http1.1 but
> is
> > it a good idea to skip tests?
>
> I’ve had this discussion before, and my personal preference would be that
> we never do these types of checks, but rather, have the check fail, with a
> good (obvious!) error message explaining what actions needs to be taken.
>
> The danger with the current approach, which we’ve run into numerous times,
> is that it essentially silently skips tests.
>
> If I have a vote, i’d say get rid of all “feature” tests like this, and
> let them fail (again, with good errors). Then we can fix our CI and our dev
> tools accordingly.
>
> My $.01,
>
> — Leif
>
> >
> > On Mon, Jan 7, 2019 at 4:14 PM Walt Karas <wk...@oath.com.invalid>
> wrote:
> >
> >> Many have this to skip if no http2 support but I don't know if it can
> >> be use to test support for http1.1 :
> >>
> >> # need Curl
> >> Test.SkipUnless(
> >> Condition.HasProgram("curl", "Curl need to be installed on system
> >> for this test to work"),
> >> Condition.HasCurlFeature('http2')
> >> )
> >>
> >> On Mon, Jan 7, 2019 at 4:58 PM Pushkar Pradhan
> >> <pp...@oath.com.invalid> wrote:
> >>>
> >>> I tried running the autests on the master branch and saw many many
> >> failures.
> >>> Most of them failed because my RHEL box doesn't have a recent curl that
> >>> supports http1.1 option.
> >>> The fix was obvious but I got no warning about this, I had to figure
> this
> >>> out.
> >>>
> >>> Would it be reasonable to include and build the latest curl sources?
> >>> Just like how we include yaml-cpp.
> >>> --
> >>> pushkar
> >>
> >
> >
> > --
> > pushkar
>
>
Re: autest failures
Posted by Leif Hedstrom <zw...@apache.org>.
> On Jan 8, 2019, at 2:27 PM, Alan Carroll <so...@oath.com.INVALID> wrote:
>
> Yes, we should include source of other tools only when there is no
> reasonable alternative and it's required to run ATS at all. We hope to
> remove YAMLCPP once a sufficiently recent version is in general
> distribution.
>
> I'm not sure not having the test disable is going to work in real life. It
> means that no test can use an obscure features without causing pain for the
> community. Susan has also mentioned to me that we may want to have tests
> that require privilege, which will not be runnable in many cases.
Well as a compromise, just as we have the -f option to specify a test to run, maybe have a -F option to specify tests which the user knows and expect will fail (for whatever reason) ?
— Leif
>
> On Tue, Jan 8, 2019 at 1:19 PM Leif Hedstrom <zw...@apache.org> wrote:
>
>>
>>
>>> On Jan 7, 2019, at 8:43 PM, Pushkar Pradhan <pp...@oath.com.INVALID>
>> wrote:
>>>
>>> Leif,
>>> I am fine with that. What do you think of my proposal of including a
>> recent
>>> curl version in the repo?
>>
>> I don’t think we should do that. :)
>>
>> Getting an appropriate version of curl is not that big of a deal,
>> certainly no worse than getting the C++17 compiler tools that we need,
>> that’s a bigger hurdle IMO.
>>
>>
>>
>>> The other option is to fix the bootstrap.py to install it.
>>> On RedHat the new curl is available in httpd24 but running that requires
>>> prepending the curl command with scl enable….
>>
>> Right, I think documenting around this is sufficient, just as we do for
>> the scl dependencies for compilers etc.
>>
>> Most people would never run autest :).
>>
>> Cheers,
>>
>> — Leif
>>
>>
>
> --
> *Beware the fisherman who's casting out his line in to a dried up riverbed.*
> *Oh don't try to tell him 'cause he won't believe. Throw some bread to the
> ducks instead.*
> *It's easier that way. *- Genesis : Duke : VI 25-28
Re: autest failures
Posted by Alan Carroll <so...@oath.com.INVALID>.
Yes, we should include source of other tools only when there is no
reasonable alternative and it's required to run ATS at all. We hope to
remove YAMLCPP once a sufficiently recent version is in general
distribution.
I'm not sure not having the test disable is going to work in real life. It
means that no test can use an obscure features without causing pain for the
community. Susan has also mentioned to me that we may want to have tests
that require privilege, which will not be runnable in many cases.
On Tue, Jan 8, 2019 at 1:19 PM Leif Hedstrom <zw...@apache.org> wrote:
>
>
> > On Jan 7, 2019, at 8:43 PM, Pushkar Pradhan <pp...@oath.com.INVALID>
> wrote:
> >
> > Leif,
> > I am fine with that. What do you think of my proposal of including a
> recent
> > curl version in the repo?
>
> I don’t think we should do that. :)
>
> Getting an appropriate version of curl is not that big of a deal,
> certainly no worse than getting the C++17 compiler tools that we need,
> that’s a bigger hurdle IMO.
>
>
>
> > The other option is to fix the bootstrap.py to install it.
> > On RedHat the new curl is available in httpd24 but running that requires
> > prepending the curl command with scl enable….
>
> Right, I think documenting around this is sufficient, just as we do for
> the scl dependencies for compilers etc.
>
> Most people would never run autest :).
>
> Cheers,
>
> — Leif
>
>
--
*Beware the fisherman who's casting out his line in to a dried up riverbed.*
*Oh don't try to tell him 'cause he won't believe. Throw some bread to the
ducks instead.*
*It's easier that way. *- Genesis : Duke : VI 25-28
Re: autest failures
Posted by Leif Hedstrom <zw...@apache.org>.
> On Jan 7, 2019, at 8:43 PM, Pushkar Pradhan <pp...@oath.com.INVALID> wrote:
>
> Leif,
> I am fine with that. What do you think of my proposal of including a recent
> curl version in the repo?
I don’t think we should do that. :)
Getting an appropriate version of curl is not that big of a deal, certainly no worse than getting the C++17 compiler tools that we need, that’s a bigger hurdle IMO.
> The other option is to fix the bootstrap.py to install it.
> On RedHat the new curl is available in httpd24 but running that requires
> prepending the curl command with scl enable….
Right, I think documenting around this is sufficient, just as we do for the scl dependencies for compilers etc.
Most people would never run autest :).
Cheers,
— Leif
Re: autest failures
Posted by Pushkar Pradhan <pp...@oath.com.INVALID>.
Leif,
I am fine with that. What do you think of my proposal of including a recent
curl version in the repo?
The other option is to fix the bootstrap.py to install it.
On RedHat the new curl is available in httpd24 but running that requires
prepending the curl command with scl enable....
On my box it also skipped TLS related tests, I am sure there's another tool
I am missing.
On Mon, Jan 7, 2019 at 7:39 PM Leif Hedstrom <zw...@apache.org> wrote:
>
>
> > On Jan 7, 2019, at 5:28 PM, Pushkar Pradhan <pp...@oath.com.INVALID>
> wrote:
> >
> > Yes I saw that condition later. I think it could be done for http1.1 but
> is
> > it a good idea to skip tests?
>
> I’ve had this discussion before, and my personal preference would be that
> we never do these types of checks, but rather, have the check fail, with a
> good (obvious!) error message explaining what actions needs to be taken.
>
> The danger with the current approach, which we’ve run into numerous times,
> is that it essentially silently skips tests.
>
> If I have a vote, i’d say get rid of all “feature” tests like this, and
> let them fail (again, with good errors). Then we can fix our CI and our dev
> tools accordingly.
>
> My $.01,
>
> — Leif
>
> >
> > On Mon, Jan 7, 2019 at 4:14 PM Walt Karas <wk...@oath.com.invalid>
> wrote:
> >
> >> Many have this to skip if no http2 support but I don't know if it can
> >> be use to test support for http1.1 :
> >>
> >> # need Curl
> >> Test.SkipUnless(
> >> Condition.HasProgram("curl", "Curl need to be installed on system
> >> for this test to work"),
> >> Condition.HasCurlFeature('http2')
> >> )
> >>
> >> On Mon, Jan 7, 2019 at 4:58 PM Pushkar Pradhan
> >> <pp...@oath.com.invalid> wrote:
> >>>
> >>> I tried running the autests on the master branch and saw many many
> >> failures.
> >>> Most of them failed because my RHEL box doesn't have a recent curl that
> >>> supports http1.1 option.
> >>> The fix was obvious but I got no warning about this, I had to figure
> this
> >>> out.
> >>>
> >>> Would it be reasonable to include and build the latest curl sources?
> >>> Just like how we include yaml-cpp.
> >>> --
> >>> pushkar
> >>
> >
> >
> > --
> > pushkar
>
>
--
pushkar
Re: autest failures
Posted by Leif Hedstrom <zw...@apache.org>.
> On Jan 7, 2019, at 5:28 PM, Pushkar Pradhan <pp...@oath.com.INVALID> wrote:
>
> Yes I saw that condition later. I think it could be done for http1.1 but is
> it a good idea to skip tests?
I’ve had this discussion before, and my personal preference would be that we never do these types of checks, but rather, have the check fail, with a good (obvious!) error message explaining what actions needs to be taken.
The danger with the current approach, which we’ve run into numerous times, is that it essentially silently skips tests.
If I have a vote, i’d say get rid of all “feature” tests like this, and let them fail (again, with good errors). Then we can fix our CI and our dev tools accordingly.
My $.01,
— Leif
>
> On Mon, Jan 7, 2019 at 4:14 PM Walt Karas <wk...@oath.com.invalid> wrote:
>
>> Many have this to skip if no http2 support but I don't know if it can
>> be use to test support for http1.1 :
>>
>> # need Curl
>> Test.SkipUnless(
>> Condition.HasProgram("curl", "Curl need to be installed on system
>> for this test to work"),
>> Condition.HasCurlFeature('http2')
>> )
>>
>> On Mon, Jan 7, 2019 at 4:58 PM Pushkar Pradhan
>> <pp...@oath.com.invalid> wrote:
>>>
>>> I tried running the autests on the master branch and saw many many
>> failures.
>>> Most of them failed because my RHEL box doesn't have a recent curl that
>>> supports http1.1 option.
>>> The fix was obvious but I got no warning about this, I had to figure this
>>> out.
>>>
>>> Would it be reasonable to include and build the latest curl sources?
>>> Just like how we include yaml-cpp.
>>> --
>>> pushkar
>>
>
>
> --
> pushkar
Re: autest failures
Posted by Pushkar Pradhan <pp...@oath.com.INVALID>.
Yes I saw that condition later. I think it could be done for http1.1 but is
it a good idea to skip tests?
On Mon, Jan 7, 2019 at 4:14 PM Walt Karas <wk...@oath.com.invalid> wrote:
> Many have this to skip if no http2 support but I don't know if it can
> be use to test support for http1.1 :
>
> # need Curl
> Test.SkipUnless(
> Condition.HasProgram("curl", "Curl need to be installed on system
> for this test to work"),
> Condition.HasCurlFeature('http2')
> )
>
> On Mon, Jan 7, 2019 at 4:58 PM Pushkar Pradhan
> <pp...@oath.com.invalid> wrote:
> >
> > I tried running the autests on the master branch and saw many many
> failures.
> > Most of them failed because my RHEL box doesn't have a recent curl that
> > supports http1.1 option.
> > The fix was obvious but I got no warning about this, I had to figure this
> > out.
> >
> > Would it be reasonable to include and build the latest curl sources?
> > Just like how we include yaml-cpp.
> > --
> > pushkar
>
--
pushkar
Re: autest failures
Posted by Walt Karas <wk...@oath.com.INVALID>.
Many have this to skip if no http2 support but I don't know if it can
be use to test support for http1.1 :
# need Curl
Test.SkipUnless(
Condition.HasProgram("curl", "Curl need to be installed on system
for this test to work"),
Condition.HasCurlFeature('http2')
)
On Mon, Jan 7, 2019 at 4:58 PM Pushkar Pradhan
<pp...@oath.com.invalid> wrote:
>
> I tried running the autests on the master branch and saw many many failures.
> Most of them failed because my RHEL box doesn't have a recent curl that
> supports http1.1 option.
> The fix was obvious but I got no warning about this, I had to figure this
> out.
>
> Would it be reasonable to include and build the latest curl sources?
> Just like how we include yaml-cpp.
> --
> pushkar