Skip to content

Commit 9b85fb3

Browse files
authored
Merge pull request #102 from bugsnag/next
Release v1.3.3
2 parents c9e4546 + 0c5fd71 commit 9b85fb3

File tree

7 files changed

+32
-4
lines changed

7 files changed

+32
-4
lines changed

.buildkite/pipeline.full.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ steps:
2121
- features/fixtures/mazerunner/mazerunner_macos_2020.zip
2222
- features/fixtures/build_macos.log
2323
commands:
24+
- bundle install
2425
- 'rake test:macos:build'
2526
retry:
2627
automatic:
@@ -60,6 +61,7 @@ steps:
6061
- features/fixtures/mazerunner/mazerunner_macos_2022.zip
6162
- features/fixtures/build_macos.log
6263
commands:
64+
- bundle install
6365
- 'rake test:macos:build'
6466
retry:
6567
automatic:
@@ -184,6 +186,7 @@ steps:
184186
- features/fixtures/import_package.log
185187
- features/fixtures/build_android.log
186188
commands:
189+
- bundle install
187190
- 'rake test:android:build'
188191
retry:
189192
automatic:
@@ -231,6 +234,7 @@ steps:
231234
- features/fixtures/import_package.log
232235
- features/fixtures/build_android.log
233236
commands:
237+
- bundle install
234238
- 'rake test:android:build'
235239
retry:
236240
automatic:
@@ -277,6 +281,7 @@ steps:
277281
- features/fixtures/generateXcodeProject.log
278282
- project_2020.tgz
279283
commands:
284+
- bundle install
280285
- 'rake test:ios:generate_xcode'
281286
- tar -zvcf project_2020.tgz features/fixtures/mazerunner/mazerunner_xcode
282287
retry:
@@ -299,6 +304,7 @@ steps:
299304
- features/fixtures/mazerunner/mazerunner_2020.ipa
300305
- features/fixtures/unity.log
301306
commands:
307+
- bundle install
302308
- tar -zxf project_2020.tgz features/fixtures/mazerunner
303309
- 'rake test:ios:build_xcode'
304310
retry:
@@ -346,6 +352,7 @@ steps:
346352
- features/fixtures/generateXcodeProject.log
347353
- project_2022.tgz
348354
commands:
355+
- bundle install
349356
- 'rake test:ios:generate_xcode'
350357
- tar -zvcf project_2022.tgz features/fixtures/mazerunner/mazerunner_xcode
351358
retry:
@@ -368,6 +375,7 @@ steps:
368375
- features/fixtures/mazerunner/mazerunner_2022.ipa
369376
- features/fixtures/unity.log
370377
commands:
378+
- bundle install
371379
- tar -zxf project_2022.tgz features/fixtures/mazerunner
372380
- 'rake test:ios:build_xcode'
373381
retry:

.buildkite/pipeline.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ steps:
5050
- features/fixtures/mazerunner/mazerunner_webgl_2021.zip
5151
- features/fixtures/build_webgl.log
5252
commands:
53+
- bundle install
5354
- 'rake test:webgl:build'
5455
retry:
5556
automatic:
@@ -132,6 +133,7 @@ steps:
132133
- features/fixtures/mazerunner/mazerunner_macos_2021.zip
133134
- features/fixtures/build_macos.log
134135
commands:
136+
- bundle install
135137
- 'rake test:macos:build'
136138
retry:
137139
automatic:
@@ -172,6 +174,7 @@ steps:
172174
- features/fixtures/import_package.log
173175
- features/fixtures/build_android.log
174176
commands:
177+
- bundle install
175178
- 'rake test:android:build'
176179
retry:
177180
automatic:
@@ -218,6 +221,7 @@ steps:
218221
- features/fixtures/generateXcodeProject.log
219222
- project_2021.tgz
220223
commands:
224+
- bundle install
221225
- 'rake test:ios:generate_xcode'
222226
- tar -zvcf project_2021.tgz features/fixtures/mazerunner/mazerunner_xcode
223227
retry:
@@ -240,6 +244,7 @@ steps:
240244
- features/fixtures/mazerunner/mazerunner_2021.ipa
241245
- features/fixtures/unity.log
242246
commands:
247+
- bundle install
243248
- tar -zxf project_2021.tgz features/fixtures/mazerunner
244249
- 'rake test:ios:build_xcode'
245250
retry:

BugsnagPerformance/Assets/BugsnagPerformance/Scripts/Internal/Delivery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private static double ReadResponseProbability(UnityWebRequest req)
173173
var probabilityStr = req.GetResponseHeader("Bugsnag-Sampling-Probability");
174174
if (probabilityStr != null)
175175
{
176-
return Convert.ToDouble(probabilityStr);
176+
return double.Parse(probabilityStr, CultureInfo.InvariantCulture);
177177
}
178178
}
179179
catch

BugsnagPerformance/Assets/BugsnagPerformance/Scripts/Internal/TracePayload.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Text;
55
using Newtonsoft.Json;
66
using System.Linq;
7+
using System.Globalization;
78

89
namespace BugsnagUnityPerformance
910
{
@@ -136,9 +137,9 @@ private static string BuildSamplingHistogramHeader(TracePayload payload)
136137

137138
foreach (KeyValuePair<double, int> pair in payload.SamplingHistogram)
138139
{
139-
builder.Append(pair.Key);
140+
builder.Append(pair.Key.ToString(CultureInfo.InvariantCulture));
140141
builder.Append(':');
141-
builder.Append(pair.Value);
142+
builder.Append(pair.Value.ToString(CultureInfo.InvariantCulture));
142143
builder.Append(';');
143144
}
144145
builder.Remove(builder.Length - 1, 1);

BugsnagPerformance/Assets/BugsnagPerformance/Scripts/Internal/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
internal static class Version
44
{
55
//TODO set this using sed or something in the release automation task
6-
public const string VersionString = "1.3.2";
6+
public const string VersionString = "1.3.3";
77
}
88
}

CHANGELOG.md

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

3+
## v1.3.3 (2024-03-07)
4+
5+
### Bug Fixes
6+
7+
- Fixed issue where the p value header was being parsed without specific formatting instructions, meaning that when running in different locals, it could be parsed incorrectly. [#101](https://github.com/bugsnag/bugsnag-unity-performance/pull/101)
8+
39
## v1.3.2 (2024-14-02)
410

511
### Bug Fixes

features/persistence.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,11 @@ Feature: Trace and state persistence
127127
# And I wait to receive a sampling request
128128
# And I discard the oldest sampling request
129129
# And I wait to receive a sampling request
130+
131+
@skip_webgl #Pending PLAT-8151
132+
Scenario: P value response parsing
133+
Given I set the sampling probability for the next traces to "0.9999999"
134+
And I run the game in the "PValueUpdate" state
135+
And I wait to receive a sampling request
136+
And I wait for 1 span
137+
And the trace payload field "resourceSpans.0.scopeSpans.0.spans.0.attributes.2.value.doubleValue" equals 0.9999999

0 commit comments

Comments
 (0)