Take into account extra dependencies higher up in the dependency chain #31
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.