Skip to content
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

maint: Sort input file list #3690

Merged
merged 1 commit into from Mar 28, 2019
Merged

maint: Sort input file list #3690

merged 1 commit into from Mar 28, 2019

Conversation

bmwiedemann
Copy link
Contributor

@bmwiedemann bmwiedemann commented Mar 25, 2019

Sort input file list
so that mpich builds in a reproducible way
in spite of indeterministic filesystem readdir order

See https://reproducible-builds.org/ for why this is good.

Without this patch,
README.envvar, /usr/lib64/mpi/gcc/mpich/bin/mpivars and other
output files varied between builds.

This PR was done while working on reproducible builds for openSUSE.

@raffenet
Copy link
Contributor

Seems reasonable to me. Just run the tests for a sanity check.
test:jenkins/ch3/tcp

so that mpich builds in a reproducible way
in spite of indeterministic filesystem readdir order

See https://reproducible-builds.org/ for why this is good.

Without this patch,
README.envvar, /usr/lib64/mpi/gcc/mpich/bin/mpivars and other
output files varied between builds.

Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
Signed-off-by: Hui Zhou <hzhou321@anl.gov>
@hzhou hzhou merged commit 0ea861b into pmodels:master Mar 28, 2019
@hzhou
Copy link
Contributor

hzhou commented Mar 28, 2019

Reproducible builds is generally a good idea. Make a note here that an even better idea is not just to sort the input dir, but sort the CVARS and errmsgs so the output is easier to review and compare. Of course, also these scripts are so old that they generally worth a rewrite and at least use strict and use warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants