Skip to content

Remove non-determistic binary files.#24

Merged
Silic0nS0ldier merged 1 commit intomainfrom
jordan-mele_patch-1-of-16_remove-non-deterministic-binary-files
Nov 30, 2023
Merged

Remove non-determistic binary files.#24
Silic0nS0ldier merged 1 commit intomainfrom
jordan-mele_patch-1-of-16_remove-non-deterministic-binary-files

Conversation

@Silic0nS0ldier
Copy link
Contributor

node_modules contains non-deterministic binary files, .pyc from python code and .node from binary modules. The .pyc precompiled python bytecode files can be removed, and the python interpreter can be left to compile the source code on demand, and strip removes the non-determistic debug symbols from .node files.

Leaving the non-deterministic files in causes cache misses in the rules that depend on them.

`node_modules` contains non-deterministic binary files, `.pyc` from python code and `.node` from binary modules. The `.pyc` precompiled python bytecode files can be removed, and the python interpreter can be left to compile the source code on demand, and `strip` removes the non-determistic debug symbols from `.node` files.

Leaving the non-deterministic files in causes cache misses in the rules that depend on them.

Signed-off-by: Jordan Mele <mele@canva.com>
@Silic0nS0ldier Silic0nS0ldier merged commit 6a9d5a0 into main Nov 30, 2023
@Silic0nS0ldier Silic0nS0ldier deleted the jordan-mele_patch-1-of-16_remove-non-deterministic-binary-files branch December 6, 2023 23:35
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.

3 participants