Skip to content

Fix scheduler weight and add test #614

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 6 commits into from
Mar 4, 2025

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented Mar 3, 2025

  • Add test to collectives pallet
  • Manually edit scheduler weight

Investigation

The Rust compiler changed how the stringify! macro formats paths on Aug 12th '24. I assume that this broke the V1 benchmarking here. We had updated the scheduler pallet to V2 syntax (which is not affected) on Nov 20th '24. We did not back-port this since there was no apparent reason for it.
The is why it seemingly fixed it self on SDK master but not in the runtimes repo (since that is using V1 scheduler benchmarking).
Another indication for this is the fact that it did work on the whitelist pallet, which is on V2 much longer but used the same custom pov mode.

Adding some sanity checks to prevent this in the future here paritytech/polkadot-sdk#7785

  • Does not require a CHANGELOG entry

ggwpez added 2 commits March 3, 2025 13:57
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@ggwpez ggwpez marked this pull request as ready for review March 3, 2025 13:58
@bkchr
Copy link
Contributor

bkchr commented Mar 3, 2025

/cmd fmt

Copy link

github-actions bot commented Mar 3, 2025

Command "fmt" has started 🚀 See logs here

Copy link

github-actions bot commented Mar 3, 2025

Command "fmt" has finished ✅ See logs here

@ggwpez
Copy link
Member Author

ggwpez commented Mar 4, 2025

/merge

@fellowship-merge-bot fellowship-merge-bot bot enabled auto-merge (squash) March 4, 2025 13:01
@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@fellowship-merge-bot fellowship-merge-bot bot merged commit 40f124f into main Mar 4, 2025
62 of 63 checks passed
lrazovic added a commit to Polimec/polimec-node that referenced this pull request Mar 5, 2025
## What and Why?

Added two new runtime API endpoints to the `UserInformation`:
1. `evaluations_of`: Retrieves all evaluations made by a user, with optional filtering by project id.
2. `participations_of`: Retrieves all bids made by a user, with optional filtering by project id.

## Also
- Restored the old `pallet_scheduler` weights, as per polkadot-fellows/runtimes#614
- Bumped `UserInformation` API version from 1 to 2 to reflect these additions
- Updated Rust toolchain from 1.81.0 to 1.84.1. So we use the same Rust version used by `srtool` (https://github.com/paritytech/srtool/releases/tag/v0.18.2)
- Removed `--no-wasm-std` flag from `srtool` build commands
@ggwpez ggwpez deleted the oty-fix-scheduler-weights branch March 5, 2025 11:36
@ggwpez ggwpez mentioned this pull request Mar 5, 2025
fellowship-merge-bot bot pushed a commit that referenced this pull request Mar 10, 2025
Release 1.4.2 for:
- #535 (PAH and KAH)
- #614 (P Collectives)
- #604 (PAH and KAH)

---------

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
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.

8 participants