-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Handle null JobSyncConfig * Add unit test * Fix PMD warning * Do not update jobs in terminal state * Fix failing tests * Fix compile error
- Loading branch information
1 parent
6e94249
commit c8a7cb3
Showing
6 changed files
with
53 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,20 +61,22 @@ static IHub createSentryHubWithDSN(final String sentryDSN) { | |
@Override | ||
public void reportJobFailureReason(@Nullable final StandardWorkspace workspace, | ||
final FailureReason failureReason, | ||
final String dockerImage, | ||
@Nullable final String dockerImage, | ||
final Map<String, String> metadata) { | ||
final SentryEvent event = new SentryEvent(); | ||
|
||
// Remove invalid characters from the release name, use @ so sentry knows how to grab the tag | ||
// e.g. airbyte/source-xyz:1.2.0 -> [email protected] | ||
// More info at https://docs.sentry.io/product/cli/releases/#creating-releases | ||
final String release = dockerImage.replace("/", "-").replace(":", "@"); | ||
event.setRelease(release); | ||
|
||
// enhance event fingerprint to ensure separate grouping per connector | ||
final String[] releaseParts = release.split("@"); | ||
if (releaseParts.length > 0) { | ||
event.setFingerprints(List.of("{{ default }}", releaseParts[0])); | ||
if (dockerImage != null) { | ||
// Remove invalid characters from the release name, use @ so sentry knows how to grab the tag | ||
// e.g. airbyte/source-xyz:1.2.0 -> [email protected] | ||
// More info at https://docs.sentry.io/product/cli/releases/#creating-releases | ||
final String release = dockerImage.replace("/", "-").replace(":", "@"); | ||
event.setRelease(release); | ||
|
||
// enhance event fingerprint to ensure separate grouping per connector | ||
final String[] releaseParts = release.split("@"); | ||
if (releaseParts.length > 0) { | ||
event.setFingerprints(List.of("{{ default }}", releaseParts[0])); | ||
} | ||
} | ||
|
||
// set workspace as the user in sentry to get impact and priority | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters