From nobody Sun Feb 8 20:59:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1655128688; cv=none; d=zohomail.com; s=zohoarc; b=fU1wgwg6YhuvBmOtTE4ewtgiRPNVoGGlYegNqteF1UUCxoKquj3W+EMKADoh5/66eQdXQKQUO3r/v8z6i1ktEizvELn/ToTiM5gEE596au9xBooTHIRoERo0aX8CArFIpgP4rAqPSLZzOiggGAn9SlTqJRKGh2KrZUT+0hurd00= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655128688; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=fAYqvCaBZkxPr3omEZkLTXjEQmmUN/pN4K5HyElkVRc=; b=eP621iynxJ9AFVnFX7WWXEUedEkyun6Bs5UThI7tK6BPxMfPBk/8/U08PpBMOUduq+hv/GDpgTLvBV7J/gO7/IMm6t7a31biWnm7UfhuVZ1A1NFdBCFiS78d+4KNl2FwXB/62Bwqs5qrs+tGCOVVN6FvmUKUeHFYkklVfBv8sek= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1655128688289228.2771790943982; Mon, 13 Jun 2022 06:58:08 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-564-w9EN63bqOSGJddGat8bMbg-1; Mon, 13 Jun 2022 09:56:52 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E86AD101AA4D; Mon, 13 Jun 2022 13:56:49 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id D4EFA1121314; Mon, 13 Jun 2022 13:56:49 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 72453194706C; Mon, 13 Jun 2022 13:56:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 6C672194705B for ; Mon, 13 Jun 2022 13:56:48 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 5BD58492CA4; Mon, 13 Jun 2022 13:56:48 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id A70F8492CA2 for ; Mon, 13 Jun 2022 13:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655128687; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=fAYqvCaBZkxPr3omEZkLTXjEQmmUN/pN4K5HyElkVRc=; b=YOsRzCADE5Z1cusUGbhk3w6TEfyzjwW2BSeDISLqiaAcLP9yrBk1yFus6rQCgrlyS3jWMr kagWQLrH9KEwFYMzPLhtjHgok31W46w1NlBcpPmfrSIN7KjV0C8/t53AXHNS76B9H/x9PR hOcvtudl3C4Pe3TSq2QjQDAdqNDZbYc= X-MC-Unique: w9EN63bqOSGJddGat8bMbg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 3/6] scripts: apibuild: Improve error when API is missing from symbol file Date: Mon, 13 Jun 2022 15:56:30 +0200 Message-Id: <580fd32a36e44aff55bf3f0b81dee7765edc46e7.1655128518.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1655128688800100001 Content-Type: text/plain; charset="utf-8" Improve: KeyError: 'virAdmConnectSetDaemonTimeout' to Exception: Missing symbol file entry for 'virAdmConnectSetDaemonTimeout' Signed-off-by: Peter Krempa --- scripts/apibuild.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/apibuild.py b/scripts/apibuild.py index 23a66734ac..c232b4e2c8 100755 --- a/scripts/apibuild.py +++ b/scripts/apibuild.py @@ -2405,6 +2405,8 @@ class docBuilder: # NB: this is consumed by a regex in 'getAPIFilenames' in hvsuppor= t.pl if id.type =3D=3D "function": + if name not in self.versions: + raise Exception("Missing symbol file entry for '%s'" % nam= e) ver =3D self.versions[name] if ver is None: raise Exception("Missing version for '%s'" % name) --=20 2.36.1