Skip to content

split weights#2629

Merged
aramikm merged 10 commits intomainfrom
split_db_Weights
Oct 31, 2025
Merged

split weights#2629
aramikm merged 10 commits intomainfrom
split_db_Weights

Conversation

@aramikm
Copy link
Copy Markdown
Collaborator

@aramikm aramikm commented Oct 21, 2025

Goal

The goal of this PR is to update the database benchmarks

Closes #2601

Discussion

  • Some of the major weight changes specific to stateful storage
Screenshot 2025-10-23 at 5 04 41 PM

Checklist

  • Unit Tests Updated
  • e2e Tests Updated
  • Benchmarks Updated
  • Spec version incremented

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Oct 22, 2025
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Oct 22, 2025
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Oct 23, 2025
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Oct 23, 2025
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Oct 23, 2025
@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Oct 24, 2025
@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Oct 24, 2025
@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Oct 27, 2025
@github-actions github-actions bot removed the metadata-changed Metadata has changed since the latest full release label Oct 30, 2025
@aramikm aramikm marked this pull request as ready for review October 30, 2025 21:49
@github-actions github-actions bot added the metadata-changed Metadata has changed since the latest full release label Oct 30, 2025
@aramikm aramikm removed the request for review from wilwade October 30, 2025 22:43
process,
};

fn main() -> io::Result<()> {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We can code golf on this since it is mostly generated but since it is only a tool that is going to run once in a while I was not too worried about that and was only concerned with correctness.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not worth the effort IMO unless it is slowing things down


it('should allow retiring MSA after additional keys have been deleted and tokens withdran', async function () {
// This test hangs under some unknown circumstances in parallel mode
it.skip('should allow retiring MSA after additional keys have been deleted and tokens withdran', async function () {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Forgot to remove the skip?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It sort of passes in my open PR so not sure we should skip it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This test hangs under some unknown circumstances in parallel mode. Had to skip it so the e2e tests pass. Open to ideas about how to fix that but it's outside the scope of this PR

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It is probably some race condition that happens in some cases but still it's a flaky test. We have some options

  • A: We prefer to keep it as is but it wastes a lot of time in the CI and during when it hangs and we don't know exactly if the hang is because of this test or some new test we've written or changed.
  • B: We Prefer to fix it (not in the scope of this PR)
  • C: We prefer to skip it to make sure it's not going to cause issues in future.

This comment was marked as duplicate.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In my big Schemas PR, I was going through a lot of the e2e tests that need to be updated due to the schema grant changes, and I found quite a few missing awaits; could be that's causing things to hang randomly.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there a lint we can turn on for missing await in an async function?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@joe I can look to see if that is a possibility.

Based on the feedback I'm going to enable this and hope for the best and create a ticket for fixing this.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

related ticket #2634

Copy link
Copy Markdown
Collaborator

@shannonwells shannonwells left a comment

Choose a reason for hiding this comment

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

Looks ok to me


# Frequency related dependencies
common-primitives = { default-features = false, path = "../../common/primitives" }
common-runtime = { path = "../../runtime/common", default-features = false }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is no longer a dev dependency?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

no because we are using the Child tree DB weights in stable weights


it('should allow retiring MSA after additional keys have been deleted and tokens withdran', async function () {
// This test hangs under some unknown circumstances in parallel mode
it.skip('should allow retiring MSA after additional keys have been deleted and tokens withdran', async function () {

This comment was marked as duplicate.

Copy link
Copy Markdown
Collaborator

@saraswatpuneet saraswatpuneet left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Collaborator

@JoeCap08055 JoeCap08055 left a comment

Choose a reason for hiding this comment

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

🔥

@github-actions github-actions bot added metadata-changed Metadata has changed since the latest full release and removed metadata-changed Metadata has changed since the latest full release labels Oct 31, 2025
@aramikm aramikm merged commit 379983e into main Oct 31, 2025
35 checks passed
@aramikm aramikm deleted the split_db_Weights branch October 31, 2025 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

metadata-changed Metadata has changed since the latest full release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-calculate DB and base weights based on latest main-net data

5 participants