Skip to content

Conversation

@bkchr
Copy link
Member

@bkchr bkchr commented Dec 2, 2021

This should fix the problem we are seeing with Cumulus companions not
building, because we have merged a non-breaking pr to Polkadot.

We first need to merge the pipeline scripts pr, tag new release
And then update both of the prs
It doesn't yet solve the "breaks code in polkadot + cumulus" case. It is doable, but the current script (all this bash 🤮) requires a rewrite for this

bkchr added 2 commits December 2, 2021 14:12
This should fix the problem we are seeing with Cumulus companions not
building, because we have merged a non-breaking pr to Polkadot.
@gui1117
Copy link

gui1117 commented Dec 3, 2021

but does this fix the issue where a substrate PR has both a cumulus and a polkadot companion ?

AFAICT it will still only run diener ... --substrate in the cumulus check and I would expect to run both diener .. --substrate and diener --polkadot.
Otherwise the change in the polkadot companion will not be included no ?

Sorry, what I thought is just not part of this PR

Copy link

@gui1117 gui1117 left a comment

Choose a reason for hiding this comment

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

seems good to me

#
# This is for example needed if there was a pr to Substrate that only required a Polkadot companion
# and Cumulus wasn't yet updated to use the latest commit of Polkadot.
for update in $update_crates_on_default_branch; do
Copy link
Contributor

Choose a reason for hiding this comment

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

Why it needs to be run 2 times here and in patch_and_check_dependent()?

Copy link
Member Author

Choose a reason for hiding this comment

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

These are 2 different code paths.

Copy link
Contributor

Choose a reason for hiding this comment

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

same question, but it's not a big deal to run cargo update 2 times, worst case nothing happens

Copy link
Member Author

Choose a reason for hiding this comment

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

These are different code paths. Both are not called together.

@bkchr bkchr merged commit 2718955 into master Dec 3, 2021
#
# This is for example needed if there was a pr to Substrate that only required a Polkadot companion
# and Cumulus wasn't yet updated to use the latest commit of Polkadot.
for update in $update_crates_on_default_branch; do
Copy link
Contributor

Choose a reason for hiding this comment

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

same question, but it's not a big deal to run cargo update 2 times, worst case nothing happens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants