Our Personal Data Server from scratch! tranquil.farm
oauth atproto pds rust postgresql objectstorage fun

release profile is not reproducible #25

open opened by isabelroses.com

sometimes when i build against the release profile it works perfectly and builds just fine, other times not so much but can usually be fixed by restarting the build. perhaps caused by the optimisations?

I did indeed put all the optimization settings for release build quite up there, hmm. this will probably be easier to investigate when the nix module is merged into main, right? :p

you can in test with just what we currently have in the repo using a command like nix build -L --rebuild which will compare if the last two builds are identical. but for me 2/3 of the builds were failing.

oh thats ... not great. would optimisations do that? urgh its been a while since i dealt with reproducibility of rust builds. definitely wanna fix that tho

mostly confused cause afaik cargo is basically always deterministic, then nix provides the specified environment and dependencies and thus should make it reproducible urgh

i mostly assumed it was optimisations since i know that is a common cause for none reproducible builds, fat lto was also what made me think it. but it might certainly not be that.

i mean optimisations are the only thing i can think of unless we bring in timestamps or something somewhere but that makes even less sense

sign up or login to add to the discussion
Labels
good-first-issue
assignee

None yet.

Participants 3
AT URI
at://did:plc:qxichs7jsycphrsmbujwqbfb/sh.tangled.repo.issue/3merzyvysdm22