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

sentry: support disabling error reporting #2214

Merged
merged 4 commits into from Aug 16, 2018

Conversation

kyrofa
Copy link
Contributor

@kyrofa kyrofa commented Aug 14, 2018

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on bug reports?
  • If this is a new feature. Have you discussed the design on the forum?
  • Have you successfully run ./runtests.sh static?
  • Have you successfully run ./runtests.sh tests/unit?

We recently regressed on #2154 by removing the ability to disable Sentry, which can cause tests to hang. Add this ability back.

We recently regressed on canonical#2154 by removing the ability to disable
Sentry, which can cause tests to hang. Add this ability back.

Signed-off-by: Kyle Fazzari <kyrofa@ubuntu.com>
@@ -162,7 +162,7 @@ def setUp(self):
# Disable Sentry reporting for tests, otherwise they'll hang waiting
# for input
self.useFixture(
fixtures.EnvironmentVariable("SNAPCRAFT_ENABLE_SENTRY", "false")
fixtures.EnvironmentVariable("SNAPCRAFT_ENABLE_ERROR_REPORTING", "false")
Copy link
Collaborator

Choose a reason for hiding this comment

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

oh, the new structure makes this unnecessary, to be honest, I'd remove these lines completely

@codecov-io
Copy link

codecov-io commented Aug 16, 2018

Codecov Report

Merging #2214 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2214      +/-   ##
==========================================
+ Coverage   91.15%   91.16%   +<.01%     
==========================================
  Files         211      211              
  Lines       13460    13462       +2     
  Branches     2006     2007       +1     
==========================================
+ Hits        12270    12272       +2     
  Misses        808      808              
  Partials      382      382
Impacted Files Coverage Δ
snapcraft/cli/_errors.py 75.92% <100%> (+0.45%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3bf480...4bcbf94. Read the comment docs.

@sergiusens sergiusens merged commit 1c93ab1 into canonical:master Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants