Skip to content
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

Add advice on code review for this repo #4698

Merged
merged 2 commits into from
Aug 16, 2023
Merged

Add advice on code review for this repo #4698

merged 2 commits into from
Aug 16, 2023

Conversation

Hixie
Copy link
Contributor

@Hixie Hixie commented Aug 14, 2023

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

@Hixie Hixie requested a review from stuartmorgan August 14, 2023 21:15
Copy link
Contributor

@tarrinneal tarrinneal left a comment

Choose a reason for hiding this comment

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

I think this is fine. Waiting for @stuartmorgan is probably still a decent idea though.

CONTRIBUTING.md Outdated

Each package has a code owner (specified in
[CODEOWNERS](https://github.com/flutter/packages/blob/main/CODEOWNERS));
PRs will automatically be assigned to the appropriate code owners for review.
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to say this? People contributing PRs don't generally need to know how reviews are assigned, only that it happens (which it will).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't have to, it's just nice for people like me to know how it's done. I mean, it's not a secret right? Is there harm in documenting it?

Copy link
Contributor

Choose a reason for hiding this comment

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

The only harm is my concern about the overall length of the combined sum of all of our contributing docs. Each individual line seems harmless, but it's death by a thousand cuts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair.

CONTRIBUTING.md Outdated
Each package has a code owner (specified in
[CODEOWNERS](https://github.com/flutter/packages/blob/main/CODEOWNERS));
PRs will automatically be assigned to the appropriate code owners for review.
Review is expected within a week or two (but preferred much quicker than that!).
Copy link
Contributor

Choose a reason for hiding this comment

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

This is redundant with https://github.com/flutter/flutter/wiki/Tree-hygiene (including the tl;dr at the top) which is part of the contributing guide we already point to. I would prefer to avoid redundant docs, especially given that I think the biggest problem our contributing docs have is that they are incredibly long.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I mean, all I really need here is lines 28-31 but it will look mighty silly if that's the only text here.

Copy link
Contributor

Choose a reason for hiding this comment

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

How about we collapse these first two paragraphs to just:

PRs will automatically be assigned to [code owners](https://github.com/flutter/packages/blob/main/CODEOWNERS) for review. If a code owner is creating a PR, they should explicitly pick a
[Flutter team member](https://github.com/flutter/flutter/wiki/Contributor-access)
as a code reviewer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated, PTAL

Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

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

LGTM

@Hixie Hixie added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 16, 2023
@auto-submit auto-submit bot merged commit 3b602e7 into main Aug 16, 2023
@auto-submit auto-submit bot deleted the Hixie-patch-1 branch August 16, 2023 18:40
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 17, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Aug 17, 2023
flutter/packages@9bf208f...3b602e7

2023-08-16 [email protected] Add advice on code review for this repo (flutter/packages#4698)
2023-08-16 [email protected] [platform] Import the `platform` package (flutter/packages#4613)
2023-08-16 [email protected] Roll Flutter from f0e7c51 to 2502b51 (15 revisions) (flutter/packages#4722)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants