GNU bug report logs -
#44193
[PATCH 0/1] 'guix publish --cache' can publish items not yet cached
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sat, 24 Oct 2020 14:50:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #31 received at 44193-done <at> debbugs.gnu.org (full text, mbox):
Ludovic Courtès <ludo <at> 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’.
This bug report was last modified 4 years and 269 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.