[llvm-dev] [RFC] Require PRs for XFAILing tests
Chris Bieneman via llvm-dev
llvm-dev at lists.llvm.org
Thu Sep 29 10:42:30 PDT 2016
> On Sep 29, 2016, at 10:38 AM, Reid Kleckner <rnk at google.com> wrote:
> On Thu, Sep 29, 2016 at 10:29 AM, Chris Bieneman via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
> I haven’t done a full audit, but we have 257 XFAILs in LLVM.
> * 44 of those are vg_leak failures on TableGen tests which should be UNSUPPORTED because we allow TableGen to leak for performance the same way we allow clang to leak.
> * 15 of them are vg_leak in the OCaml bindings. Someone familiar with OCaml should chime in on it, but I suspect those too should be UNSUPPORTED
> Do we still support running the test suite with Valgrind? I don't think we run it continuously anymore. Maybe these are just noise now and we should remove them. Users can still run Valgrind on LLVM, but LLVM's test suite is an implementation detail, and we don't have to gaurantee that it is leak free.
> * 125 of them are universal failure (XFAIL: *). Many of these have been marked this way for years. I suspect that if we take the time to go through these we will likely find that many of these test cases either should be tracked by bugs, or should be removed from the tree
> From there, many of the test cases are XFAIL on features where they really should be UNSUPPORTED. I suspect that if we do a full audit of the XFAILs we would likely find <100 which should actually be XFAIL, and tracking those seems valuable to me.
>> Auditing existing XFAILs can be done today without filing bugs for them.
> Yes, we can audit them today. Making bugs required for them makes it easier to audit them because there will (in theory) be a bug describing the justification for the XFAIL and what the underlying issue is. Digging up the reason why an XFAIL was added in 2009 is a little bit challenging today if there isn’t a PR associated with it (or a really good comment or commit message).
> Can we require a comment for every XFAIL? That seems like a clear guideline that can be enforced by code review, and it's less heavyweight.
Requiring comments for XFAIL is much harder to enforce via tools, and would need to be enforced with code review. One advantage I see to this process is that the tooling support is a relatively simple patch to LIT.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev