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

Ignore untrusted workspace error for telemetry #3139

Merged

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Feb 5, 2025

Motivation

In efforts to make our telemetry as useful as possible, I think we should ignore errors that we cannot recover from. When the version manager is Shadowenv and the current workspace is untrusted, there's nothing we can do.

Auto-trusting a workspace is a security issue because it would execute arbitrary Shadow Lisp files, so that's not an option.

Since only the user can decide to trust a workspace, there really is nothing we can do if they dismissed our offer to trust it.

Implementation

Started ignoring untrusted workspace errors for telemetry. Also, added the workspace name as an attribute, which is useful when trying to discover specific types of errors.

Automated Tests

Added a test.

@vinistock vinistock added vscode This pull request should be included in the VS Code extension's release notes other Changes that aren't bugfixes, enhancements or breaking changes labels Feb 5, 2025 — with Graphite App
Copy link
Member Author


How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this Feb 5, 2025
@vinistock vinistock requested review from andyw8 and st0012 February 5, 2025 14:57
@vinistock vinistock marked this pull request as ready for review February 5, 2025 15:00
@vinistock vinistock requested a review from a team as a code owner February 5, 2025 15:00
@vinistock vinistock added the graphite-merge Ship this PR using Graphite's merge queue label Feb 5, 2025
Copy link
Member Author

vinistock commented Feb 5, 2025

Merge activity

  • Feb 5, 10:08 AM EST: The merge label 'graphite-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 5, 10:24 AM EST: A user added this pull request to the Graphite merge queue.
  • Feb 5, 10:50 AM EST: A user merged this pull request with the Graphite merge queue.

vscode/src/ruby.ts Show resolved Hide resolved
### Motivation

In efforts to make our telemetry as useful as possible, I think we should ignore errors that we cannot recover from. When the version manager is Shadowenv and the current workspace is untrusted, there's nothing we can do.

Auto-trusting a workspace is a security issue because it would execute arbitrary Shadow Lisp files, so that's not an option.

Since only the user can decide to trust a workspace, there really is nothing we can do if they dismissed our offer to trust it.

### Implementation

Started ignoring untrusted workspace errors for telemetry. Also, added the workspace name as an attribute, which is useful when trying to discover specific types of errors.

### Automated Tests

Added a test.
@graphite-app graphite-app bot force-pushed the 02-05-ignore_untrusted_workspace_error_for_telemetry branch from 96c54cf to 65a8193 Compare February 5, 2025 15:24
@graphite-app graphite-app bot merged commit 65a8193 into main Feb 5, 2025
43 checks passed
@graphite-app graphite-app bot deleted the 02-05-ignore_untrusted_workspace_error_for_telemetry branch February 5, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphite-merge Ship this PR using Graphite's merge queue other Changes that aren't bugfixes, enhancements or breaking changes vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants