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

Clear other messages before dry-run to get only the ones produced during #5581

Merged
merged 16 commits into from
Sep 5, 2024

Conversation

franciscoaguirre
Copy link
Contributor

The dry-run shows in forwarded_xcms all the messages in the queues at the time of calling the API.
Each time the API is called, the result could be different.
You could get messages even if you dry-run something that doesn't send a message, like a System::remark.

This PR fixes this by clearing the message queues before doing the dry-run, so the only messages left are the ones the users of the API actually care about.

@franciscoaguirre franciscoaguirre requested a review from a team as a code owner September 4, 2024 07:41
@paritytech-review-bot paritytech-review-bot bot requested a review from a team September 4, 2024 07:42
@acatangiu acatangiu added the T6-XCM This PR/Issue is related to XCM. label Sep 4, 2024
polkadot/xcm/xcm-builder/src/routing.rs Outdated Show resolved Hide resolved
polkadot/xcm/pallet-xcm/src/lib.rs Outdated Show resolved Hide resolved
polkadot/runtime/common/src/xcm_sender.rs Outdated Show resolved Hide resolved
@paritytech-review-bot paritytech-review-bot bot requested a review from a team September 4, 2024 08:53
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable-int
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7258431

@ggwpez ggwpez added the A4-needs-backport Pull request must be backported to all maintained releases. label Sep 4, 2024
prdoc/pr_5581.prdoc Outdated Show resolved Hide resolved
Co-authored-by: Adrian Catangiu <adrian@parity.io>
@franciscoaguirre franciscoaguirre added this pull request to the merge queue Sep 5, 2024
Merged via the queue into master with commit 8d9ebcd Sep 5, 2024
200 of 202 checks passed
@franciscoaguirre franciscoaguirre deleted the single-out-forwarded-xcms branch September 5, 2024 11:31
Copy link

github-actions bot commented Sep 5, 2024

Created backport PR for stable2407:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-5581-to-stable2407
git worktree add --checkout .worktree/backport-5581-to-stable2407 backport-5581-to-stable2407
cd .worktree/backport-5581-to-stable2407
git reset --hard HEAD^
git cherry-pick -x 8d9ebcd51a8021f77d6ae16ef9d6388f55d0598f
git push --force-with-lease

github-actions bot pushed a commit that referenced this pull request Sep 5, 2024
…ing (#5581)

The dry-run shows in `forwarded_xcms` all the messages in the queues at
the time of calling the API.
Each time the API is called, the result could be different.
You could get messages even if you dry-run something that doesn't send a
message, like a `System::remark`.

This PR fixes this by clearing the message queues before doing the
dry-run, so the only messages left are the ones the users of the API
actually care about.

---------

Co-authored-by: Adrian Catangiu <adrian@parity.io>
(cherry picked from commit 8d9ebcd)
Copy link

github-actions bot commented Sep 5, 2024

Successfully created backport PR for stable2409:

franciscoaguirre added a commit that referenced this pull request Sep 5, 2024
…ing (#5581)

The dry-run shows in `forwarded_xcms` all the messages in the queues at
the time of calling the API.
Each time the API is called, the result could be different.
You could get messages even if you dry-run something that doesn't send a
message, like a `System::remark`.

This PR fixes this by clearing the message queues before doing the
dry-run, so the only messages left are the ones the users of the API
actually care about.

---------

Co-authored-by: Adrian Catangiu <adrian@parity.io>
(cherry picked from commit 8d9ebcd)
acatangiu pushed a commit that referenced this pull request Sep 5, 2024
Backport #5581 into `stable2409` (cc @franciscoaguirre).

The dry-run shows in `forwarded_xcms` all the messages in the queues
at the time of calling the API.
Each time the API is called, the result could be different.
You could get messages even if you dry-run something that doesn't send
a message, like a `System::remark`.

This commit fixes this by clearing the message queues before doing the
dry-run, so the only messages left are the ones the users of the API actually
care about.

Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
acatangiu pushed a commit that referenced this pull request Sep 5, 2024
Backport #5581 into `stable2407` (cc @franciscoaguirre).

The dry-run shows in `forwarded_xcms` all the messages in the queues
at the time of calling the API.
Each time the API is called, the result could be different.
You could get messages even if you dry-run something that doesn't send
a message, like a `System::remark`.

This commit fixes this by clearing the message queues before doing the
dry-run, so the only messages left are the ones the users of the API actually
care about.

Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
@ggwpez ggwpez removed the A4-needs-backport Pull request must be backported to all maintained releases. label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T6-XCM This PR/Issue is related to XCM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants