Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73607 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27995 invoked from network); 5 Apr 2014 20:19:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Apr 2014 20:19:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.42 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.42 mail-oa0-f42.google.com Received: from [209.85.219.42] ([209.85.219.42:50676] helo=mail-oa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/10-27007-F5560435 for ; Sat, 05 Apr 2014 15:19:43 -0500 Received: by mail-oa0-f42.google.com with SMTP id i4so5042583oah.15 for ; Sat, 05 Apr 2014 13:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bp4x9L1loNyUtiERpAeqen38X5THzx6c/PORcbTM8DM=; b=T6iK+apeaeFLGpYKEytTsCmaJtOSh4qf5XNbaf7RiqtwV9Hs5sfAXnb3XIWdfN09IX gvpQqkjQ00OJD4g2zCeadgwxSUG8mxbztP08e9B6R27pDATH1QtjZk9Jl5+s3cMn4Qdx kOLgkr9ETVECcqju5cIvf/6CMgftzc5W63QzspL3TSPNPI3wbbiqnolpHmfgBa7jAnOF WZDOUHtyq7nYd2OfXmJn7xHlLQdpeY8gaSUaXZaDLlv/duS24OiIuSX8sA+e4pE0Ma+A 7xp8q/+r8sWy0/DYoViyaDXi78abcfhSz47Hxh6N55lOouPn8Bp07uiCLTEgQp4PoK2l NFpQ== MIME-Version: 1.0 X-Received: by 10.60.74.195 with SMTP id w3mr26330520oev.28.1396729180874; Sat, 05 Apr 2014 13:19:40 -0700 (PDT) Received: by 10.182.69.101 with HTTP; Sat, 5 Apr 2014 13:19:40 -0700 (PDT) In-Reply-To: <53404E5E.6010109@sugarcrm.com> References: <53404E5E.6010109@sugarcrm.com> Date: Sat, 5 Apr 2014 22:19:40 +0200 Message-ID: To: Stas Malyshev Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11346e9aac6d3b04f6515a9c Subject: Re: [PHP-DEV] Travis CI unit tests From: nikita.ppv@gmail.com (Nikita Popov) --001a11346e9aac6d3b04f6515a9c Content-Type: text/plain; charset=ISO-8859-1 On Sat, Apr 5, 2014 at 8:41 PM, Stas Malyshev wrote: > Hi! > > As many of us know, we have a setup on Travis CI which automatically > runs unit tests for our active branches. This is very convenient for > evaluating pull request and status of the branches and keeping us from > making changes that break something without us noticing. However, > there's a problem with this setup, and the problem is that CI build is > never kept in the green for more than a a few days, the "normal" state > of it is always failing. I think this situation is not normal and, > frankly, embarrassing for the project, and propose to institute a policy > to change it. > The start would be recognizing that the goal is to keep the CI tests > green. Once they are green, and somebody commits a change that makes > them fail, we have the following options (note I'm not advocating for > now any of them, just enumerating them) to fix it: > > 1. Revert the change immediately, and ask the submitter to fix the pull > (pulls can be tested too on CI too) and re-submit it when it's green. > > 2. Wait for the change developer for a reasonable short time to fix the > tests, if that does not happen, revert the change. > > 3. Put the failing tests into XFAIL until they are fixed by somebody. > > 4. Have somebody - e.g. RM for the branch - to modify the failing test > to reflect the new results. > > These options, of course, can be used in combination and in > case-per-case basis, but I think we need some explicit attention to the > topic. I welcome everybody to propose suggestions about other options or > ways we could fix this situation going forward and would like to hear > the ideas about how we could make Travis CI tests useful and passing > successfully, thus ensuring better quality in the project. After the > initial discussion, I plan to write an RFC summarizing the proposals and > have it voted on and, hopefully, accepted, so we'd have official policy > on it, but fir now I'd also like to raise awareness of the issue and > solicit ideas and participation of the members of the project on this > topic. > It would be a good start to send a mail to the person introducing a CI build failure automatically. I think to the most part people are simply not aware that they introduce failures - it's not like anybody goes on travis half an hour after doing a commit to check whether everything works fine. Maybe bugging people about this is already enough to keep a green build most of the time? Nikita --001a11346e9aac6d3b04f6515a9c--