unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: 44193-done@debbugs.gnu.org
Subject: bug#44193: [PATCH 1/1] publish: Add '--cache-bypass-threshold'.
Date: Wed, 28 Oct 2020 16:26:48 +0100	[thread overview]
Message-ID: <87v9euz807.fsf@gnu.org> (raw)
In-Reply-To: <20201024145416.4691-1-ludo@gnu.org> ("Ludovic Courtès"'s message of "Sat, 24 Oct 2020 16:54:16 +0200")

Ludovic Courtès <ludo@gnu.org> skribis:

> * guix/scripts/publish.scm (show-help, %options): Add
> '--cache-bypass-threshold'.
> (low-compression): New procedure.
> (cache-bypass-threshold): New parameter.
> (bypass-cache?): New procedure.
> (render-narinfo/cached): Call 'render-narinfo' when 'bypass-cache?'
> returns true.
> (render-nar/cached): Call 'render-nar' when 'bypass-cache?' returns
> true.
> (guix-publish): Parameterize 'cache-bypass-threshold'.
> * tests/publish.scm ("with cache", "with cache, lzip + gzip")
> ("with cache, uncompressed"): Pass '--cache-bypass-threshold=0'.
> ("with cache, vanishing item"): Expect 200 for RESPONSE.
> ("with cache, cache bypass"): New test.
> ---
>  doc/guix.texi            | 24 +++++++++++-
>  guix/scripts/publish.scm | 85 ++++++++++++++++++++++++++++++++--------
>  tests/publish.scm        | 43 ++++++++++++++++++--
>  3 files changed, 130 insertions(+), 22 deletions(-)

Pushed as ecaa102a58ad3ab0b42e04a3d10d7c761c05ec98.

Ludo’.




  reply	other threads:[~2020-10-28 15:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-24 14:49 [bug#44193] [PATCH 0/1] 'guix publish --cache' can publish items not yet cached Ludovic Courtès
2020-10-24 14:54 ` [bug#44193] [PATCH 1/1] publish: Add '--cache-bypass-threshold' Ludovic Courtès
2020-10-28 15:26   ` Ludovic Courtès [this message]
2020-10-25 13:11 ` [bug#44193] [PATCH 0/1] 'guix publish --cache' can publish items not yet cached Miguel Ángel Arruga Vivas
2020-10-25 16:49   ` Ludovic Courtès
2020-10-25 17:30     ` Miguel Ángel Arruga Vivas
2020-10-26 10:50       ` Ludovic Courtès
2020-10-27 19:19         ` Miguel Ángel Arruga Vivas
2020-10-28  9:39           ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v9euz807.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=44193-done@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).