Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59240 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29878 invoked from network); 30 Mar 2012 17:16:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Mar 2012 17:16:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 141.146.126.227 cause and error) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 141.146.126.227 acsinet15.oracle.com Received: from [141.146.126.227] ([141.146.126.227:35899] helo=acsinet15.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/11-22662-D7AE57F4 for ; Fri, 30 Mar 2012 12:16:45 -0500 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q2UHGfCM032344 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 30 Mar 2012 17:16:42 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q2UHGewV002628 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 30 Mar 2012 17:16:41 GMT Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q2UHGelU029555 for ; Fri, 30 Mar 2012 12:16:40 -0500 Received: from hubby.local (/50.131.91.176) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 30 Mar 2012 10:16:39 -0700 Message-ID: <4F75EA77.3010300@oracle.com> Date: Fri, 30 Mar 2012 10:16:39 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-CT-RefId: str=0001.0A090204.4F75EA7A.0094,ss=1,re=0.000,fgs=0 Subject: Re: [PHP-DEV] Change all XFAIL tests to FAIL From: christopher.jones@oracle.com (Christopher Jones) On 3/29/12 3:00 PM, Alexey Shein wrote: > Hi, internals! > > I've got a suggestion about refactoring our tests suite. I'd like to > remove XFAIL institution and mark all failing tests just as FAIL. > XFAIL has a problem that it hides attention from failing tests > depending on not yet fixed bugs (most important), not yet implemented > features (less important). > Failed tests should make pain. They should bug you every day until you > go and fix them. > XFAILs serve now as a pain-killers, we've got about 50 of them in the > repo, so devs (I assume) think this way: "It's failing, but it's > EXPECTED to fail, so let's leave it as is". > That's wrong thinking. Either tests are correct and if they fail you > should fix the code and leave them failed until the code is fixed, or, > if the tests are incorrect - fix the tests or remove them completely. The XFAIL mechanism reflects the reality of open source that not all bugs are fixed. We need a simple, low maintenance way to have a 'clean' testsuite shipped which exhibits minimal noise so that users don't waste time investigating known failures. XFAIL also allows end users to see when something has broken that used to work. If the system is being overused, feel free to call people out on it. I don't think it should be used for unimplemented features long term. XFAIL is a simple mechanism. Anything different like moving tests to a special 'failed' directory adds burden. I don't belive we have extra cycles for this, but would be happy to be proved wrong. Chris -- Email: christopher.jones@oracle.com Tel: +1 650 506 8630 Blog: http://blogs.oracle.com/opal/