all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* unexpected reproducibility of reproducible blog post?
@ 2020-04-26 17:44 zimoun
  2020-04-29  9:26 ` Konrad Hinsen
  0 siblings, 1 reply; 14+ messages in thread
From: zimoun @ 2020-04-26 17:44 UTC (permalink / raw)
  To: Guix Devel, Konrad Hinsen

Dear,

Based on the nice blog post [1], instead of really travelling I just
travel in time. :-)
If I read correctly and if I did not do any mistake, the final hash is
not the same now than before. It is not what I was expecting.

Expected output (blog post):
/gnu/store/iqn9yyvi8im18g7y9f064lw9s9knxp0w-docker-pack.tar

Returned output:
/gnu/store/klisfr3a4wxb9dc5sgibb45kky72kg65-docker-pack.tar

Has the file 'guix-version-for-reproduction.txt' been tracked?
Is really the commit 769b96b62e8c09b078f73adc09fb860505920f8f used to
produce the Docker image listed in the blog post?


Thank you in advance.

All the best,
simon


--8<---------------cut here---------------start------------->8---
guix describe
Generation 11   Apr 26 2020 19:24:23    (current)
  guix ca4b558
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: ca4b55882a0f6b4ba46253485afb82ec000f8fc2
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
  guix time-machine --commit=769b96b62e8c09b078f73adc09fb860505920f8f \
       --  pack -f docker -C none \
       -S /bin=bin -S /lib=lib -S /share=share -S /etc=etc \
       gcc-toolchain
--8<---------------cut here---------------end--------------->8---


[1] https://guix.gnu.org/blog/2020/reproducible-computations-with-guix/

^ permalink raw reply	[flat|nested] 14+ messages in thread
* unexpected reproducibility of reproducible blog post?
@ 2020-04-26 22:53 Leo Prikler
  2020-04-27 10:05 ` zimoun
  0 siblings, 1 reply; 14+ messages in thread
From: Leo Prikler @ 2020-04-26 22:53 UTC (permalink / raw)
  To: zimon.toutoune; +Cc: guix-devel

Hi simon,

I've executed your commands, et voilà
yours: /gnu/store/klisfr3a4wxb9dc5sgibb45kky72kg65-docker-pack.tar
mine:  /gnu/store/klisfr3a4wxb9dc5sgibb45kky72kg65-docker-pack.tar
Unsurprisingly, this did not change when adding channels -- though, if
you were to add your personal channel with some override for gcc-
toolchain, things might be different.

I don't know, what configuration exactly went into the blog post, but I
assume, it is not the same as for the time-machine experiments before. 
Since the prefix `guix time-machine --channels=guix-version-for-
reproduction.txt --` appears to be missing from the command, that hash
is therefore probably not indicative of anything.

I think the larger problem here is that, while Guix itself is
reproducible, Guix + org-mode (specifically the latter) is not. 
Particularly, looking at the source[1,2], it appears as if all code
blocks were evaluated once, but evaluating them again in a new
environment would bring different results.  In other words, you'd have
to use `guix time-machine` inside `guix time-machine` to get a truly
reproducibly org-mode file, or else come up with a smart way of
dynamically updating the hash in the source blocks themselves.

All the best,
Leo

[1] https://lists.gnu.org/archive/html/guix-devel/2020-01/msg00106.html
[2] 
https://github.com/khinsen/reproducibility-with-guix/blob/master/reproducibility-with-guix.org

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-05-05 13:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-26 17:44 unexpected reproducibility of reproducible blog post? zimoun
2020-04-29  9:26 ` Konrad Hinsen
2020-04-29  9:49   ` zimoun
2020-04-29 16:00     ` Konrad Hinsen
2020-04-30 14:51       ` zimoun
2020-05-04 13:50         ` Konrad Hinsen
2020-05-04 14:25           ` zimoun
2020-05-05 10:06           ` Ludovic Courtès
2020-05-05 13:44             ` Konrad Hinsen
2020-04-29 12:44   ` Ricardo Wurmus
2020-04-29 13:12     ` zimoun
  -- strict thread matches above, loose matches on Subject: below --
2020-04-26 22:53 Leo Prikler
2020-04-27 10:05 ` zimoun
2020-04-27 15:28   ` Leo Prikler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.