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

Reduce max transactions per block in simtests #20401

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Conversation

mwtian
Copy link
Member

@mwtian mwtian commented Nov 23, 2024

Description

This makes it more likely to exercise full blocks in simtests.

Test plan

CI


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 Nov 23, 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 Nov 23, 2024 2:48am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Nov 23, 2024 2:48am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Nov 23, 2024 2:48am
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Nov 23, 2024 2:48am

@mwtian mwtian temporarily deployed to sui-typescript-aws-kms-test-env November 23, 2024 00:34 — with GitHub Actions Inactive
@mwtian mwtian changed the title Reduce max txns per block in simtests Reduce max transactions per block in simtests Nov 23, 2024
self.consensus_max_transactions_in_block_bytes
.unwrap_or(512 * 1024)
if cfg!(msim) {
256 * 1024
Copy link
Contributor

Choose a reason for hiding this comment

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

I still believe this might be a tad high for simtests but let's see.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree this won't be hit that much in simtests but this can't be lower than consensus_max_transaction_size_bytes. We may need to update the logic in benchmark driver to hit the block size limit consistently.

@mwtian mwtian merged commit ff98089 into main Nov 26, 2024
52 checks passed
@mwtian mwtian deleted the tmw/limit-max-num-txns branch November 26, 2024 16:10
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