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

Fix duplicate codec indexes #7446

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

serban300
Copy link
Contributor

@serban300 serban300 commented Feb 4, 2025

Related to #7400 and #7417

We need this in order to be able to update parity-scale-codec to the latest version after it's released. That's because parity-scale-codec added support for checking for duplicate indexes at compile time.

@serban300 serban300 added R0-silent Changes should not be mentioned in any release notes I2-bug The node fails to follow expected behavior. T10-tests This PR/Issue is related to tests. labels Feb 4, 2025
@serban300 serban300 self-assigned this Feb 4, 2025
@serban300 serban300 requested a review from a team as a code owner February 4, 2025 10:55
@@ -209,6 +209,7 @@ pub fn expand_outer_origin(
system(#system_path::Origin<#runtime>),
#caller_variants
#[allow(dead_code)]
#[codec(skip)]
Void(#scrate::__private::Void)
Copy link
Contributor

Choose a reason for hiding this comment

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

For context: The void type can't be instantiated, it can't be decoded as well. So skipping the variant keeps the same behavior.

@serban300 serban300 enabled auto-merge February 4, 2025 11:42
@serban300 serban300 added this pull request to the merge queue Feb 4, 2025
Merged via the queue into paritytech:master with commit 37446fc Feb 4, 2025
208 of 212 checks passed
@serban300 serban300 deleted the small_fixes branch February 4, 2025 12:48
@serban300 serban300 added the A4-needs-backport Pull request must be backported to all maintained releases. label Feb 5, 2025
@paritytech-cmd-bot-polkadot-sdk

Created backport PR for stable2407:

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

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

@paritytech-cmd-bot-polkadot-sdk

Created backport PR for stable2409:

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

git fetch origin backport-7446-to-stable2409
git worktree add --checkout .worktree/backport-7446-to-stable2409 backport-7446-to-stable2409
cd .worktree/backport-7446-to-stable2409
git reset --hard HEAD^
git cherry-pick -x 37446fcbb05150cd304fde157f87e9004f203403
git push --force-with-lease

github-actions bot pushed a commit that referenced this pull request Feb 5, 2025
Related to #7400 and
#7417

We need this in order to be able to update `parity-scale-codec` to the
latest version after it's released. That's because `parity-scale-codec`
added support for checking for duplicate indexes at compile time.

(cherry picked from commit 37446fc)
@paritytech-cmd-bot-polkadot-sdk

Successfully created backport PR for stable2412:

@serban300 serban300 had a problem deploying to subsystem-benchmarks February 5, 2025 09:16 — with GitHub Actions Failure
EgorPopelyaev pushed a commit that referenced this pull request Feb 5, 2025
Backport #7446 into `stable2409` from serban300.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Serban Iorga <serban@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
EgorPopelyaev pushed a commit that referenced this pull request Feb 5, 2025
Backport #7446 into `stable2407` from serban300.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Serban Iorga <serban@parity.io>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
EgorPopelyaev pushed a commit that referenced this pull request Feb 5, 2025
Backport #7446 into `stable2412` from serban300.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

---------

Co-authored-by: Serban Iorga <serban@parity.io>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A4-needs-backport Pull request must be backported to all maintained releases. I2-bug The node fails to follow expected behavior. R0-silent Changes should not be mentioned in any release notes T10-tests This PR/Issue is related to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants