-
Notifications
You must be signed in to change notification settings - Fork 24
feat: Enhance Integration Tests with Load Testing for the indexer-service #723
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
401435f
feat: add new load test to measure receipt handler in service
neithanmo a680974
refactor: remove duplicated start script
neithanmo 306c1df
chore: move constants to its own file
neithanmo b449dff
feat: Implement CLI for test execution using Clap
neithanmo a042b67
chore: remove line to wait for db
neithanmo f07c4a0
style: fix typo in comments
neithanmo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| // Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // | ||
| // | ||
| //! Constants used in the integration tests for the TAP RAV generation | ||
| //! their value is taken from local-network .env variable | ||
| pub const INDEXER_URL: &str = "http://localhost:7601"; | ||
|
|
||
| pub const GATEWAY_API_KEY: &str = "deadbeefdeadbeefdeadbeefdeadbeef"; | ||
| pub const GATEWAY_URL: &str = "http://localhost:7700"; | ||
| pub const TAP_AGENT_METRICS_URL: &str = "http://localhost:7300/metrics"; | ||
|
|
||
| // The deployed gateway and indexer | ||
| // use this verifier contract | ||
| // which must be part of the eip712 domain | ||
| // and the signing key account0_secret | ||
| // they must match otherwise receipts would be rejected | ||
| pub const TAP_VERIFIER_CONTRACT: &str = "0x8198f5d8F8CfFE8f9C413d98a0A55aEB8ab9FbB7"; | ||
| pub const ACCOUNT0_SECRET: &str = | ||
| "ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"; | ||
| pub const CHAIN_ID: u64 = 1337; | ||
|
|
||
| pub const SUBGRAPH_ID: &str = "QmV4R5g7Go94bVFmKTVFG7vaMTb1ztUUWb45mNrsc7Yyqs"; | ||
|
|
||
| pub const GRAPH_URL: &str = "http://localhost:8000/subgraphs/name/graph-network"; | ||
|
|
||
| pub const GRT_DECIMALS: u8 = 18; | ||
| pub const GRT_BASE: u128 = 10u128.pow(GRT_DECIMALS as u32); | ||
|
|
||
| pub const MAX_RECEIPT_VALUE: u128 = GRT_BASE / 10_000; | ||
suchapalaver marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We don't need
num_cpusanymore, Rust hasstd::thread::available_parallelismsince 1.59One less dependency :)