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

Deep Account Analytics: Milestone 1 #1038

Closed

Conversation

sourabhniyogi
Copy link

Milestone Delivery Checklist

  • The milestone-delivery-template.md has been copied and updated.
  • This pull request is being made by the same account as the accepted application.
  • I have disclosed any and all sources of reused code in the submitted repositories and have done my due diligence to meet its license requirements.
  • In case of acceptance, an invoice must be submitted and the payment will be transferred to the BTC/ETH/fiat account provided in the application.
  • The delivery is according to the Guidelines for Milestone Deliverables.

Link to the application pull request: Deep Account Analytics in Three Tiers for the Polkadot Data Alliance

@semuelle semuelle self-assigned this Oct 30, 2023
@takahser takahser assigned takahser and unassigned semuelle Nov 8, 2023
@takahser takahser self-requested a review November 8, 2023 10:39
@takahser
Copy link
Contributor

@sourabhniyogi sorry for the delay here and here, we currently got a bit of a backlog. I'll be back with more feedback soon.

Copy link
Contributor

@takahser takahser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sourabhniyogi sorry for the delay here.

Regarding your delivery I want to make a couple of point:

  1. In general, the testing instructions are not very clear at this stage - for example, in the Manual Testing Guide section you assume that everything has been set up and is running correctly already. Please keep in mind that an evaluation includes testing all aspects of the software deliverables, which includes the set up process of any software component involved. I understand that you've successfully made a deployment already which can be used for testing as well, but please note that as part of the evaluation process the setup procedure still has to be tested.

  2. I've noticed that there is a problem with installing dependencies on the polcaholic repo:

% nvm use stable
Now using node v20.3.1 (npm v9.6.7)
% npm i         
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/@acala-network/eth-providers/node_modules/graphql
npm WARN   graphql@"~16.0.1" from @acala-network/[email protected]
npm WARN   node_modules/@acala-network/eth-providers
npm WARN     @acala-network/eth-providers@"2.4.21" from @acala-network/[email protected]
npm WARN     node_modules/@acala-network/bodhi
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer graphql@"14.x || 15.x" from [email protected]
npm WARN node_modules/@acala-network/eth-providers/node_modules/graphql-request
npm WARN   graphql-request@"~3.6.1" from @acala-network/[email protected]
npm WARN   node_modules/@acala-network/eth-providers
npm WARN 
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/graphql
npm WARN   peer graphql@"14.x || 15.x" from [email protected]
npm WARN   node_modules/@acala-network/eth-providers/node_modules/graphql-request
npm WARN     graphql-request@"~3.6.1" from @acala-network/[email protected]
npm WARN     node_modules/@acala-network/eth-providers
npm WARN deprecated [email protected]: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm ERR! code 1
npm ERR! path /Users/xxx/repos/polkaholic/node_modules/canvas
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary
npm ERR! Failed to execute '/Users/xxx/.nvm/versions/node/v20.3.1/bin/node /Users/xxx/.nvm/versions/node/v20.3.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/Users/xxx/repos/polkaholic/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/xxx/repos/polkaholic/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using [email protected]
npm ERR! node-pre-gyp info using [email protected] | darwin | arm64
npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-node-v115-darwin-unknown-arm64.tar.gz
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-node-v115-darwin-unknown-arm64.tar.gz 
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v115 ABI, unknown) (falling back to source compile with node-gyp) 
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.10.1/canvas-v2.10.1-node-v115-darwin-unknown-arm64.tar.gz 
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info ok 
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.9.6 found at "/Library/Developer/CommandLineTools/usr/bin/python3"
npm ERR! gyp info spawn /Library/Developer/CommandLineTools/usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/Users/xxx/.nvm/versions/node/v20.3.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/xxx/repos/polkaholic/node_modules/canvas/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/xxx/.nvm/versions/node/v20.3.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/xxx/Library/Caches/node-gyp/20.3.1/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/xxx/Library/Caches/node-gyp/20.3.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/Users/xxx/.nvm/versions/node/v20.3.1/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/xxx/Library/Caches/node-gyp/20.3.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/xxx/repos/polkaholic/node_modules/canvas',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! /bin/sh: pkg-config: command not found
npm ERR! gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 127 while in binding.gyp. while trying to load binding.gyp
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (/Users/xxx/.nvm/versions/node/v20.3.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:325:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:511:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Darwin 23.1.0
npm ERR! gyp ERR! command "/Users/xxx/.nvm/versions/node/v20.3.1/bin/node" "/Users/xxx/.nvm/versions/node/v20.3.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--update-binary" "--module=/Users/xxx/repos/polkaholic/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/Users/xxx/repos/polkaholic/node_modules/canvas/build/Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115"
npm ERR! gyp ERR! cwd /Users/xxx/repos/polkaholic/node_modules/canvas
npm ERR! gyp ERR! node -v v20.3.1
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok 
npm ERR! node-pre-gyp ERR! build error 
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/Users/xxx/.nvm/versions/node/v20.3.1/bin/node /Users/xxx/.nvm/versions/node/v20.3.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/Users/xxx/repos/polkaholic/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/Users/xxx/repos/polkaholic/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/xxx/repos/polkaholic/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:511:28)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1098:16)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:304:5)
npm ERR! node-pre-gyp ERR! System Darwin 23.1.0
npm ERR! node-pre-gyp ERR! command "/Users/xxx/.nvm/versions/node/v20.3.1/bin/node" "/Users/xxx/repos/polkaholic/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
npm ERR! node-pre-gyp ERR! cwd /Users/xxx/repos/polkaholic/node_modules/canvas
npm ERR! node-pre-gyp ERR! node -v v20.3.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /Users/xxx/.npm/_logs/2023-11-20T10_16_26_474Z-debug-0.log
  1. Is there any software component to test in the substrate-etl repo or is its scope limited to static files?

  2. Due to the project complexity it might be useful to have a call to clear things up. That's completely optional, but if you're interested feel free to book a slot here. Please note that you'll still have to provide a written testing guide so other people in the community can easily reuse your software components, if they're interested.

LMK if you have any questions!

@sourabhniyogi
Copy link
Author

sourabhniyogi commented Dec 4, 2023

@takahser -- This project is not suitable for Docker-based review. This is because Polkaholic.io, while open source, depends on a Google Cloud backend (BigTable, MySql, GS, BigQuery) and in this case Apache Superset. We have worked with @michaelis @ w3f who has audited both Milestone 1 and 2 to his satisfaction, which I hope should satisfy the majority of your audit concerns. Here is a log of @mkchungs 's conversation with him for the milestone 1/2:

Chat_Export_1_PDA_deep_analytics.pdf
Chat_Export_2_michael&michalis_deep_analytics.pdf

I booked a time slot for Dec 11, but I recommend you check in with him before the call.

Copy link
Contributor

@takahser takahser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sourabhniyogi thanks for your time yesterday. I've talked to Michalis and have also taken a look. What currently confuses me is where the pollid comes from and how to use it. I was expecting it to match the referendum id, but it seems like that's not the case. Example:

Could you elaborate?

This project is not suitable for Docker-based review.

I'm fine with not using docker. However, after refreshing my memory on my previous comment, I came to the conclusion that you'd still have to provide a guide/tutorial for how to set up the infrastructure. This is because we support open-source software that should be reusable by other community players. Also, the NPM issues should be resolved.

@takahser
Copy link
Contributor

@sourabhniyogi FYI - I'll be out of office for the next 2 weeks. In case you deliver an update to the code and somebody should take a look before I'm back, feel free to ping @keeganquigley or @semuelle on this PR.

@github-actions github-actions bot added the stale label Dec 29, 2023
@takahser takahser removed the stale label Jan 3, 2024
@takahser
Copy link
Contributor

takahser commented Jan 3, 2024

@sourabhniyogi just checking - do you have any updates here?

@sourabhniyogi
Copy link
Author

sourabhniyogi commented Jan 3, 2024 via email

@takahser
Copy link
Contributor

takahser commented Jan 3, 2024

@sourabhniyogi great to hear! Looking forward to your next update then.

@takahser
Copy link
Contributor

takahser commented Mar 27, 2024

@sourabhniyogi will this PR be closed as well or are you still working on it?

@github-actions github-actions bot added the stale label Apr 11, 2024
@keeganquigley
Copy link
Contributor

pinging @sourabhniyogi

@sourabhniyogi
Copy link
Author

sourabhniyogi commented Apr 11, 2024 via email

@github-actions github-actions bot added to close and removed stale labels Apr 26, 2024
@takahser
Copy link
Contributor

@sourabhniyogi closing this for now, since it's been open for more than half a year. Feel free to re-open it, once it's ready to be reviewed again.

@takahser takahser closed this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants