-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
indexer, graphql: remove pg_integration feature flag usage #19295
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
@@ -33,8 +33,8 @@ use tokio::task::JoinHandle; | |||
use tokio_util::sync::CancellationToken; | |||
use tracing::info; | |||
|
|||
const VALIDATOR_COUNT: usize = 7; | |||
const EPOCH_DURATION_MS: u64 = 15000; | |||
const VALIDATOR_COUNT: usize = 4; |
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.
Why this change?
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.
The default for all of our other tests is 4, so 7 just results in more load during the test for little value since we aren't even interested in testing the validator portion of the stack. I found that this helped reduced timeouts when these tests were run when the GitHub actions runner was under high load.
@@ -16,7 +16,7 @@ datatest_stable::harness!(run_test, TEST_DIR, r".*\.(mvir|move)$"); | |||
#[cfg_attr(msim, msim::main)] | |||
async fn run_test(path: &Path) -> Result<(), Box<dyn std::error::Error>> { | |||
telemetry_subscribers::init_for_testing(); | |||
if cfg!(feature = "pg_integration") { | |||
if !cfg!(msim) { |
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.
Can you add a comment on this if
? Don't quite understand it.
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.
Yeah, essentially these tests don't really work under msim since they rely on external things like a database so this shuts them off during those tests.
Description
Describe the changes or additions included in this PR.
Test plan
How did you test the new or updated feature?
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.