Skip to content
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

Merged
merged 5 commits into from
Sep 11, 2024

Conversation

bmwill
Copy link
Contributor

@bmwill bmwill commented Sep 10, 2024

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.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Sep 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 3:58pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 10, 2024 3:58pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 10, 2024 3:58pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Sep 10, 2024 3:58pm

@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Contributor Author

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) {
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@bmwill bmwill merged commit 5415bb6 into MystenLabs:main Sep 11, 2024
43 of 44 checks passed
@bmwill bmwill deleted the indexer-feature-flag-removal branch September 11, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants