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

Combine RemoveParaIdsWithNoCredit and CollatorAssignmentHook #692

Merged

Conversation

ParthDesai
Copy link
Contributor

@ParthDesai ParthDesai commented Sep 25, 2024

Description

Combine RemoveParaIdsWithNoCredit and CollatorAssignmentHook in one trait with two methods.

Both method executes same logic. Only difference being pre_assignment_* method always rollback while post_assignment_* only rollback in case it errors out.

Note

Naming and tests are still remaining. Just want to get some early feedback on overall design.

@ParthDesai ParthDesai force-pushed the combine-remove-paraids-and-collator-assignment-hook branch from 611e197 to ac88d40 Compare September 25, 2024 08:53
@ParthDesai ParthDesai changed the title [WIP] Combine RemoveParaIdsWithNoCredit and CollatorAssignmentHook Combine RemoveParaIdsWithNoCredit and CollatorAssignmentHook Sep 25, 2024
@ParthDesai ParthDesai force-pushed the combine-remove-paraids-and-collator-assignment-hook branch from ac88d40 to b01541a Compare September 25, 2024 09:07
@ParthDesai ParthDesai changed the title Combine RemoveParaIdsWithNoCredit and CollatorAssignmentHook [WIP] Combine RemoveParaIdsWithNoCredit and CollatorAssignmentHook Sep 25, 2024
@ParthDesai ParthDesai force-pushed the combine-remove-paraids-and-collator-assignment-hook branch from b01541a to b655d6b Compare September 25, 2024 09:56
Copy link
Contributor

github-actions bot commented Sep 25, 2024

Coverage Report

(master)

@@                                   Coverage Diff                                   @@
##           master   combine-remove-paraids-and-collator-assignment-hook      +/-   ##
=======================================================================================
+ Coverage   64.73%                                                64.76%   +0.03%     
  Files         323                                                   323              
+ Lines       55578                                                 55740     +162     
=======================================================================================
+ Hits        35974                                                 36097     +123     
+ Misses      19604                                                 19643      +39     
Files Changed Coverage
/pallets/collator-assignment/src/lib.rs 97.65% (+1.27%)
/pallets/services-payment/src/lib.rs 89.94% (-0.33%)
/primitives/traits/src/lib.rs 61.60% (-1.51%)
/runtime/dancebox/src/lib.rs 87.98% (+0.21%)
/runtime/dancebox/src/weights/pallet_services_payment.rs 73.91% (-13.05%)
/runtime/flashbox/src/lib.rs 46.80% (+2.79%)
/runtime/flashbox/src/weights/pallet_services_payment.rs 13.04% (-13.05%)
/solo-chains/runtime/dancelight/src/lib.rs 67.81% (+0.90%)
/solo-chains/runtime/dancelight/src/weights/pallet_services_payment.rs 13.43% (-13.44%)

Coverage generated Tue Dec 10 15:09:23 UTC 2024

@ParthDesai ParthDesai force-pushed the combine-remove-paraids-and-collator-assignment-hook branch 2 times, most recently from 916be99 to d0ad35f Compare September 30, 2024 14:46
@ParthDesai ParthDesai force-pushed the combine-remove-paraids-and-collator-assignment-hook branch from d0ad35f to 7ccaa48 Compare October 3, 2024 07:45
@ParthDesai ParthDesai force-pushed the combine-remove-paraids-and-collator-assignment-hook branch from 7ccaa48 to b47f66e Compare November 21, 2024 10:56
Copy link
Contributor

github-actions bot commented Nov 21, 2024

WASM runtime size check:

Compared to target branch

dancebox runtime: 1428 KB (no changes) ✅

flashbox runtime: 824 KB (no changes) ✅

dancelight runtime: 2108 KB (+2108 KB) ⚠️

container chain template simple runtime: 1124 KB (-4296 KB) ✅

container chain template frontier runtime: 1400 KB (-5152 KB) ✅

@ParthDesai ParthDesai added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. not-breaking Does not need to be mentioned in breaking changes labels Nov 21, 2024
@ParthDesai ParthDesai marked this pull request as ready for review November 21, 2024 14:31
@ParthDesai ParthDesai changed the title [WIP] Combine RemoveParaIdsWithNoCredit and CollatorAssignmentHook Combine RemoveParaIdsWithNoCredit and CollatorAssignmentHook Nov 21, 2024
Copy link
Collaborator

@girazoki girazoki left a comment

Choose a reason for hiding this comment

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

I like better the way it looks now. I am still missing some doc on what each of the lines does. If we can fix that would be great

@ParthDesai ParthDesai force-pushed the combine-remove-paraids-and-collator-assignment-hook branch 2 times, most recently from ea4a7ec to 95f69e6 Compare December 10, 2024 07:37
@ParthDesai ParthDesai force-pushed the combine-remove-paraids-and-collator-assignment-hook branch from 95f69e6 to cb070cf Compare December 10, 2024 14:15
@ParthDesai ParthDesai merged commit 5474cfc into master Dec 10, 2024
42 checks passed
@ParthDesai ParthDesai deleted the combine-remove-paraids-and-collator-assignment-hook branch December 10, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants