From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 878D83858D35 for ; Mon, 24 Jun 2024 22:27:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 878D83858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 878D83858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719268036; cv=none; b=X//3vGMR6SK4Ye3eLhTQoR2f58u2tK19FDC+RopYHht/IBC+saBfBIbtdXN8BBdgQHvQexenJoUmqROF0nzSlp6+eZaQNfPEhAIQqdmbBsSyVfk2wqTbNhzN3wORdecqVhTiFUOhQtGv0HFJurTZG4KUYF5KS9VAMgl4//cFSNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719268036; c=relaxed/simple; bh=TBJC+O5Tjiv0fukDd/AJtMAxSYGCQOfBkYX/WVWptn4=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=VUBGyjxevSL9gNLKv9l71hYgnIyoQ69OLG7RLVP4/gYa9j3QATPxQYP3o/m7c8VF2jOxcrmqMCQtwdXdU8hVmaPY0zW2QDvT62p0n2Ig6mLZuLmPhqmzY0qmZ41bCNYxdMpVSlzp5FN8Z6JUT9E/JWXalm3mw/SaNhUke/64CBM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1719268033; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TBJC+O5Tjiv0fukDd/AJtMAxSYGCQOfBkYX/WVWptn4=; b=i8/9LO0CCN0yzxHsqASL20fR+pLq2oM3NyQkwWT5d7HUGFMLyjDsqHQfLxp2Ax6DHXdRAA HKJaoIDF2bw6xR+EqHXma3DQNovilVrax3DZub36JTz3lRtKuE64gsvA52twkkW98mDjMU Ap9hwRnQATg5ksoEJ4k6QeHKUGIA/oU= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-692-kCZzN1zcOYeZtI29wzYhIQ-1; Mon, 24 Jun 2024 18:27:11 -0400 X-MC-Unique: kCZzN1zcOYeZtI29wzYhIQ-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-6b4fdcf92d9so79039016d6.3 for ; Mon, 24 Jun 2024 15:27:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719268030; x=1719872830; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TBJC+O5Tjiv0fukDd/AJtMAxSYGCQOfBkYX/WVWptn4=; b=UjwW860c3forqYcvz6xQTZevurLvjKjw2RPS7n8mZ2QTLE6i3GDI8JtJDcDNKWmCa8 3Yt2TKljDtdLUVSDXnOg+amX/31hqECAMyfu0ulfg4FP0qZ71PJAdc7zeGMtib8p2P8r FNAL12Bc20TSnP2uaGisPekskTCFVXkE30T+SoeHTLuEnQ9xLY0mmyVUGWBbFpjigdcH 4rjvCYfotQxwsZXDROl098U76l/a7fSjdaSlfuyaeyFIcncaOEGZS9A7vOeKCHA35MFn zw/JRqGPOpXA1xp0QMAKoOzPHOaauMqY1l20fri+HHjliNR2980BW4YzCLOUbdsfsk/9 6zSw== X-Gm-Message-State: AOJu0YzLQznhHoTcaE2T2QRXk+0oTqYMeTQLio0r3mA+Qj15vvC/rBXL UjDm2H3QKsX5K/WOTVUvJJMsNAKR8gmtFtdf08blU9wuGsKbIzVEacZ63I7H6Vw/It9uSESov2i wKbfPGdLKPNKgtRn5fB+yU+eRiadCTpKzpzYVXR5T9AqHO+JfO937ZY495nqBqSY= X-Received: by 2002:a0c:e809:0:b0:6b0:74f4:f488 with SMTP id 6a1803df08f44-6b53c0091c0mr61277086d6.58.1719268030442; Mon, 24 Jun 2024 15:27:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtt/+MCNPRc1rRSusdDB4mKX7Pa003y+yNlAhYE9ZIlrhND5zXqPSfqxq90/PKtPfb7xS8LA== X-Received: by 2002:a0c:e809:0:b0:6b0:74f4:f488 with SMTP id 6a1803df08f44-6b53c0091c0mr61276956d6.58.1719268030138; Mon, 24 Jun 2024 15:27:10 -0700 (PDT) Received: from t14s.localdomain (c-76-28-97-5.hsd1.ma.comcast.net. [76.28.97.5]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b51ecfe5adsm38633856d6.10.2024.06.24.15.27.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 15:27:09 -0700 (PDT) Message-ID: <5ced30f68e42da0bf2f975a17ba3ca32c92654d5.camel@redhat.com> Subject: Re: [pushed 2/2] testsuite: check that generated .sarif files validate against the SARIF schema [PR109360] From: David Malcolm To: Dimitar Dimitrov Cc: gcc-patches@gcc.gnu.org Date: Mon, 24 Jun 2024 18:27:09 -0400 In-Reply-To: References: <20240621125536.1134456-1-dmalcolm@redhat.com> <20240621125536.1134456-2-dmalcolm@redhat.com> User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Sat, 2024-06-22 at 11:26 +0300, Dimitar Dimitrov wrote: > On Fri, Jun 21, 2024 at 08:55:36AM -0400, David Malcolm wrote: > > This patch extends the dg directive verify-sarif-file so that if > > the "jsonschema" tool is available, it will be used to validate the > > generated .sarif file. > >=20 > > Tested with jsonschema 3.2 with Python 3.8 >=20 > Hi David, >=20 > The new testcase fails on my Fedora 40 with jsonschema 4.19.1 and > Python > 3.12.3: >=20 > ``` > Executing on host: jsonschema --version=C2=A0=C2=A0=C2=A0 (timeout =3D 30= 0) > spawn -ignore SIGHUP jsonschema --version > /usr/bin/jsonschema:5: DeprecationWarning: The jsonschema CLI is > deprecated and will be removed in a future version. Please use check- > jsonschema instead, which can be installed from > https://pypi.org/project/check-jsonschema/ > =C2=A0 from jsonschema.cli import main > 4.19.1 > FAIL: c-c++-common/analyzer/malloc-sarif-1.c (test .sarif output > against SARIF schema) > ``` Sorry about that. >=20 > The deprecation warning output seems to confuse DejaGnu and it fails > the test. Thanks for the heads-up; I'll upgrade my machine to a less ancient version and update the patch accordingly. Dave