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

feat(scripts): add packages-checksum-diff.sh to compare checksums between old builds and new builds #21

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ccharly
Copy link
Collaborator

@ccharly ccharly commented Sep 6, 2024

Description

This is a small shell script that can be used to compare and diff the checksums of each built file between the original packages and the ones being built in the monorepo.

We would like to make sure the new "build system setup" has no real sife-effects that could impact the behavior of each packages.

How to

The script is going to create a temporary folder and install the original packages in there. It will also build the current packages and then run a diff on dist generated files.

You can use it like so:

# ./scripts/packages-checksum-diff.sh

Here's the current output:

88c88
< 0f655d07200ab6ee77c3e6b5bfc1e5e02ee6a08bef52f103f4bb35d7ecb2c8b7  eth-hd-keyring/index.js
---
> 8f7680ca2c73eb050f52b4f48a77cecc37a1df8f3a6210ad6a20b79154c3509d  eth-hd-keyring/index.js
93,95c93,101
< cd3bec3312eb0c22b06cf895c1becaa80645039866bdc921e9fafa52c95f26a1  eth-ledger-bridge-keyring/dist/ledger-iframe-bridge.js
< 6bab32e7d7f0abff8dbdf77f6d705d440b8f4f088672f68785a6d8f6674fc981  eth-ledger-bridge-keyring/dist/index.js
< 3a6894635592771fa27d8727cc23e2585994c00de4773f99527fbb253e4725e4  eth-ledger-bridge-keyring/dist/ledger-keyring.d.ts
---
> 3ec475fcd4c7920cff9d8539a8c92077febb4794c76ec77c5b382db685c45a2c  eth-ledger-bridge-keyring/dist/ledger-iframe-bridge.js
> 815746f4d2111f0378c58a0d8809520a368fc28d134a16bded8a2531d48e4133  eth-ledger-bridge-keyring/dist/ledger-hw-app.js
> f43b12f084cc1db8c65c06c72b239f99603155684c04c351441c4c034645463b  eth-ledger-bridge-keyring/dist/type.js
> 2ff2c653b02eb34286b33ff2361810a9ea825badf90f3d0868ebb293427049de  eth-ledger-bridge-keyring/dist/ledger-hw-app.d.ts
> 544ea8a410147fd1bde05edcf380cfce1dced58b3170cbbf9f3524ddfdc3c897  eth-ledger-bridge-keyring/dist/index.js
> 4a13999898ed3c51116f8eaf8f6d2af2bab876091ad39a3a6bafdd652e73f369  eth-ledger-bridge-keyring/dist/ledger-keyring.d.ts
> 714f7fc117fb87c663c95e84a2877a4f82ec9ba5c22230f3d19ccbe93d0dedc1  eth-ledger-bridge-keyring/dist/ledger-transport-middleware.js
> 5f4e97d154741d8f5db48ae11b918089d98e42687f395fa710946b8f73882afd  eth-ledger-bridge-keyring/dist/ledger-mobile-bridge.js
> 7439bb7f093757869da6847908c923ee914d4e3da5c9593e155fb381fe92d22d  eth-ledger-bridge-keyring/dist/ledger-mobile-bridge.d.ts
97,100c103,108
< 3ccae0f41671cc8087b9366242d1b059d5ba8f6f795f113346a98b8240bd19dc  eth-ledger-bridge-keyring/dist/ledger-bridge.d.ts
< a55dbd0ae699a56e76d743d8f35db3d7283549deaf2ae85832fc09811707266e  eth-ledger-bridge-keyring/dist/ledger-iframe-bridge.d.ts
< 016113f1f4805aa499868c226f6ca834015008b88a396d2d7b654544a37eb422  eth-ledger-bridge-keyring/dist/index.d.ts
< 72535e05cefed4cd9fecdad855f17502a5fc886a13fc1596792c716e061a0327  eth-ledger-bridge-keyring/dist/ledger-keyring.js
---
> 0711571868b5d6849d00a55e8112648cc038d61bd6fd9106c7f763b70e208e33  eth-ledger-bridge-keyring/dist/ledger-bridge.d.ts
> f14d75cfda8cddc639e203e2d85a8c2cb3c537b8096269c87ca2a92b80aa5f54  eth-ledger-bridge-keyring/dist/ledger-iframe-bridge.d.ts
> 02b0661da4b51c53305a85a8e0c90bb32c24acd2914866d0c3c7033edae4187c  eth-ledger-bridge-keyring/dist/type.d.ts
> 8f543599ebfd6d994718aa41a4c48f3374aefe17501337e196b0ff61d5c76ae6  eth-ledger-bridge-keyring/dist/index.d.ts
> 18415aff2564d894d6bca9a78f9ed5fcc1af55157390e3941b548ba46c136a68  eth-ledger-bridge-keyring/dist/ledger-keyring.js
> 93a3c64a0d6eb6633ef07953b92a219a27fb93f1ea90554bce7b8a55921f5c49  eth-ledger-bridge-keyring/dist/ledger-transport-middleware.d.ts
106c114
< 08c5438985fd47a69b8c1b7302fd4ef05233a70d05465b1d9895edb04e65e854  eth-trezor-keyring/dist/trezor-connect-bridge.d.ts
---
> 48401d14c9771f39c3ffef1eaba3506a3a5a372f8bb21e2eb1b7c038b87efc2e  eth-trezor-keyring/dist/trezor-connect-bridge.d.ts

@ccharly ccharly force-pushed the chore/compare-packages-checksums branch from 9f5d6e5 to e8912fd Compare September 6, 2024 14:51
Copy link

This PR is marked as stale because it has been open for 60 days with no activity. Please remove the stale label or leave a comment, or it will be closed in 14 days.

@github-actions github-actions bot added the Stale label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant