Skip to content

Conversation

@raymondkfcheung
Copy link
Contributor

@raymondkfcheung raymondkfcheung commented Jun 6, 2025

This PR does two things:

  1. Enables Coretime emulated integration tests in CI by adding them to the integration test matrix to fix missing test coverage.
  2. Updates CHANGELOG.md to reflect the inclusion of SetTopic-related changes from Polkadot SDK stable2503-5.

This partially addresses paritytech/polkadot-sdk#6119 and continues the work from paritytech/polkadot-sdk#7691.

@github-actions
Copy link

github-actions bot commented Jun 6, 2025

Review required! Latest push from author must always be reviewed

Copy link
Contributor

@bkontur bkontur left a comment

Choose a reason for hiding this comment

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

@raymondkfcheung raymondkfcheung changed the title Ensure Consistent Topic IDs for Traceable Cross-Chain XCM Enable Coretime Integration Tests & Ensure Consistent Topic IDs for Cross-Chain XCM Jun 9, 2025
@github-actions github-actions bot requested review from acatangiu and x3c41a June 9, 2025 12:53
@raymondkfcheung raymondkfcheung requested a review from bkontur June 9, 2025 12:55
@raymondkfcheung raymondkfcheung changed the title Enable Coretime Integration Tests & Ensure Consistent Topic IDs for Cross-Chain XCM Enable Coretime Integration Tests Jun 9, 2025
@raymondkfcheung raymondkfcheung changed the title Enable Coretime Integration Tests Enable Coretime Integration Tests & Update Changelog for SetTopic Changes Jun 9, 2025
@raymondkfcheung raymondkfcheung changed the title Enable Coretime Integration Tests & Update Changelog for SetTopic Changes Enable Coretime Integration Tests & Update Changelog for SetTopic Changes Jun 9, 2025
@acatangiu acatangiu enabled auto-merge (squash) June 9, 2025 17:34
@acatangiu acatangiu disabled auto-merge June 10, 2025 07:01
@acatangiu
Copy link
Contributor

@raymondkfcheung please check the failing test(s)

@raymondkfcheung
Copy link
Contributor Author

Merge branch 'main' into ray-ensure-topic-v2

It's due to #754. I'm searching the root causes and will fix it.

Copy link
Contributor

@seadanda seadanda left a comment

Choose a reason for hiding this comment

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

Please don't change the minimum price on the actual chains (this minimum price is important for the pricing mechanism), the test needs to be updated instead

pub const MinimumCreditPurchase: Balance = UNITS / 10;

pub const MinimumEndPrice: Balance = UNITS;
pub const MinimumEndPrice: Balance = UNITS / 100_000;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pub const MinimumEndPrice: Balance = UNITS / 100_000;
pub const MinimumEndPrice: Balance = UNITS;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted

pub const BrokerPalletId: PalletId = PalletId(*b"py/broke");
pub const MinimumCreditPurchase: Balance = UNITS / 10;
pub const MinimumEndPrice: Balance = 10 * UNITS;
pub const MinimumEndPrice: Balance = UNITS / 10_000;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pub const MinimumEndPrice: Balance = UNITS / 10_000;
pub const MinimumEndPrice: Balance = 10 * UNITS;

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll push these changes and the tests fix to a branch and make a PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@seadanda updated the tests according to #759 (review)

@raymondkfcheung raymondkfcheung requested a review from seadanda June 10, 2025 11:49
Copy link
Contributor

@seadanda seadanda left a comment

Choose a reason for hiding this comment

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

Kind of magic numbers in the test which we can easily improve.

The point where start_sales is called has an argument which is the start price. Currently it starts with ed, but if this is below the minimum price it will just use the minimum price.

If you start sales at start_sales(RuntimeOrigin::root(), UNITS, 1)
Then mint 200 * UNITS and purchase using 100 * UNITS the numbers in the test will be self-consistent

@ggwpez ggwpez mentioned this pull request Jun 10, 2025
3 tasks
@ggwpez ggwpez moved this from Todo to In Progress in Runtime releases Jun 10, 2025
@acatangiu
Copy link
Contributor

/merge

@fellowship-merge-bot fellowship-merge-bot bot merged commit 1668c86 into polkadot-fellows:main Jun 11, 2025
67 of 69 checks passed
@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

@github-project-automation github-project-automation bot moved this from In Progress to Done in Runtime releases Jun 11, 2025
@raymondkfcheung raymondkfcheung deleted the ray-ensure-topic-v2 branch June 11, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants