<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/guix/progress.scm, branch merge-deploy</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://git.jakob.space/guix.git/atom?h=merge-deploy</id>
<link rel='self' href='https://git.jakob.space/guix.git/atom?h=merge-deploy'/>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/'/>
<updated>2019-06-24T21:10:13Z</updated>
<entry>
<title>progress: Call 'time-difference' on times of the same type.</title>
<updated>2019-06-24T21:10:13Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-24T21:10:13Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=b6f5339dd0180fe73ab70d9c5b851ca0adc04193'/>
<id>urn:sha1:b6f5339dd0180fe73ab70d9c5b851ca0adc04193</id>
<content type='text'>
Guile 2.2.5 and 2.9.2 would catch the issue.
This is a followup to 88bc3c89bf5145d24c2270d2192b7be547e0024f.

* guix/progress.scm (display-download-progress)[elapsed]: Pass
'current-time' the same type as START-TIME.
</content>
</entry>
<entry>
<title>progress: Provide the proper type for %PROGRESS-INTERVAL.</title>
<updated>2019-06-01T23:38:36Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-06-01T23:29:38Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=88bc3c89bf5145d24c2270d2192b7be547e0024f'/>
<id>urn:sha1:88bc3c89bf5145d24c2270d2192b7be547e0024f</id>
<content type='text'>
The (srfi srfi-19) module of Guile 2.9.2 catches the wrong type.

* guix/progress.scm (%progress-interval): Change type to TIME-DURATION.
</content>
</entry>
<entry>
<title>progress: Do not display the last 0B transfer when size is unknown.</title>
<updated>2018-11-16T13:53:44Z</updated>
<author>
<name>Clément Lassieur</name>
<email>clement@lassieur.org</email>
</author>
<published>2018-11-14T08:16:43Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=d827fd31ca19b2f81252cbe4e8bc982dd453a49a'/>
<id>urn:sha1:d827fd31ca19b2f81252cbe4e8bc982dd453a49a</id>
<content type='text'>
* guix/progress.scm (display-download-progress): Don't display anything when
both SIZE and TRANSFERRED are null.
</content>
</entry>
<entry>
<title>progress: Fix crash because of division by zero.</title>
<updated>2018-11-16T13:53:40Z</updated>
<author>
<name>Clément Lassieur</name>
<email>clement@lassieur.org</email>
</author>
<published>2018-11-14T08:13:21Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=0289dc14732a64016f66e3a83f765e319960903b'/>
<id>urn:sha1:0289dc14732a64016f66e3a83f765e319960903b</id>
<content type='text'>
* guix/progress.scm (display-download-progress): Handle the case where SIZE is
null.
</content>
</entry>
<entry>
<title>progress: Fix total size in "@ download-succeeded" traces.</title>
<updated>2018-10-05T21:54:18Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-10-05T21:05:19Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=42384b517ed5352bb50fb9c0c5f49b168c198004'/>
<id>urn:sha1:42384b517ed5352bb50fb9c0c5f49b168c198004</id>
<content type='text'>
Fixes a regression introduced in
1d0be47ab680db938ac8da1ee65e1de91e198f67 whereby the total size for
directories (coming from substitutes) would be 4KiB.  This led the
progress bar to go back to the start, typically.

* guix/progress.scm (progress-reporter/trace): Add 'total'.  In 'start',
initialize it.  Adjust 'report' to update it.  Adjust 'stop' to prefer
SIZE as the actual size and then TOTAL.  Do not use the size of FILE as
the total since that could be 4KiB when FILE is a directory.
</content>
</entry>
<entry>
<title>progress: Generate valid 'download-progress' traces when the size is unknown.</title>
<updated>2018-10-04T08:24:34Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-10-04T08:24:34Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=1d0be47ab680db938ac8da1ee65e1de91e198f67'/>
<id>urn:sha1:1d0be47ab680db938ac8da1ee65e1de91e198f67</id>
<content type='text'>
Fixes &lt;https://bugs.gnu.org/32895&gt;.
Reported by Ricardo Wurmus &lt;ricardo.wurmus@mdc-berlin.de&gt;.

