-
Notifications
You must be signed in to change notification settings - Fork 24
Setup local testnet for integration testing #679
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
Conversation
Set up a comprehensive Docker-based testing environment that simulates a production-like setup for indexer services. This includes: - Integration with local-network components (chain, IPFS, graph-node, contracts) - Custom services configuration with proper database migrations - Test scripts to validate service functionality(WIP) - Fix for database schema creation to support cost models and deny lists - Automated service startup with correct dependency ordering(WIP) This environment allows testing our services against real subgraphs and contracts, providing better validation than isolated unit tests. The setup creates a three-tier architecture that mimics production deployment. Tests can now validate payment receipt processing and query routing in a realistic scenario.
… local network testing
…le and remove logging from indexer start script
Pull Request Test Coverage Report for Build 14310527874Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
…gent for testing on local network
…ting considerations
53a66d3 to
0015b69
Compare
What's happening, I think, is that there's a subtle timing gap between when the contract deployment container finishes submitting transactions and when those contracts are actually mined and confirmed on the local network. |
I deleted my comment because I jumped the gun running the local-test directive, not everything had built yet. Apologies for any confusion! |
Ah yeah I ran into |
That happened to me as well, but it got better after mining some blocks before the gateway check, |
Your fix worked |
|
These values aren't changing in my output: This is running Update: |
Confirming this is fixed for me now 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing to have this infrastructure in place, what a great start!
I was having an issue with a very old version of protoc in apt on my new laptop and now that's fixed I can confirm this is working as described and as expected! Nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's so valuable, thanks!
|
Glad to hear |
d3ea08d
This PR introduces a local-testnet and an integration test to validate that the receipt aggregation and RAV generation functionality works correctly in a real-world environment.
Key Changes
Testing Details
The tests deploy and interact with a complete local testnet environment using Docker containers, including:
The integration test:
Missing Checks
How to setup and run:
In order to try this locally:
just setupto build and run containersjust test-local