From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 60EE9A0C5D for ; Fri, 19 Nov 2021 18:25:58 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 54DB44114E; Fri, 19 Nov 2021 18:25:58 +0100 (CET) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) by mails.dpdk.org (Postfix) with ESMTP id EF5FD40140 for ; Fri, 19 Nov 2021 18:25:56 +0100 (CET) Received: by mail-ed1-f43.google.com with SMTP id v1so12219352edx.2 for ; Fri, 19 Nov 2021 09:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FVe8l8ht35IG6xA1RhBSgEhCqqY7/37a3cnRhEJX0S8=; b=VvLTMLGqcvjUZ2n4xSJaivmHDHNbd90bYmSFV4imWnZUkmmjDk1vVndaLl94GGGUrW 2Ck6uVkTtWgvaP/SW98Bqz4zzfEvM+IqSmBtXIm9YiM+Gf1MY/INU4VKQGX20AWPyzom ffsKh69QjMLXeqh6umkf0HQAq1TruTO4xj7wg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FVe8l8ht35IG6xA1RhBSgEhCqqY7/37a3cnRhEJX0S8=; b=i74TXSeMvSERXckWdFyhAY4e/fjzE3mqjVbzUKWAcKqleR/Fd8vnucOLrIrVzdo5f8 Gc1c/QDQE73CiFkIX+j9SfynbvSTxdEV1wAfMw7J/u732zIGNFGGVpEF4AQq5RWbgbAV GPnbMndqLs/aSoNL8hTMaSQhIJiFRL6zvupF+kx+VgeERwmAD3QnhfUpTTytK/vNrQXN KznnInqHcLBMVexOJWVzsZcRVISWHqVmj2m4UuY8n3+tlmN0NDqJW9mAmbiqLxVH8QoX CF0JcsA3OesngYdIG9G7zLSg6OutKvxREL71u4k7Ame5M3l1qv2syF1yrRWBgC7V3ziQ 1XQA== X-Gm-Message-State: AOAM531TVqvWpCZxNX82XDTkavXr5+RG2yNrdayN2CuWzCkSjz+IVVLW q+NDT9+YDQTFy8P/0QYpt8CtUO3RrDSp46K41/lfQQ== X-Google-Smtp-Source: ABdhPJzhRxbkOjvm7C4/Cwk2Xy3KdCRttEOdnNbQs0ozr7BvV3JnU2kEkVVHsH0kgPy3BWDs6gNF94dljEKvLWCM290= X-Received: by 2002:a17:907:7e88:: with SMTP id qb8mr9668892ejc.535.1637342756258; Fri, 19 Nov 2021 09:25:56 -0800 (PST) MIME-Version: 1.0 References: <1928246.j4tpOohVRJ@thomas> In-Reply-To: From: Lincoln Lavoie Date: Fri, 19 Nov 2021 12:25:44 -0500 Message-ID: Subject: Re: [dpdk-dev] [Bug 826] red_autotest random failures To: "Dumitrescu, Cristian" Cc: Thomas Monjalon , David Marchand , "Ajmera, Megha" , "Singh, Jasvinder" , "Liguzinski, WojciechX" , dev , Aaron Conole , "Yigit, Ferruh" , "ci@dpdk.org" , "Zegota, AnnaX" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org Hi All, I'm not sure if it will help, but this is an example of a failing case in the CI: https://lab.dpdk.org/results/dashboard/patchsets/20222/ The test is running within a docker container. CI is set up to only allow one active unit test at a time, so the host might be running compile jobs, but not other unit tests. This ensures there isn't "competition" for resources like hugepages between two running unit test jobs. The host is actually a VM running on VMware vCenter, not a bare-metal host, the VM's sole purpose is running the docker jobs. The command to start the unit test run is pretty generic (script is below). #!/bin/bash #################################################### # $1 argument: extra arguments to send to meson test #################################################### # Exit on first command failure set -e # Extract dpdk.tar.gz tar xzfm dpdk.tar.gz # Compile DPDK cd dpdk meson build --werror ninja -C build install # Unit test cd build meson test --suite fast-tests -t 60 $1 I think a starting point is to understand if the unit test expects or makes assumptions on the system / environment. If it has sole access to a CPU core, minimum number of hugepages, etc. If it would help, I can also give you the DockerFile to build the container (note the RHEL images have to be built on a licensed Redhat server, based on being able to install the required packages). Cheers, Lincoln On Fri, Nov 19, 2021 at 11:54 AM Dumitrescu, Cristian < cristian.dumitrescu@intel.com> wrote: > > > > -----Original Message----- > > From: Thomas Monjalon > > Sent: Friday, November 19, 2021 7:26 AM > > To: Dumitrescu, Cristian ; David Marchand > > ; Lincoln Lavoie ; > > Ajmera, Megha ; Singh, Jasvinder > > ; Liguzinski, WojciechX > > > > Cc: dev ; Aaron Conole ; Yigit, > > Ferruh ; ci@dpdk.org; Zegota, AnnaX > > > > Subject: Re: [dpdk-dev] [Bug 826] red_autotest random failures > > > > 18/11/2021 23:10, Liguzinski, WojciechX: > > > Hi, > > > > > > I was trying to reproduce this test failure, but for me RED tests are > passing. > > > I was running the exact test command like the one described in Bug 826 > - > > 'red_autotest' on the current main branch. > > > > The test is not always failing. > > There are some failing conditions, please find them. > > I think you should try in a container with more limited resources. > > > > Hi Thomas, > > This is not a fair request IMO. We want to avoid wasting everybody's time, > including Wojciech's time. Can the bug originator provide the details on > the setup to reproduce the failure, please? Thank you! > > On a different point, we should probably tweak our autotests to > differentiate between logical failures and those failures related to > resources not being available, and flag the test result accordingly in the > report. For example, if memory allocation fails, the test should be flagged > as "Not enough resources" instead of simply "Failed". In the first case, > the next step should be fixing the test setup, while in the second case the > next step should be fixing the code. What do people think on this? > > Regards, > Cristian > -- *Lincoln Lavoie* Principal Engineer, Broadband Technologies 21 Madbury Rd., Ste. 100, Durham, NH 03824 lylavoie@iol.unh.edu https://www.iol.unh.edu +1-603-674-2755 (m)