Skip to content

Commit

Permalink
Merge branch 'main' into fix/android-sample-rate
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsandfoxes authored Oct 30, 2024
2 parents 1edb318 + 4df9538 commit 595d97e
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 5 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@

- Fixed an issue where the SDK would write the `SampleRate` as an `int` instead of a `float` to the Android Manifest, causing issues during the Android SDK's initialization ([#1872](https://github.com/getsentry/sentry-unity/pull/1872))

### Dependencies

- Bump Java SDK from v7.15.0 to v7.16.0 ([#1862](https://github.com/getsentry/sentry-unity/pull/1862))
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7160)
- [diff](https://github.com/getsentry/sentry-java/compare/7.15.0...7.16.0)
- Bump Native SDK from v0.7.10 to v0.7.11 ([#1867](https://github.com/getsentry/sentry-unity/pull/1867))
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0711)
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.10...0.7.11)
- Bump Cocoa SDK from v8.38.0 to v8.39.0 ([#1868](https://github.com/getsentry/sentry-unity/pull/1868))
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8390)
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.38.0...8.39.0)
- Bump CLI from v2.37.0 to v2.38.0 ([#1860](https://github.com/getsentry/sentry-unity/pull/1860))
- [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2380)
- [diff](https://github.com/getsentry/sentry-cli/compare/2.37.0...2.38.0)

## 2.2.2

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion modules/sentry-cli.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = 2.37.0
version = 2.38.0
repo = https://github.com/getsentry/sentry-cli
2 changes: 1 addition & 1 deletion modules/sentry-cocoa.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = 8.38.0
version = 8.39.0
repo = https://github.com/getsentry/sentry-cocoa
2 changes: 1 addition & 1 deletion modules/sentry-java
Submodule sentry-java updated 91 files
+12 −0 .github/file-filters.yml
+2 −2 .github/workflows/agp-matrix.yml
+2 −2 .github/workflows/build.yml
+49 −0 .github/workflows/changes-in-high-risk-code.yml
+3 −3 .github/workflows/codeql-analysis.yml
+1 −1 .github/workflows/enforce-license-compliance.yml
+2 −2 .github/workflows/generate-javadocs.yml
+2 −2 .github/workflows/integration-tests-benchmarks.yml
+106 −0 .github/workflows/integration-tests-ui-critical.yml
+1 −1 .github/workflows/integration-tests-ui.yml
+1 −1 .github/workflows/release-build.yml
+31 −4 .github/workflows/system-tests-backend.yml
+38 −0 CHANGELOG.md
+9 −1 Makefile
+1 −0 build.gradle.kts
+4 −1 gradle.properties
+35 −0 scripts/test-ui-critical.sh
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/ActivityBreadcrumbsIntegration.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/ActivityLifecycleIntegration.java
+10 −2 sentry-android-core/src/main/java/io/sentry/android/core/AndroidLogger.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/AnrIntegration.java
+4 −4 sentry-android-core/src/main/java/io/sentry/android/core/AnrV2EventProcessor.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/AnrV2Integration.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/AppComponentsBreadcrumbsIntegration.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/AppLifecycleIntegration.java
+13 −11 sentry-android-core/src/main/java/io/sentry/android/core/ManifestMetadataReader.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/NdkIntegration.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/NetworkBreadcrumbsIntegration.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/PhoneStateBreadcrumbsIntegration.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/ScreenshotEventProcessor.java
+3 −0 sentry-android-core/src/main/java/io/sentry/android/core/SendCachedEnvelopeIntegration.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/SystemEventsBreadcrumbsIntegration.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/TempSensorBreadcrumbsIntegration.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/UserInteractionIntegration.java
+1 −1 sentry-android-core/src/main/java/io/sentry/android/core/ViewHierarchyEventProcessor.java
+11 −0 sentry-android-core/src/test/java/io/sentry/android/core/AndroidTransactionProfilerTest.kt
+25 −0 sentry-android-core/src/test/java/io/sentry/android/core/ManifestMetadataReaderTest.kt
+5 −1 sentry-android-core/src/test/java/io/sentry/android/core/SentryAndroidTest.kt
+5 −0 sentry-android-fragment/api/sentry-android-fragment.api
+3 −3 sentry-android-fragment/src/main/java/io/sentry/android/fragment/FragmentLifecycleIntegration.kt
+17 −1 sentry-android-fragment/src/main/java/io/sentry/android/fragment/FragmentLifecycleState.kt
+2 −2 sentry-android-fragment/src/main/java/io/sentry/android/fragment/SentryFragmentLifecycleCallbacks.kt
+11 −0 sentry-android-fragment/src/test/java/io/sentry/android/fragment/FragmentLifecycleStateTest.kt
+1 −1 sentry-android-fragment/src/test/java/io/sentry/android/fragment/SentryFragmentLifecycleCallbacksTest.kt
+2 −0 sentry-android-integration-tests/sentry-uitest-android-critical/.gitignore
+69 −0 sentry-android-integration-tests/sentry-uitest-android-critical/build.gradle.kts
+11 −0 sentry-android-integration-tests/sentry-uitest-android-critical/maestro/corruptEnvelope.yaml
+6 −0 sentry-android-integration-tests/sentry-uitest-android-critical/maestro/crash.yaml
+21 −0 sentry-android-integration-tests/sentry-uitest-android-critical/proguard-rules.pro
+21 −0 sentry-android-integration-tests/sentry-uitest-android-critical/src/main/AndroidManifest.xml
+51 −0 ...ration-tests/sentry-uitest-android-critical/src/main/java/io/sentry/uitest/android/critical/MainActivity.kt
+1 −1 sentry-android-navigation/src/main/java/io/sentry/android/navigation/SentryNavigationListener.kt
+1 −1 sentry-android-ndk/build.gradle.kts
+44 −26 sentry-android-ndk/src/main/java/io/sentry/android/ndk/NdkScopeObserver.java
+50 −15 sentry-android-ndk/src/main/java/io/sentry/android/ndk/SentryNdk.java
+38 −0 sentry-android-ndk/src/test/java/io/sentry/android/ndk/NdkScopeObserverTest.kt
+1 −1 sentry-android-okhttp/src/main/java/io/sentry/android/okhttp/SentryOkHttpInterceptor.kt
+8 −8 sentry-android-replay/src/main/java/io/sentry/android/replay/DefaultReplayBreadcrumbConverter.kt
+3 −3 sentry-android-replay/src/main/java/io/sentry/android/replay/ReplayIntegration.kt
+14 −9 sentry-android-replay/src/main/java/io/sentry/android/replay/ScreenshotRecorder.kt
+0 −4 sentry-android-replay/src/main/java/io/sentry/android/replay/capture/BaseCaptureStrategy.kt
+2 −2 sentry-android-replay/src/main/java/io/sentry/android/replay/capture/BufferCaptureStrategy.kt
+2 −2 sentry-android-replay/src/main/java/io/sentry/android/replay/util/Sampling.kt
+8 −8 sentry-android-replay/src/main/java/io/sentry/android/replay/viewhierarchy/ComposeViewHierarchyNode.kt
+2 −2 sentry-android-replay/src/main/java/io/sentry/android/replay/viewhierarchy/ViewHierarchyNode.kt
+2 −2 sentry-android-replay/src/test/java/io/sentry/android/replay/capture/BufferCaptureStrategyTest.kt
+1 −1 sentry-android-timber/src/main/java/io/sentry/android/timber/SentryTimberIntegration.kt
+1 −1 sentry-apollo/src/main/java/io/sentry/apollo/SentryApolloInterceptor.kt
+2 −2 sentry-okhttp/src/main/java/io/sentry/okhttp/SentryOkHttpInterceptor.kt
+14 −1 sentry/api/sentry.api
+3 −3 sentry/src/main/java/io/sentry/Baggage.java
+1 −1 sentry/src/main/java/io/sentry/DsnUtil.java
+1 −1 sentry/src/main/java/io/sentry/ProfilingTraceData.java
+1 −1 sentry/src/main/java/io/sentry/ProfilingTransactionData.java
+1 −1 sentry/src/main/java/io/sentry/RequestDetailsResolver.java
+1 −1 sentry/src/main/java/io/sentry/SendCachedEnvelopeFireAndForgetIntegration.java
+18 −2 sentry/src/main/java/io/sentry/Sentry.java
+3 −3 sentry/src/main/java/io/sentry/SentryClient.java
+35 −2 sentry/src/main/java/io/sentry/SentryOptions.java
+1 −1 sentry/src/main/java/io/sentry/ShutdownHookIntegration.java
+5 −4 sentry/src/main/java/io/sentry/TracesSampler.java
+1 −1 sentry/src/main/java/io/sentry/UncaughtExceptionHandlerIntegration.java
+6 −0 sentry/src/main/java/io/sentry/cache/PersistingScopeObserver.java
+2 −2 sentry/src/main/java/io/sentry/metrics/MetricsHelper.java
+0 −10 sentry/src/main/java/io/sentry/util/IntegrationUtils.java
+12 −1 sentry/src/main/java/io/sentry/util/LazyEvaluator.java
+466 −0 sentry/src/main/java/io/sentry/util/Random.java
+2 −2 sentry/src/test/java/io/sentry/JsonSerializerTest.kt
+2 −2 sentry/src/test/java/io/sentry/TracesSamplerTest.kt
+14 −0 sentry/src/test/java/io/sentry/util/LazyEvaluatorTest.kt
+1 −0 settings.gradle.kts
6 changes: 5 additions & 1 deletion test/Sentry.Unity.Tests/IntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;
using NUnit.Framework;
using Sentry.Unity.Tests.SharedClasses;
using Sentry.Unity.Tests.TestBehaviours;
using UnityEditor;
using UnityEngine;
Expand Down Expand Up @@ -275,7 +276,10 @@ public IEnumerator DebugLogException_OnMainThread_IsCapturedAndIsMainThreadIsTru
[UnityTest]
public IEnumerator DebugLogException_InTask_IsCapturedAndIsMainThreadIsFalse()
{
LogAssert.Expect(LogType.Exception, new Regex("Exception: .* Test Event"));
if (TestEnvironment.IsGitHubActions)
{
Assert.Ignore("Flaky in CI");
}

yield return SetupSceneCoroutine("1_BugFarm");

Expand Down
18 changes: 18 additions & 0 deletions test/SharedClasses/TestEnvironment.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;

namespace Sentry.Unity.Tests.SharedClasses;

public static class TestEnvironment
{
/// <summary>
/// See https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
/// </summary>
public static bool IsGitHubActions
{
get
{
var isGitHubActions = Environment.GetEnvironmentVariable("GITHUB_ACTIONS");
return isGitHubActions?.Equals("true", StringComparison.OrdinalIgnoreCase) == true;
}
}
}

0 comments on commit 595d97e

Please sign in to comment.