Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB3E7C433E6 for ; Thu, 11 Feb 2021 11:54:00 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5895F64EAA for ; Thu, 11 Feb 2021 11:54:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5895F64EAA Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.83865.157047 (Exim 4.92) (envelope-from ) id 1lAAXP-0004WU-JK; Thu, 11 Feb 2021 11:53:35 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 83865.157047; Thu, 11 Feb 2021 11:53:35 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lAAXP-0004WN-GT; Thu, 11 Feb 2021 11:53:35 +0000 Received: by outflank-mailman (input) for mailman id 83865; Thu, 11 Feb 2021 11:53:34 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lAAXO-0004WI-Fj for xen-devel@lists.xenproject.org; Thu, 11 Feb 2021 11:53:34 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 31e3a254-52ba-4820-93e2-66e2c0dcb6b6; Thu, 11 Feb 2021 11:53:33 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 41810ACD4; Thu, 11 Feb 2021 11:53:32 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 31e3a254-52ba-4820-93e2-66e2c0dcb6b6 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1613044412; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B9knYC0hUOS3PzlhvNwRsotZ77rzpcDVfDVuN790IuA=; b=mzdy5GnP4F/SXNOFzXB1k8w6kBGgnO61ap6LCrBsFWaogfplBH7fL4Pmlwk31gBKg0NQpA KiX65CDIWDuQ6BMm47IKCKo5o7t6o7I0TJIJGHts5etWbU/BanD8hmSkc6rqEYP8JuJo3X clAaqRWOKPL1pvKVjhfFWaV6yb/S3Ms= Subject: Re: Stable library ABI compatibility checking To: Andrew Cooper Cc: Ian Jackson , George Dunlap , Juergen Gross , xen-devel References: <22a01569-1ea0-bb87-eda1-1450d0229cf7@citrix.com> <816d28b2-df85-9259-de96-5a6654c8b341@suse.com> <35654104-5445-9e44-792b-3059d601db5e@citrix.com> From: Jan Beulich Message-ID: Date: Thu, 11 Feb 2021 12:53:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <35654104-5445-9e44-792b-3059d601db5e@citrix.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit On 11.02.2021 12:30, Andrew Cooper wrote: > On 11/02/2021 11:05, Jan Beulich wrote: >> On 11.02.2021 02:08, Andrew Cooper wrote: >>> Hello, >>> >>> Last things first, some examples: >>> >>> http://xenbits.xen.org/people/andrewcoop/abi/libxenevtchn-1.1_to_1.2.html >>> http://xenbits.xen.org/people/andrewcoop/abi/libxenforeignmemory-1.3_to_1.4.html >>> >>> These are an ABI compatibility report between RELEASE-4.14.0 and staging. >>> >>> They're performed with abi-dumper (takes a shared object and header >>> file(s) and write out a text "dump" file which happens to be a perl >>> hash) and abi-compliance-checker checker, which takes two dumps and >>> produces the HTML reports linked above.  They're both debian tools >>> originally, but have found their way across the ecosystem.  They have no >>> impact on build time (when invoked correctly). >>> >>> I'm encouraged to see that the foreignmem analysis has even spotted that >>> we deliberately renamed one parameter to clarify its purpose. >>> >>> >>> For the stable libraries, the RELEASE-$X.$Y.0 tag is the formal point >>> when accumulated changes in staging become fixed.  What we ought to be >>> doing is taking a "dump" of libraries at this point, and publishing >>> them, probably on xenbits. >>> >>> Subsequent builds on all the staging branches should be performing an >>> ABI check against the appropriate lib version.  This will let us catch >>> breakages in staging (c/s e8af54084586f4) as well as breakages if we >>> ever need to backport changes to the libs. >>> >>> For libraries wrapped by Juergen's tools/libs/ common-makefile changes, >>> adding ABI dumping is easy.  The only complicating is needing to build >>> everything with "-Og -g", but this is easy to arrange, and frankly ought >>> to be the default for debug builds anyway (the current use of -O0 is >>> silly and interferes with common distro hardening settings). >>> >>> What I propose is tweaking the library build to write out >>> lib$FOO.so.$X.$Y-$(ARCH).abi.dump files.  A pristine set of these should >>> be put somewhere on xenbits, and a task put on the release technicians >>> checklist for future releases. >>> >>> That way, subsequent builds which have these tools available can include >>> a call to abi-compliance-checker between the authoritative copy and the >>> one from the local build, which will make the report available, and exit >>> nonzero on breaking problems. >>> >>> >>> To make the pristine set, I need to retrofit the tooling to 4.14 and >>> ideally 4.13.  This is in contravention to our normal policy of not >>> backporting features, but I think, being optional build-time-only >>> tooling, it is worthy of an exception considering the gains we get >>> (specifically - to be able to check for ABI breakages on these branches >>> in OSSTest).  Backporting to 4.12 and older is far more invasive, due to >>> it being before the library build systems were common'd. >>> >>> >>> Anyway, thoughts? >> +1 >> >> Not sure about the backporting effects - tools/libs/ had quite a bit >> less content in 4.14 and older, so the coverage would be smaller. > > tools/libs/ has been the stable libraries, since IanC split them years > ago.  The only odd-one-out is libxenstored IIRC, which moved during the > 4.15 window. As well as ctrl/, guest/, light/, stat/, util/, and vchan/. Jan