Skip to content

Commit f9fa410

Browse files
authored
Merge pull request #521 from bugsnag/next
Release v6.2.0
2 parents eec29a0 + db612de commit f9fa410

File tree

82 files changed

+1598
-1337
lines changed

Some content is hidden

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

82 files changed

+1598
-1337
lines changed

.buildkite/pipeline.full.yml

Lines changed: 115 additions & 138 deletions
Large diffs are not rendered by default.

.buildkite/pipeline.yml

Lines changed: 51 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
agents:
2+
queue: opensource-arm-mac-cocoa-12
3+
14
steps:
25

36
#
47
# Build notifier. We run tests for all Unity versions with the 2018 artifacts, as that is what we ship.
58
#
69
- label: Build notifier artifacts
7-
key: 'build-artifacts'
810
timeout_in_minutes: 30
9-
agents:
10-
queue: opensource-mac-unity
11+
key: 'build-artifacts'
1112
env:
1213
UNITY_VERSION: "2018.4.36f1"
1314
commands:
@@ -20,23 +21,21 @@ steps:
2021
# Build MacOS and WebGL test fixtures
2122
#
2223
- label: Build Unity 2020 MacOS and WebGL test fixtures
24+
timeout_in_minutes: 30
2325
key: 'cocoa-webgl-2020-fixtures'
2426
depends_on: 'build-artifacts'
25-
timeout_in_minutes: 30
26-
agents:
27-
queue: opensource-mac-unity
2827
env:
29-
UNITY_VERSION: "2020.3.25f1"
28+
UNITY_VERSION: "2020.3.28f1"
3029
plugins:
31-
artifacts#v1.2.0:
30+
artifacts#v1.5.0:
3231
download:
3332
- Bugsnag.unitypackage
3433
commands:
3534
- scripts/ci-build-macos-packages.sh
3635
artifact_paths:
3736
- unity.log
38-
- features/fixtures/maze_runner/build/MacOS-2020.3.25f1.zip
39-
- features/fixtures/maze_runner/build/WebGL-2020.3.25f1.zip
37+
- features/fixtures/maze_runner/build/MacOS-2020.3.28f1.zip
38+
- features/fixtures/maze_runner/build/WebGL-2020.3.28f1.zip
4039
retry:
4140
automatic:
4241
- exit_status: -1 # Agent was lost
@@ -47,58 +46,57 @@ steps:
4746
# Run desktop tests
4847
#
4948
- label: Run MacOS e2e tests for Unity 2020
50-
depends_on: 'cocoa-webgl-2020-fixtures'
5149
timeout_in_minutes: 30
52-
agents:
53-
queue: opensource-mac-cocoa-11
50+
depends_on: 'cocoa-webgl-2020-fixtures'
5451
env:
55-
UNITY_VERSION: "2020.3.25f1"
52+
UNITY_VERSION: "2020.3.28f1"
5653
plugins:
57-
artifacts#v1.2.0:
54+
artifacts#v1.5.0:
5855
download:
59-
- features/fixtures/maze_runner/build/MacOS-2020.3.25f1.zip
56+
- features/fixtures/maze_runner/build/MacOS-2020.3.28f1.zip
6057
upload:
61-
- maze_output/*
58+
- maze_output/**/*
6259
- Mazerunner.log
6360
commands:
6461
- scripts/ci-run-macos-tests.sh
6562

6663
#
6764
# Run WebGL tests
6865
#
66+
# Note: These are run on Intel due to an issue with persistence with Firefox on ARM.
67+
#
6968
- label: Run WebGL e2e tests for Unity 2020
70-
depends_on: 'cocoa-webgl-2020-fixtures'
7169
timeout_in_minutes: 30
70+
depends_on: 'cocoa-webgl-2020-fixtures'
7271
agents:
7372
queue: opensource-mac-cocoa-11
7473
env:
75-
UNITY_VERSION: "2020.3.25f1"
74+
UNITY_VERSION: "2020.3.28f1"
7675
plugins:
77-
artifacts#v1.2.0:
76+
artifacts#v1.5.0:
7877
download:
79-
- features/fixtures/maze_runner/build/WebGL-2020.3.25f1.zip
78+
- features/fixtures/maze_runner/build/WebGL-2020.3.28f1.zip
8079
upload:
81-
- maze_output/failed/**/*
80+
- maze_output/**/*
81+
# TODO: WebGL persistence tests are currently skipped pending PLAT-8151
8282
commands:
8383
- scripts/ci-run-webgl-tests.sh
8484

8585
#
8686
# Build Android test fixtures
8787
#
8888
- label: ':android: Build Android test fixture for Unity 2020'
89+
timeout_in_minutes: 30
8990
key: 'build-android-fixture-2020'
9091
depends_on: 'build-artifacts'
91-
timeout_in_minutes: 30
92-
agents:
93-
queue: opensource-mac-unity
9492
env:
95-
UNITY_VERSION: "2020.3.25f1"
93+
UNITY_VERSION: "2020.3.28f1"
9694
plugins:
97-
artifacts#v1.2.0:
95+
artifacts#v1.5.0:
9896
download:
9997
- Bugsnag.unitypackage
10098
upload:
101-
- features/fixtures/maze_runner/mazerunner_2020.3.25f1.apk
99+
- features/fixtures/maze_runner/mazerunner_2020.3.28f1.apk
102100
- features/fixtures/unity.log
103101
commands:
104102
- rake test:android:build
@@ -113,23 +111,23 @@ steps:
113111
# Run Android tests
114112
#
115113
- label: ':android: Run Android e2e tests for Unity 2020'
116-
depends_on: 'build-android-fixture-2020'
117114
timeout_in_minutes: 30
115+
depends_on: 'build-android-fixture-2020'
118116
agents:
119117
queue: opensource
120118
env:
121-
UNITY_VERSION: "2020.3.25f1"
119+
UNITY_VERSION: "2020.3.28f1"
122120
plugins:
123-
artifacts#v1.3.0:
121+
artifacts#v1.5.0:
124122
download:
125-
- "features/fixtures/maze_runner/mazerunner_2020.3.25f1.apk"
123+
- "features/fixtures/maze_runner/mazerunner_2020.3.28f1.apk"
126124
upload:
127-
- "maze_output/failed/**/*"
125+
- "maze_output/**/*"
128126
docker-compose#v3.7.0:
129127
pull: maze-runner
130128
run: maze-runner
131129
command:
132-
- "--app=/app/features/fixtures/maze_runner/mazerunner_2020.3.25f1.apk"
130+
- "--app=/app/features/fixtures/maze_runner/mazerunner_2020.3.28f1.apk"
133131
- "--farm=bs"
134132
- "--device=ANDROID_9_0"
135133
- "features/android"
@@ -141,19 +139,16 @@ steps:
141139
# Build iOS test fixtures
142140
#
143141
- label: ':ios: Generate Xcode project - Unity 2020'
142+
timeout_in_minutes: 30
144143
key: 'generate-fixture-project-2020'
145144
depends_on: 'build-artifacts'
146-
timeout_in_minutes: 30
147-
agents:
148-
queue: opensource-mac-unity
149145
env:
150-
UNITY_VERSION: "2020.3.25f1"
146+
UNITY_VERSION: "2020.3.28f1"
151147
plugins:
152-
artifacts#v1.2.0:
148+
artifacts#v1.5.0:
153149
download:
154150
- Bugsnag.unitypackage
155151
upload:
156-
- features/fixtures/maze_runner/mazerunner_2020.3.25f1.ipa
157152
- features/fixtures/unity.log
158153
- project_2020.tgz
159154
commands:
@@ -167,20 +162,18 @@ steps:
167162
limit: 1
168163

169164
- label: ':ios: Build iOS test fixture for Unity 2020'
165+
timeout_in_minutes: 30
170166
key: 'build-ios-fixture-2020'
171167
depends_on: 'generate-fixture-project-2020'
172-
timeout_in_minutes: 30
173-
agents:
174-
queue: opensource-mac-cocoa-11
175168
env:
176-
UNITY_VERSION: "2020.3.25f1"
169+
UNITY_VERSION: "2020.3.28f1"
177170
plugins:
178-
artifacts#v1.2.0:
171+
artifacts#v1.5.0:
179172
download:
180173
- Bugsnag.unitypackage
181174
- project_2020.tgz
182175
upload:
183-
- features/fixtures/maze_runner/mazerunner_2020.3.25f1.ipa
176+
- features/fixtures/maze_runner/mazerunner_2020.3.28f1.ipa
184177
- features/fixtures/unity.log
185178
commands:
186179
- tar -zxf project_2020.tgz features/fixtures/maze_runner
@@ -196,21 +189,21 @@ steps:
196189
# Run iOS tests
197190
#
198191
- label: ':ios: Run iOS e2e tests for Unity 2020'
199-
depends_on: 'build-ios-fixture-2020'
200192
timeout_in_minutes: 30
193+
depends_on: 'build-ios-fixture-2020'
201194
agents:
202195
queue: opensource
203196
plugins:
204-
artifacts#v1.3.0:
197+
artifacts#v1.5.0:
205198
download:
206-
- "features/fixtures/maze_runner/mazerunner_2020.3.25f1.ipa"
199+
- "features/fixtures/maze_runner/mazerunner_2020.3.28f1.ipa"
207200
upload:
208-
- "maze_output/failed/**/*"
201+
- "maze_output/**/*"
209202
docker-compose#v3.7.0:
210203
pull: maze-runner
211204
run: maze-runner
212205
command:
213-
- "--app=/app/features/fixtures/maze_runner/mazerunner_2020.3.25f1.ipa"
206+
- "--app=/app/features/fixtures/maze_runner/mazerunner_2020.3.28f1.ipa"
214207
- "--farm=bs"
215208
- "--device=IOS_14"
216209
- "--fail-fast"
@@ -223,18 +216,18 @@ steps:
223216
# Build Windows test fixture
224217
#
225218
- label: Build Unity 2020 Windows test fixture
219+
timeout_in_minutes: 30
226220
key: 'windows-2020-fixture'
227221
depends_on: 'build-artifacts'
228-
timeout_in_minutes: 30
229222
agents:
230223
queue: opensource-windows-unity
231224
env:
232-
UNITY_VERSION: "2020.3.25f1"
225+
UNITY_VERSION: "2020.3.28f1"
233226
commands:
234227
- scripts/ci-build-windows-package.bat
235228
artifact_paths:
236229
- unity.log
237-
- features/fixtures/maze_runner/build/Windows-2020.3.25f1.zip
230+
- features/fixtures/maze_runner/build/Windows-2020.3.28f1.zip
238231
retry:
239232
automatic:
240233
- exit_status: -1 # Agent was lost
@@ -246,20 +239,21 @@ steps:
246239
# Run Windows e2e tests
247240
#
248241
- label: Run Windows e2e tests for Unity 2020
249-
depends_on: 'windows-2020-fixture'
250242
timeout_in_minutes: 30
243+
depends_on: 'windows-2020-fixture'
251244
agents:
252245
queue: opensource-windows-unity
253246
env:
254-
UNITY_VERSION: "2020.3.25f1"
247+
UNITY_VERSION: "2020.3.28f1"
255248
command:
256249
- scripts/ci-run-windows-tests.bat
257250
artifact_paths:
258-
- maze_output/failed/**/*
251+
- maze_output/**/*
259252

260253
#
261254
# Conditionally trigger full pipeline
262255
#
263256
- label: 'Conditionally trigger full set of tests'
257+
timeout_in_minutes: 30
264258
command: sh -c .buildkite/pipeline_trigger.sh
265259

CHANGELOG.md

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

3+
## 6.2.0 (2022-03-16)
4+
5+
### Enhancements
6+
7+
* Added event, session and device id persistence for Windows and WebGL builds [#512](https://github.com/bugsnag/bugsnag-unity/pull/512) [#509](https://github.com/bugsnag/bugsnag-unity/pull/509) [#514](https://github.com/bugsnag/bugsnag-unity/pull/514)
8+
9+
* Add `Configuration.MaxReportedThreads` config option to set the [native Android option](https://docs.bugsnag.com/platforms/android/configuration-options/#maxreportedthreads) [523](https://github.com/bugsnag/bugsnag-unity/pull/523)
10+
11+
* Update bugsnag-android to v5.20.0
12+
* The number of threads reported can now be limited using `Configuration.setMaxReportedThreads` (defaulting to 200)
13+
[bugsnag-android#1607](https://github.com/bugsnag/bugsnag-android/pull/1607)
14+
* Improved the performance and stability of the NDK and ANR plugins by caching JNI references on start
15+
[bugsnag-android#1596](https://github.com/bugsnag/bugsnag-android/pull/1596)
16+
[bugsnag-android#1601](https://github.com/bugsnag/bugsnag-android/pull/1601)
17+
318
## 6.1.0 (2022-02-08)
419

520
### Enhancements

UPGRADING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ The following methods have been added to the `Bugsnag` client to replace direct
7777
| `AddMetadata(string section, string key, object value)` | Add a specific value by key to a section of metadata |
7878
| `AddMetadata(string section, Dictionary<string, object> metadata)` | Add a section by name to the metadata metadata |
7979
| `ClearMetadata(string section)` | Clear a section of metadata |
80-
| `ClearMetadataClearMetadata(string section, string key)` | Clear a specific entry in a metadata section by key |
80+
| `ClearMetadata(string section, string key)` | Clear a specific entry in a metadata section by key |
8181
| `Dictionary<string, object> GetMetadata(string section)` | Get an entire section from the metadata as a Dictionary |
8282
| `object GetMetadata(string section, string key)` | Get an specific entry from the metadata as an object |
8383

bugsnag-android

Submodule bugsnag-android updated 30 files

build.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var target = Argument("target", "Default");
55
var solution = File("./BugsnagUnity.sln");
66
var configuration = Argument("configuration", "Release");
77
var project = File("./src/BugsnagUnity/BugsnagUnity.csproj");
8-
var version = "6.1.0";
8+
var version = "6.2.0";
99

1010
Task("Restore-NuGet-Packages")
1111
.Does(() => NuGetRestore(solution));

features/android/android_custom_configs.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ Feature: Android custom config setting
1313
When I run the "Custom App Type" mobile scenario
1414
Then I wait to receive an error
1515
And the event "app.type" equals "test"
16+
17+
Scenario: Max Reported Threads
18+
When I run the "Max Reported Threads" mobile scenario
19+
And I wait for 8 seconds
20+
And I relaunch the Unity mobile app
21+
When I run the "Start SDK" mobile scenario
22+
Then I wait to receive an error
23+
And the error payload field "events.0.threads" is an array with 3 elements

0 commit comments

Comments
 (0)