-
Notifications
You must be signed in to change notification settings - Fork 391
Add ability to turn off telemetry in SignTool #7623
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
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,12 @@ public class SignToolTask : BuildTask | |
| /// </summary> | ||
| public bool TestSign { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Turn off Telmetry is added to turn off telemetry for linux signing in release pipeline, but by default its always false | ||
|
epananth marked this conversation as resolved.
Outdated
|
||
| /// Issue tracking this https://github.com/dotnet/arcade/issues/7621 | ||
| /// </summary> | ||
| public bool TurnOffTelemetry {get; set;} | ||
|
epananth marked this conversation as resolved.
Outdated
|
||
|
|
||
| /// <summary> | ||
| /// True to perform strong name check on signed files. | ||
| /// If enabled it will require SNBinaryPath to be informed. | ||
|
|
@@ -263,7 +269,10 @@ public void ExecuteImpl() | |
| } | ||
| finally | ||
| { | ||
| telemetry.SendEvents(); | ||
| if (!TurnOffTelemetry) | ||
| { | ||
| telemetry.SendEvents(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems like a partial fix and adding an entire settable property for a partial fix isn't ideal. ie, if we are going to support the "DisableTelemetry" feature, then setting it to I'm generally very anti-environment variables, but it seems like that would be a better solution here, particularly because we want the feature to be someone difficult to discover (a settable property makes it look like an acceptable practice rather than an exceptional case. My preference would be that there is a "magic" env variable (only documented via comment in Telemetry.cs), which when set, turned telemetry.cs function calls into no-ops. This is a rare case where I prefer "magic". This would mean making the change entirely in Telemetry.cs rather than in SignToolTask.cs and the calling Sign.proj. Plus that telemetry class is already doing other magic with env variables, so it's not a huge stretch.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will work on adding a flag to disable entire telemetry. Thank you for suggesting this change.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the real fix here is to find out why telemetry is not working just for Linux in the first place. I think Epsi has an issue tracking this, and it would be great if you could provide some guidance once we're able to focus on that issue. For now, we need to get this in with the hack....
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I think we're all saying the same thing. Perhaps my nomenclature was misleading. I meant his is an incomplete implementation of the "hack". Nobody believes that this work is an actual "fix".
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added this in a new PR #7638 |
||
| } | ||
| } | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.