-
Notifications
You must be signed in to change notification settings - Fork 300
Conversation
@dignifiedquire nave use 8.9.1
npx yarn@1.2.1
npx yarn@1.2.1 build and got $ md5 dist/*
MD5 (dist/index.js) = 20105d3170c84e790ae27d2fb8ad870f
MD5 (dist/index.js.map) = da28e9e4c417245dd029685325765a64
MD5 (dist/index.min.js) = faa4541a664160a6ec9d7243b7635147 Notably the source map |
Thanks @olizilla what OS are you using? |
I'm on osx 10.12.6 |
I've run: > npm install -g nave
> nave use 8.9.1
> npx yarn@1.2.1
> npx yarn@1.2.1 build and got different checksums under GNU/Linux ( > md5sum --tag dist-locked/*
MD5 (dist-locked/index.js) = 20105d3170c84e790ae27d2fb8ad870f
MD5 (dist-locked/index.js.map) = df9fdb2676517ec6775f9e0ac1f5d0a4
MD5 (dist-locked/index.min.js) = faa4541a664160a6ec9d7243b7635147
> md5sum --tag dist/*
MD5 (dist/index.js) = fdbff9ad66965fd08689bd7c115ef39f
MD5 (dist/index.js.map) = 6d8c1978157a8c315526ba47b164f2ba
MD5 (dist/index.min.js) = 3586befa15d897988ce2895eda0a5fd0 Non-minified differences are very small tho: 52904c52904
< isWebkit = !_crypto.subtle && !!_crypto.webkitSubtle;
---
> isWebkit = !!_crypto.webkitSubtle; May be something on my end. Is there anything I could try? |
Getting the same as @lidel with Ubuntu 16.04.3 LTS
|
greeeeaaat... |
@lidel can we require them to use osx? |
super weird. I FROM node:8.9.1
WORKDIR /src
COPY . /src
RUN npx yarn@1.2.1
RUN npx yarn@1.2.1 build
RUN md5sum --tag dist/* $ docker build -t lock-down .
# much docker
Step 6/6 : RUN md5sum --tag dist/*
---> Running in 2e8aac3fff22
MD5 (dist/index.js) = 20105d3170c84e790ae27d2fb8ad870f
MD5 (dist/index.js.map) = b8199ce59a5650f6fcd49c439cbb6d6d
MD5 (dist/index.min.js) = faa4541a664160a6ec9d7243b7635147 which differs on the source map again, but the source files match. |
@dignifiedquire probably not:
@olizilla I used your Dockerfile and got exactly the same checksums:
We are getting somewhere. |
@dignifiedquire do you have a plan in mind for next steps here? I'm happy to help out. |
My suggestion would be to get yarn lockfiles into master and used for releases + filing a bug/investigating the differences webpack produces between operating systems.
For making sure that we have a release that is reproducible immediately it would be great to have a docker image we can just to and ship a release with that so mozilla is happy.
…On 16. Nov 2017, 10:35 +0100, Oli Evans ***@***.***>, wrote:
@dignifiedquire do you have a plan in mind for next steps here? I'm happy to help out.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Quick question: is it possible to do the first step (create NPM releases of I ask because 7 day window for ipfs/ipfs-companion#306 will end today and I will have to solve it somehow – want to plan accordingly. |
@lidel @olizilla Ack. If I understand correctly, the issue is that we cannot absolutely avoid having reproducible builds for ipfs-companion and now we are just figuring out how to release the reproducible build. On: We won't be able to point to a bundled vesion. Is On: This sounds good. We can have a yarn release. Does this fulfill all the criteria? Let's get this done ASAP. Ping me on IRC. |
I think there are a few related issues here...
I believe that is solved by adding a browserify build and a yarn.lock to ipfs-companion.
That should be solved by adding a yarn.lock here.
Probably, using the |
@olizilla, do you mean this PR: #630? I can change it with your proposal, adding a Please note that it is important to use |
@lidel @dignifiedquire we spoke to @diasdavid and the plan right now is to get ipfs/ipfs-companion#311 mergeable, which makes the We don't need to solve the reproducibility of |
@diasdavid there is a remaining issue of 1-line-diff (between macOS and Linux) mentioned in #626 (comment). |
@diasdavid Yep, let's close this and come up with a plan for reproducible builds next week. |
Ref ipfs/ipfs-companion#306
@lidel @diasdavid can you please checkout this branch and try building with the following set of deps
This should produce the same builds as stored in
dist-locked
.The checksums should be