Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93E10CF9C6B for ; Tue, 24 Sep 2024 16:57:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3686C10E73D; Tue, 24 Sep 2024 16:57:32 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="tcZhbOuq"; dkim-atps=neutral Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id 57D7210E73D; Tue, 24 Sep 2024 16:57:31 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 42AD9A43672; Tue, 24 Sep 2024 16:57:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97BB1C4CEC4; Tue, 24 Sep 2024 16:57:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1727197049; bh=mUAkFzUly6/JXpK5kV1pZ/MgrgIRbQ3uqgTsJQfWbkw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tcZhbOuqt+xX7eFVZD+9RMqVf8Qg9/0HE7XkVCfbqtsaFZZEBRB3K7xAT2uN4rDFG QnQBkM9yC1adUIYTtnVYUQyO74qaPQhzXS27ITKBAXfR+Wupc1FQIJFe1q6vf+3qnh 8CwPc03MSh8mk2q7KRobqBEWE1AoVWdcUPQgno4V0PTFvlNrKCgNKcJ/IdFItjmz4q qlq/gvwFwaZcu5E3ymNiG1L/11MmehXS4vnTjRuqxN3XGWHevl5UND/23qIofiFU9K pioAI6yPJZjdF8b92a7NoqiOaZfzwaKTvanvIwOVDU0+/hm/1RBUlCJf3eHAeTVoi/ eylqtzrAAweqQ== Date: Tue, 24 Sep 2024 18:57:27 +0200 From: Maxime Ripard To: Jani Nikula Cc: Guenter Roeck , Simona Vetter , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, Carlos Eduardo Gallo Filho , Maarten Lankhorst , Thomas Zimmermann , Jeff Johnson Subject: Re: [PATCH 0/2] drm: revert some framebuffer API tests Message-ID: <20240924-impressive-coua-from-hyperborea-bfff8b@houat> References: <20240924-refined-nocturnal-starfish-2947b8@houat> <20240924-handsome-labrador-of-shopping-b1dce5@houat> <4accd038-9624-43de-96ad-7ecd0876b607@roeck-us.net> <87ed593v11.fsf@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha384; protocol="application/pgp-signature"; boundary="zzg2kbknxfh7dm2r" Content-Disposition: inline In-Reply-To: <87ed593v11.fsf@intel.com> X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" --zzg2kbknxfh7dm2r Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 24, 2024 at 06:56:26PM GMT, Jani Nikula wrote: > On Tue, 24 Sep 2024, Guenter Roeck wrote: > >>>> On Tue, Sep 24, 2024 at 12:06:28PM GMT, Simona Vetter wrote: > >>>>> Yeah I think long-term we might want a kunit framework so that we c= an > >>>>> catch dmesg warnings we expect and test for those, without those wa= rnings > >>>>> actually going to dmesg. Similar to how the lockdep tests also rero= ute > >>>>> locking validation, so that the expected positive tests don't wreak > >>>>> lockdep for real. > >>>>> > >>>>> But until that exists, we can't have tests that splat in dmesg when= they > >>>>> work as intended. > > > > FWIW, that is arguable. More and more tests are added which do add such= splats, > > and I don't see any hesitance by developers to adding more. So far I co= unted > > two alone in this commit window, and that does not include new splats f= rom > > tests which I had already disabled. I simply disable those tests or don= 't > > enable them in the first place if they are new. I did the same with the= drm > > unit tests due to the splats generated by the scaling unit tests, so any > > additional drm unit test splats don't make a difference for me since the > > tests are already disabled. >=20 > What's the point of having unit tests that CI systems routinely have to > filter out of test runs? Or filter warnings generated by the tests, > potentially missing new warnings. Who is going to run the tests if the > existing CI systems choose to ignore them? If we turn this argument around, that means we can't write unit test for code that will create a warning. IMO, this creates a bad incentive, and saying that any capable CI system should reject them is certainly opiniated. Maxime --zzg2kbknxfh7dm2r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCZvLvcgAKCRAnX84Zoj2+ dqrfAYD6MH9bJTDmeB1WF6+LCqkFA56PlpCiOTF2zeen6ZzagP3EEhW6S5QcZXz3 q9iPLyIBfRe9BP5qXtVFVv1UdKWT9HVAUIWAS/pD48vcph80Vdjhz4B/ux5mT8VA jVW4Pp9FGQ== =2yA4 -----END PGP SIGNATURE----- --zzg2kbknxfh7dm2r--