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

fix: Anonymise error messages by removing exception handling #856

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

sbouchet
Copy link
Collaborator

@sbouchet sbouchet commented Jul 1, 2024

What is the purpose of this change? What does it change?

Was the change discussed in an issue?

fixes #855

How to test changes?

@openshift-ci openshift-ci bot requested a review from adietish July 1, 2024 13:46
@sbouchet sbouchet changed the title Anonymise error messages by removing exception handling fix: Anonymise error messages by removing exception handling Jul 1, 2024
@sbouchet
Copy link
Collaborator Author

sbouchet commented Jul 2, 2024

/hold

Copy link
Contributor

@adietish adietish left a comment

Choose a reason for hiding this comment

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

Wondering why things are not anonymized. I see your error being sent to com.redhat.devtools.intellij.telemetry.core.service.Message.error(message) which is as follows:

 public T error(String message) {
       this.property("error", AnonymizeUtils.anonymize(message));

What am I missing?

@sbouchet
Copy link
Collaborator Author

sbouchet commented Jul 3, 2024

Wondering why things are not anonymized. I see your error being sent to com.redhat.devtools.intellij.telemetry.core.service.Message.error(message) which is as follows:

 public T error(String message) {
       this.property("error", AnonymizeUtils.anonymize(message));

What am I missing?

the AnonymizeUtils class does not handle the cases specific to openshift, like cluster URL and token. see TelemetrySender class

@adietish adietish self-requested a review July 4, 2024 09:49
Copy link
Contributor

@adietish adietish left a comment

Choose a reason for hiding this comment

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

LGTM

@sbouchet
Copy link
Collaborator Author

sbouchet commented Jul 4, 2024

/unhold

@sbouchet
Copy link
Collaborator Author

sbouchet commented Jul 4, 2024

was holding while preparing 1.10.0. release. un holding since fix i likely to take some time to implement

@sbouchet
Copy link
Collaborator Author

sbouchet commented Jul 5, 2024

/override ci/prow/e2e-openshift

Copy link

openshift-ci bot commented Jul 5, 2024

@sbouchet: Overrode contexts on behalf of sbouchet: ci/prow/e2e-openshift

In response to this:

/override ci/prow/e2e-openshift

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@sbouchet
Copy link
Collaborator Author

sbouchet commented Jul 9, 2024

/override ci/prow/e2e-openshift

Copy link

openshift-ci bot commented Jul 9, 2024

@sbouchet: Overrode contexts on behalf of sbouchet: ci/prow/e2e-openshift

In response to this:

/override ci/prow/e2e-openshift

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@sbouchet
Copy link
Collaborator Author

/override ci/prow/e2e-openshift

@sbouchet sbouchet requested a review from adietish July 10, 2024 09:11
Copy link

openshift-ci bot commented Jul 10, 2024

@sbouchet: Overrode contexts on behalf of sbouchet: ci/prow/e2e-openshift

In response to this:

/override ci/prow/e2e-openshift

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@sbouchet
Copy link
Collaborator Author

/override ci/prow/e2e-openshift

Copy link

openshift-ci bot commented Jul 11, 2024

@sbouchet: Overrode contexts on behalf of sbouchet: ci/prow/e2e-openshift

In response to this:

/override ci/prow/e2e-openshift

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@sbouchet
Copy link
Collaborator Author

/hold

@sbouchet
Copy link
Collaborator Author

/unhold

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@adietish
Copy link
Contributor

@sbouchet: can you please rebase this so that we can merge it?

Copy link
Contributor

@adietish adietish left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci openshift-ci bot added the lgtm label Jul 16, 2024
Copy link

openshift-ci bot commented Jul 16, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adietish

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sbouchet
Copy link
Collaborator Author

/override ci/prow/e2e-openshift

Copy link

openshift-ci bot commented Jul 16, 2024

@sbouchet: Overrode contexts on behalf of sbouchet: ci/prow/e2e-openshift

In response to this:

/override ci/prow/e2e-openshift

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 36d7126 into redhat-developer:main Jul 16, 2024
17 checks passed
@sbouchet sbouchet deleted the issue-855 branch July 16, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anonymise error messages
3 participants