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

[CI] check_runtime.sh redux #1390

Merged
merged 7 commits into from Jul 15, 2020
Merged

[CI] check_runtime.sh redux #1390

merged 7 commits into from Jul 15, 2020

Conversation

s3krit
Copy link
Contributor

@s3krit s3krit commented Jul 10, 2020

This PR aims to redo check_runtime.sh to better support multiple runtimes. It defines a list of runtimes (currently kusama, polkadot and westend).

Outline of the new logic:

  • If no changes detected to any of the runtimes (runtime/$runtime/*) or runtime/common/*, then look for any changes to Substrate between the last tag and the current commit. If any of them are labelled D1-breaksapi, then give this PR the same label. Then exit.
  • If there have been any changes to a runtime (or common) since the last release, but the spec_version or impl_version have not been bumped for that specific runtime since the last release, the test will fail and block merging the PR.
  • If there has been a change to a specific runtime (or common) since the last commit to master, label the PR with D2-breaksapi

ref https://github.com/paritytech/devops/issues/557

@s3krit s3krit added 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. labels Jul 10, 2020
@github-actions github-actions bot added the A3-in_progress Pull request is in progress. No review needed at this stage. label Jul 10, 2020
@s3krit s3krit marked this pull request as ready for review July 10, 2020 16:15
@github-actions github-actions bot added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Jul 10, 2020
@rphmeier
Copy link
Contributor

Most parachains-related code is within a separate folder runtime/parachains which will be linked to by common. We might want a list for common src directories to avoid pressure to integrate everything into the common crate.

Copy link
Member

@gabreal gabreal left a comment

Choose a reason for hiding this comment

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

lgtm, with comments.

@@ -13,77 +13,75 @@
# runtime/{polkadot,kusama}/src/lib.rs file
Copy link
Member

Choose a reason for hiding this comment

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

needs updating

scripts/gitlab/check_runtime.sh Outdated Show resolved Hide resolved
scripts/gitlab/check_runtime.sh Outdated Show resolved Hide resolved

# Pretty-printing functions
boldprint () { printf "|\n| \033[1m%s\033[0m\n|\n" "${@}"; }
boldcat () { printf "|\n"; while read -r l; do printf "| \033[1m%s\033[0m\n" "${l}"; done; printf "|\n" ; }
Copy link
Member

Choose a reason for hiding this comment

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

nice finally made it into the lib :)

scripts/gitlab/check_runtime.sh Show resolved Hide resolved
@s3krit
Copy link
Contributor Author

s3krit commented Jul 13, 2020

Most parachains-related code is within a separate folder runtime/parachains which will be linked to by common. We might want a list for common src directories to avoid pressure to integrate everything into the common crate.

Hmm good point, will add that in, cheers

@s3krit
Copy link
Contributor Author

s3krit commented Jul 14, 2020

@rphmeier requested changes implemented :) As soon as you give this a thumbs up I'll merge.

Copy link
Contributor

@TriplEight TriplEight left a comment

Choose a reason for hiding this comment

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

LvGTM

@rphmeier
Copy link
Contributor

Thanks!

@rphmeier rphmeier merged commit 756b438 into master Jul 15, 2020
@rphmeier rphmeier deleted the mp-check-runtimes-redux branch July 15, 2020 17:35
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. 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.

None yet

4 participants