Use drain? #t for fibers when loading revisions
To check that there's no left over fibers.
This commit is contained in:
parent
f7f4e70d28
commit
0dd14c0a67
5 changed files with 178 additions and 129 deletions
|
|
@ -93,18 +93,27 @@
|
|||
(with-fluids ((%file-port-name-canonicalization 'none))
|
||||
(run-fibers
|
||||
(lambda ()
|
||||
(process-load-new-guix-revision-job
|
||||
job
|
||||
#:skip-system-tests? (assq-ref opts 'skip-system-tests)
|
||||
#:extra-inferior-environment-variables
|
||||
(filter-map
|
||||
(match-lambda
|
||||
(('inferior-environment-variable key val)
|
||||
(cons key val))
|
||||
(_ #f))
|
||||
opts)
|
||||
#:ignore-systems (assq-ref opts 'ignore-systems)
|
||||
#:ignore-targets (assq-ref opts 'ignore-targets)
|
||||
#:parallelism (assq-ref opts 'parallelism)))
|
||||
(with-exception-handler
|
||||
(lambda (exn)
|
||||
;; Exit if exceptions get this far, as not all fibers are
|
||||
;; guaranteed to finish
|
||||
(primitive-exit 1))
|
||||
(lambda ()
|
||||
(process-load-new-guix-revision-job
|
||||
job
|
||||
#:skip-system-tests? (assq-ref opts 'skip-system-tests)
|
||||
#:extra-inferior-environment-variables
|
||||
(filter-map
|
||||
(match-lambda
|
||||
(('inferior-environment-variable key val)
|
||||
(cons key val))
|
||||
(_ #f))
|
||||
opts)
|
||||
#:ignore-systems (assq-ref opts 'ignore-systems)
|
||||
#:ignore-targets (assq-ref opts 'ignore-targets)
|
||||
#:parallelism (assq-ref opts 'parallelism)))
|
||||
#:unwind? #t))
|
||||
#:hz 0
|
||||
#:parallelism 1)))))
|
||||
#:parallelism 1
|
||||
;; Drain to make sure there are no bugs with the use of fibers
|
||||
#:drain? #t)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue