node
node copied to clipboard
tools: make utils.SearchFiles deterministic
glob.glob on Linux returns files in the order returned by the filesystem driver, and the output from this function is stuffed by the Electron build process straight into the config.gypi header, causing non-reproducible builds.
See this log for an example of the nondeterminism: https://rb.zq1.de/compare.factory-20220901/diffs/nodejs-electron-compare.out
CI: https://ci.nodejs.org/job/node-test-pull-request/46393/
CI: https://ci.nodejs.org/job/node-test-pull-request/46419/
@brjsp Would you mind force-pushing the same commit with an amended commit message that adheres to the commit message guidelines?
@tniessen done
CI: https://ci.nodejs.org/job/node-test-pull-request/46423/
CI: https://ci.nodejs.org/job/node-test-pull-request/47051/
CI: https://ci.nodejs.org/job/node-test-pull-request/47065/
Landed in e2ca29f673ce413e8090b7ae85a2228eaf421892
@sxa the default string comparator in Python sorts by codepoint value, ignoring any locale settings.