Skip to content

Conversation

GabeVillalobos
Copy link
Member

Adds distinct error handling for different assignment failures:

  1. Target user not found
  2. Authentication (configuration) errors
  3. Invalid request formatting

Also renames the logs generated by Jira Server, since these are currently identical to the Jira SaaS logs, making it difficult to differentiate between the two when triaging failures.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 10, 2025
def test_syncs_outbound_assignee(self, mock_sync_assignee, mock_record_event):
external_issue = self.create_integration_external_issue(
# Create a shared external issue for most tests
self.external_issue = self.create_integration_external_issue(
Copy link
Member Author

Choose a reason for hiding this comment

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

This was repeated in nearly every single test, so I hoisted it into the setup instead.

Copy link

codecov bot commented Jul 10, 2025

Codecov Report

Attention: Patch coverage is 93.02326% with 6 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/integrations/vsts/issues.py 16.66% 5 Missing ⚠️
src/sentry/integrations/jira/integration.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #95281      +/-   ##
==========================================
+ Coverage   86.56%   87.86%   +1.29%     
==========================================
  Files       10458    10468      +10     
  Lines      604876   605539     +663     
  Branches    23617    23617              
==========================================
+ Hits       523625   532055    +8430     
+ Misses      80890    73123    -7767     
  Partials      361      361              

@GabeVillalobos GabeVillalobos marked this pull request as ready for review July 10, 2025 20:48
@GabeVillalobos GabeVillalobos requested review from a team as code owners July 10, 2025 20:48
cursor[bot]

This comment was marked as outdated.

)

if jira_user is None:
# TODO(jess): do we want to email people about these types of failures?
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# TODO(jess): do we want to email people about these types of failures?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm leaving it as a vestigial reminder to do this in the future 😅 We do want this eventually.

@GabeVillalobos GabeVillalobos merged commit 321954f into master Jul 15, 2025
65 checks passed
@GabeVillalobos GabeVillalobos deleted the gv/fix-jira-sync-failure-categorization branch July 15, 2025 16:47
Copy link

sentry-io bot commented Jul 16, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

Did you find this useful? React with a 👍 or 👎

@github-actions github-actions bot locked and limited conversation to collaborators Aug 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants