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

Filter workspace dependencies in the templates #4599

Merged
merged 6 commits into from
May 28, 2024

Conversation

rzadp
Copy link
Contributor

@rzadp rzadp commented May 27, 2024

This detaches the templates from monorepo's workspace dependencies.

Currently the templates re-use the monorepo's dependencies, most of which are not needed.

The simplest approach is to specify versions directly and not use workspace dependencies in the templates.

Another approach would be to programmatically filter dependencies that are actually needed - but not sure if it's worth it, given that it would complicate the synchronization job.

cc @kianenigma @gupnik

@rzadp rzadp requested review from a team as code owners May 27, 2024 12:08
@rzadp rzadp added the R0-silent Changes should not be mentioned in any release notes label May 27, 2024
@paritytech-review-bot paritytech-review-bot bot requested a review from a team May 27, 2024 12:54
@bkchr
Copy link
Member

bkchr commented May 27, 2024

Another approach would be to programmatically filter dependencies that are actually needed - but not sure if it's worth it, given that it would complicate the synchronization job.

Yes please do this. Using workspace dependencies is that much easier for the user etc.

@rzadp rzadp marked this pull request as draft May 27, 2024 15:14
@rzadp rzadp changed the title Remove workspace dependencies from templates [WIP] Remove workspace dependencies from templates May 27, 2024
@rzadp
Copy link
Contributor Author

rzadp commented May 27, 2024

Yes please do this. Using workspace dependencies is that much easier for the user etc.

Ok, turned the PR into a draft and will look into it.

@rzadp rzadp changed the title [WIP] Remove workspace dependencies from templates Remove workspace dependencies from templates May 28, 2024
@rzadp rzadp marked this pull request as ready for review May 28, 2024 14:20
@rzadp
Copy link
Contributor Author

rzadp commented May 28, 2024

Done - we keep the workspace dependencies, copying over only the ones that are actually used.
Results can be seen here in staging: 1, 2, 3.

@rzadp rzadp requested a review from bkchr May 28, 2024 14:21
@paritytech-cicd-pr
Copy link

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

@rzadp rzadp changed the title Remove workspace dependencies from templates Filter workspace dependencies in the templates May 28, 2024
@rzadp rzadp added this pull request to the merge queue May 28, 2024
Merged via the queue into master with commit d6cf147 May 28, 2024
153 of 156 checks passed
@rzadp rzadp deleted the rzadp/templates-remove-workspace-deps branch May 28, 2024 18:22
ordian added a commit that referenced this pull request May 30, 2024
* master: (93 commits)
  Fix broken windows build (#4636)
  Beefy client generic on aduthority Id (#1816)
  pallet-staking: Put tests behind `cfg(debug_assertions)` (#4620)
  Broker new price adapter (#4521)
  Change `XcmDryRunApi::dry_run_extrinsic` to take a call instead (#4621)
  Update README.md (#4623)
  Publish `chain-spec-builder` (#4518)
  Add omni bencher & chain-spec-builder bins to release (#4557)
  Moves runtime macro out of experimental flag (#4249)
  Filter workspace dependencies in the templates (#4599)
  parachain-inherent: Make `para_id` more prominent (#4555)
  Add metric to measure the time it takes to gather enough assignments (#4587)
  Improve On_demand_assigner events (#4339)
  Conditional `required` checks (#4544)
  [CI] Deny adding git deps (#4572)
  [subsytem-bench] Remove redundant banchmark_name param (#4540)
  Add availability-recovery from systematic chunks (#1644)
  Remove workspace lints from templates (#4598)
  `sc-chain-spec`: deprecated code removed (#4410)
  [subsystem-benchmarks] Add statement-distribution benchmarks (#3863)
  ...
hitchhooker pushed a commit to ibp-network/polkadot-sdk that referenced this pull request Jun 5, 2024
This detaches the templates from monorepo's workspace dependencies.

Currently the templates [re-use the monorepo's
dependencies](https://github.com/paritytech/polkadot-sdk-minimal-template/blob/bd8afe66ec566d61f36b0e3d731145741a9e9e19/Cargo.toml#L45-L58),
most of which are not needed.

The simplest approach is to specify versions directly and not use
workspace dependencies in the templates.

Another approach would be to programmatically filter dependencies that
are actually needed - but not sure if it's worth it, given that it would
complicate the synchronization job.

cc @kianenigma @gupnik
TarekkMA pushed a commit to moonbeam-foundation/polkadot-sdk that referenced this pull request Aug 2, 2024
This detaches the templates from monorepo's workspace dependencies.

Currently the templates [re-use the monorepo's
dependencies](https://github.com/paritytech/polkadot-sdk-minimal-template/blob/bd8afe66ec566d61f36b0e3d731145741a9e9e19/Cargo.toml#L45-L58),
most of which are not needed.

The simplest approach is to specify versions directly and not use
workspace dependencies in the templates.

Another approach would be to programmatically filter dependencies that
are actually needed - but not sure if it's worth it, given that it would
complicate the synchronization job.

cc @kianenigma @gupnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants