Skip to content

OrderBook Subgraph testing CI#36

Closed
NanezX wants to merge 172 commits into
mainfrom
2023-09-07-sg-setup-repo
Closed

OrderBook Subgraph testing CI#36
NanezX wants to merge 172 commits into
mainfrom
2023-09-07-sg-setup-repo

Conversation

@NanezX
Copy link
Copy Markdown
Contributor

@NanezX NanezX commented Nov 1, 2023

No description provided.

Copy link
Copy Markdown
Contributor

@thedavidmeister thedavidmeister left a comment

Choose a reason for hiding this comment

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

other than the specific comments, high level concerns

  • The PR is far too large, it seems like this easily could have been split into smaller PRs, as it stands we have 68 thousand LOC to review in a single pass
  • the rust code is generally undocumented and untested
  • commented out code and typos makes the PR appear unfinished to me, probably a symptom of it being so large that you couldn't even check it properly yourself @NanezX

Comment thread subgraph/cli/utils/mod.rs
@@ -0,0 +1,76 @@
use colored::*;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

don't have undifferentiated util modules

Comment thread subgraph/cli/utils/mod.rs

let full_cmd = format!("{} {}", main_cmd, args.join(" "));

println!("{} {}\n", "Running:".green(), full_cmd.blue());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use tracing not println

Comment thread subgraph/cli/utils/mod.rs
stdout_handle.join().expect("Failed to join stdout thread");

if status.success() {
println!("✅ {} {}\n", full_cmd.blue(), "completed".green());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use standard tracing and standard log levels, emojis and colours could cause issues for logging/monitoring tools

version: '3'
services:
evm_node:
image: vishalkale151071/hardhat-node
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

private docker, use org

- postgres
extra_hosts:
- host.docker.internal:host-gateway
environment:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hardcoded environment?

let end_point = "http://localhost:8020/";
let subgraph_name = "test/test";

let data = MapBuilder::new()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why are we working with unstructured string interpolation? does serde_yaml not work?

std::env::current_dir().unwrap().display(),
root_dir
))
.args(&["-c", "npx graph codegen && npx graph build"])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

npx??


pub struct Query;

impl Query {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what's this?


pub struct SyncStatus;

pub async fn wait() -> anyhow::Result<bool> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

wait for what?

@@ -0,0 +1,1252 @@
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why are generated files being committed to the repo?

@thedavidmeister
Copy link
Copy Markdown
Contributor

closing as this should be smaller PRs

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.

2 participants