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

Broker pallet: RegionDropped event fix & additional tests #1609

Merged
merged 5 commits into from
Sep 18, 2023

Conversation

Szegoo
Copy link
Contributor

@Szegoo Szegoo commented Sep 18, 2023

This PR includes the following fix:

  • The duration is always set to zero in the RegionDropped event. This is fixed in this PR.

Also added some additional tests to cover some cases that aren't covered :

  • Selling a partitioned region to the instantaneous coretime pool.
  • Partitioning a region after assigning it to a particular task.
  • Interlacing a region after assigning it to a particular task.

@Szegoo Szegoo requested review from a team September 18, 2023 09:10
@Szegoo Szegoo requested a review from a team as a code owner September 18, 2023 09:10
Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

Nice catch!

@ggwpez ggwpez added the R0-silent Changes should not be mentioned in any release notes label Sep 18, 2023
@ggwpez
Copy link
Member

ggwpez commented Sep 18, 2023

Marking as silent since the pallet is not live yet.

@ggwpez ggwpez enabled auto-merge (squash) September 18, 2023 10:02
@ggwpez ggwpez merged commit f14bf34 into paritytech:master Sep 18, 2023
9 of 10 checks passed
@ggwpez ggwpez mentioned this pull request Jan 2, 2024
bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
…ch#1609)

This PR includes the following fix:
- [x] The `duration` is always set to zero in the `RegionDropped` event.
This is fixed in this PR.

Also added some additional tests to cover some cases that aren't covered
:
- [x] Selling a partitioned region to the instantaneous coretime pool.
- [x] Partitioning a region after assigning it to a particular task.
- [x] Interlacing a region after assigning it to a particular task.
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Mar 26, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Mar 27, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 8, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 9, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 10, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Apr 10, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
bkchr pushed a commit that referenced this pull request Apr 10, 2024
* Move some logic to RestartableFinalityProofsStream

* Move some logic to `Transaction`

* Avoid unnecessary split_off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
Status: Audited
Development

Successfully merging this pull request may close these issues.

3 participants