From nobody Thu May 2 09:12:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1624451517; cv=none; d=zohomail.com; s=zohoarc; b=TeIzBTmUDCTyWhw2v9FBStunXT7N3o1j7qf39X2Zl2RmDHz8O4Ccj2SEsPysqK3v2QigBnH5uJttASR7Ob1GMb9En2ttDMsSLpa5iB7n+8CFeJAtR4yoGtNMMW0ZzGH4lveNrxtCjC0gzqid4+A+yDZtpg8Dbnj6TGKKkEMsH/U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624451517; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=VroSjS+407iB/pJ1AbCAXKO0ZQnCFF+JzQcGVca88nA=; b=i4KWT+ZwwMdCE7nfg88kZlweLk6dl1l4oCA+tA6uBYVADiInnGBUXRTs2bZHcDXMK0uNMv7weKF4tQXpFZ61L7YbVc5khkPCVa33EzdX5b40u/U0ds+LBQkkisEUz4Gbl9f/utgNWgjI3v3RVAAyfik0hKOH1VoVTW2IPY+cb6U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 162445151784672.0678472509361; Wed, 23 Jun 2021 05:31:57 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-598-cjpBtCuvONeQJP-mfYFjIA-1; Wed, 23 Jun 2021 08:31:55 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1516F9F92E; Wed, 23 Jun 2021 12:31:49 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4F3545D9F0; Wed, 23 Jun 2021 12:31:48 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3BAC01826D2A; Wed, 23 Jun 2021 12:31:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 15NCVCrG006711 for ; Wed, 23 Jun 2021 08:31:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id A8BE7200CD5D; Wed, 23 Jun 2021 12:31:12 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A4BF12138BAB for ; Wed, 23 Jun 2021 12:30:58 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3D2EE89C7DE for ; Wed, 23 Jun 2021 12:30:58 +0000 (UTC) Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-465-n2HTgPGzOq2vEJeFb1-IRg-1; Wed, 23 Jun 2021 08:30:56 -0400 Received: by mail-ed1-f72.google.com with SMTP id g13-20020a056402090db02903935a4cb74fso1236551edz.1 for ; Wed, 23 Jun 2021 05:30:56 -0700 (PDT) Received: from carol.localdomain (k8r.cz. [95.82.177.71]) by smtp.gmail.com with ESMTPSA id ar14sm5482443ejc.108.2021.06.23.05.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 05:30:54 -0700 (PDT) Received: from carol.redhat.com (carol.k8r.cz [127.0.0.1]) by carol.localdomain (Postfix) with ESMTP id 5BF4AC201DF; Wed, 23 Jun 2021 14:30:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624451516; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=VroSjS+407iB/pJ1AbCAXKO0ZQnCFF+JzQcGVca88nA=; b=b5rhwBxDzk3LLaXD6QdsKgv35dHHGlcE2t6I4d6e6Jz5BJTxImAvEMygx5dFeX3Z1shOt5 9TFBtggK92rAWkWDFdvtUXVY8BxLN+ekQY2+7Z4dq2e5KDVVc92jgc6Xy/15J/AyMufW6i mfKnAM7d4ofQdJjDaD9D59mSC0hz0vE= X-MC-Unique: cjpBtCuvONeQJP-mfYFjIA-1 X-MC-Unique: n2HTgPGzOq2vEJeFb1-IRg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VroSjS+407iB/pJ1AbCAXKO0ZQnCFF+JzQcGVca88nA=; b=UCy0oIL5OdwX173bT4kEAInxcwXMiW7I8AUgimbFkUCeujKwC672ab3fDvJMT+ChqP Gx4PbgjC2Ll08iiQgqB6n9G9pHmhoQhOarOmXVnayQzaE9EFzB4L/Uz7FZMAGU1GD5Me omg3J8ndzoRIYfFbv1kGY7YmQyc8a+BoQqMnMHTF0bVagL5RfZ1xRSikbozH4XGzwT5x bPOTYTByjQZcpk8+h/uYxcUrvoYvXhZl/asYv+dYu1V5FlmoKpYFwD9qWeSeI215Q7hd mbtBCCSUQz4C70WfO/Yf6T3EpuUfbJnMTaalKyu8WQm38gKFNUibAAq3Y7nCEkSPkAp+ NIkw== X-Gm-Message-State: AOAM5314MogPvpgRD14Enj2LA01zhBQnhOPfQzWqo0MQh2FEBCoFDrAc gIAntEWhU4Pp8e1VJcbPKh1tF5xFoDPabwnCMiAXHbmpk2cXQrJp49HIRgfUXK6SjwbwcHx4ZYq lFTzaryjEJm5NxPobU04= X-Received: by 2002:a17:906:1c84:: with SMTP id g4mr9235674ejh.99.1624451455569; Wed, 23 Jun 2021 05:30:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ9tsJjBIMap0NZ9m3MN2rf+jmeO6lMjhtAhFl6EP29sBWAORzDyoOmCdIHhNZIpMqTXfpOg== X-Received: by 2002:a17:906:1c84:: with SMTP id g4mr9235654ejh.99.1624451455359; Wed, 23 Jun 2021 05:30:55 -0700 (PDT) From: Martin Kletzander To: libvir-list@redhat.com Subject: [PATCH v2] ci: Also perform package upgrades on macOS and FreeBSD Date: Wed, 23 Jun 2021 14:29:59 +0200 Message-Id: <4cf073dbc2864960e96ecf8c4fc32a4765105b16.1624451399.git.mkletzan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: libvir-list@redhat.com Cc: abologna@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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) Content-Type: text/plain; charset="utf-8" The base OS image might include outdated contents, and we don't want to get spurious failures caused by bugs that have already been fixed in the respective packages. This is particularly important on macOS, because 'brew install foo' will fail if 'foo' is already installed but outdated: upgrading all packages first ensures we never run into this scenario. Signed-off-by: Martin Kletzander Reviewed-by: Andrea Bolognani --- .gitlab-ci.yml | 4 ++++ ci/cirrus/build.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3fa616261e93..3cb6ff5e6b26 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -115,6 +115,7 @@ stages: -e "s|[@]CIRRUS_VM_IMAGE_SELECTOR@|$CIRRUS_VM_IMAGE_SELECTOR|g" -e "s|[@]CIRRUS_VM_IMAGE_NAME@|$CIRRUS_VM_IMAGE_NAME|g" -e "s|[@]UPDATE_COMMAND@|$UPDATE_COMMAND|g" + -e "s|[@]UPGRADE_COMMAND@|$UPGRADE_COMMAND|g" -e "s|[@]INSTALL_COMMAND@|$INSTALL_COMMAND|g" -e "s|[@]PATH@|$PATH_EXTRA${PATH_EXTRA:+:}\$PATH|g" -e "s|[@]PKG_CONFIG_PATH@|$PKG_CONFIG_PATH|g" @@ -423,6 +424,7 @@ x64-freebsd-12-build: CIRRUS_VM_IMAGE_SELECTOR: image_family CIRRUS_VM_IMAGE_NAME: freebsd-12-2 UPDATE_COMMAND: pkg update + UPGRADE_COMMAND: pkg upgrade -y INSTALL_COMMAND: pkg install -y =20 x64-freebsd-13-build: @@ -433,6 +435,7 @@ x64-freebsd-13-build: CIRRUS_VM_IMAGE_SELECTOR: image_family CIRRUS_VM_IMAGE_NAME: freebsd-13-0 UPDATE_COMMAND: pkg update + UPGRADE_COMMAND: pkg upgrade -y INSTALL_COMMAND: pkg install -y =20 x64-macos-11-build: @@ -443,6 +446,7 @@ x64-macos-11-build: CIRRUS_VM_IMAGE_SELECTOR: image CIRRUS_VM_IMAGE_NAME: big-sur-base UPDATE_COMMAND: brew update + UPGRADE_COMMAND: brew upgrade INSTALL_COMMAND: brew install PATH_EXTRA: /usr/local/opt/ccache/libexec:/usr/local/opt/gettext/bin:/= usr/local/opt/libpcap/bin:/usr/local/opt/libxslt/bin:/usr/local/opt/rpcgen/= bin PKG_CONFIG_PATH: /usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/libp= cap/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/ncurs= es/lib/pkgconfig:/usr/local/opt/readline/lib/pkgconfig diff --git a/ci/cirrus/build.yml b/ci/cirrus/build.yml index 39c17dc08a43..867d5f297b7e 100644 --- a/ci/cirrus/build.yml +++ b/ci/cirrus/build.yml @@ -15,6 +15,7 @@ env: build_task: install_script: - @UPDATE_COMMAND@ + - @UPGRADE_COMMAND@ - @INSTALL_COMMAND@ @PKGS@ - if test -n "@PYPI_PKGS@" ; then @PIP3@ install @PYPI_PKGS@ ; fi clone_script: --=20 2.32.0