Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Adds githooks that reminds to run gclient sync -D #51156

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

zanderso
Copy link
Member

@zanderso zanderso commented Mar 3, 2024

This PR adds githooks for post-checkout, post-merge, pre-rebase that remind to run gclient sync -D. This is probably going to print the reminder too much. The pre-rebase hook runs before a git pull --rebase that is actually going to update something, but the other hooks may be needed to cover other workflows. The printed message will also include the hook that it comes from, so we can remove the message from hooks where it doesn't make sense.

Screenshot 2024-03-04 at 18 36 15

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@zanderso zanderso force-pushed the post-merge-hook branch 2 times, most recently from e667402 to 8d3e86b Compare March 4, 2024 15:13
Copy link
Member

@loic-sharma loic-sharma left a comment

Choose a reason for hiding this comment

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

Nice!

@zanderso
Copy link
Member Author

zanderso commented Mar 4, 2024

This change needs a little extra code to support git pull --rebase.

@zanderso zanderso changed the title Adds a post-merge githook that reminds to run gclient sync -D Adds githooks that reminds to run gclient sync -D Mar 4, 2024
@zanderso zanderso merged commit bdc5613 into flutter:main Mar 5, 2024
@zanderso zanderso deleted the post-merge-hook branch March 5, 2024 18:23
final String postfix = io.stdout.supportsAnsiEscapes ? _reset : '';
io.stderr.writeln('$command: The engine source tree has been updated.');
io.stderr.writeln(
'\n${prefix}You man need to run "gclient sync -D"$postfix\n',
Copy link
Contributor

@dkwingsmt dkwingsmt Mar 5, 2024

Choose a reason for hiding this comment

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

Typo?

    '\n${prefix}You may need to run "gclient sync -D"$postfix\n',

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 5, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 5, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Mar 5, 2024
…144639)

flutter/engine@3e8b0de...49bc157

2024-03-05 [email protected] Fix typo in githook message (flutter/engine#51205)
2024-03-05 [email protected] Roll Skia from 453cb0d04584 to 875b356e4d96 (2 revisions) (flutter/engine#51202)
2024-03-05 [email protected] Add device selection to `et run` (flutter/engine#51184)
2024-03-05 [email protected] Roll Skia from de108a9c8b54 to 453cb0d04584 (2 revisions) (flutter/engine#51201)
2024-03-05 [email protected] Adds githooks that reminds to run `gclient sync -D` (flutter/engine#51156)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-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://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
auto-submit bot pushed a commit that referenced this pull request Mar 5, 2024
Windows does not pre-install python3. Previously Windows users would just use Python from depot tools, but this was broken by #51156.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants