guix/tests
Ludovic Courtès 0ac2a0fd18
authenticate: Report failure to load keys to the daemon.
Previously, when failing to load a signing key, ‘guix authenticate’ would
print a backtrace and exit with a non-zero code.  That, in turn, would lead
the guix-daemon child process to crash with:

  nix/libutil/serialise.cc:15: virtual nix::BufferedSink::~BufferedSink(): Assertion `!bufPos' failed.

This patch fixes it by reporting the error to the daemon as was intended.

* guix/scripts/authenticate.scm (guix-authenticate): Arrange to call
‘load-key-pair’ from within ‘with-reply’.
* tests/guix-authenticate.sh: Test it.

Fixes: guix/guix#4928
Reported-by: Rutherther <rutherther@ditigal.xyz>
Change-Id: I8654ad6fdfbe18c55e1e85647d0c49f408d0574a
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #4961
2025-12-22 15:10:52 +01:00
..
import tests: Use ‘https’ for ‘home-page’ in ‘guix import pypi’ tests. 2025-12-13 23:14:27 +01:00
keys
machine
services Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
accounts.scm system: Relax subordinate ID validation. 2025-12-11 15:43:16 +01:00
base16.scm
base32.scm
base64.scm
boot-parameters.scm
bournish.scm
build-emacs-utils.scm
build-utils.scm Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
builders.scm tests: don't use 'file://...' URIs for testing git downloads. 2025-10-12 22:22:01 +02:00
cache.scm
challenge.scm
channels.scm
combinators.scm
containers.scm Reinstate "linux-container: Remove #:lock-mounts? and related code." 2025-10-29 11:34:28 +09:00
cpio.scm
cve-sample.json cve: Upgrade to JSON 2.0 feeds. 2025-08-31 12:39:24 +02:00
cve.scm cve: Upgrade to JSON 2.0 feeds. 2025-08-31 12:39:24 +02:00
debug-link.scm Revert "Use mmap for the elf parser, reducing memory usage." 2025-10-30 16:19:50 +09:00
derivations.scm tests: don't use 'file://...' URIs for testing git downloads. 2025-10-12 22:22:01 +02:00
discovery.scm
file-systems.scm Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
gexp.scm gexp: Make 'local-file' follow symlinks. 2025-10-23 12:59:08 +02:00
git-authenticate.scm
git.scm
glob.scm Update Giacomo's email address. 2025-12-03 14:38:09 +09:00
gnu-maintenance.scm gnu-maintenance: ‘generic-html’ recognizes ‘release-file-regexp’ property. 2025-11-18 13:05:49 +01:00
grafts.scm grafts: Always depend on all the outputs of the original derivation. 2025-10-05 20:30:45 +02:00
graph.scm
gremlin.scm Revert "Use mmap for the elf parser, reducing memory usage." 2025-10-30 16:19:50 +09:00
guix-archive.sh
guix-authenticate.sh authenticate: Report failure to load keys to the daemon. 2025-12-22 15:10:52 +01:00
guix-build-branch.sh
guix-build.sh Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
guix-daemon.sh tests: guix-daemon.sh: Ignore guile locale warning. 2025-10-19 21:29:38 +02:00
guix-describe.sh
guix-download.sh
guix-environment-container.sh tests: Increase test timeout and honor ‘GUIX_TESTS_BUILD_TIMEOUT’. 2025-10-17 12:23:54 +02:00
guix-environment.sh
guix-gc.sh gnu: Remove lsh. 2025-11-21 14:38:44 +01:00
guix-git-authenticate.sh git authenticate: Gracefully handle passing an annotated tag to ‘--end’. 2025-06-22 23:45:36 +02:00
guix-graph.sh
guix-hash.sh
guix-home.sh tests: Increase test timeout and honor ‘GUIX_TESTS_BUILD_TIMEOUT’. 2025-10-17 12:23:54 +02:00
guix-lint.sh
guix-locate.sh
guix-pack-localstatedir.sh tests: Increase test timeout and honor ‘GUIX_TESTS_BUILD_TIMEOUT’. 2025-10-17 12:23:54 +02:00
guix-pack-relocatable.sh tests: Increase test timeout and honor ‘GUIX_TESTS_BUILD_TIMEOUT’. 2025-10-17 12:23:54 +02:00
guix-pack.sh
guix-package-aliases.sh
guix-package-net.sh
guix-package.sh
guix-refresh.sh refresh: Allow specifying a partial version via the version specification. 2025-05-19 10:07:24 +09:00
guix-repl.sh
guix-shell-export-manifest.sh
guix-shell.sh
guix-style.sh
guix-system.sh tests: guix-system: Add test for 'guix system container'. 2025-10-11 21:57:59 +09:00
guix-time-machine.sh Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
home-import.scm
home-services.scm
http-client.scm
inferior.scm
ipfs.scm
ld-wrapper.scm tests: New ld-wrapper test. 2025-10-29 11:51:24 +09:00
lint.scm lint: Fix regressions in tests. 2025-11-14 16:42:16 +09:00
modules.scm
monads.scm
nar.scm
networking.scm Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
offload.scm Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
openpgp.scm
pack.scm tests/pack: Fix rpm tests. 2025-09-30 16:52:07 +09:00
packages.scm tests: Adjust ‘package-transitive-supported-systems’ test. 2025-09-23 14:53:36 +02:00
pki.scm
processes.scm
profiles.scm profiles: package->manifest-entry: Filter packages. 2025-11-03 20:06:14 +08:00
publish.scm Revert "publish: Prevent publication of non-substitutable derivation outputs." 2025-09-21 18:47:23 +02:00
read-print.scm
records.scm
rpm.scm Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
scripts.scm
search-paths.scm
services.scm
sets.scm
size.scm
status.scm
store-database.scm
store-deadlock.scm
store-deduplication.scm tests: Fix ‘store-deduplication.scm’ on systems with large blocks. 2025-10-06 10:42:08 +02:00
store-roots.scm
store.scm daemon: Attempt to map the “kvm” group inside the build user namespace. 2025-10-16 15:14:37 +02:00
style.scm tests: style: Fix insufficient number of lines read. 2025-11-15 15:53:15 +09:00
substitute.scm
swh.scm
syscalls.scm Revert "syscalls: Add mmap support." 2025-10-30 16:19:51 +09:00
system.scm
test.drv
toml.scm guix: toml: Fix keys with embedded escape codes. 2025-11-20 01:06:32 +00:00
transformations.scm transformations: Git source transformations honour RECURSIVE?. 2025-05-05 12:15:47 +02:00
ui.scm
union.scm
upstream.scm
utils.scm
uuid.scm
workers.scm