Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2AE3E1FF5EC for ; Wed, 7 May 2025 18:52:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746643973; cv=none; b=cqoOBt1aZBArK1oEZGvN4cYRH60iXa+S9tYEbepXYX5YApyTzn+kv0KPoRT4hEJNqn3CNLaO1WV8dKkjLFpmepvB0YpUhXQ0HsAsQMNdZAfPWLXxxq6/g+dTDiAJwGjMlS1Pn0aWCgQcsqLbY/6ap5EjLeNEZGs1zeJd53yAtIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746643973; c=relaxed/simple; bh=8pSZK1olw8HcV4aE6B6/Hlf5046ctNtHz4hEUkqpJ+U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YAGF4pHCgRontBgcLX7O2CRtuux5zd6DWQSUnUj5YzJT36NawzMhmy4xhT47sEzHdYuMh1BKUa0YYN4zhzdu9BwSeigThMFqEbsiGT6qoL3Sx+MVwlsc9Z8GgwSGAKLmrRGAxYKfBuMbF2afwlHz3kMFQptH7g7C4GlMn7zYKyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vHam4mX+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vHam4mX+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB04AC4CEE2; Wed, 7 May 2025 18:52:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746643972; bh=8pSZK1olw8HcV4aE6B6/Hlf5046ctNtHz4hEUkqpJ+U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vHam4mX+5re3L+x8CB3T7rGnbZa49+t1t38d/UA/JFH3f+KUgGV6U6UrOoJSOUOBb fEavx9KlKeSDD7I+oOhfZ6ywp6DRwxN7yfvunQNwFIetP6/IPpX166JKpz5yZIG+3D 7bYmN436GhX8RHP1RhOs0opVWzvaU9b4sAnFB1b4C1ROilDCG3g99SkLXTF24M7YBO bVJlwVJ8rHw4SaYq0fsYn8+Z9yCfu3hEu3EQKJucDEkTYNTb0gPyeKfbTfpr6ugIQv zh34X94zk8SagoTFhG2EyriXVYFfNpa/mMm51QVhh8uvD05XTwwW6/oUYOk2qa6A3x aPSdqHkag/pbw== Date: Wed, 7 May 2025 11:52:51 -0700 From: Luis Chamberlain To: Daniel Gomez Cc: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Subject: Re: [RFT] bootlinux: add bisection support Message-ID: References: <20250424000942.2944058-1-mcgrof@kernel.org> <6e5o27x6dwj2b6mjb4dwkqugh4duhzaomfg3rf7q532vcmzw44@xeutn543adnp> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, May 07, 2025 at 12:38:25PM +0200, Daniel Gomez wrote: > On Mon, May 05, 2025 at 12:25:34PM +0100, Luis Chamberlain wrote: > > On Fri, May 02, 2025 at 12:21:51AM +0200, Daniel Gomez wrote: > > > However, I was trying to find a convenient way to loop in Ansible and I haven't > > > been able to find one. I was thinking in: > > > > Its the same chicken and egg problem with running fstests check for a long time, > > and having a watchdog run to support a CI. We've now detatched the CI > > stuff as part of the CI stuff, but similar questions came up long ago > > when I tried to see if we could do both in one shot. > > I see. > > > > > What I ended up finding was the async ansible stuff but I never ended up > > mucking with it: > > > > https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_async.html > > > > Not sure if it helps here. > > > > > > Luis > > I think the Ansible async task feature might be useful for step 4 (Wait until > online), but it doesn't solve the overall problem. > > Going back to the workflow proposal: > > a. bisect-start target: > 1. Ensures VM is booted > 2. git bisect start > > b. bisect-loop target: > 1. Capture GRUB list and ask user for index > 2. Build, install kernel > 3. Reboot VM > 4. Wait until online > 4.a git bisect bad if timeout or other custom condition > 4.b git bisect good if online (and if custom condition succeeds) > 6. Shutdown vm (regarless of good/bad) > 7. Reconfigure grub to boot from user option > 8. Start VM and goto 2. > > I think the CI loop approach suits better for this. What about something like > this? > > bisect: > ansible-playbook bisect.yml --tags bisect-init > while ! [ -f .bisect-loop-finished ]; do \ > ansible-playbook bisect.yml > done Looks good! Luis