Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyscott18 committed Nov 14, 2023
1 parent 4d98b99 commit 69ca621
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 27 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,6 @@ jobs:
ANVIL_FORK_BLOCK_NUMBER: 17501000
ports:
- 8545:8545
ipfs:
image: ipfs/go-ipfs:v0.10.0
ports:
- 5001:5001
graph-node:
image: graphprotocol/graph-node:latest
# Would be best to get this health check working, but so far it hasn't been an issue.
# options: >-
# --health-cmd "curl --fail http://graph-node:8040"
env:
postgres_host: postgres
postgres_user: postgres
postgres_pass: postgres
postgres_db: postgres
ipfs: ipfs:5001
ethereum: mainnet:${{ secrets.ANVIL_FORK_URL }}
ETHEREUM_REORG_THRESHOLD: 0
GRAPH_LOG: debug
ports:
- 8000:8000
- 8001:8001
- 8020:8020
- 8030:8030
- 8040:8040
steps:
- name: Clone repository
uses: actions/checkout@v3
Expand All @@ -64,8 +40,7 @@ jobs:
run: pnpm bench:ponder:ci
env:
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }}
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
bench-ponder:

bench-subgraph:
name: Bench:Subgraph
runs-on: ubuntu-latest
Expand Down
9 changes: 8 additions & 1 deletion benchmarks/src/ponder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { rmSync } from "node:fs";
import path from "node:path";

import { execa } from "execa";

Expand Down Expand Up @@ -75,7 +76,13 @@ const waitForSyncComplete = async () => {

const ponder = async () => {
console.log("Creating Ponder instance...");
const subprocess = execa("ponder", ["start", `--root-dir=ponder`], {
const ponderBinPathAbs = path.resolve(
__dirname,
"../packages/core/dist/bin/ponder",
);
console.log({ ponderBinPathAbs });

const subprocess = execa(ponderBinPathAbs, ["start"], {
stdio: "inherit",
detached: true,
});
Expand Down

0 comments on commit 69ca621

Please sign in to comment.