This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] delete gdb.cp/ambiguous.exp ?


[Note: When the "guidelines anyway" quote came to me,
I thought I'd have some light fun with the rest of the message.]

Pedro Alves writes:
 > On 08/19/2014 09:10 PM, Doug Evans wrote:
 > > On Tue, Aug 19, 2014 at 10:50 AM, Pedro Alves <palves@redhat.com> wrote:
 > >> On 08/19/2014 06:24 PM, Doug Evans wrote:
 > >>
 > >>>> Actually enabling the test (removing the skip, and adding
 > >>>> nowarnings), we see that indeed GDB outputs no warning:
 > >>>
 > >>> But given the early exit the test itself is never run.
 > >>
 > >> As I said, I removed that.  ;-)
 > > 
 > > I know (I thought that was obvious).
 > 
 > The statement you replied to clearly said I locally enabled the test
 > (_that_ much seems obvious to me), and you replied back as if I hadn't.

Misunderstanding then.

"Oh, the misunderstandings!"

http://www.imdb.com/title/tt0562996/

 > It just sounded like the start of going in circles.  So I still don't
 > know what did you intend to actually say or refute to.

It wasn't clear to me what, if anything, you were proposing.
Were you proposing to check in "[removing] the skip",
and possibly marking the FAILs as KFAILs?
And, possibly leaving it at that until someone has time to fix the bug?
I know you were showing what would happen if the check was removed.
But it was not clear at all that you were proposing to check that in.

Further confusion on my part came when there was a question of
whether there was actually a bug here"
"So shouldn't GDB error out in the 'x.x' case too ?  Or at
least warn, like the test suggests"

One recognizes that there is (at least one) gdb bug here.
But instead of a bug report we have a testcase that has been disabled
to, presumably, document the issue in place of a bug report.
It's not the norm here.

"It's an anomaly. Anomalies bug me."

