-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PRCR - temporary disabled Audit rule #1239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think only this part can be commented:
- min_approvals: 1
teams:
- srlabs
In this case it will require 2 distinct approvals from locks-review
and polkadot-review
teams for changes in paths:
- polkadot/runtime/(kusama|polkadot|common)/*
- polkadot/primitives/src/*.rs
- substrate/primitives/*
- substrate/frame/*
Excluding md files and weights.
@bkchr wdyt?
Neither |
How important is to have a review from |
.github/pr-custom-review.yml
Outdated
# - name: Audit rules | ||
# check_type: changed_files | ||
# condition: | ||
# include: ^polkadot/runtime\/(kusama|polkadot|common)\/.*|^polkadot/primitives/src\/.+\.rs$|^substrate/primitives/.*|^substrate/frame/.* | ||
# exclude: ^polkadot/runtime\/(kusama|polkadot)\/src\/weights\/.+\.rs$|^substrate\/frame\/.+\.md$ | ||
# all_distinct: | ||
# - min_approvals: 1 | ||
# teams: | ||
# - locks-review | ||
# - min_approvals: 1 | ||
# teams: | ||
# - polkadot-review | ||
# - min_approvals: 1 | ||
# teams: | ||
# - srlabs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I change this code to be this then?
# - name: Audit rules | |
# check_type: changed_files | |
# condition: | |
# include: ^polkadot/runtime\/(kusama|polkadot|common)\/.*|^polkadot/primitives/src\/.+\.rs$|^substrate/primitives/.*|^substrate/frame/.* | |
# exclude: ^polkadot/runtime\/(kusama|polkadot)\/src\/weights\/.+\.rs$|^substrate\/frame\/.+\.md$ | |
# all_distinct: | |
# - min_approvals: 1 | |
# teams: | |
# - locks-review | |
# - min_approvals: 1 | |
# teams: | |
# - polkadot-review | |
# - min_approvals: 1 | |
# teams: | |
# - srlabs | |
- name: Audit rules | |
check_type: changed_files | |
condition: | |
include: ^polkadot/runtime\/(kusama|polkadot|common)\/.*|^polkadot/primitives/src\/.+\.rs$|^substrate/primitives/.*|^substrate/frame/.* | |
exclude: ^polkadot/runtime\/(kusama|polkadot)\/src\/weights\/.+\.rs$|^substrate\/frame\/.+\.md$ | |
all_distinct: | |
- min_approvals: 1 | |
teams: | |
- locks-review | |
# - min_approvals: 1 | |
# teams: | |
# - polkadot-review | |
# - min_approvals: 1 | |
# teams: | |
# - srlabs |
@Bullrich what is blocking this? |
After discussing it in the PR this was the agreed solution
I updated the PR to remove frame and only have the |
.github/pr-custom-review.yml
Outdated
- min_approvals: 1 | ||
teams: | ||
- srlabs | ||
include: ^polkadot/runtime\/(kusama|polkadot|common)\/.*|^polkadot/primitives/src\/.+\.rs$|^substrate/primitives/.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still wrong... locks-review
was about protecting
🔒 🔒 🔒
line of code
🔒 🔒 🔒
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What team should I set here?
So, we probably should only keep locks-review and they can operate on the entire code base for when "locked" code is changed.
We have miss interpreted your message, I thought you referred to using the lock-teams
.
Should I simply remove this rule?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well it just moved and merged all together from 3 repos + mixed with requirements from paritytech/pr-custom-review#136, there's high chance that it could be done better
Lets revisit these pr-cr settings in scope of monorepo holistically
so in order to implement properly paritytech/pr-custom-review#136 this task, with post-actions like adding a project etc we will need to wait until https://github.com/paritytech/review-bot/milestone/1 is done and we can integrate it here with all new rules
before it's done i think this whole condition from paritytech/pr-custom-review#136 could be removed for now, and keep only the old polkadot one https://github.com/paritytech/polkadot/blob/master/.github/pr-custom-review.yml#L10-L11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just remove the rules here entirely for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bkchr you mean all PRCR rules or only Audit?
if all - why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment just to trigger PRCR again
@the-right-joyce has requested to disable the Audit rule until we can fix the problem that it always request reviewers (even if the user belongs to the `prevent-review-request` field.
@the-right-joyce has requested to disable the Audit rule until we can fix the problem that it always request reviewers (even if the user belongs to the `prevent-review-request` field.
* Enable off-chain indexing for Rialto & Millau nodes * cargo fmt --all * cargo +nightly fmt --all * fmt is weird.
@the-right-joyce has requested to disable the Audit rule until we can fix the problem that it always request reviewers (even if the user belongs to the
prevent-review-request
field.