* guix/progress.scm (progress-reporter/trace): In 'stop', make sure SIZE
is an integer.  Previously we'd generate a "@ download-progress" trace
with #f for the 'transferred' number when downloading files whose size
is not known in advance.
</content>
</entry>
<entry>
<title>Add (guix status) and use it for pretty colored output.</title>
<updated>2018-09-27T21:21:53Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-01-18T22:21:29Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=dc0f74e5fc26977a3ee6c4f2aa74a141f4359982'/>
<id>urn:sha1:dc0f74e5fc26977a3ee6c4f2aa74a141f4359982</id>
<content type='text'>
* guix/progress.scm (progress-reporter/trace): New procedure.
(%progress-interval): New variable.
(progress-reporter/file): Use it.
* guix/scripts/build.scm (set-build-options-from-command-line): Pass
 #:print-extended-build-trace?.
(%default-options): Add 'print-extended-build-trace?'.
(guix-build): Parameterize CURRENT-TERMINAL-COLUMNS.  Use
'build-status-updater'.
* guix/scripts/environment.scm (%default-options): Add
'print-extended-build-trace?'.
(guix-environment): Wrap body in 'with-status-report'.
* guix/scripts/pack.scm (%default-options): Add 'print-build-trace?' and
'print-extended-build-trace?'.
(guix-pack): Wrap body in 'with-status-report'.
* guix/scripts/package.scm (%default-options, guix-package): Likewise.
* guix/scripts/system.scm (%default-options, guix-system): Likewise.
* guix/scripts/pull.scm (%default-options, guix-pull): Likewise.
* guix/scripts/substitute.scm (progress-report-port): Don't call STOP
when TOTAL is zero.
(process-substitution): Add #:print-build-trace? and honor it.
(guix-substitute)[print-build-trace?]: New variable.
Pass #:print-build-trace? to 'process-substitution'.
* guix/status.scm: New file.
* guix/store.scm (set-build-options): Add #:print-extended-build-trace?;
pass it into PAIRS.
(%protocol-version): Bump.
(protocol-version, nix-server-version): New procedures.
(current-store-protocol-version): New variable.
(with-store, build-things): Parameterize it.
* guix/ui.scm (build-output-port): Remove.
(colorize-string): Export.
* po/guix/POTFILES.in: Add guix/status.scm.
* tests/status.scm: New file.
* Makefile.am (SCM_TESTS): Add it.
* nix/libstore/worker-protocol.hh (PROTOCOL_VERSION): Bump to 0x162.
* nix/libstore/build.cc (DerivationGoal::registerOutputs)
(SubstitutionGoal::finished): Print a "@ hash-mismatch" trace before
throwing.
</content>
</entry>
<entry>
<title>progress: Add 'display-download-progress'.</title>
<updated>2018-09-27T21:21:53Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-09-25T08:30:21Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=fe65b559a671390ed5034d2d0b2c58c276e5abff'/>
<id>urn:sha1:fe65b559a671390ed5034d2d0b2c58c276e5abff</id>
<content type='text'>
* guix/progress.scm (display-download-progress): New procedure.
(progress-reporter/file)[render]: Rewrite in terms of
'display-download-progress'.
</content>
</entry>
<entry>
<title>progress: 'progress-reporter-report!' takes any number of arguments.</title>
<updated>2018-09-25T16:45:50Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2018-09-25T08:22:59Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=cfe19684ea21feaee97d5c31e248b5a69921f784'/>
<id>urn:sha1:cfe19684ea21feaee97d5c31e248b5a69921f784</id>
<content type='text'>
* guix/progress.scm (progress-reporter-report!): Accept an arbitrary
number of arguments and pass them to REPORT.
</content>
</entry>
<entry>
<title>progress: Rename 'erase-in-line' to 'erase-current-line'.</title>
<updated>2017-12-15T10:53:21Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2017-12-15T09:47:01Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=3e0a42973b90cfaa39b36f1a0c6c39d71f5e317c'/>
<id>urn:sha1:3e0a42973b90cfaa39b36f1a0c6c39d71f5e317c</id>
<content type='text'>
Suggested by Danny Milosavljevic &lt;dannym@scratchpost.org&gt;.

* guix/progress.scm (erase-in-line): Rename to...
(erase-current-line): ... this.  Adjust callers.
</content>
</entry>
</feed>
