From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AOyjAesjIWWHLAAAauVa8A:P1 (envelope-from ) for ; Sat, 07 Oct 2023 11:24:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AOyjAesjIWWHLAAAauVa8A (envelope-from ) for ; Sat, 07 Oct 2023 11:24:59 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 87E7C5D4E2 for ; Sat, 7 Oct 2023 11:24:58 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=T3aZPcAe; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696670699; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=seZclOt8jxglt1Q3uxshSXTVJv/S8Lz+/9pm8Qgdl9I=; b=MAnV6S0OqZyo63/gZspQkmh/CjeWUu3NM4YmtraRDUejip59mq42i1dpzVg6mXfk45r9h0 drRn0+0kcQTBRDXlYHWD7mw4lH7NnUh4TDfXz03ktlsEEDLLUr1NvoOEvxeXNueN2KlAXp OBj6Keb2ORe9zOJduJKySvpwLBrZka3L7dBgaLw7BZt0jp2XXI+ZLCOac6oEwm96IAo+IX VCZ0sEUIE91ZxSbCv28XjkYOqwsMpz19+3wADM7LAt8BMstsDXIUfei947g9p1LKlIAAht ubQjaZvXq2YeVCkZtTu8tCMlvuwcRTD1vlwJ7vD29vdxZfnYuS3JU5ysbDJTrg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=T3aZPcAe; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1696670699; a=rsa-sha256; cv=fail; b=syg13+dz/LcKc7Y4cIbQtjJ8V87fC57kYMPVExGvTRskhwhYCJjzWIXZRbM24HsZ0GjCmg YI/T6b1l/9M6vjTYP6MMHPAAMmlkvy1MPPFQeQgSGACv22ifCB0t32XhgWQyAx9tQUb19F H4mnl9CcxZiyg9+gPLr3JKmpsB05kqyFv+P75s9BI9sP8guFvO2ayfbWrpwY0nAKUXoMlb XZLHFNjtInxVW279oYhNfi2nZG1IvWwNC2qGnv8S6N8cYr4VmHveyTE+oblb20IMY894KE SkZoLjM21n7HluTCFBADKrncqJ7OhOAV5CBpPYjcyEkhFPMFMw/ImtGpxhvMKQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qp3YD-0006g1-NB; Sat, 07 Oct 2023 05:24:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qp3YB-0006ff-UT for bug-guix@gnu.org; Sat, 07 Oct 2023 05:24:43 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qp3YA-0006yS-UM; Sat, 07 Oct 2023 05:24:42 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qp3YT-0007Gq-Ux; Sat, 07 Oct 2023 05:25:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#66384: [cuirass] /search/latest/archive fails Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, othacehe@gnu.org, bug-guix@gnu.org Resent-Date: Sat, 07 Oct 2023 09:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66384 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 66384@debbugs.gnu.org Cc: ludo@gnu.org, othacehe@gnu.org X-Debbugs-Original-To: bug-guix@gnu.org X-Debbugs-Original-Xcc: ludo@gnu.org, othacehe@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169667067127898 (code B ref -1); Sat, 07 Oct 2023 09:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Oct 2023 09:24:31 +0000 Received: from localhost ([127.0.0.1]:53317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp3Xy-0007Ft-Jv for submit@debbugs.gnu.org; Sat, 07 Oct 2023 05:24:30 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp3Xw-0007Fg-Gl for submit@debbugs.gnu.org; Sat, 07 Oct 2023 05:24:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qp3XX-0006cd-DW for bug-guix@gnu.org; Sat, 07 Oct 2023 05:24:03 -0400 Received: from sender3-of-o57.zoho.com ([136.143.184.57]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qp3XT-0006qJ-9l for bug-guix@gnu.org; Sat, 07 Oct 2023 05:24:03 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1696670635; cv=none; d=zohomail.com; s=zohoarc; b=OUng1MGmwIO8VW2ZY/OXotjDhJR4SEyttn2N1CZNaOBuNEdx1f4lZib4oRLS9sthu7Gm9d4vNHJh8g0hOFmzLD3THvVBcnVlkJEfrQw2y+rjblgyCi/0TnCj9k8NJwpS7kxo/ZqzN6/mBqoROd4uTLqkzWeKiOmgmiUVLv6o3ns= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1696670635; h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=seZclOt8jxglt1Q3uxshSXTVJv/S8Lz+/9pm8Qgdl9I=; b=a0qDk7eK2PzENaZNXSjKLWjHtgW64MznBHhJymrjfaHScSQyCYEus5N4HEHDXeDnPop0IsutPK5KJkAQAlN6ttc6DNhhjO8rxHgDwsqJtSsucwW/CdebfFpnlzIiWB5o14eG/TP9/QzlpQ2o7NzdhiyjyUHWwHusNNRiDR/7mm0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1696670635; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=seZclOt8jxglt1Q3uxshSXTVJv/S8Lz+/9pm8Qgdl9I=; b=T3aZPcAekG641YNpYERFCdCrk9rcX3J99B5Bo9qbQoBHxVkkvRJ0ceu99Ge9Yx/x VZRWPmhvuT8tP4gk8JcTnJnG9nGpcWB/Kpq34ntu4LM6q4+qaK8ng6mJb2mwtxcllrO jp1s0lTujtTAK/AfUZoGhdL6yj54qiG2c9P6sRWE= Received: from localhost (i5E862CB7.versanet.de [94.134.44.183]) by mx.zohomail.com with SMTPS id 1696670633929453.6706333912148; Sat, 7 Oct 2023 02:23:53 -0700 (PDT) User-agent: mu4e 1.10.7; emacs 29.1 From: Ricardo Wurmus Date: Sat, 07 Oct 2023 11:20:15 +0200 Message-ID: <87cyxqokew.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.184.57; envelope-from=rekado@elephly.net; helo=sender3-of-o57.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 87E7C5D4E2 X-Spam-Score: -1.24 X-Migadu-Spam-Score: -1.24 X-Migadu-Scanner: mx1.migadu.com X-TUID: A2ivJQLYV+re Hi, I noticed that queries like this now consistently fail: https://ci.guix.gnu.org/search/latest/archive?query=spec%3Atarball+status%3Asuccess+system%3Ax86_64-linux+guix-binary.tar.xz This should redirect to a download URL. I went through the code and found that the problem lies in the return value of HANDLE-BUILDS-SEARCH-REQUEST, which does not include the ID field for BUILDPRODUCTS: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,use (cuirass database) scheme@(guile-user)> ,m (cuirass http) scheme@(cuirass http)> (define query (uri-decode "spec%3Atarball+status%3Asuccess+system%3Ax86_64-linux+guix-binary.tar.xz")) scheme@(cuirass http)> (vector->list (handle-builds-search-request `((query . ,query) (nr . 1) (order . finish-time+build-id)))) 2023-10-07T11:15:58 builds search request took 0.256186 seconds $1 = (((id . 2190078) (evaluation . "827027") (jobset . "tarball") (job . "binary-tarball.x86_64-linux") (timestamp . 1696611284) (starttime . 1696611211) (stoptime . 1696611284) (derivation . "/gnu/store/icam3qbpkjhsgrglx4wsy53bsrznqvs3-guix-binary.tar.xz.drv") (buildoutputs ("out" ("path" . "/gnu/store/0yb96ks4fa6781817ala5w706f945zq4-guix-binary.tar.xz"))) (system . "x86_64-linux") (nixname . "guix-binary.tar.xz") (buildstatus . 0) (weather . -1) (busy . 0) (priority . 9) (finished . 1) (buildproducts . #(((type . "archive") (path . "/gnu/store/0yb96ks4fa6781817ala5w706f945zq4-guix-binary.tar.xz") (file-size . 108105168)))))) scheme@(cuirass http)> (define build (car $1) ) scheme@(cuirass http)> (assoc-ref build 'id) $2 = 2190078 scheme@(cuirass http)> (define products (vector->list (assoc-ref build 'buildproducts))) scheme@(cuirass http)> products $3 = (((type . "archive") (path . "/gnu/store/0yb96ks4fa6781817ala5w706f945zq4-guix-binary.tar.xz") (file-size . 108105168))) scheme@(cuirass http)> (define product-type "archive") scheme@(cuirass http)> (find (lambda (product) (string=? (assoc-ref product 'type) product-type)) products) $4 = ((type . "archive") (path . "/gnu/store/0yb96ks4fa6781817ala5w706f945zq4-guix-binary.tar.xz") (file-size . 108105168)) scheme@(cuirass http)> (define product $4) scheme@(cuirass http)> (assoc-ref product 'id) $5 = #f --8<---------------cut here---------------end--------------->8--- Without the ID of the build product cuirass cannot build the download URL. -- Ricardo