http://www.imdb.com/title/tt0606021/

 > >>> I'm all for filing a bug and recording the test in the bug report.
 > >>> I'm even ok with keeping the test as is.
 > >>> The high order bit for me is exploring what the community wishes be
 > >>> done with this kind of "dead code".
 > >>
 > >> You're asking for a generic opinion, of the abstract "community",
 > >> while I think "case by case" generally applies.  ;-)
 > > 
 > > I'm asking people for their opinion on this case (and cases like it).
 > > If I call them a "community", which is what gdb@ and gdb-patches@ is
 > > to me, I don't see the problem.
 > 
 > [
 > This is getting off topic, and about how we can improve communication
 > [which I am all for!], but I think the problem for me is in the very
 > lose definition of what is a "this case", and then wanting a generic rule.

I did not use the word "rule", as if I'm looking for a "thou shalt"
kind of thing.  [as opposed to, say, guidelines]
I'm curious if anyone else thought that, and if so ... why?

"Hang the code, and hang the rules. They're more like guidelines anyway."

http://www.imdb.com/search/text?realm=title&field=quotes&q=guidelines%20anyway

 > I don't know what you mean by that exactly.

Ask for clarification.

"Clarification - its a beautiful thing."

http://www.imdb.com/title/tt0606036/

 > It begs for a generic
 > "thou shalt do this or that" kind of answer, but, personally, I find it
 > difficult to answer such a question.  I think we should be reasonable and
 > look at things in a little more detail than applying a rubber stamp rule.

"I think we should be reasonable ..."
I think we can assume we're in agreement here.

"Well, this is an Enterprise first - Dr. McCoy, Mr. Spock and
Engineer Scott find themselves in complete agreement.
Can I stand the strain?"

http://www.imdb.com/title/tt0708468/

 > So I did my best to actually look at the test and give out a rationale
 > for why I thought _enabling_ the test (because it's skipped today) would be
 > more useful than deleting it under a broad "dead code" rule.  The answer
 > I got back, in turn was, paraphrasing: "yeah, but never runs today or for
 > a long while!".  Well, I know that, of course, otherwise I wouldn't have
 > gone through the trouble of force-enabling the test locally!  Again, that
 > feels like a discussion that will quickly degenerate to going around in
 > circles.  It feels like we tend to talk past one another frequently,
 > while I believe there's no intention to on either side.  How can we
 > improve here?
 > ]

As a start, I propose asking for clarification earlier and more clearly,
and without going down a road of making assumptions about what might
have been meant.

"It's all becoming clear. The Doctor is the man you'd like to be,
doing impossible things with cricket balls."

http://www.imdb.com/title/tt1000254/

 > > 
 > > Removal of dead code is, in my experience here, *rarely* a case by
 > > case decision.
 > > [each case may have minor details that are different, but the high
 > > order bit is generally DELETE IT :-)]
 > 
 > Right.  When I say "case by case", I'm kind of defending against
 > considering unreachable C code the same as #if 0 code that is serving
 > as comment the same as clearly dead testsuite/lib/*.exp code
 > the same as a test that happens to be skipped on the most popular platform.
 > 
 > I don't think it's so rare that an investigation finds that what is currently
 > dead could or should be reachable and a fix in that direction is made.
 > And we don't have to go very far for that:
 > 
 >  https://sourceware.org/ml/gdb-patches/2014-08/msg00180.html
 > 
 > > And yet this is a little different than an #if 0 in code, so I'm asking.
 > 
 > Yeah.

"I'm confused.
Yeah, well it's a big club - we should get t-shirts."

http://www.imdb.com/title/tt1721225/

 > > We certainly want to document this issue in some way, but if we're
 > > just going to leave the test as is, not being run, and yet have to
 > > disable it for new compilers as they come along, then I think there's
 > > value in documenting the issue in a different way (e.g., bug reports
 > > are fine for this sort of thing).
 > > 
 > >> My inclination for
 > >> tests is to first check whether there's something salvageable.  If
 > >> someone wrote the test, it was probably important enough.  If it's indeed
 > >> "dead code", then of I'd go for just removing it.  I looked, and it seemed
 > >> to me that the test actually covers an aspect of printing that we don't
 > >> cover elsewhere, and actually reveals a bug.
 > >> So IMO, in this particular case, we should keep the test, remove the gcc check,
 > >> modernize and KFAIL it , and then have the bug fixed (if people agree it's
 > >> a bug).  I'm of course not suggesting you do that all of yourself, but
 > >> since you asked, that's what I'd prefer see done in this case.
 > > 
 > > This is feedback I can work with.  Thanks.
 > > 
 > > Going forward, as we discover bugs, are people ok with checking in a
 > > KFAIL'd test for a bug before the bug is fixed? 
 > 
 > It depends on the bug, but in general yes I'm okay with KFAILs.
 > I've added and fixed some myself.

This is feedback I can use.

 > > "Just fix the bug."
 > > is the canonical response.  
 > 
 > Again a generalization.  ;-)

Eh?  I'm stating what I've seen from my experience.
We may have different definitions of the word "canonical",
and mine may certainly be different than yours.

"Good different or bad different?
Just different."

http://www.imdb.com/title/tt0562994/

 > Myself, I'll give out that response to
 > workarounds when I think the fix is doable in reasonable time compared
 > to the time needed to do the workaround.  I may be mistaken, but I don't
 > recall saying that in response to a new KFAIL test, unless again, I
 > trust the fix is more trivial than the submitter initially believes.
 > 
 > > And yet there are often higher priorities.
 > > How do we document the bug's existence so that it's not forgotten
 > > until someone has time to fix it?  File a bug report, of course.
 > > Well, I file bug reports all the time, I certainly don't have time to
 > > fix all of them instead of filing the bug report.  And if in
 > > reproducing the bug I'm 80% of the way there in writing the test, is
 > > it ok to at least finish and check in that part, even if I don't have
 > > time to fix the bug?
 > 
 > IMO, yes, within reason.

This is usable feedback.

 > > Or, instead of allowing that, should we just "grandfather in", so to
 > > speak, all existing disabled tests, not allow new KFAIL'd ones, and
 > > migrate these existing tests to KFAIL if we don't have time to fix the
 > > bug?
 > 
 > I don't think we should forbid new KFAILed tests as a rule.

More usable feedback.  Thanks.

"Data, you sound as if you're stuck in a... feedback loop!"

http://www.imdb.com/title/tt0708688/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]