me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/tests
Ludovic Courtès 64cf660f87
daemon: Spawn 'guix authenticate' once for all.
Previously, we'd spawn 'guix authenticate' once for each item that has
to be signed (when exporting) or authenticated (when importing).  Now,
we spawn it once for all and then follow a request/reply protocol.  This
reduces the wall-clock time of:

  guix archive --export -r $(guix build coreutils -d)

from 30s to 2s.

* guix/scripts/authenticate.scm (sign-with-key): Return the signature
instead of displaying it.  Raise a &formatted-message instead of calling
'leave'.
(validate-signature): Likewise.
(read-command): New procedure.
(define-enumerate-type, reply-code): New macros.
(guix-authenticate)[send-reply]: New procedure.
Change to read commands from current-input-port.
* nix/libstore/local-store.cc (runAuthenticationProgram): Remove.
(authenticationAgent, readInteger, readAuthenticateReply): New
functions.
(signHash, verifySignature): Rewrite in terms of the agent.
* tests/store.scm ("import not signed"): Remove 'pk' call.
("import signed by unauthorized key"): Check the error message of C.
* tests/guix-authenticate.sh: Rewrite using the new protocol.

fixlet
2020-09-14 15:42:55 +02:00
..
services services: Add zram-device-service. 2020-08-02 15:54:37 +03:00
accounts.scm
base16.scm
base32.scm build: Remove references to the 'nix-hash' program. 2020-08-29 16:24:17 +02:00
base64.scm
bournish.scm
build-utils.scm
builders.scm
cache.scm
challenge.scm packages: Introduce <content-hash> and use it in <origin>. 2020-05-22 01:29:39 +02:00
channels.scm Use 'formatted-message' instead of '&message' where appropriate. 2020-07-25 19:11:37 +02:00
civodul.key
combinators.scm
containers.scm
cpan.scm
cpio.scm
cran.scm
crate.scm
cve-sample.json
cve.scm
debug-link.scm
derivations.scm packages: Introduce <content-hash> and use it in <origin>. 2020-05-22 01:29:39 +02:00
discovery.scm
dsa.key
ed25519.key
ed25519.sec
ed25519bis.key git-authenticate: Add tests. 2020-06-05 22:54:06 +02:00
ed25519bis.sec git-authenticate: Add tests. 2020-06-05 22:54:06 +02:00
elpa.scm
file-systems.scm bootloader: grub: Allow booting from a Btrfs subvolume. 2020-05-20 08:30:35 -04:00
gem.scm
gexp.scm gexp: Fix expansion for (file-append (local-file ...) ...). 2020-05-25 23:00:30 +02:00
git-authenticate.scm tests: Allow 'tests/git-authenticate.scm' to run when git/gpg is missing. 2020-06-28 23:26:53 +02:00
git.scm git: 'commit-difference' really excludes the ancestors of #:excluded. 2020-06-09 00:34:52 +02:00
glob.scm
gnu-maintenance.scm
grafts.scm
graph.scm packages: Introduce <content-hash> and use it in <origin>. 2020-05-22 01:29:39 +02:00
gremlin.scm
guix-archive.sh
guix-authenticate.sh daemon: Spawn 'guix authenticate' once for all. 2020-09-14 15:42:55 +02:00
guix-build-branch.sh
guix-build.sh
guix-daemon.sh
guix-describe.sh
guix-download.sh
guix-environment-container.sh tests: Actually run 'tests/guix-environment-container.sh'. 2020-06-20 13:18:11 +02:00
guix-environment.sh
guix-gc.sh
guix-git-authenticate.sh Add 'guix git authenticate'. 2020-07-11 12:33:01 +02:00
guix-graph.sh guix graph: Add '--path'. 2020-05-11 23:30:55 +02:00
guix-hash.sh guix hash, guix download: Support base64 format. 2020-05-22 00:35:24 +02:00
guix-lint.sh lint: formatting: Gracefully handle relative file names. 2020-08-23 23:05:16 +02:00
guix-pack-localstatedir.sh
guix-pack-relocatable.sh pack: "fakechroot" engine always creates its store. 2020-07-28 14:41:05 +02:00
guix-pack.sh store: 'mapm/accumulate-builds' preserves '%current-target-system'. 2020-05-14 17:21:27 +02:00
guix-package-aliases.sh tests: Test 'guix show' with multiple packages. 2020-05-11 23:30:54 +02:00
guix-package-net.sh guix package: Support multiple profiles with '--list-installed'. 2020-05-23 16:29:29 +02:00
guix-package.sh
guix-repl.sh guix repl: Add script execution. 2020-06-14 23:02:36 +02:00
guix-system.sh system: examples: Add bare-hurd.tmpl. 2020-06-08 13:51:19 +02:00
hackage.scm
import-utils.scm
inferior.scm
lint.scm Use 'formatted-message' instead of '&message' where appropriate. 2020-07-25 19:11:37 +02:00
modules.scm
monads.scm
nar.scm
networking.scm
offload.scm offload: Modify the build-machine record to accept multiple systems. 2020-08-25 13:45:27 -04:00
opam.scm
openpgp.scm
pack.scm pack: Build the store database under a UTF-8 locale. 2020-07-20 23:25:09 +02:00
packages.scm tests: Add a debug output to "fold-available-packages with/without cache". 2020-08-24 11:54:30 +02:00
pki.scm
print.scm
processes.scm
profiles.scm
publish.scm Use "guile-zlib" and "guile-lzlib" instead of (guix config). 2020-08-24 13:35:24 +02:00
pypi.scm utils: Remove compatibility re-export of 'memoize'. 2020-07-25 19:11:36 +02:00
records.scm
rsa.key
scripts-build.scm
scripts.scm
search-paths.scm
services.scm
sets.scm
signing-key.pub
signing-key.sec
size.scm
snix.scm
status.scm
store-database.scm
store-deduplication.scm
store-roots.scm
store.scm daemon: Spawn 'guix authenticate' once for all. 2020-09-14 15:42:55 +02:00
substitute.scm Use "guile-zlib" and "guile-lzlib" instead of (guix config). 2020-08-24 13:35:24 +02:00
swh.scm
syscalls.scm tests: Do not fail when network interface aliases are present. 2020-06-28 23:32:52 +02:00
system.scm
test.drv
texlive.scm
ui.scm
union.scm
upstream.scm
utils.scm Use "guile-zlib" and "guile-lzlib" instead of (guix config). 2020-08-24 13:35:24 +02:00
uuid.scm
workers.scm