From nobody Fri Feb 23 09:41:49 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Th4mB5rLmz5C7nN for ; Fri, 23 Feb 2024 09:42:02 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Th4mB5N7bz4Mpd for ; Fri, 23 Feb 2024 09:42:02 +0000 (UTC) (envelope-from olivier@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708681322; 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=jfvouWQwg5dOlrep3PaT8PtOsWQ+aySho8aDpFuxKJw=; b=xAQNJ0Taov8qeZPztc5dWOpaDhhB5Wx2UKwPQW6kv+xPaTfJ199TFiuGv4I9VvYkKYTN4P aH5pxXbNDoq7yQp0nKBi0mMfMhszGlA4K2VYIksseMsP3rWO+0KpLtcUFy3jTKM7a1TH/D HDAIqTdPylUzRivszdylg6lWAVItg8PK0KQsKrOUKlJu6kiBqBI4mqOmt9wJwm6jp3p192 FGbz6/Xu9CJNl15GJ5bpSHQ2HowYGsyUTilqTosrGbs/D8WRZz6ZEfnMxErU7rFPswbd/M 9/8HQSC9rJHfo9rXwFlQFVhAZkSHoVfYCrP6U2bEwwNnjIAiTeunpBmt6HWi2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708681322; a=rsa-sha256; cv=none; b=ep4fKakXCPni/7Tn6GvFi8ldFh1eg3kUdczGRUelPd37dITwQ7rAbXOkmz/7vUiGpwzs05 BW0mHPHwx19IiS4inOZWERJzWzRO0fCKvzdn1crpkoNVinqCXcWrcFhOaMuRmHlIRRTqC2 sWHH0tZcVDMNN0BCoQmEUCPhxhNyIgDsLXhcASWwCcfIKAzzMI3pcFpPfoTwiM5qOzrMts P7fSsBgnEOqebaVoLUsZRuzNlVf06fRw7Z3b58ompWm7EJerGJ1UW8SDrqeQKX01w75yZk q5jKpzw05OJkI+E0PHRI0CK3r0GRhe/WnKeC5rD7V0tRd89XBlxD2UW8rhae9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708681322; 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=jfvouWQwg5dOlrep3PaT8PtOsWQ+aySho8aDpFuxKJw=; b=vfkKkO0Wrb+Ue3RWan3lKCcXs6NZXNwFrZha83405ig10qGoKecvwIur6Az6uSCv8p18Mh HO+LyWm5CxBH5Ty80zkbzA7v2TFSvhG3SWgmEhSBicF4F7H/CPTmIB4cz0fdKPzrozC2Ry 3ohv4rjXdQS/x0qdSiMxaFCBEPDG9o9uU1RorPsqKu33KDp6zydbAk1j2NWXKdVVvuEU2d m4PoKos7hP13wwToMzv41NwkJBF+fclcqMFPBz1JPoIhH+Awch3JNwZVsy5AVaeWtdh+UD kJg84vBQEcrPu5tNleWqzHHYjHOmE2q7W2JoUGXkAu2EYBG0y9yVZ7oYpdkoMA== Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: olivier/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Th4mB4LGQzdHW for ; Fri, 23 Feb 2024 09:42:02 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-3c02b993a5aso403400b6e.1 for ; Fri, 23 Feb 2024 01:42:02 -0800 (PST) X-Gm-Message-State: AOJu0YzPEfNXYwAJOxoZcP7ckjoOg65S0I2pOTVW0Ed185ZdUT9QRzqU OqAX+f8mJTNJrRAtd/Bx9foVye5+cUXevM9h55OOnrUmGuNRuHrngKkjty4YNVB88AP81msJJdS 2XeFLk7Z+aYxdLDLKurwiGOm5PV4= X-Google-Smtp-Source: AGHT+IFjfLQTlm8fAmqH/lSQFYFIggwQtczeZkdMhxPfk9uaygqUclMceXYz8Z1Uf1G3MFO7JzT7oLNMYmpauM1vSwk= X-Received: by 2002:a05:6808:299a:b0:3c1:8476:34da with SMTP id ex26-20020a056808299a00b003c1847634damr1129243oib.23.1708681321579; Fri, 23 Feb 2024 01:42:01 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: <2bjQNp1msrv-_AqyamMun6kY-SCqbgPm3Q7DqVQHAYlqvFkiE1i85svfIT-QQdUG1cg3cKippyTyv8Z-5nbLu4WaMutgZQ7KT-YYo_5Pbro=@pm.me> In-Reply-To: <2bjQNp1msrv-_AqyamMun6kY-SCqbgPm3Q7DqVQHAYlqvFkiE1i85svfIT-QQdUG1cg3cKippyTyv8Z-5nbLu4WaMutgZQ7KT-YYo_5Pbro=@pm.me> From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Fri, 23 Feb 2024 10:41:49 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Add jail execution environment support to the FreeBSD test suite To: igor.ostapenko@pm.me Cc: "freebsd-hackers@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000350b630612095fe2" --000000000000350b630612095fe2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2024 at 9:58=E2=80=AFPM wrote: > > There is a proposal to improve the FreeBSD test suite. > > > Thanks a lot for working on improving the parallel tests! At work, we are using: 1. a Nanobsd based, so a lot of WITHOUT_ : WITHOUT_JAIL, WITHOUT_PF, no VNET (a nightmare to debug network stack with it), etc.; 2. The standard full test suite (about 8200 tests) is reduced to about 7400 tests with this lighter nanobsd; 3. We have been using kyua parallelism=3D8 for years, and I had to skip onl= y about 10-20 tests that were not compliant with parallel mode. It toke about 23 minutes to run them (in a bhyve VM): Test cases: 7429 total, 905 skipped, 29 expected failures, 1 broken, 4 failed Start time: 2024-02-21T00:15:42.527291Z End time: 2024-02-21T00:38:57.036211Z Because we were using WITHOUT_JAIL, to improve the time spent, one of my ideas was to divide the tests into groups of 4 or 8 and run as many bhyve VMs in parallel. I assumed that by running regression tests in a jail, I was testing the jail system as much as the test object (and for our use case, I don=E2=80= =99t care about the jail because we are not using it). So using the bhyve VM I had the feeling the tests were more confined. Now if WITH_JAIL becomes mandatory to be able to run the test, I will just have to modify my build system (like by adding a WITHOUT_JAIL just at installworld time and not during buildworld). Regards, Olivier --000000000000350b630612095fe2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, Feb 22, 2024 at 9= :58=E2=80=AFPM <igor.ostapenko@p= m.me> wrote:

There is a proposal to improve the FreeBSD test suite.



Thanks a lot for working on i= mproving the parallel tests!

At work, we= are using:
1. a Nanobsd based, so a lot of WITHOUT_ : WITHO= UT_JAIL, WITHOUT_PF, no VNET (a nightmare to debug network stack with it), = etc.;
2. The standard full test suite (about 8200 tests) is = reduced to about 7400 tests with this lighter nanobsd;
3. We= have been using kyua parallelism=3D8 for years, and I had to skip only abo= ut 10-20 tests that were not compliant with parallel mode.
=
It toke about 23 minutes to run them (in a bhyve VM):

Test cases: 7429 total, 905 skipped, 29 e= xpected failures, 1 broken, 4 failed
Start time: 2024-02-21T00:15:42.527= 291Z
End time: =C2=A0 2024-02-21T00:38:57.036211Z

Because we were using WITHOUT_JAIL, to improve the time spent,= one of my ideas was to divide the tests into groups of 4 or 8 and run as m= any bhyve VMs in parallel.
I assumed that by running regress= ion tests in a jail, I was testing the jail system as much as the test obje= ct (and for our use case, I don=E2=80=99t care about the jail because we ar= e not using it).
So using the bhyve VM I had the feeling the= tests were more confined.

Now if WITH_J= AIL becomes mandatory to be able to run the test, I will just have to modif= y my build system (like by adding a WITHOUT_JAIL just at installworld time = and not during buildworld).

Regards,
Olivier
--000000000000350b630612095fe2--