subgraph-shell + rainix-subgraph-test reusable + build-subgraph.sh hook - #210
Conversation
…sh hook Resolves #209. - devShells.subgraph-shell: node + the-graph + goldsky + subgraph-tasks. No rust, no foundry, no sqlite/yq/age — lets consumers avoid the heavy default closure when CI is just subgraph-test. - rainix-subgraph-test.yaml: thin reusable that runs subgraph-test (matchstick) in the slim shell. Consumers commit subgraph/abis/ and subgraph/generated/ so the test path carries no forge build or graph codegen. - rainix-copy-artifacts.yaml: optional script/build-subgraph.sh hook between CopyArtifacts.sol and forge fmt, run in subgraph-shell. The existing git diff --exit-code gate then catches stale committed subgraph artifacts. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR introduces subgraph-specific CI infrastructure by adding a lightweight dev shell in Nix, a reusable GitHub Actions workflow for running subgraph tests, and integrating subgraph artifact regeneration into the artifact consistency gate. ChangesSubgraph CI Infrastructure
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai assess this PR size classification for the totality of the PR with the following criterias and report it in your comment: S/M/L PR Classification Guidelines:This guide helps classify merged pull requests by effort and complexity rather than just line count. The goal is to assess the difficulty and scope of changes after they have been completed. Small (S)Characteristics:
Review Effort: Would have taken 5-10 minutes Examples:
Medium (M)Characteristics:
Review Effort: Would have taken 15-30 minutes Examples:
Large (L)Characteristics:
Review Effort: Would have taken 45+ minutes Examples:
Additional Factors to ConsiderWhen deciding between sizes, also consider:
Notes:
|
Summary
Resolves #209.
devShells.subgraph-shell: node + the-graph + goldsky +subgraph-tasks. No rust, no foundry, no sqlite/yq/age.rainix-subgraph-test.yaml: thin reusable that runssubgraph-testin the slim shell. End-state CI for subgraph repos with committedsubgraph/abis/+subgraph/generated/.rainix-copy-artifacts.yamlwith an optionalscript/build-subgraph.shhook (betweenCopyArtifacts.solandforge fmt, run in#subgraph-shell). Consumers put theirgraph codegenthere and the existinggit diff --exit-codegate catches drift.Test plan
subgraph/abis/+subgraph/generated/+script/build-subgraph.sh+ flipstest-subgraph.ymlto this reusable.🤖 Generated with Claude Code
Summary by CodeRabbit