Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

gui1117
Copy link
Contributor

@gui1117 gui1117 commented Jan 28, 2021

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Jan 28, 2021
@gui1117 gui1117 added the C1-low PR touches the given topic and has a low impact on builders. label Jan 28, 2021
@gui1117 gui1117 added the A4-companion A PR that needs a companion PR to merge in parallel for one of its downstream dependencies. label Jan 28, 2021
@gui1117 gui1117 changed the title Upgrade codec to 2.0 and bitvec to 0.20 Upgrade codec to 2.0 and bitvec to 0.20 (companion) Jan 28, 2021
Copy link

@ordian ordian left a comment

Choose a reason for hiding this comment

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

👍

@ordian
Copy link

ordian commented Jan 28, 2021

(please merge master)

@ordian ordian added the B0-silent Changes should not be mentioned in any release notes label Jan 28, 2021

polkadot-subsystem = { package = "polkadot-node-subsystem", path = "../../subsystem" }
polkadot-overseer = { path = "../../overseer" }
polkadot-primitives = { path = "../../../primitives" }
polkadot-node-primitives = { path = "../../primitives" }
bitvec = "0.17.4"
bitvec = "0.20.1"
Copy link

Choose a reason for hiding this comment

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

I wonder whether we only need

bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] }

as in other places. otherwise cargo will end up using the default features everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess those crate are only compiled with std

Copy link

Choose a reason for hiding this comment

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

You're right that the runtime crates are built with wasm-builder and hence do no suffer from the feature leak in a workspace. This also wasn't introduced by this PR.

However, I think we should not unnecessarily import features we do not use here and just keep it to the bare minimum. We do this for other std crates like provisioner and backing, but not here in av-store.

Copy link

@ordian ordian left a comment

Choose a reason for hiding this comment

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

please merge master again


polkadot-subsystem = { package = "polkadot-node-subsystem", path = "../../subsystem" }
polkadot-overseer = { path = "../../overseer" }
polkadot-primitives = { path = "../../../primitives" }
polkadot-node-primitives = { path = "../../primitives" }
bitvec = "0.17.4"
bitvec = "0.20.1"
Copy link

Choose a reason for hiding this comment

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

You're right that the runtime crates are built with wasm-builder and hence do no suffer from the feature leak in a workspace. This also wasn't introduced by this PR.

However, I think we should not unnecessarily import features we do not use here and just keep it to the bare minimum. We do this for other std crates like provisioner and backing, but not here in av-store.

@ghost
Copy link

ghost commented Jan 29, 2021

Waiting for commit status.

@gui1117
Copy link
Contributor Author

gui1117 commented Jan 29, 2021

bot merge

@ghost
Copy link

ghost commented Jan 29, 2021

Missing process info; check that the PR belongs to a project column.

Merge can be attempted if:

  • The PR has approval from two core-devs (or one if the PR is labelled insubstantial).
  • The PR has approval from a member of substrateteamleads.
  • The PR is attached to a project column and has approval from the project owner.

See https://github.com/paritytech/parity-processbot#faq

@gui1117
Copy link
Contributor Author

gui1117 commented Jan 29, 2021

bot merge

@ghost
Copy link

ghost commented Jan 29, 2021

Waiting for commit status.

@ghost
Copy link

ghost commented Jan 29, 2021

Checks failed; merge aborted.

@cecton
Copy link
Contributor

cecton commented Jan 29, 2021

bot merge

@ghost
Copy link

ghost commented Jan 29, 2021

Waiting for commit status.

@ghost
Copy link

ghost commented Jan 29, 2021

Checks failed; merge aborted.

@ordian ordian merged commit 71a528e into master Jan 29, 2021
@ordian ordian deleted the gui-upgrade-codec branch January 29, 2021 13:35
ordian pushed a commit that referenced this pull request Jan 29, 2021
* master:
  Upgrade codec to 2.0 and bitvec to 0.20 (companion) (#2343)
  Companion PR for #7951 (#2336)
  Companion PR for 7934 (#2348)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. A4-companion A PR that needs a companion PR to merge in parallel for one of its downstream dependencies. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants