blockades / scuttle-dark-crystal

API for validating, building, publishing and reading Dark Crystal records
http://darkcrystal.pw
MIT License
42 stars 2 forks source link

Update NPM dependencies #31

Closed christianbundy closed 5 years ago

christianbundy commented 5 years ago

Currently npm install is failing for me on Node.js 10 because of a dependency on leveldown@1.7.2. After running npm update I can install correctly, but when I run the tests I have three failing tests:

  share.async.share: publishes a root, a ritual and the shards
    ✔  error is null
    ✔  returns the data
    ✖  publishes a root at pull.collect (/home/christianbundy/src/scuttle-dark-crystal/test/share/async/share.test.js:120:18)
        { key: '%+/Jofo+auWM89yg8oaNbmo4xnNeYv2bTKOQXTTg1azA=.sha256', value: { previous: null, sequence: 1, author: '@4cMZSIS5+0pC1UHhDzrRslj4trj2ZZObQuORWBjKh+4=.ed25519', sequence: 1, timestamp: 1542738880928, hash: 'sha256', content: { type: 'dark-crystal/root', version: '2.0.0', name: 'My SBB Dark Crystal', recps: [ '@4cMZSIS5+0pC1UHhDzrRslj4trj2ZZObQuORWBjKh+4=.ed25519' ] }, meta: { original: { content: 'dK/KHxSavtp16zabNgSyMcod0YKNjahW/GQ+KfvSYnQcKJIaXP0P+a5rUp5Rxbb9jG0GcSIj6mc0/hk+k3NO9v/8gSlYsQKbdCf7BB7ZNY02822q0BWAgKCM0IWWSpCDhbKfdMmaxJ/fsLZnKVS/kg+yOpyqjsawMwtFTtwK+myMq2s7hGJDFFO87+DQurcz11C8CNWJdhaBwJJxKH3OA3U4LPuZfKY7RatvmwXtcNuPCTx3wpH1UtS/1aIHQe+qJS/66EVyOhhE+Ocljj2/SU5m02YpGXa/7231p8UnNbs/+0gfxB5VwGIVAm0xvwK3P0zbgPkTNDXLEL43yvvNWcq6tU9ihw==.box' }, private: true, unbox: 'AUAptc87Y53t+0xEQyaKgLRxwrDTafN5jSy1lLpfx1zR' }, private: true, unbox: 'AUAptc87Y53t+0xEQyaKgLRxwrDTafN5jSy1lLpfx1zR' }, timestamp: 1542738880928.001, rts: 1542738880928 }
    ✖  publishes a single ritual at pull.collect (/home/christianbundy/src/scuttle-dark-crystal/test/share/async/share.test.js:126:22)
        { key: '%fCHX+o1/KGy+Tw0GEpvqYVw0dxBu919zOmKq/kQzzIM=.sha256', value: { previous: '%+/Jofo+auWM89yg8oaNbmo4xnNeYv2bTKOQXTTg1azA=.sha256', sequence: 2, author: '@4cMZSIS5+0pC1UHhDzrRslj4trj2ZZObQuORWBjKh+4=.ed25519', sequence: 2, timestamp: 1542738881041, hash: 'sha256', content: { type: 'dark-crystal/ritual', version: '2.0.0', root: '%+/Jofo+auWM89yg8oaNbmo4xnNeYv2bTKOQXTTg1azA=.sha256', shards: 3, quorum: 3, tool: 'secrets.js-grempe@1.1.0', recps: [ '@4cMZSIS5+0pC1UHhDzrRslj4trj2ZZObQuORWBjKh+4=.ed25519' ] }, meta: { original: { content: 'fzqmHJXXSgplb8WZcJtUZDvVV4C/OwHRYy0TJU9T/I11K31eUx6s+NGZbQFCPKYI9ilRXaG5IEdG5bFqzGldoAxMJJPQ1yPqxI7VC3zUcn6ltxzLYVMCrq4MB1RSgSL4g5zd7Iu8FSFO6L7Cy6/IDr9PVlNrAA0P9mnTnznZsYyBcQd8p72uhwLJPdLG0kQNZA9CxnaFw+Sql7qbyeNYgvDk3tigRERAin2TixOfdKDpd6UjPwRxnM57cgn6L2zmDfRl33v0NotvzInswdA3FvRaEA6ciHaBryIenxgsvEBDCSOUDAzx8ResqT9uVcIRBGVjVVDV3wK+RzVEuTNe2hBUU6jc8yD8OPj2IO9Nk9xU8/H6XipYNkTvolNwTY6Rcp2tCFq+ZAmD5gd7YbDJvvv4ib768/HbmTKoISSicCMp3/Ibi4EMp4LJVsQ+XxheSswZrqp2Lh/t4bcuFy1+og==.box' }, private: true, unbox: 'ARpybybAJE8EBsVV4X+CBQFyzL3TlKgc5SI0ll0qWAeg' }, private: true, unbox: 'ARpybybAJE8EBsVV4X+CBQFyzL3TlKgc5SI0ll0qWAeg' }, timestamp: 1542738881041.001, rts: 1542738881041 }
    ✖  publishes a set of shards at pull.collect (/home/christianbundy/src/scuttle-dark-crystal/test/share/async/share.test.js:132:26)
        [ { key: '%A/joiITsl2YS86ogJ+BRG0tEuBadzBcjvLcwm43iruY=.sha256', value: { previous: '%fCHX+o1/KGy+Tw0GEpvqYVw0dxBu919zOmKq/kQzzIM=.sha256', sequence: 3, author: '@4cMZSIS5+0pC1UHhDzrRslj4trj2ZZObQuORWBjKh+4=.ed25519', sequence: 3, timestamp: 1542738881155, hash: 'sha256', content: { type: 'dark-crystal/shard', version: '2.0.0', root: '%+/Jofo+auWM89yg8oaNbmo4xnNeYv2bTKOQXTTg1azA=.sha256', shard: 'T03luGBgRxwtgALf+bcoKGYxKFdCbKF4fdSbCIa4OF2G/A39cKd+qLg/tilWEL9/bSKicrO8BXVWRUxMDJj69ASishR7I21AtSc1TyRz3m9IeiBzFNkI5YD2seaCIh2rXhSjCH7q/31Gc34Rh/hz2CTWrgAi887ogOirKg62Y+xuj/NrLNFRNjcosSLU3+rcP3irRRqbRSxpMCHCSTZb7aQzNA/HHab8V6rantL+d9OiInMQKAawt+B6xnqAzQ==.box', recps: [ '@Ls2KMZX7IMaIp/6kg0ytXEETG3PCY8ufzuvug7TWogI=.ed25519', '@4cMZSIS5+0pC1UHhDzrRslj4trj2ZZObQuORWBjKh+4=.ed25519' ], errors: null }, meta: { original: { content: 'SylRK15rUp53nzAOStXsRofPInzn4nSDY+oE6DMoOnngO7LvALIjRdWwc132U+ayvQAs4yE0gnfQkeh/h51H+ide+iwEJGNcrBmxlXObw2nFqRamsyBUlcSWP7mz8URVn5AtVqVG8GFaH/kpTBJOD8X1Jet3GQD1kBle5cKtcx4XfmUzb6kxLEjd6Fl5wZtkKyI/kjo0tIuOXliNXf0FbFAP4zvjsqdhZKG/5NOMlkGtLdeZ9W20gQt7tvB7MA9yux4JfhxnOf/iRlNgARW3q0zzyM7iGaGIsXg79jRN4iFtSB0YIq85gihKz+4w7BqQ3DZg1DVzody/5Bmm73kx61RklY0Dql/446lgZ9g+K3BC9o5flmZ5TBH+DRm5un1OC0iK7JBhqWnZ8YAIgqAPYOyvQbA5FJXDYfNLFE1hc6sD0WmDIQhvm2PwgZSX9lwwtHofkd7VKUSmksJN7oFGAmcbmJD2nAQ3t+6UUBVmA9kWDIwjFvrVCNOkP9OGr7H0HtSBVfT02ujOJwfKW1KRGY+ehT4cWcQRxsZrMhfWtrt22hxgoHpoQZBByWdo9n92llAo9tWGf0CtW5gYs5z/oFqx2EbCKkiPBY5LO1o09+GY7qUAN0kV0FqfGKE1YkboGB2UKVS9QvPhvmRH3J3/et5xSo+//4vBUv0K6tVhjZVq3EJ5MmtWKthq3lQKbjYVowwoNKO7v7ymzR4puPAd3tCGLYy+6VjycZCQqp0gACwKbQlj5YgYrgzkU348N4xn+jtNIGoTGixljiW7uaAMyUQwO1CsPXMoGRgSdKTv7LCuqz3rNv+RP5Qkff6zMvjy/QdeNLmhLkI/6TgFI42kfOryknrCMfOuaRF31G6Bf2C/8vjNjese3QZGzrPekqa92m3HeUc2/BSBnLhVbg4=.box' }, private: true, unbox: 'AmAggOIj8i9GSPnmhEcWHcdCK6wEmCWRvxjI3R8yhW/l' }, private: true, unbox: 'AmAggOIj8i9GSPnmhEcWHcdCK6wEmCWRvxjI3R8yhW/l' }, timestamp: 1542738881155.001, rts: 1542738881155 }, { key: '%kg4BfBysVJJabviKmDrUNJvZ7s+39PZA2KMFs8zLPOE=.sha256', value: { previous: '%A/joiITsl2YS86ogJ+BRG0tEuBadzBcjvLcwm43iruY=.sha256', sequence: 4, author: '@4cMZSIS5+0pC1UHhDzrRslj4trj2ZZObQuORWBjKh+4=.ed25519', sequence: 4, timestamp: 1542738881266, hash: 'sha256', content: { type: 'dark-crystal/shard', version: '2.0.0', root: '%+/Jofo+auWM89yg8oaNbmo4xnNeYv2bTKOQXTTg1azA=.sha256', shard: 'gTCY/SbQX/UuEv5YqLo2l8eytCt1cPpk1ZqMdeTtxp3/wDpqSL5+l6scVq+l9VbWU30t6Lh9NiVMC80BOBxxaf8ZDv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FVr+nBs4GjKVmQaKpXTqli+IRmnYb/5gZ6lLQ0NKjvTToQCDKcnBmkzv1Ywr7hhldFhfUQpbRzS+EgmfC96ysDPY/8XH4amr8YqsgA4ifLap91SOlNz8O08dZ8HVIPz4uTQVuCF0=.box' }, private: true, unbox: 'ArNaoHyg72524GQ9+0G+sF6cAcRp2c9NrJyLtzNkY/SD' }, private: true, unbox: 'ArNaoHyg72524GQ9+0G+sF6cAcRp2c9NrJyLtzNkY/SD' }, timestamp: 1542738881266.001, rts: 1542738881266 }, { key: '%ey5h1x/3ogaCvsjpCOInkmuJ3quT7CCWiMW4qM7rLwQ=.sha256', value: { previous: '%kg4BfBysVJJabviKmDrUNJvZ7s+39PZA2KMFs8zLPOE=.sha256', sequence: 5, author: '@4cMZSIS5+0pC1UHhDzrRslj4trj2ZZObQuORWBjKh+4=.ed25519', sequence: 5, timestamp: 1542738881378, hash: 'sha256', content: { type: 'dark-crystal/shard', version: '2.0.0', root: '%+/Jofo+auWM89yg8oaNbmo4xnNeYv2bTKOQXTTg1azA=.sha256', shard: '4wNkBt4Mcw2ZeTj2cPREyW9a9ViVu2cr8useGOAEShujPCq7CuUZp77KFTyaQnSg18f3Tpmwy3SVua4mlK3w4QmOwQw6b096fB+sVy7xTGm9fru1mELY1TslVyEUvWSsHkZd36iGOV6I66e9xTsVAfIe38y1j2Zy1RLNZqFV9ZuODkjLyh9TAYCV4cEYOrkER7gYx8I1Ohs7D+YNSZ13cAuvqJPlH9Muy2KwurSI1xT9phqOS+ViKg0fmvBmVg==.box', recps: [ '@plroI00gjY00IMUH7iVuqgr7X4WyAMoWB8LVjv6aOZs=.ed25519', '@4cMZSIS5+0pC1UHhDzrRslj4trj2ZZObQuORWBjKh+4=.ed25519' ], errors: null }, meta: { original: { content: 'BoVGCsL8c0b7l6xGeTYTF0NMhI/L/j4oTp1DDnPmoXTVP2ElaiZpyZEVNEFDzPZqAbDCyTeFDQ6ke3x2S/3RDqZdUQGldNFOxuaPvdDR8x01RbY/Tg6wtUHxk3slC2e5Vb0g0PLCIUTnsvstoSXG9EhIcp8WPsRkirZmN/SEMnaZefoezFDYTpK36LEG7phQ9fZXp1UNqDrROl7SzCzPHxIG9M8U0XnnFeWJp6CCAqIZ/Rko8fqzgQUHVLawRE3ceNUtpS5Rua0wsbVQYkud8LnPfaDJKRnEoIZcdpM5yezPSyV9+Cdzw4SEf1fB7WzTRf7rkc4er9Mw/94tStyeI+pTMvcdDhzeZJ8lU6d4le/XH+ZuOwmZ7yRI3s0hDM6b7eq9HsVOTndAlHneGc+haKOhURFn0tPomH5bxkjLAEpjKFHRCwWztzy0aWjcMusDVP6eFqc5cehftrYsyj8s6J0kHoH2sSZFltFKI0xtmzuoKey3Yd6XDYWpiZmeN44SipWK7LT7wy0lzGpWenrtkhJWQ7aH+AA348JIEKZ9CFVlD0Tbd8j99U+dahldlNpheObJo4Qc18sqif8QL195tDghxabgViH+hXl1uetwqtZLXhc3GFrXZ+z0JnVosxU2U/2rvX+F5RhkrOnBIvneo+I6A8neiAsVN9YhKP5OsZSsqShdMHX+nYrrUEQ6ubfvFm3u3S1I4au3oMkYKwK1ff1IFYb2vqfiuofx4n11AzQoccQL1gYt/QwBbOAMGKmEIp3ebvfF280q+Kf8y4WkyxOp2gqqyeWpXztcHTsX3yGteltGW64Xsc+BxeRmUGfHjuGZYl0AaZl0TIQ1XYCee0fTzE9syNF4LqKjK7PMVurg94nw+swy1jMb+HfvsSbqyQcH0ZmFERT8Gnr7UR4=.box' }, private: true, unbox: 'ApHQbY+YU3n5tbyVg+sZhShlUjKhlXVadyqwqYPpG2j9' }, private: true, unbox: 'ApHQbY+YU3n5tbyVg+sZhShlUjKhlXVadyqwqYPpG2j9' }, timestamp: 1542738881378.001, rts: 1542738881378 } ]

passed: 77  failed: 3  of 80 tests  (10.7s)

Are these tests meant to fail, or has npm update broken them? Thanks for the help!

ameba23 commented 5 years ago

ah. this is almost definately because we are half way through changing something, and have published a new ssb-dark-crystal-schemas, and not just merged the respective changes here to master. i suspect that in development branch those tests would pass.

we are just about ready to merge that stuff accross so this will get sorted soon...

christianbundy commented 5 years ago

Cool, thanks! Just wanted to double-check that my development environment wasn't borked from running npm update.