From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id uP+TO8J12mVV0gAA62LTzQ:P1 (envelope-from ) for ; Sun, 25 Feb 2024 00:03:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uP+TO8J12mVV0gAA62LTzQ (envelope-from ) for ; Sun, 25 Feb 2024 00:03:31 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=nRLcuoh8; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=qDp38nQU; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708815810; 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:resent-to: resent-cc:resent-from:resent-sender:resent-message-id: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SoOX8E33uUGUCCQsYkwKkGsY/81SCVs0Meox2GtQhPk=; b=GZNEQ0Gou6DiaP3W8psustrIvpeOl45P3CkFkYviUKHpsXzvAw6394c5g3nUFNyyiMWZgG cWJ1c4m14ad2YrwJ+qEnFjuH1sWhTI9c+lWrwXpS5gCuS+ceQqm0yTAnaUa88HCeE7SVT8 HZCPlR3yI5000IB1OAWN0imU6rRuX3sFqmVJ3LrCbFeoR/sIcQqIWIZ8Qfce6YNsYeuesH eL082AW+UnP4p3pu187CNAdbzsaC5rvaPH2Ndsq61VnobJSM8TWCTw9+TLmYya2qsfTU6l TA25CXUnNm3PcQc1w5bnkD89MjKuPIfQZyoJr/LTLkjcz7TFOC4/ikUJ0+Nb0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=nRLcuoh8; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=qDp38nQU; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708815810; a=rsa-sha256; cv=none; b=btOnpYKP16cSL4Q718zJ6QkYmLR80RPxh6UHOiswa+GJzMa8AqbROG5MkcbxrnQEfVJbmT Jln/0YJlVDH7Y7E1jRbLkEkHAhsvPJBlMDIJgeVCuac5yy/86O7lI/ivbH8lryBicSRDVY GRnbPct5iqEGNuYaS37kVPAnSzwtcTPs+ZwzL/22oHckaA9GGJBFTJllDR059KRsgjlZqw LkojITjqjY2xGynzT4IkTkIbjVXA1YwzFqFTnwu6HpjqwOWJz6cLbaD0iilILWj+MUWul6 Y7aUFq9gbvUs0w6Qe/zexOhVZ5AasLQSftj3fMfp5zR4UI0SiYC3JyQc7MG5Ig== 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 6369745632 for ; Sun, 25 Feb 2024 00:03:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1re13A-00087v-Qz; Sat, 24 Feb 2024 18:03:21 -0500 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 1rcNf3-00013R-9g for bug-guix@gnu.org; Tue, 20 Feb 2024 05:47:41 -0500 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 1rcNf3-0003Lt-1b for bug-guix@gnu.org; Tue, 20 Feb 2024 05:47:41 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcNfO-000276-AL for bug-guix@gnu.org; Tue, 20 Feb 2024 05:48:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#69070: [swh-devel] No releases/revisions in /snapshot endpoints? Resent-From: Antoine Lambert Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 20 Feb 2024 10:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69070 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: swh-devel@inria.fr, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 69070-submit@debbugs.gnu.org id=B69070.17084260568086 (code B ref 69070); Tue, 20 Feb 2024 10:48:02 +0000 Received: (at 69070) by debbugs.gnu.org; 20 Feb 2024 10:47:36 +0000 Received: from localhost ([127.0.0.1]:44400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcNev-00026J-JF for submit@debbugs.gnu.org; Tue, 20 Feb 2024 05:47:36 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:50352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcNTD-0001oK-P6 for 69070@debbugs.gnu.org; Tue, 20 Feb 2024 05:35:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=resent-to:resent-from:resent-date:resent-message-id: message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=SoOX8E33uUGUCCQsYkwKkGsY/81SCVs0Meox2GtQhPk=; b=nRLcuoh8hnnDdl74HFBOB9kBtJReCGyRLCqMtUNBlz0vawaK+iIteMe+ tiMAPkc7QFiQnp2omdASZECXnclIv0YDWa/Rna0bZCVmege5rhcR/St0Y 8lQWzuhKvGeivd7qCeU+ENwLS+mrWcYa2s43luDPpXeER6Y0uLvwizxyv M=; X-IronPort-AV: E=Sophos;i="6.06,172,1705359600"; d="scan'208";a="80118865" Received: from unknown (HELO ribbon) ([193.50.110.205]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2024 11:34:59 +0100 Resent-To: 69070@debbugs.gnu.org Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Resent-Date: Tue, 20 Feb 2024 11:34:59 +0100 Resent-Message-ID: <87zfvvl8z0.fsf@inria.fr> Received: from zcs2-proxy2.inria.fr (LHLO zcs2-proxy2.inria.fr) (128.93.162.88) by zcs-store7.inria.fr with LMTP; Mon, 12 Feb 2024 17:37:23 +0100 (CET) Received: from zcs2-proxy2.inria.fr (localhost [127.0.0.1]) by zcs2-proxy2.inria.fr (Postfix) with ESMTPS id 2D4A42018C1C for ; Mon, 12 Feb 2024 17:37:23 +0100 (CET) Received: from zcs2-proxy2.inria.fr (localhost [127.0.0.1]) by zcs2-proxy2.inria.fr (Postfix) with ESMTPS id 210542018C22 for ; Mon, 12 Feb 2024 17:37:23 +0100 (CET) Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by zcs2-proxy2.inria.fr (Postfix) with ESMTPS id 1E65C2018C1C for ; Mon, 12 Feb 2024 17:37:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=SoOX8E33uUGUCCQsYkwKkGsY/81SCVs0Meox2GtQhPk=; b=qDp38nQUJY6V6Yb9geNX8bbzJr4fJ2PC9sttlYLUL6fl3K6M2geI30di qhBVEZDqhvjMQ73jGoTQoNBatHFdXmBYBzjpVOZc+lLfT+zqDAwNTvLwd gu1pOt8nAmPX9v1tO4SUuCb897zwmejzF8rqIRk2MSC2S69n2/VcJB3nF k=; X-IronPort-AV: E=Sophos;i="6.06,264,1705359600"; d="scan'208";a="151544792" Received: from carnavalet.paris.inria.fr (HELO [128.93.73.169]) ([128.93.73.169]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2024 17:37:23 +0100 Message-ID: Date: Mon, 12 Feb 2024 17:37:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <87v86uf0uw.fsf@inria.fr> <87il2td5yc.fsf@gnu.org> Content-Language: en-US From: Antoine Lambert In-Reply-To: <87il2td5yc.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 20 Feb 2024 05:47:32 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 24 Feb 2024 18:03:15 -0500 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-Spam-Score: -3.26 X-Spam-Score: -3.26 X-Migadu-Queue-Id: 6369745632 X-Migadu-Scanner: mx11.migadu.com X-TUID: K8fGAZgB1K9L Hello Ludovic, The SWH data model also allows for snapshot branches to target simple directories. The new loaders we implemented to ingest a tarball content (visit type: tarball-directory) or a directory targeted by a CVS tag or commit (visit types: git-checkout, hg-checkout) produce such snapshot with a single non alias branch targeting a directory. We do not produce revisions or releases with these loaders as their purpose is to archive a single directory (with extid mapping) without any development history. Antoine Lambert On 12/02/2024 17:04, Ludovic Courtès wrote: > Dear SWH, > > In I stumbled upon what might be new > behavior from the /snapshot endpoint: > >> The crux of the problem is that ‘snapshot-branches’ used to return >> either a “revision” or a “release”, but now it can also return a >> “directory”: >> >> $ wget -qO- https://archive.softwareheritage.org/api/1/snapshot/c405490b80fb35cc58b34260d9ec6add8248857f |jq >> { >> "id": "c405490b80fb35cc58b34260d9ec6add8248857f", >> "branches": { >> "1.3.2": { >> "target": "e4a4be18fae8d9c6528abff3bc9088feb19a76c7", >> "target_type": "directory", >> "target_url": "https://archive.softwareheritage.org/api/1/directory/e4a4be18fae8d9c6528abff3bc9088feb19a76c7/" >> }, >> "HEAD": { >> "target": "1.3.2", >> "target_type": "alias", >> "target_url": "https://archive.softwareheritage.org/api/1/directory/e4a4be18fae8d9c6528abff3bc9088feb19a76c7/" >> } >> }, >> "next_branch": null >> } > Current documentation mentions the ‘target_types’ query parameter, which > I could use to restrict results to “revision” and “release”: > > https://archive.softwareheritage.org/api/1/snapshot/doc/ > > However, that’d be the empty list of the case above. > > Other snapshots seem to be missing releases and revisions as well, such > as this one: > > https://archive.softwareheritage.org/api/1/snapshot/55bda9214f962550baad25026fb3ac3ad12e3eb9/ > > Did anything change here? Am I holding it wrong? :-) > > Thanks in advance, > Ludo’. -- Antoine Lambert Software engineer for Software Heritage https://www.softwareheritage.org Inria, Paris