-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make mdBook's output reproducible/deterministic #799
Comments
Hmm... this comment makes it sound like the generated Are there any easy ways to test for non-determinism without having to go through the full Debian reproducibility process? |
Generate docs multiple times? Actually I haven't tried to reproduce the issue on my local machine yet. |
I can't seem to reproduce the issue on my machine. Using I even got the same SHA1 for $ cd ~/Documents/forks/mdBook/book-example
$ cargo run -- --version
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running `/home/michael/Documents/forks/mdBook/target/debug/mdbook --version`
mdBook v0.2.2-alpha.0
$ cargo run -- build
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running `/home/michael/Documents/forks/mdBook/target/debug/mdbook build`
2018-09-27 14:59:39 [INFO] (mdbook::book): Book building has started
2018-09-27 14:59:39 [INFO] (mdbook::book): Running the html backend
$ cd book
$ git init . && git add . && git commit -m "initial commit"
$ cd ..
$ cp -r book /tmp
$ cargo run -- build
$ cp -r book/* /tmp/book
$ cd /tmp/book
$ git status
On branch master
nothing to commit, working tree clean
$ sha1sum searchindex.js
192ecaa3cc22745ae87de0296d1724427c82da37 searchindex.js
$ cd ~/Documents/forks/mdBook/book-example
$ rm -r book
$ mdbook --version
mdBook v0.2.1
$ mdbook build
2018-09-27 15:07:44 [INFO] (mdbook::book): Book building has started
2018-09-27 15:07:44 [INFO] (mdbook::book): Running the html backend
$ sha1sum book/searchindex.js
192ecaa3cc22745ae87de0296d1724427c82da37 book/searchindex.js |
@Michael-F-Bryan Looks like Debian tests was made on 1.28.0 rust release that was delivered without #692 changes. |
Thanks @mnd. I will close the issue then. |
Closing as requested by @XAMPPRocky |
It was originally reported as rust-lang/rust#24473 and it has been fixed. However Debian's tests.reproducible-builds.org still shows some nondeterminism in searchindex.js, which is generated by mdBook.
https://tests.reproducible-builds.org/debian/rb-pkg/buster/amd64/diffoscope-results/rustc.html
The text was updated successfully, but these errors were encountered: