Skip to content

Commit 806ce40

Browse files
authored
Merge pull request #764 from bugsnag/next
Release v7.7.0
2 parents 8f85bde + b38b3f6 commit 806ce40

Some content is hidden

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

55 files changed

+3272
-342
lines changed

.buildkite/pipeline.full.yml

Lines changed: 303 additions & 85 deletions
Large diffs are not rendered by default.

.buildkite/pipeline.yml

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ agents:
22
queue: macos-12-arm-unity
33

44
steps:
5-
65
#
76
# Build notifier. We run tests for all Unity versions with the 2018 artifacts, as that is what we ship.
87
#
98
- label: Build released notifier artifact
109
timeout_in_minutes: 30
11-
key: 'build-artifacts'
10+
key: "build-artifacts"
1211
env:
13-
DEVELOPER_DIR: "/Applications/Xcode13.4.app"
12+
DEVELOPER_DIR: "/Applications/Xcode14.0.app"
1413
UNITY_VERSION: "2018.4.36f1"
1514
commands:
1615
- bundle install
@@ -41,11 +40,26 @@ steps:
4140
# - exit_status: "*"
4241
# limit: 1
4342

43+
- label: 'build size impact reporting'
44+
timeout_in_minutes: 10
45+
depends_on: build-artifacts
46+
env:
47+
UNITY_VERSION: "2020.3.48f1"
48+
DEVELOPER_DIR: "/Applications/Xcode14.0.app"
49+
plugins:
50+
'artifacts#v1.9.0':
51+
download:
52+
- Bugsnag.unitypackage
53+
agents:
54+
queue: macos-12-arm
55+
commands:
56+
features/scripts/do_size_test.sh
57+
4458
# Build Android test fixtures
45-
- label: ':android: Build Android test fixture for Unity 2020'
59+
- label: ":android: Build Android test fixture for Unity 2020"
4660
timeout_in_minutes: 30
47-
key: 'build-android-fixture-2020'
48-
depends_on: 'build-artifacts'
61+
key: "build-android-fixture-2020"
62+
depends_on: "build-artifacts"
4963
env:
5064
UNITY_VERSION: "2020.3.48f1"
5165
plugins:
@@ -87,9 +101,9 @@ steps:
87101
#
88102
# Run Android tests
89103
#
90-
- label: ':bitbar: :android: Run Android e2e tests for Unity 2020'
104+
- label: ":bitbar: :android: Run Android e2e tests for Unity 2020"
91105
timeout_in_minutes: 60
92-
depends_on: 'build-android-fixture-2020'
106+
depends_on: "build-android-fixture-2020"
93107
agents:
94108
queue: opensource
95109
env:
@@ -115,10 +129,9 @@ steps:
115129
- "--aws-public-ip"
116130
- "--fail-fast"
117131
concurrency: 25
118-
concurrency_group: 'bitbar-app'
132+
concurrency_group: "bitbar"
119133
concurrency_method: eager
120134

121-
122135
# Run Android EDM tests
123136

124137
# - label: ':android: Run Android EDM e2e tests for Unity 2020'
@@ -149,10 +162,10 @@ steps:
149162
#
150163
# Build iOS test fixtures
151164
#
152-
- label: ':ios: Generate Xcode project - Unity 2020'
165+
- label: ":ios: Generate Xcode project - Unity 2020"
153166
timeout_in_minutes: 30
154-
key: 'generate-fixture-project-2020'
155-
depends_on: 'build-artifacts'
167+
key: "generate-fixture-project-2020"
168+
depends_on: "build-artifacts"
156169
env:
157170
UNITY_VERSION: "2020.3.48f1"
158171
plugins:
@@ -170,12 +183,12 @@ steps:
170183
- exit_status: "*"
171184
limit: 1
172185

173-
- label: ':ios: Build iOS test fixture for Unity 2020'
186+
- label: ":ios: Build iOS test fixture for Unity 2020"
174187
timeout_in_minutes: 30
175-
key: 'build-ios-fixture-2020'
176-
depends_on: 'generate-fixture-project-2020'
188+
key: "build-ios-fixture-2020"
189+
depends_on: "generate-fixture-project-2020"
177190
env:
178-
DEVELOPER_DIR: "/Applications/Xcode13.4.app"
191+
DEVELOPER_DIR: "/Applications/Xcode14.0.app"
179192
UNITY_VERSION: "2020.3.48f1"
180193
plugins:
181194
artifacts#v1.5.0:
@@ -196,9 +209,9 @@ steps:
196209
#
197210
# Run iOS tests
198211
#
199-
- label: ':bitbar: :ios: Run iOS e2e tests for Unity 2020'
212+
- label: ":bitbar: :ios: Run iOS e2e tests for Unity 2020"
200213
timeout_in_minutes: 60
201-
depends_on: 'build-ios-fixture-2020'
214+
depends_on: "build-ios-fixture-2020"
202215
agents:
203216
queue: opensource
204217
plugins:
@@ -223,13 +236,12 @@ steps:
223236
- "--aws-public-ip"
224237
- "--fail-fast"
225238
concurrency: 25
226-
concurrency_group: 'bitbar-app'
239+
concurrency_group: "bitbar"
227240
concurrency_method: eager
228241

229242
#
230243
# Conditionally trigger full pipeline
231244
#
232-
- label: 'Conditionally trigger full set of tests'
245+
- label: "Conditionally trigger full set of tests"
233246
timeout_in_minutes: 30
234247
command: sh -c .buildkite/pipeline_trigger.sh
235-
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: update-dependencies
2+
3+
on:
4+
repository_dispatch:
5+
types: [update-dependency]
6+
workflow_dispatch:
7+
inputs:
8+
target_submodule:
9+
description: 'Submodule to update'
10+
required: true
11+
type: string
12+
target_version:
13+
description: 'Version of the submodule to update to'
14+
required: true
15+
type: string
16+
17+
jobs:
18+
update-dependencies:
19+
runs-on: ubuntu-latest
20+
env:
21+
TARGET_SUBMODULE: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.target_submodule || inputs.target_submodule }}
22+
TARGET_VERSION: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.target_version || inputs.target_version }}
23+
BUNDLE_GITHUB__COM: ${{ secrets.BUNDLE_ACCESS_TOKEN }}
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
ref: next
29+
30+
- run: |
31+
git config --global user.name 'Bumpsnag bot'
32+
git config --global user.email ''
33+
34+
- run: git fetch --prune --unshallow
35+
36+
- run: git submodule update --init --recursive
37+
38+
- name: Install libcurl4-openssl-dev and net-tools
39+
run: |
40+
sudo apt-get update
41+
sudo apt-get install libcurl4-openssl-dev net-tools
42+
43+
44+
- name: Install ruby
45+
uses: ruby/setup-ruby@v1
46+
with:
47+
ruby-version: 2.7
48+
49+
- name: Install dependencies
50+
run: bundle install
51+
52+
- run: bundle exec rake dependencies:update
53+
54+
- name: List current branch name
55+
id: current-branch
56+
run: echo "branch=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_OUTPUT
57+
58+
- name: Create pull request
59+
if: ${{ steps.current-branch.outputs.branch != 'next'}}
60+
run: >
61+
gh pr create -B next
62+
-H bumpsnag-$TARGET_SUBMODULE-$TARGET_VERSION
63+
--title "Update $TARGET_SUBMODULE to version $TARGET_VERSION"
64+
--body 'Created by bumpsnag'
65+
--reviewer rich-bugsnag

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,8 @@ Bugsnag.meta
4343
unity/PackageProject/Assets/Bugsnag
4444
nunit-agent*.log
4545
features/fixtures/maze_runner/Assets/Bugsnag
46+
*.log
47+
features/fixtures/minimalapp/Assets/Bugsnag
48+
features/fixtures/minimalapp/minimal_with_xcode
49+
features/fixtures/minimalapp/minimal_without_xcode
50+
features/fixtures/minimalapp/Packages

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
# Changelog
22

3+
## 7.7.0 (2024-01-04)
4+
5+
### Enhancements
6+
7+
- Added `IsStarted` check method that returns false if start has not been called on the BugSnag client.
8+
9+
- Update bugsnag-cocoa from v6.27.2 to [v6.28.0](https://github.com/bugsnag/bugsnag-cocoa/blob/master/CHANGELOG.md#6280-2023-12-13)
10+
311
## 7.6.5 (2023-08-17)
412

513
### Bug Fixes
614

715
- Fix for Android memory leak. [#738](https://github.com/bugsnag/bugsnag-unity/pull/738)
816

9-
1017
## 7.6.4 (2023-08-09)
1118

1219
### Bug Fixes

Gemfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ unless Gem.win_platform?
99
gem 'bugsnag-maze-runner', '~>8.0'
1010

1111
# Use a specific Maze Runner branch
12-
#gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner', branch: 'master'
12+
# gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner', branch: 'master'
1313

1414
# Use a local copy of Maze Runner for development purposes
1515
#gem 'bugsnag-maze-runner', path: '../maze-runner'
1616
end
17+
18+
# Only install bumpsnag if we're using Github actions
19+
unless ENV['GITHUB_ACTIONS'].nil?
20+
gem 'bumpsnag', git: 'https://github.com/bugsnag/platforms-bumpsnag', branch: 'main'
21+
end

Gemfile.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ GEM
1111
faye-websocket (~> 0.11.0)
1212
selenium-webdriver (~> 4.2, < 4.6)
1313
atomos (0.1.3)
14-
bugsnag (6.25.2)
14+
bugsnag (6.26.0)
1515
concurrent-ruby (~> 1.0)
16-
bugsnag-maze-runner (8.1.4)
16+
bugsnag-maze-runner (8.13.1)
1717
appium_lib (~> 12.0.0)
1818
appium_lib_core (~> 5.4.0)
1919
bugsnag (~> 6.24)
@@ -72,32 +72,32 @@ GEM
7272
ecma-re-validator (0.4.0)
7373
regexp_parser (~> 2.2)
7474
eventmachine (1.2.7)
75-
faye-websocket (0.11.2)
75+
faye-websocket (0.11.3)
7676
eventmachine (>= 0.12.0)
7777
websocket-driver (>= 0.5.1)
78-
ffi (1.15.5)
78+
ffi (1.16.3)
7979
hana (1.3.7)
8080
json_schemer (0.2.25)
8181
ecma-re-validator (~> 0.3)
8282
hana (~> 1.3)
8383
regexp_parser (~> 2.0)
8484
simpleidn (~> 0.2)
8585
uri_template (~> 0.7)
86-
mime-types (3.4.1)
86+
mime-types (3.5.1)
8787
mime-types-data (~> 3.2015)
88-
mime-types-data (3.2023.0218.1)
88+
mime-types-data (3.2023.1003)
8989
multi_test (0.1.2)
9090
nanaimo (0.3.0)
91-
nokogiri (1.15.2-x86_64-darwin)
91+
nokogiri (1.15.5-x86_64-darwin)
9292
racc (~> 1.4)
9393
optimist (3.0.1)
9494
os (1.0.1)
9595
power_assert (2.0.3)
96-
racc (1.7.1)
97-
rack (2.2.7)
96+
racc (1.7.3)
97+
rack (2.2.8)
9898
rake (12.3.3)
99-
regexp_parser (2.8.1)
100-
rexml (3.2.5)
99+
regexp_parser (2.8.2)
100+
rexml (3.2.6)
101101
rouge (2.0.7)
102102
rubyzip (2.3.2)
103103
selenium-webdriver (4.5.0)
@@ -114,14 +114,14 @@ GEM
114114
tomlrb (2.0.3)
115115
unf (0.1.4)
116116
unf_ext
117-
unf_ext (0.0.8.2)
117+
unf_ext (0.0.9.1)
118118
uri_template (0.7.0)
119119
webrick (1.7.0)
120-
websocket (1.2.9)
121-
websocket-driver (0.7.5)
120+
websocket (1.2.10)
121+
websocket-driver (0.7.6)
122122
websocket-extensions (>= 0.1.0)
123123
websocket-extensions (0.1.5)
124-
xcodeproj (1.22.0)
124+
xcodeproj (1.23.0)
125125
CFPropertyList (>= 2.3.3, < 4.0)
126126
atomos (~> 0.1.3)
127127
claide (>= 1.0.2, < 2.0)

Rakefile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ require "open3"
22
require "xcodeproj"
33
require "rbconfig"
44

5+
unless ENV['GITHUB_ACTIONS'].nil?
6+
require "bumpsnag"
7+
end
8+
59
HOST_OS = RbConfig::CONFIG['host_os']
610
def is_mac?; HOST_OS =~ /darwin/i; end
711
def is_windows?; HOST_OS =~ /mingw|mswin|windows/i; end
@@ -446,3 +450,43 @@ namespace :test do
446450
end
447451
end
448452
end
453+
454+
namespace :dependencies do
455+
task :update do
456+
target_submodule = ENV['TARGET_SUBMODULE']
457+
target_version = ENV['TARGET_VERSION']
458+
459+
if target_submodule.nil? || target_version.nil?
460+
raise 'Submodule or version targets not provided, exiting'
461+
exit(1)
462+
end
463+
464+
pp "Updating submodule: #{target_submodule} to version: #{target_version}"
465+
updated = Bumpsnag.update_submodule(target_submodule, target_version)
466+
467+
if updated
468+
local_info = Bumpsnag.get_git_info
469+
target_info = Bumpsnag.get_git_info(target_submodule)
470+
471+
target_pr = local_info[:latest_pr] + 1
472+
origin_repo = 'https://github.com/bugsnag/bugsnag-unity'
473+
target_repo = target_info[:origin]
474+
475+
changelog_message = "Update #{target_submodule} to [#{target_version}](#{target_repo}/releases/tag/#{target_version}) [##{target_pr}](#{origin_repo}/pull/#{target_pr})"
476+
477+
Bumpsnag.add_changelog_entry(changelog_message, 'Dependencies')
478+
479+
release_branch = "bumpsnag-#{target_submodule}-#{target_version}"
480+
481+
commit_message = "Update #{target_submodule} to #{target_version} [full ci]"
482+
483+
Bumpsnag.change_branch(release_branch, true)
484+
Bumpsnag.commit_changes(commit_message, [target_submodule, 'CHANGELOG.md'])
485+
Bumpsnag.push_changes(release_branch)
486+
487+
pp 'Update complete'
488+
else
489+
pp "Nothing was updated"
490+
end
491+
end
492+
end

bugsnag-cocoa

Submodule bugsnag-cocoa updated 240 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 = "7.6.5";
8+
var version = "7.7.0";
99

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

0 commit comments

Comments
 (0)