Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1804033rdd; Thu, 11 Jan 2024 09:39:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/VZTQoDf2RUdSmwCAKghatDje9JlsVflhagdOnir3pJFa7u/ZozgSBVx1aqNCtGR/VKd4 X-Received: by 2002:a81:af63:0:b0:5ec:91e:9d68 with SMTP id x35-20020a81af63000000b005ec091e9d68mr136612ywj.18.1704994773912; Thu, 11 Jan 2024 09:39:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704994773; cv=none; d=google.com; s=arc-20160816; b=HOtEqqerCcxoClqs8YDBfIU5SukKwPw84UyEjTh6npDH0CrINjpf1RfJSvn9SKXzvj /JJjCZECpv3hDpz/he2nI9lbRjlblmtryvy2PDSPQ2cuYdO+FLlPv+SzyZJMmmmEViZl ENkZCNWyKOSbCGcU1KeHu3Oyuh0MQxolMFC10c7+LA6fRHqlvnptBe92rfDYQG1c6fiq cIrt7flT1jVTu9yFJ5qjhttrdlRKVyg5bZtaXaD5lqjYbODiqSKupajhV9OShBGGecvF naRyU5Slq0fAEZ5Nf7PARqgOcv61I639ILK+20xJfYKEAFUJMdktYGHcM1KOozCYUJVM qyCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=xtqt+XCKB8URLfIsERdpgm7zJXhhxVtHiUsa5sbp2Qs=; fh=hWPCShnC4nXcupZ0PxRCLl3snB3jwG318PYwasMT5B4=; b=0QWLcBXU+IMR5yLY9ZqLyYLgPYl9hbcNpDmuUQY+ox0Vy0uV9K1TBoG9/uc/SFDAiX aerqpzdcEpnglvQC49//87PA7SGgmakG/LLtoOUD8P1PIwpYjs1ree4AXmiKZe/wMEtw xJb2VuOUn0YSa5qHpAulq8TgiG4EK0O4femkwk5fFMniPFLAIarzLEpH68Q2mG3l6HQt TMJkkLP8Gqu7o7YAOTwO933GRyfbrZnlr6obZsm90VJlfMXkkoUml9VfTcEoWB5gf6lT Y1nA2ioMDmEu5RtNO9Pl6UoOkfCaBKtrluD57GXBGzMOSLaBo8EMOJ5P/Z9BUGVigfa9 R0Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=HPgO+BgO; spf=pass (google.com: domain of linux-kernel+bounces-23943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i22-20020a05620a405600b007830cf0a689si1446008qko.329.2024.01.11.09.39.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 09:39:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=HPgO+BgO; spf=pass (google.com: domain of linux-kernel+bounces-23943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A73BB1C2422B for ; Thu, 11 Jan 2024 17:39:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6206537E5; Thu, 11 Jan 2024 17:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="HPgO+BgO" Received: from out-181.mta0.migadu.com (out-181.mta0.migadu.com [91.218.175.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0062B51007; Thu, 11 Jan 2024 17:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Thu, 11 Jan 2024 12:38:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1704994741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xtqt+XCKB8URLfIsERdpgm7zJXhhxVtHiUsa5sbp2Qs=; b=HPgO+BgOiUMMuo2RZ60QxQwyLWf4P3il3GGphNXgQBouaq1OB/mIzjNhVEP3afsyDA5DAJ PWpweSxttYFFzKAo9AXVddFHL4SDloJ1/QrY/HRNZAcTmNoBH0ugS47JTlcp7c8Buf6tkg MlTAdsKgmHq2vm3x1pL8iY8wb25jB0Q= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Mark Brown Cc: Kees Cook , Linus Torvalds , linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Nikolai Kondrashov Subject: Re: [GIT PULL] bcachefs updates for 6.8 Message-ID: References: <202401101525.112E8234@keescook> <6pbl6vnzkwdznjqimowfssedtpawsz2j722dgiufi432aldjg4@6vn573zspwy3> <202401101625.3664EA5B@keescook> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Thu, Jan 11, 2024 at 03:35:40PM +0000, Mark Brown wrote: > On Wed, Jan 10, 2024 at 07:58:20PM -0500, Kent Overstreet wrote: > > On Wed, Jan 10, 2024 at 04:39:22PM -0800, Kees Cook wrote: > > > > With no central CI, the best we've got is everyone running the same > > > "minimum set" of checks. I'm most familiar with netdev's CI which has > > > such things (and checkpatch.pl is included). For example see: > > > https://patchwork.kernel.org/project/netdevbpf/patch/20240110110451.5473-3-ptikhomirov@virtuozzo.com/ > > > Yeah, we badly need a central/common CI. I've been making noises that my > > own thing could be a good basis for that - e.g. it shouldn't be much > > work to use it for running our tests in tools/tesing/selftests. Sadly no > > time for that myself, but happy to talk about it if someone does start > > leading/coordinating that effort. > > IME the actually running the tests bit isn't usually *so* much the > issue, someone making a new test runner and/or output format does mean a > bit of work integrating it into infrastructure but that's more usually > annoying than a blocker. No, the proliferation of test runners, test output formats, CI systems, etc. really is an issue; it means we can't have one common driver that anyone can run from the command line, and instead there's a bunch of disparate systems with patchwork integration and all the feedback is nag emails - after you've finished whan you were working on instead of moving on to the next thing - with no way to get immediate feedback. And it's because building something shiny and new is the fun part, no one wants to do the grungy integration work. > Issues tend to be more around arranging to > drive the relevant test systems, figuring out which tests to run where > (including things like figuring out capacity on test devices, or how > long you're prepared to wait in interactive usage) and getting the > environment on the target devices into a state where the tests can run. > Plus any stability issues with the tests themselves of course, and > there's a bunch of costs somewhere along the line. > > I suspect we're more likely to get traction with aggregating test > results and trying to do UI/reporting on top of that than with the > running things bit, that really would be very good to have. I've copied > in Nikolai who's work on kcidb is the main thing I'm aware of there, > though at the minute operational issues mean it's a bit write only. > > > example tests, example output: > > https://evilpiepirate.org/git/ktest.git/tree/tests/bcachefs/single_device.ktest > > https://evilpiepirate.org/~testdashboard/ci?branch=bcachefs-testing > > For example looking at the sample test there it looks like it needs > among other things mkfs.btrfs, bcachefs, stress-ng, xfs_io, fio, mdadm, > rsync Getting all that set up by the end user is one command: ktest/root_image create and running a test is one morecommand: build-test-kernel run ~/ktest/tests/bcachefs/single_device.ktest > and a reasonably performant disk with 40G of space available. > None of that is especially unreasonable for a filesystems test but it's > all things that we need to get onto the system where we want to run the > test and there's a lot of systems where the storage requirements would > be unsustainable for one reason or another. It also appears to take > about 33000s to run on whatever system you use which is distinctly > non-trivial. Getting sufficient coverage in filesystem land does take some amount of resources, but it's not so bad - I'm leasing 80 core ARM64 machines from Hetzner for $250/month and running 10 test VMs per machine, so it's really not that expensive. Other subsystems would probably be fine with less resources.