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

Clearer text about what happens with --disable-telemetry + enable-telemetry command #125995

Merged

Conversation

eliasyishak
Copy link
Contributor

@eliasyishak eliasyishak commented May 3, 2023

Fixes:

This PR is cleaning up the --disable-telemetry help message to make it clear that opting out will opt out of all telemetry collection for flutter and dart commands. It is also adding the opposite flag --enable-telemetry which will enable telemetry collection

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 Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • 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.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label May 3, 2023
Comment on lines -320 to -324
final Usage legacyAnalytics = TestUsage();
setUp(() {
legacyAnalytics.enabled = false;
});

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wasn't being used anywhere in the tests, removing

@eliasyishak eliasyishak marked this pull request as ready for review May 4, 2023 17:07
Comment on lines +68 to +72
throwToolExit(
'Both enable and disable telemetry commands were detected '
'when only one can be supplied per invocation.',
exitCode: 1);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is an exit code of 1 appropriate for this exit code? @gspencergoog

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I think so. Anything non-zero would work.

@eliasyishak
Copy link
Contributor Author

@gspencergoog friendly ping, does this look good to go?

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

@eliasyishak eliasyishak added the autosubmit Merge PR when tree becomes green via auto submit App label May 8, 2023
@auto-submit auto-submit bot merged commit 0d58752 into flutter:master May 8, 2023
122 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 8, 2023
auto-submit bot pushed a commit to flutter/packages that referenced this pull request May 8, 2023
flutter/flutter@43ac23b...4ed1c92

2023-05-08 engine-flutter-autoroll@skia.org Roll Flutter Engine from c42dd23e29f6 to a8e9ac63fd95 (1 revision) (flutter/flutter#126265)
2023-05-08 42216813+eliasyishak@users.noreply.github.com Clearer text about what happens with `--disable-telemetry` + enable-telemetry command (flutter/flutter#125995)
2023-05-08 engine-flutter-autoroll@skia.org Roll Flutter Engine from 23f730efbff7 to c42dd23e29f6 (13 revisions) (flutter/flutter#126262)
2023-05-08 goderbauer@google.com Fix leaks (flutter/flutter#126144)
2023-05-08 6655696+guidezpl@users.noreply.github.com Update packages (flutter/flutter#126140)
2023-05-06 pateltirth454@gmail.com [ExpansionPanelList] add materialGapSize property in ExpansionPanelList Widget (flutter/flutter#123971)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from eedcee66a710 to 23f730efbff7 (1 revision) (flutter/flutter#126199)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 393b5649e7b4 to eedcee66a710 (1 revision) (flutter/flutter#126198)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 876968833e46 to 393b5649e7b4 (1 revision) (flutter/flutter#126195)
2023-05-06 linxunfeng@yeah.net [ios] fix hold and drag spacebar does not move cursor when obscureTex� (flutter/flutter#122383)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from d9116d94a111 to 876968833e46 (1 revision) (flutter/flutter#126192)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 332f53219c4c to d9116d94a111 (1 revision) (flutter/flutter#126190)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from b7c79b41b9d4 to 332f53219c4c (3 revisions) (flutter/flutter#126188)
2023-05-06 github@alexv525.com � Add `rect` argument to `_ArcPaintPredicate` for tests (flutter/flutter#125953)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 758cbadfac1f to b7c79b41b9d4 (4 revisions) (flutter/flutter#126187)
2023-05-06 737941+loic-sharma@users.noreply.github.com Add Windows and Linux support to the 'layers' example (flutter/flutter#126105)

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
Please CC camillesimon@google.com,rmistry@google.com,stuartmorgan@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: 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
@eliasyishak eliasyishak deleted the 124411-disable-telemetry-refinements branch May 8, 2023 17:06
nploi pushed a commit to nploi/packages that referenced this pull request Jul 16, 2023
…r#3942)

flutter/flutter@43ac23b...4ed1c92

2023-05-08 engine-flutter-autoroll@skia.org Roll Flutter Engine from c42dd23e29f6 to a8e9ac63fd95 (1 revision) (flutter/flutter#126265)
2023-05-08 42216813+eliasyishak@users.noreply.github.com Clearer text about what happens with `--disable-telemetry` + enable-telemetry command (flutter/flutter#125995)
2023-05-08 engine-flutter-autoroll@skia.org Roll Flutter Engine from 23f730efbff7 to c42dd23e29f6 (13 revisions) (flutter/flutter#126262)
2023-05-08 goderbauer@google.com Fix leaks (flutter/flutter#126144)
2023-05-08 6655696+guidezpl@users.noreply.github.com Update packages (flutter/flutter#126140)
2023-05-06 pateltirth454@gmail.com [ExpansionPanelList] add materialGapSize property in ExpansionPanelList Widget (flutter/flutter#123971)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from eedcee66a710 to 23f730efbff7 (1 revision) (flutter/flutter#126199)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 393b5649e7b4 to eedcee66a710 (1 revision) (flutter/flutter#126198)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 876968833e46 to 393b5649e7b4 (1 revision) (flutter/flutter#126195)
2023-05-06 linxunfeng@yeah.net [ios] fix hold and drag spacebar does not move cursor when obscureTex� (flutter/flutter#122383)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from d9116d94a111 to 876968833e46 (1 revision) (flutter/flutter#126192)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 332f53219c4c to d9116d94a111 (1 revision) (flutter/flutter#126190)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from b7c79b41b9d4 to 332f53219c4c (3 revisions) (flutter/flutter#126188)
2023-05-06 github@alexv525.com � Add `rect` argument to `_ArcPaintPredicate` for tests (flutter/flutter#125953)
2023-05-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 758cbadfac1f to b7c79b41b9d4 (4 revisions) (flutter/flutter#126187)
2023-05-06 737941+loic-sharma@users.noreply.github.com Add Windows and Linux support to the 'layers' example (flutter/flutter#126105)

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
Please CC camillesimon@google.com,rmistry@google.com,stuartmorgan@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: 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
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 16, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 17, 2023
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 tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants