Skip to content

[CP] Enable crash reporting via the unified_analytics consent mechanism #52044

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

Closed
jcollins-g opened this issue Apr 14, 2023 · 1 comment
Closed
Assignees
Labels
cherry-pick-approved Label for approved cherrypick request cherry-pick-merged Cherry-pick has been merged to the stable or beta branch. cherry-pick-review Issue that need cherry pick triage to approve legacy-area-analyzer Use area-devexp instead. merge-to-beta

Comments

@jcollins-g
Copy link
Contributor

Commit(s) to merge

1abf129

Target

beta

Prepared changelist for beta/stable

https://dart-review.googlesource.com/c/sdk/+/295386

Issue Description

Analysis server crash reporting, while long enabled internally, has been approved for external use. A change to enable it did not make the original beta cutoff.

What is the fix

The change, and proposed cherry-pick, allows crash reporting to be switched on. It connects directly to the same check used by unified_analytics to ensure that crash reporting is only enabled after a message is displayed on VSCode (the only IDE supported by analyzer analytics in our first release).

Why cherry-pick

This cherry-pick will not impact users directly, but the value of crash reporting in improving the analysis server long term is self-evident as we can not fix crashes we do not know about. Enabling crash reporting in 3.0 will get data from a much broader set of users, faster, than waiting for the next stable release. The earlier this can be cherry picked, the more visibility and impact for fixing user problems in the run-up to the final stable cut the analyzer team can have, as well.

While this will mean a large change in terms of lines of code executed by end users (all of the crash reporting), this code path is well-exercised internally and should pose little risk.

Risk

low

Issue link(s)

#28633

Extra Info

Because it does not seem possible to cherry-pick cherry-picks from third_party repositories, the change required in unified_analytics comes with a small amount of baggage in terms of other changes. These changes can be seen here, and appear to be trivial: https://github.com/dart-lang/tools/compare/0304fbb..2308c67.

@mit-mit
Copy link
Member

mit-mit commented Apr 19, 2023

SGTM

@bwilkerson bwilkerson added the cherry-pick-approved Label for approved cherrypick request label Apr 20, 2023
copybara-service bot pushed a commit that referenced this issue Apr 20, 2023
…nism.

This pulls in the `okToSend` method from dart-lang/tools#79 in the tools repository.
A cherry pick will pull in several revisions from the tools repository as a result.  You can easily browse the affected revisions here:

https://github.com/dart-lang/tools/compare/0304fbb..2308c67

Bug: #28633
Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/295380
Change-Id: I512d041750050338699d3635ba426cc0acdd5a20
Fixes: #52044
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/295386
Commit-Queue: Brian Wilkerson <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
@itsjustkevin itsjustkevin added merge-to-beta cherry-pick-merged Cherry-pick has been merged to the stable or beta branch. labels Apr 21, 2023
@devoncarew devoncarew added the legacy-area-analyzer Use area-devexp instead. label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-approved Label for approved cherrypick request cherry-pick-merged Cherry-pick has been merged to the stable or beta branch. cherry-pick-review Issue that need cherry pick triage to approve legacy-area-analyzer Use area-devexp instead. merge-to-beta
Projects
None yet
Development

No branches or pull requests

8 participants