Tweak some post extract-information-from actions
Move update-package-derivations-table further on since it locks a table, and use let for the guix-revision-id.
This commit is contained in:
parent
1c0b216067
commit
ce01df5211
1 changed files with 30 additions and 28 deletions
|
|
@ -2604,35 +2604,37 @@ SELECT store_path FROM derivation_source_files WHERE id = $1"
|
|||
#:ignore-systems ignore-systems
|
||||
#:ignore-targets ignore-targets
|
||||
#:parallelism parallelism)
|
||||
|
||||
(let ((guix-revision-id
|
||||
(fibers-force guix-revision-id-promise)))
|
||||
(and
|
||||
(if (defined? 'channel-news-for-commit
|
||||
(resolve-module '(guix channels)))
|
||||
(with-time-logging "inserting channel news entries"
|
||||
(insert-channel-news-entries-for-guix-revision
|
||||
conn
|
||||
(fibers-force guix-revision-id-promise)
|
||||
guix-revision-id
|
||||
(channel-news-for-commit channel-for-commit commit)))
|
||||
(begin
|
||||
(simple-format
|
||||
#t "debug: importing channel news not supported\n")
|
||||
#t))
|
||||
|
||||
(update-package-derivations-table
|
||||
conn
|
||||
git-repository-id
|
||||
(fibers-force guix-revision-id-promise)
|
||||
commit)
|
||||
(with-time-logging "updating builds.derivation_output_details_set_id"
|
||||
(update-builds-derivation-output-details-set-id
|
||||
conn
|
||||
(fibers-force guix-revision-id-promise)))
|
||||
guix-revision-id))
|
||||
(update-package-derivations-table
|
||||
conn
|
||||
git-repository-id
|
||||
guix-revision-id
|
||||
commit)
|
||||
(let ((stats (gc-stats)))
|
||||
(format (current-error-port)
|
||||
"gc-stats: time taken: ~3fs, times: ~d~%"
|
||||
(/ (assq-ref stats 'gc-time-taken)
|
||||
internal-time-units-per-second)
|
||||
(assq-ref stats 'gc-times))
|
||||
#t))
|
||||
#t))))
|
||||
(begin
|
||||
(simple-format #t "Failed to generate store item for ~A\n"
|
||||
commit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue