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

Gracefully handle analytics failing to send (patrol_cli) #2509

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

alexandradeas
Copy link
Contributor

Handle exceptions raised when analytics fail to be sent.

This is related to #2460 where I ran into the same due to a DNS block on the domain - which I'd expect to be common in CI environments where egress is tightly controlled. As analytics aren't an essential part of the CLI, my rationale is that if the call fails it should not halt execution

Copy link

docs-page bot commented Jan 28, 2025

To view this pull requests documentation preview, visit the following URL:

docs.page/leancodepl/patrol~2509

Documentation is deployed and generated using docs.page.

@github-actions github-actions bot added the package: patrol_cli Related to the patrol_cli package label Jan 28, 2025
@alexandradeas alexandradeas force-pushed the master branch 2 times, most recently from a51698e to 7b43be8 Compare January 28, 2025 14:18
Copy link
Collaborator

@pdenert pdenert left a comment

Choose a reason for hiding this comment

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

@alexandradeas thanks for contribution! You're right, this should be done like that from the begging. Please change the changelog, and than we can merge this.

Comment on lines 1 to 3
## 3.5.1
- Gracefully handle when analytics fail to send (#2460)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please change version to Unreleased and add empty line between (for formatting purposes)

Suggested change
## 3.5.1
- Gracefully handle when analytics fail to send (#2460)
## Unreleased
- Gracefully handle when analytics fail to send. (#2460)

@alexandradeas
Copy link
Contributor Author

@alexandradeas thanks for contribution! You're right, this should be done like that from the begging. Please change the changelog, and than we can merge this.

my bad for not reading the instructions properly, updated that now

Copy link
Collaborator

@pdenert pdenert left a comment

Choose a reason for hiding this comment

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

LGTM

@pdenert pdenert merged commit ef6b441 into leancodepl:master Jan 31, 2025
12 of 13 checks passed
@pdenert
Copy link
Collaborator

pdenert commented Jan 31, 2025

Thanks again for contribution @alexandradeas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: patrol_cli Related to the patrol_cli package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants