Comments (8)
That makes sense. I wonder if the PR approval model is the best way, or whether we should move to an explicit approval of the check using an action button (which is a relatively new feature for GitHub Apps, that's why it wasn't considered before)
wdyt?
from amp-github-apps.
I like being able to approve a PR with a general PR approval, though. Would this require me to hit a second button?
from amp-github-apps.
It would (from the PR you'd have to click the Details
link on the check, and then the Approve
link). So you prefer the current approach
from amp-github-apps.
Hmm... the problem with re-running the check to verify the approvals is that it can't tell these two scenarios apart:
- bundle-size approval is required → PR is approved → some error causes the approval not to be registered
- bundle-size approval is required → PR is approved → commit is pushed → bundle-size approval is required again
from amp-github-apps.
One advantage of separating general PR approval from size-increase approval is that a reviewer who happens to be a bundle-size owner a review a PR without inadvertently allowing the size increase to sneak through. I'll defer to @danielrozenberg's judgement on this, since he's more aware of the corner cases.
While on the topic of approvals, I'd like to make a case for #141, which proposes that we switch the size increase approvers from a hard-coded list to the runtime working group. WDYT?
from amp-github-apps.
Shouldn't it be checking the order of commits/approval?
from amp-github-apps.
I'll have to check whether the API supports that, but it does complicate the app's code 1,000× >__>
from amp-github-apps.
We discussed this offline in the infra team and came to agree that fixing this is not worth the effort, given the rarity of the root cause (GitHub API/webhook failures) - the easiest solution in those cases is to rebase the last commit or close/reopen the PR. I'm going to close this issue as a won't-fix
from amp-github-apps.
Related Issues (20)
- Migrate TypeScript ESLint rules to use new "naming-convention" rule
- Update PR deploy internals to work on CircleCI HOT 1
- Update test status reporting internals to work on CircleCI
- Update bundle-size internals to work on CircleCI
- Update test case reporting internals to work on CircleCI
- Update project metrics internals to work on CircleCI
- Add dist.3p/current-min/vendor/*.js to bundle size check
- Rename the default branch of this repo to `main` HOT 1
- [owners] Add a mechanism to recognize specific bot accounts as legitimate reviewers HOT 4
- Owners Bot: Comments during Draft PRs leads to noise HOT 1
- Dependency Dashboard
- [release calendar] Clicking on any white box next to a release channel makes all calendar info disappear HOT 1
- [release calendar] Pop-up with additional releases sometimes gets cut off
- [release calendar] Pop-up with release info sometimes appears outside the viewport
- [release calendar] Make release calendar accessible from amp.dev
- Add a link in release tool
- [release calendar] Write unit tests
- FR: Approval should not clobber sizes
- Action Required: Fix Renovate Configuration
- This is amezing.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amp-github-apps.