Skip to content

Fixes report_after_job_retries for retry: 0#1557

Merged
st0012 merged 3 commits intogetsentry:masterfrom
TAGraves:tg-fix-retries
Sep 1, 2021
Merged

Fixes report_after_job_retries for retry: 0#1557
st0012 merged 3 commits intogetsentry:masterfrom
TAGraves:tg-fix-retries

Conversation

@TAGraves
Copy link
Copy Markdown
Contributor

@TAGraves TAGraves commented Sep 1, 2021

Description

This fixes #1556 by checking to see if retry_option is positive.

The issue is that retry_count is nil when retry: 0 is set. Since retries will only occur if retry_option is positive we can skip this altogether in the case where it is not positive.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 1, 2021

Codecov Report

Merging #1557 (5bd8754) into master (9e964c4) will increase coverage by 0.37%.
The diff coverage is 100.00%.

❗ Current head 5bd8754 differs from pull request most recent head 9587c16. Consider uploading reports for the commit 9587c16 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1557      +/-   ##
==========================================
+ Coverage   97.92%   98.29%   +0.37%     
==========================================
  Files         222      127      -95     
  Lines       10867     7033    -3834     
==========================================
- Hits        10641     6913    -3728     
+ Misses        226      120     -106     
Impacted Files Coverage Δ
sentry-sidekiq/lib/sentry/sidekiq/error_handler.rb 100.00% <100.00%> (ø)
sentry-sidekiq/spec/sentry/sidekiq_spec.rb 100.00% <100.00%> (ø)
sentry-raven/spec/raven/integrations/rails_spec.rb
sentry-raven/lib/raven/core_ext/object/deep_dup.rb
...ntry-raven/lib/raven/core_ext/object/duplicable.rb
sentry-raven/lib/raven/utils/deep_merge.rb
sentry-raven/lib/raven/interfaces/http.rb
...ntry-raven/lib/raven/processor/removestacktrace.rb
...ven/lib/raven/breadcrumbs/active_support_logger.rb
sentry-raven/lib/raven/integrations/delayed_job.rb
... and 87 more

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 9e964c4...9587c16. Read the comment docs.

@st0012
Copy link
Copy Markdown
Contributor

st0012 commented Sep 1, 2021

@TAGraves thanks for reporting the issue and making the fix!
can you change the Unreleased title to 4.7.1? I'll make a release right after this is merged 🙂

@TAGraves
Copy link
Copy Markdown
Contributor Author

TAGraves commented Sep 1, 2021

@st0012 done, thanks!

Copy link
Copy Markdown
Contributor

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

👍

@st0012 st0012 merged commit 683154a into getsentry:master Sep 1, 2021
@TAGraves TAGraves deleted the tg-fix-retries branch September 1, 2021 15:53
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.

report_after_job_retries does not report errors for jobs with 0 retries

3 participants