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 utils: Move base16 procedures to (guix base16). 2017-03-16 22:50:14 +01:00
base32.scm build: Remove references to the 'nix-hash' program. 2020-08-29 16:24:17 +02:00
base64.scm substitute-binary: Support the Signature field of a narinfo file. 2014-03-30 12:02:10 +02:00
boot-parameters.scm tests: Add test for menu-entry roundtrips as sexps. 2022-08-28 23:37:28 +02:00
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 guix: Move narinfo code from substitute script to module. 2021-01-16 11:51:03 +00:00
channels.scm channels: Adjust tests for new #:verify-certificate? parameter. 2024-12-30 11:01:54 +01:00
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 discovery: Recurse into directories pointed to by a symlink. 2017-07-03 23:51:23 +02:00
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 tests: Assume ‘git’ is always available. 2023-09-26 17:36:59 +02:00
git.scm git: Remove untracked files from cached checkouts. 2024-07-18 17:31:19 +02:00
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 tests: Fix checks for expected failures. 2023-04-21 16:16:38 +02:00
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 tests: Adjust ‘guix graph --path’ test to latest Emacs changes. 2023-09-26 17:36:57 +02:00
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 repl: Look for script files in (getcwd). 2020-09-16 16:04:01 +02:00
guix-shell-export-manifest.sh
guix-shell.sh shell: ‘--development’ honors ‘--system’. 2023-12-06 23:50:04 +01:00
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 tests: Add (guix http-client) tests. 2022-03-06 22:49:46 +01:00
inferior.scm
ipfs.scm Add (guix ipfs). 2021-04-12 18:42:22 +02:00
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 gexp: ‘with-parameters’ properly handles ‘%graft?’. 2025-03-05 00:28:49 +01:00
nar.scm daemon: Do not deduplicate files smaller than 8 KiB. 2021-11-16 14:34:28 +01:00
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 tests: Move keys into ./tests/keys/ and add a third ed25519 key. 2021-12-22 10:53:19 +01:00
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 services: ‘shepherd-service-upgrade’ handles canonical name changes. 2025-03-05 00:28:49 +01:00
sets.scm
size.scm tests: Add 'test-assertm' to (guix tests). 2018-11-12 23:37:13 +01:00
status.scm status: Relay "updating substitutes" messages. 2022-06-26 23:19:14 +02:00
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 substitute: Do not exit when failing to find a nar. 2023-12-04 22:26:36 +01:00
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
ui.scm ui: Take package upstream name into account when searching. 2022-12-13 17:46:39 +01:00
union.scm tests: Make builds less expensive. 2019-06-14 21:57:39 +02:00
upstream.scm upstream: Define ‘preferred-upstream-source’. 2025-01-08 23:03:04 +01:00
utils.scm
uuid.scm
workers.scm