polkadot icon indicating copy to clipboard operation
polkadot copied to clipboard

[ci] Run check-runtime only for PRs

Open alvicsam opened this issue 3 years ago • 8 comments

Close https://github.com/paritytech/ci_cd/issues/538

alvicsam avatar Aug 04 '22 09:08 alvicsam

Run check-runtime only for PRs

The issue is about running it only for (PRs to) release branches.

ordian avatar Aug 04 '22 10:08 ordian

The issue is about running it only for (PRs to) release branches

Good catch, thank you. I added rule release-v* and keep rule for PR because we can't distinguish difference between PR into master or into other branch in gitlab

alvicsam avatar Aug 04 '22 10:08 alvicsam

The issue is about running it only for (PRs to) release branches

Good catch, thank you. I added rule release-v* and keep rule for PR because we can't distinguish difference between PR into master or into other branch in gitlab

~~Can we use something like CI_MERGE_REQUEST_TARGET_BRANCH_NAME?~~ The purpose of the issue is to remove this check for PRs into master (on github) and currently this PR doesn't do it.

ordian avatar Aug 04 '22 10:08 ordian

Hm, the issue has this text:

It would be good to keep this check but remove it from master and ensure it runs in the release branches

The PR removes the check-runtime from master and runs it on release branches.

@ordian you mentioned that it also should run in PRs to release branches. We mirror Github branches to Gitlab with custom solution and all PRs are mirrored as branches with PR number. So currently there is no way to run the check-runtime job only for PRs into release branches. I can either disable it for PRs at all or keep for all PRs.

alvicsam avatar Aug 04 '22 11:08 alvicsam

Well, if we can't distinguish between PRs to master or a release branch, not sure if this check is useful at all. IIRC, it was introduced so that we bump the spec version when needed, but only when needed on master. But now we have a release process that bumps the version on every release. So what value does this check bring? Maybe we should remove it? @bkchr

ordian avatar Aug 04 '22 11:08 ordian

Maybe we should remove it?

From my side we can remove it. I mean there should be no need anymore

bkchr avatar Aug 04 '22 11:08 bkchr

@chevdor wdyt? do you need it for release-v* branches?

alvicsam avatar Aug 04 '22 12:08 alvicsam

@chevdor wdyt? do you need it for release-v* branches?

any release branch yes

chevdor avatar Aug 05 '22 12:08 chevdor