Skip to content

Fix epoch update in TestValidator::change_resource_control_policy#3540

Merged
jvff merged 2 commits intolinera-io:mainfrom
jvff:fix-epoch-update-in-change-resource-control-policy
Mar 11, 2025
Merged

Fix epoch update in TestValidator::change_resource_control_policy#3540
jvff merged 2 commits intolinera-io:mainfrom
jvff:fix-epoch-update-in-change-resource-control-policy

Conversation

@jvff
Copy link
Contributor

@jvff jvff commented Mar 11, 2025

Motivation

Epoch changes were recently changed to use events (#3432), but the TestValidator::change_resource_control_policy was still trying to receive epoch change system messages instead of creating an operation to process the new epoch.

Proposal

Use the new SystemOperation::ProcessNewEpoch to update the chains to use the new epoch, and skip updating the admin chain because it fails to try to process the same epoch twice.

Test Plan

Tested with a rebased version of the tests in #3509. The tests stop working after #3432 but pass again after this PR.

Release Plan

  • These changes follow the usual release cycle, because it fixes an issue with SDK that is not present in any released version.

Links

jvff added 2 commits March 11, 2025 04:45
Update to use the new operation that relies on the emitted event instead
of a message sent through the subscription channel.
The admin chain is already in the new epoch, and fails to process it
again.
@jvff jvff added the bug Something isn't working label Mar 11, 2025
@jvff jvff added this to the Testnet #2 milestone Mar 11, 2025
@jvff jvff requested review from afck and ma2bd March 11, 2025 04:55
@jvff jvff self-assigned this Mar 11, 2025
@jvff jvff merged commit 06512f3 into linera-io:main Mar 11, 2025
23 checks passed
@jvff jvff deleted the fix-epoch-update-in-change-resource-control-policy branch March 11, 2025 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants