Re: Removing dead Perl code

2018-07-02 Thread Rawlin Peters
e are at 108 of 240 endpoints. > > > > >> > > > > >> >if we do not treat the tests as first class citizens (meaning we > > > > implement > > > > >> an Go endpoint and build coverage as we go), then why bother at all? > > >

Re: Removing dead Perl code

2018-07-02 Thread Rawlin Peters
nd build coverage as we go), then why bother at all? > > > >> It doesn't have to be all or nothing. There's a happy medium between > > > >> requiring tests for every line of code, and having no tests. > > > >> > > > >> >I also thought that we were suppo

Re: Removing dead Perl code

2018-06-26 Thread Dewayne Richardson
y bother at all? > > >> It doesn't have to be all or nothing. There's a happy medium between > > >> requiring tests for every line of code, and having no tests. > > >> > > >> >I also thought that we were supporting removing the Perl in

Re: Removing dead Perl code

2018-06-26 Thread Dewayne Richardson
we were supporting removing the Perl in the next TC > 3.0 major release (several emails back). > That vote was to remove the Perl GUI, not all of Perl. > > > >Removing dead Perl code can be tricky, since the interdependencies are > not always obvious, and can lead to unforeseen m

Re: Removing dead Perl code

2018-06-26 Thread Robert Butts
and having no tests. > >> > >> >I also thought that we were supporting removing the Perl in the next TC > >> 3.0 major release (several emails back). > >> That vote was to remove the Perl GUI, not all of Perl. > >> > >> > >> >Remov

Re: Removing dead Perl code

2018-06-25 Thread Rawlin Peters
Perl in the next TC >> 3.0 major release (several emails back). >> That vote was to remove the Perl GUI, not all of Perl. >> >> >> >Removing dead Perl code can be tricky, since the interdependencies are >> not always obvious, and can lead to unforeseen missin

Re: Removing dead Perl code

2018-06-24 Thread Dan Kirkwood
g the Perl in the next TC > 3.0 major release (several emails back). > That vote was to remove the Perl GUI, not all of Perl. > > > >Removing dead Perl code can be tricky, since the interdependencies are > not always obvious, and can lead to unforeseen missing functionality. >

Re: Removing dead Perl code

2018-06-23 Thread Robert Butts
erl GUI, not all of Perl. >Removing dead Perl code can be tricky, since the interdependencies are not always obvious, and can lead to unforeseen missing functionality. That's a good point. But let me ask this: in the event we miss some dynamic Perl calling a function that was removed, which is w

Re: Removing dead Perl code

2018-06-21 Thread Dewayne Richardson
I'm +100 on removing dead Perl code as long as we have 100% feature complete with the Go code (which I think we're fairly close?). Rawlin you are correct in that there is a spider web of interdependencies in Perl, but without feature parity removing any of that dead code is like pullin

Re: Removing dead Perl code

2018-06-20 Thread Jeremy Mitchell
HTTP calls (which you > > suggest in #1). That covers the endpoint no matter how it's implemented. > > > > Removing dead Perl code can be tricky, since the interdependencies are > not > > always obvious, and can lead to unforeseen missing functionality. TO > uses &

Re: Removing dead Perl code

2018-06-20 Thread Dave Neuman
est in #1). That covers the endpoint no matter how it's implemented. > > Removing dead Perl code can be tricky, since the interdependencies are not > always obvious, and can lead to unforeseen missing functionality. TO uses > dynamic addition of methods to objects. The Mojolici

Re: Removing dead Perl code

2018-06-20 Thread Dan Kirkwood
I'm all for #3. In fact, the `traffic_ops/testing/api` framework that Dewayne has developed encourages testing from the HTTP calls (which you suggest in #1). That covers the endpoint no matter how it's implemented. Removing dead Perl code can be tricky, since the interdependenci

Re: Removing dead Perl code

2018-06-20 Thread Robert Butts
+1 on removing dead code. IMO the danger and cost of the dead code far outweighs the benefit of the Perl tests. Especially considering AFAIK most of the tests are just verifying the response is a 200, not actually checking the body or database or validating anything. We just had someone in the co

Re: Removing dead Perl code

2018-06-20 Thread Jeremy Mitchell
#1 is pretty hard / not feasible. I believe Dewayne already looked into that #2 sounds hard and probably work that would just be wasted imo #3 i like this idea. let's pretend we have 100 API tests in perl. rewrite all 100 to Go, delete the perl tests entirely. this is also a good idea because it pr

Removing dead Perl code

2018-06-20 Thread Rawlin Peters
Hey Traffic Controllers, In order to accelerate our progress toward using and developing traffic_ops_golang as a community, I'd like to propose that we remove all of the dead Perl Traffic Ops API code in the repo. Many endpoints have been rewritten in Go at this point, and by keeping the obsolete