From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 394F9A04F0; Tue, 10 Dec 2019 12:36:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3C59237A2; Tue, 10 Dec 2019 12:36:12 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 17C7E23D for ; Tue, 10 Dec 2019 12:36:09 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Dec 2019 03:36:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,299,1571727600"; d="scan'208";a="413097666" Received: from klaatz-mobl1.ger.corp.intel.com (HELO [10.237.221.89]) ([10.237.221.89]) by fmsmga005.fm.intel.com with ESMTP; 10 Dec 2019 03:36:06 -0800 To: David Marchand Cc: dev , Thomas Monjalon , Bruce Richardson , "Kinsella, Ray" References: <20191129171024.56165-1-kevin.laatz@intel.com> <20191129210905.1865-1-kevin.laatz@intel.com> From: "Laatz, Kevin" Message-ID: <50d30067-db27-35e5-fc75-f1e069ad6a52@intel.com> Date: Tue, 10 Dec 2019 11:36:06 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Subject: Re: [dpdk-dev] [PATCH v3 0/7] Add ABI compatibility checks to the meson build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/12/2019 11:07, David Marchand wrote: > On Tue, Dec 3, 2019 at 4:27 PM Laatz, Kevin wrote: >> On 03/12/2019 11:03, David Marchand wrote: >>> On Fri, Nov 29, 2019 at 10:09 PM Kevin Laatz wrote: >>>> With the recent changes made to stabilize ABI versioning in DPDK, it will >>>> become increasingly important to check patches for ABI compatibility. We >>>> propose adding the ABI compatibility checking to be done as part of the >>>> build. >>>> >>>> The advantages to adding the ABI compatibility checking to the build are >>>> two-fold. Firstly, developers can easily check their patches to make sure >>>> they don’t break the ABI without adding any extra steps. Secondly, it >>>> makes the integration into existing CI seamless since there are no extra >>>> scripts to make the CI run. The build will run as usual and if an >>>> incompatibility is detected in the ABI, the build will fail and show the >>>> incompatibility. As an added bonus, enabling the ABI compatibility checks >>>> does not impact the build speed. >>>> >>>> The proposed solution works as follows: >>>> 1. Generate the ABI dump of the baseline. This can be done with the new >>>> script added in this RFC. This step will only need to be done when the >>>> ABI version changes (so once a year) and can be added to master so it >>>> exists by default. This step can be skipped if the dump files for the >>>> baseline already exist. >>>> 2. Build with meson. If there is an ABI incompatibility, the build will >>>> fail and print the incompatibility information. >>>> >>>> The patches accompanying this RFC add the ABI dump file generating script, >>>> the meson option required to enable/disable the checks, and the required >>>> meson changes to run the compatibility checks during the build. >>> Global comments: >>> - why are patch 1 and 2 in this series, is this really needed? >> Not if we make this an 'auto' option. It would have needed debug info to >> do the ABI check. >>> - please squash patches 3, 4, 5 and 6, reading them separately is a >>> pain and they are quite small, >> Will do >>> - if Windows does not support the ABI check, enforce this earlier in >>> meson and refuse enabling it rather than silently ignoring it, >> Makes sense, will look into this. >>> - I would not enable this check by default >>> - this is a developer option, people just building the dpdk don't >>> care about it, >>> - can we have something like a tristate "auto" (default, triggers >>> the check if abidiff is installed), "disabled" and "enabled" (not >>> having abidiff installed triggers an error) ? >> Seems reasonable, will change. >>> - please update the travis packages so that we can run those checks >>> for developers submitting patches >> Will do. >>> - I don't think you tested this series with >>> devtools/test-meson-builds.sh, please do. It fails with a custom build >>> directory and in the dpdk tree too: >>> >>> Build targets in project: 1019 >>> WARNING: Project specifies a minimum meson_version '>= 0.47.1' but >>> uses features which were added in newer versions: >>> * 0.48.0: {'console arg in custom_target'} >>> * 0.50.0: {'install arg in configure_file'} >>> Found ninja-1.9.0 at /usr/bin/ninja >>> ninja -C /home/dmarchan/builds/build-gcc-static >>> ninja: Entering directory `/home/dmarchan/builds/build-gcc-static' >>> [48/2291] Generating librte_kvargs.abi_chk with a meson_exe.py custom command. >>> FAILED: lib/librte_kvargs.abi_chk >>> /usr/bin/meson --internal exe >>> /home/dmarchan/builds/build-gcc-static/meson-private/meson_exe_abidiff_6511538ddd95d9672028017110fa45c67f01f7be.dat >>> file /home/dmarchan/dpdk/lib/abi/librte_kvargs.dump does not exist >>> [77/2291] Compiling C object >>> 'lib/76b5a35@@rte_mbuf@sta/librte_mbuf_rte_mbuf.c.o'. >>> ninja: build stopped: subcommand failed. >> This is failing as the .dump files have not been created yet. They can >> be generated with devtools/gen-abi-dump.sh . This will >> generate a .dump file for each shared object in the builddir drivers and >> lib folders. > Pinging on this series, since the sooner we integrate it, the better. > We also need those dump files as part of the series, as it is not > obvious what reviewers (at least me :-)) should do about them. > > Please can you work on a new revision? Hi David, I'm working on this. There were some extra things that needed to be worked out and added, like suppressing warnings about breaking experimental functions. I'm also adding the .dump files, currently filtering them to only add the ones we need. Thanks, Kevin > > Thanks. > > > -- > David Marchand >