You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR introduces an extra optional argument, extra_dependencies, which can be used to work around this situation. Its purpose is defining extra dependencies which are higher up in the Companion Build System's dependency chain, e.g. Substrate in the Substrate -> Polkadot -> Cumulus dependency chain for the Polkadot -> Cumulus check. This should fix situations such as https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/1497187#L142 since the crate would not be missing
I don't know if this deprecates the need for CARGO_UPDATE_CRATES in Polkadot. sp-io is part of Substrate which we'd be patching in entirely, so there's no need to update sp-io individually, but I don't understand why polkadot-runtime-common is needed there.
I think we'll be able to remove update_crates in favor of this extra_dependencies because I infer they're trying to solve the same corner case. My only doubt about this is related to polkadot-runtime-common: I don't understand why it's necessary in the Polkadot -> Cumulus check since polkadot-runtime-common is a Polkadot package which should already be available in the Polkadot PR. Can't we get rid of this in favor of extra_dependencies: substrate, since it'll patch the whole master of Substrate into the PR anyways?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/1497187#L142 failed because the Cumulus companion of paritytech/polkadot#5276 was not yet updated to reference the master of Substrate, which had been merged earlier in the chain of dependencies (paritytech/substrate#11183). This was solved in paritytech/cumulus#1161 by updating the Substrate reference manually: paritytech/cumulus@80bddd7.
This PR introduces an extra optional argument,
extra_dependencies, which can be used to work around this situation. Its purpose is defining extra dependencies which are higher up in the Companion Build System's dependency chain, e.g. Substrate in theSubstrate -> Polkadot -> Cumulusdependency chain for thePolkadot -> Cumuluscheck. This should fix situations such as https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/1497187#L142 since the crate would not be missingWe'd need to add it to Polkadot here: https://github.com/paritytech/polkadot/blob/c8c1933e01d0b9e91058bc64f153450857d568f4/.gitlab-ci.yml#L344
.check-dependent-project: &check-dependent-project stage: stage2 # this is an artificial job dependency, for pipeline optimization using GitLab's DAGs needs: - job: check-runtime artifacts: false <<: *docker-env <<: *test-pr-refs script: - git clone --depth=1 "--branch=$PIPELINE_SCRIPTS_TAG" https://github.com/paritytech/pipeline-scripts - ./pipeline-scripts/check_dependent_project.sh paritytech polkadot --polkadot "$DEPENDENT_REPO" "$GITHUB_PR_TOKEN" "$CARGO_UPDATE_CRATES" + "$EXTRA_DEPENDENCIES" check-dependent-cumulus: <<: *check-dependent-project variables: DEPENDENT_REPO: cumulus CARGO_UPDATE_CRATES: "sp-io polkadot-runtime-common" + EXTRA_DEPENDENCIES: substrateI don't know if this deprecates the need for
CARGO_UPDATE_CRATESin Polkadot.sp-iois part of Substrate which we'd be patching in entirely, so there's no need to updatesp-ioindividually, but I don't understand whypolkadot-runtime-commonis needed there.