[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/14: Ignore inferior-protocol-error when computing channel instances
From: |
Christopher Baines |
Subject: |
11/14: Ignore inferior-protocol-error when computing channel instances |
Date: |
Fri, 2 Feb 2024 10:58:39 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit 215a67238a9d9d032dfdaf9b2c2a9780f9985926
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Thu Feb 1 10:47:54 2024 +0100
Ignore inferior-protocol-error when computing channel instances
Since this seems to happen for i586-gnu for core-updates currently and I
can't
seem to reproduce the issue locally or work out what's wrong.
---
guix-data-service/jobs/load-new-guix-revision.scm | 32 +++++++++++++++--------
1 file changed, 21 insertions(+), 11 deletions(-)
diff --git a/guix-data-service/jobs/load-new-guix-revision.scm
b/guix-data-service/jobs/load-new-guix-revision.scm
index d943c9f..7fc57f7 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -1184,18 +1184,28 @@
(with-resource-from-pool inferior-and-store-pool res
(match res
((inferior . inferior-store)
- (with-throw-handler #t
+ (with-exception-handler
+ (lambda (exn)
+ (if (inferior-protocol-error? exn)
+ (simple-format (current-error-port)
+ "ignoring ~A for ~A\n"
+ exn
+ system)
+ (raise-exception exn)))
(lambda ()
- (cons system
- (inferior-eval-with-store/non-blocking
- inferior
- inferior-store
- (inferior-code channel-instance system))))
- (lambda _
- (simple-format
- (current-error-port)
- "failed to compute channel instance derivation for ~A\n"
- system)))))))
+ (with-throw-handler #t
+ (lambda ()
+ (cons system
+ (inferior-eval-with-store/non-blocking
+ inferior
+ inferior-store
+ (inferior-code channel-instance system))))
+ (lambda _
+ (simple-format
+ (current-error-port)
+ "failed to compute channel instance derivation for
~A\n"
+ system))))
+ #:unwind? #t)))))
systems)))
(for-each
- 01/14: Remove some time logging, (continued)
- 01/14: Remove some time logging, Christopher Baines, 2024/02/02
- 04/14: Remove even more time logging, Christopher Baines, 2024/02/02
- 02/14: Log the time to call inferior-packages-plus-replacements, Christopher Baines, 2024/02/02
- 05/14: Make sure to keep roots for channel instance derivations, Christopher Baines, 2024/02/02
- 07/14: Add more logging in when computing channel instance derivations, Christopher Baines, 2024/02/02
- 09/14: Split up handling of package description data, Christopher Baines, 2024/02/02
- 10/14: Fix exception handling in call-with-temporary-thread, Christopher Baines, 2024/02/02
- 12/14: Speed up loading package metadata, Christopher Baines, 2024/02/02
- 14/14: Cleanup some with-time-logging, Christopher Baines, 2024/02/02
- 06/14: Add some time logging in to inferior-packages-plus-replacements, Christopher Baines, 2024/02/02
- 11/14: Ignore inferior-protocol-error when computing channel instances,
Christopher Baines <=
- 13/14: Compute lint warnings in parallel, Christopher Baines, 2024/02/02
- 08/14: Speed up fetching package replacements, Christopher Baines, 2024/02/02
- 03/14: Improve logging when computing a channel instance derivation fails, Christopher Baines, 2024/02/02