Skip to content

Commit fc8e074

Browse files
Merge pull request #354 from bugsnag/next
Release v5.2.0
2 parents f183dd4 + 83a97a2 commit fc8e074

File tree

189 files changed

+4485
-5255
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+4485
-5255
lines changed

.buildkite/pipeline.full.yml

Lines changed: 639 additions & 0 deletions
Large diffs are not rendered by default.

.buildkite/pipeline.yml

Lines changed: 164 additions & 460 deletions
Large diffs are not rendered by default.

.buildkite/pipeline_trigger.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env sh
2+
3+
if [[ "$BUILDKITE_MESSAGE" == *"[full ci]"* ||
4+
"$BUILDKITE_BRANCH" == "next" ||
5+
"$BUILDKITE_BRANCH" == "master" ||
6+
"$BUILDKITE_PULL_REQUEST_BASE_BRANCH" == "master" ]]; then
7+
echo "Running full build"
8+
buildkite-agent pipeline upload .buildkite/pipeline.full.yml
9+
fi

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ TestResult.xml
2525
bugsnag-cocoa-build/
2626
unity.log
2727
bugsnag-android-unity/.cxx
28-
test/**/*.app.zip
28+
features/**/*.zip
2929
*.ipa
3030
**/maze_runner/output/
31+
**/maze_runner/Mazerunner.log
32+
**/maze_output

CHANGELOG.md

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,148 @@
11
# Changelog
22

3+
## 5.2.0 (2021-08-04)
4+
5+
### Enhancements
6+
7+
* Add `AppHangThresholdMillis` to set the [native Cocoa option](https://docs.bugsnag.com/platforms/ios/configuration-options/#apphangthresholdmillis) [#347](https://github.com/bugsnag/bugsnag-unity/pull/347)
8+
9+
* Add `EnabledErrorTypes` configuration option to enable/disable different types of errors [#341](https://github.com/bugsnag/bugsnag-unity/pull/341)
10+
11+
* [Android] Automatic [App Not Responding](https://developer.android.com/topic/performance/vitals/anr) (ANR) detection is now enabled by default
12+
[#339](https://github.com/bugsnag/bugsnag-unity/pull/339)
13+
14+
* Update bugsnag-cocoa to v6.10.2
15+
16+
* Fix ThreadSanitizer data race warning in `BSGAppHangDetector`.
17+
[#1153](https://github.com/bugsnag/bugsnag-cocoa/pull/1153)
18+
19+
* Remove (duplicated) `user` information from `metaData`.
20+
[#1151](https://github.com/bugsnag/bugsnag-cocoa/pull/1151)
21+
22+
* Fix a potential stack overflow in `+[BugsnagThread allThreadsWithCurrentThreadBacktrace:]`.
23+
[#1148](https://github.com/bugsnag/bugsnag-cocoa/pull/1148)
24+
25+
* Fix `NSNull` handling in `+[BugsnagError errorFromJson:]` and `+[BugsnagStackframe frameFromJson:]`.
26+
[#1143](https://github.com/bugsnag/bugsnag-cocoa/pull/1143)
27+
28+
* Fix a rare crash in `bsg_ksmachgetThreadQueueName`.
29+
[#1147](https://github.com/bugsnag/bugsnag-cocoa/pull/1147)
30+
31+
* Fix an issue that could cause C++ exceptions with very long descriptions to not be reported.
32+
[#1137](https://github.com/bugsnag/bugsnag-cocoa/pull/1137)
33+
34+
* Improve performance of adding metadata by using async file I/O.
35+
[#1133](https://github.com/bugsnag/bugsnag-cocoa/pull/1133)
36+
37+
* Improve performance of leaving breadcrumbs by using async file I/O.
38+
[#1124](https://github.com/bugsnag/bugsnag-cocoa/pull/1124)
39+
40+
* Prevent some potential false positive detection of app hangs.
41+
[#1122](https://github.com/bugsnag/bugsnag-cocoa/pull/1122)
42+
43+
* Update bugsnag-android to v5.10.1:
44+
45+
* Prefer `calloc()` to `malloc()` in NDK code
46+
[#1320](https://github.com/bugsnag/bugsnag-android/pull/1320)
47+
48+
* Ensure correct value always collected for activeScreen
49+
[#1322](https://github.com/bugsnag/bugsnag-android/pull/1322)
50+
51+
* Capture process name in Event payload
52+
[#1318](https://github.com/bugsnag/bugsnag-android/pull/1318)
53+
54+
* Avoid unnecessary BroadcastReceiver registration for monitoring device orientation
55+
[#1303](https://github.com/bugsnag/bugsnag-android/pull/1303)
56+
57+
* Register system callbacks on background thread
58+
[#1292](https://github.com/bugsnag/bugsnag-android/pull/1292)
59+
60+
* Fix rare NullPointerExceptions from ConnectivityManager
61+
[#1311](https://github.com/bugsnag/bugsnag-android/pull/1311)
62+
63+
* Respect manual setting of context
64+
[#1310](https://github.com/bugsnag/bugsnag-android/pull/1310)
65+
66+
* Handle interrupt when shutting down executors
67+
[#1315](https://github.com/bugsnag/bugsnag-android/pull/1315)
68+
69+
* Allow serializing enabledBreadcrumbTypes as null
70+
[#1316](https://github.com/bugsnag/bugsnag-android/pull/1316)
71+
72+
* Properly handle ANRs after multiple calls to autoNotify and autoDetectAnrs
73+
[#1265](https://github.com/bugsnag/bugsnag-android/pull/1265)
74+
75+
* Cache value of app.backgroundWorkRestricted
76+
[#1275](https://github.com/bugsnag/bugsnag-android/pull/1275)
77+
78+
* Optimize execution of callbacks
79+
[#1276](https://github.com/bugsnag/bugsnag-android/pull/1276)
80+
81+
* Optimize implementation of internal state change observers
82+
[#1274](https://github.com/bugsnag/bugsnag-android/pull/1274)
83+
84+
* Optimize metadata implementation by reducing type casts
85+
[#1277](https://github.com/bugsnag/bugsnag-android/pull/1277)
86+
87+
* Trim stacktraces to <200 frames before attempting to construct POJOs
88+
[#1281](https://github.com/bugsnag/bugsnag-android/pull/1281)
89+
90+
* Use direct field access when adding breadcrumbs and state updates
91+
[#1279](https://github.com/bugsnag/bugsnag-android/pull/1279)
92+
93+
* Avoid using regex to validate api key
94+
[#1282](https://github.com/bugsnag/bugsnag-android/pull/1282)
95+
96+
* Discard unwanted automatic data earlier where possible
97+
[#1280](https://github.com/bugsnag/bugsnag-android/pull/1280)
98+
99+
* Enable ANR handling on immediately if started from the main thread
100+
[#1283](https://github.com/bugsnag/bugsnag-android/pull/1283)
101+
102+
* Include `app.binaryArch` in all events
103+
[#1287](https://github.com/bugsnag/bugsnag-android/pull/1287)
104+
105+
* Cache results from PackageManager
106+
[#1288](https://github.com/bugsnag/bugsnag-android/pull/1288)
107+
108+
* Use ring buffer to store breadcrumbs
109+
[#1286](https://github.com/bugsnag/bugsnag-android/pull/1286)
110+
111+
* Avoid expensive set construction in Config constructor
112+
[#1289](https://github.com/bugsnag/bugsnag-android/pull/1289)
113+
114+
* Replace calls to String.format() with concatenation
115+
[#1293](https://github.com/bugsnag/bugsnag-android/pull/1293)
116+
117+
* Optimize capture of thread traces
118+
[#1300](https://github.com/bugsnag/bugsnag-android/pull/1300)
119+
120+
### Bug fixes
121+
122+
* Fixed an issue where Windows events would have incorrectly split stacktraces resulting in all lines being bundled into one
123+
[#350](https://github.com/bugsnag/bugsnag-unity/pull/350)
124+
125+
* Fixed an issue where WebGL web requests that initially fail were not respecting the 10 second delay before retrying
126+
[#321](https://github.com/bugsnag/bugsnag-unity/pull/321)
127+
128+
* Fixed an issue where Breadcrumbs were reported in the wrong order on Windows and in the Unity Editor
129+
[#322](https://github.com/bugsnag/bugsnag-unity/pull/322)
130+
131+
* Fixed an issue where a "Bugsnag loaded" breadcrumb was not added on Windows, Linux, WebGL, and editor builds
132+
[#327](https://github.com/bugsnag/bugsnag-unity/pull/327)
133+
134+
* Fixed an issue where the fallback was not reporting the correct app.type
135+
[#325](https://github.com/bugsnag/bugsnag-unity/pull/325)
136+
137+
### Deprecated
138+
139+
* `Configuration.NotifyLevel` has been deprecated in favour of `Configuration.NotifyLogLevel` and will be removed in the next major release.
140+
141+
* `Configuration.AutoNotify` has been deprecated in favour of `Configuration.AutoDetectErrors` and will be removed in the next major release.
142+
143+
* `Configuration.AutoCaptureSessions` has been deprecated in favour of `Configuration.AutoTrackSessions` and will be removed in the next major release.
144+
145+
3146
## 5.1.1 (2021-06-24)
4147

5148
* Fixes a packaging issue in the 5.1.0 where the library version was incorrectly

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ We have a very simple maze-runner setup, which builds a MacOS X Unity game that
8181
NOTE: This does not currently run on Windows
8282
8383
```
84-
cd test/desktop
8584
bundle install
8685
bundle exec maze-runner features/handled_errors.feature
8786
```

Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,12 @@ source 'https://rubygems.org'
33
gem "rake"
44
gem "xcpretty"
55
gem "xcodeproj"
6+
7+
# Use official Maze Runner release
8+
gem "bugsnag-maze-runner", git: "https://github.com/bugsnag/maze-runner", tag: "v5.8.0"
9+
10+
# Use a specific Maze Runner branch
11+
#gem "bugsnag-maze-runner", git: "https://github.com/bugsnag/maze-runner", branch: "any-branch"
12+
13+
# Use a local copy of Maze Runner for development purposes
14+
#gem "bugsnag-maze-runner", path: "../maze-runner"

Gemfile.lock

Lines changed: 83 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,103 @@
1+
GIT
2+
remote: https://github.com/bugsnag/maze-runner
3+
revision: 9a07b6cd836b4156128ba0318c8d973adf113f95
4+
tag: v5.8.0
5+
specs:
6+
bugsnag-maze-runner (5.8.0)
7+
appium_lib (~> 11.2.0)
8+
cucumber (~> 3.1.2)
9+
cucumber-expressions (~> 6.0.0)
10+
curb (~> 0.9.6)
11+
gherkin (~> 5.1.0)
12+
minitest (~> 5.0)
13+
optimist (~> 3.0.1)
14+
os (~> 1.0.0)
15+
rake (~> 12.3.3)
16+
rubyzip (~> 2.3.2)
17+
selenium-webdriver (~> 3.11)
18+
test-unit (~> 3.3.0)
19+
120
GEM
221
remote: https://rubygems.org/
322
specs:
4-
CFPropertyList (3.0.0)
23+
CFPropertyList (3.0.3)
24+
appium_lib (11.2.0)
25+
appium_lib_core (~> 4.1)
26+
nokogiri (~> 1.8, >= 1.8.1)
27+
tomlrb (~> 1.1)
28+
appium_lib_core (4.7.0)
29+
faye-websocket (~> 0.11.0)
30+
selenium-webdriver (~> 3.14, >= 3.14.1)
531
atomos (0.1.3)
6-
claide (1.0.2)
32+
backports (3.21.0)
33+
builder (3.2.4)
34+
childprocess (3.0.0)
35+
claide (1.0.3)
736
colored2 (3.1.2)
8-
nanaimo (0.2.6)
37+
cucumber (3.1.2)
38+
builder (>= 2.1.2)
39+
cucumber-core (~> 3.2.0)
40+
cucumber-expressions (~> 6.0.1)
41+
cucumber-wire (~> 0.0.1)
42+
diff-lcs (~> 1.3)
43+
gherkin (~> 5.1.0)
44+
multi_json (>= 1.7.5, < 2.0)
45+
multi_test (>= 0.1.2)
46+
cucumber-core (3.2.1)
47+
backports (>= 3.8.0)
48+
cucumber-tag_expressions (~> 1.1.0)
49+
gherkin (~> 5.0)
50+
cucumber-expressions (6.0.1)
51+
cucumber-tag_expressions (1.1.1)
52+
cucumber-wire (0.0.1)
53+
curb (0.9.11)
54+
diff-lcs (1.4.4)
55+
eventmachine (1.2.7)
56+
faye-websocket (0.11.1)
57+
eventmachine (>= 0.12.0)
58+
websocket-driver (>= 0.5.1)
59+
gherkin (5.1.0)
60+
minitest (5.14.4)
61+
multi_json (1.15.0)
62+
multi_test (0.1.2)
63+
nanaimo (0.3.0)
64+
nokogiri (1.11.7-x86_64-darwin)
65+
racc (~> 1.4)
66+
optimist (3.0.1)
67+
os (1.0.1)
68+
power_assert (2.0.0)
69+
racc (1.5.2)
970
rake (12.3.3)
71+
rexml (3.2.5)
1072
rouge (2.0.7)
11-
xcodeproj (1.5.9)
73+
rubyzip (2.3.2)
74+
selenium-webdriver (3.142.7)
75+
childprocess (>= 0.5, < 4.0)
76+
rubyzip (>= 1.2.2)
77+
test-unit (3.3.9)
78+
power_assert
79+
tomlrb (1.3.0)
80+
websocket-driver (0.7.5)
81+
websocket-extensions (>= 0.1.0)
82+
websocket-extensions (0.1.5)
83+
xcodeproj (1.20.0)
1284
CFPropertyList (>= 2.3.3, < 4.0)
13-
atomos (~> 0.1.2)
85+
atomos (~> 0.1.3)
1486
claide (>= 1.0.2, < 2.0)
1587
colored2 (~> 3.1)
16-
nanaimo (~> 0.2.5)
17-
xcpretty (0.2.8)
88+
nanaimo (~> 0.3.0)
89+
rexml (~> 3.2.4)
90+
xcpretty (0.3.0)
1891
rouge (~> 2.0.7)
1992

2093
PLATFORMS
21-
ruby
94+
x86_64-darwin-19
2295

2396
DEPENDENCIES
97+
bugsnag-maze-runner!
2498
rake
2599
xcodeproj
26100
xcpretty
27101

28102
BUNDLED WITH
29-
2.2.13
103+
2.2.20

0 commit comments

Comments
 (0)