Skip to content

Commit

Permalink
Merge pull request #1306 from bugsnag/release-v6.16.3
Browse files Browse the repository at this point in the history
Release v6.16.3
  • Loading branch information
nickdowell authored Feb 23, 2022
2 parents c8454a8 + c18dcde commit 9292712
Show file tree
Hide file tree
Showing 79 changed files with 656 additions and 814 deletions.
44 changes: 22 additions & 22 deletions .buildkite/pipeline.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ steps:
- exit_status: -1 # Agent was lost
limit: 2

- label: 'macOS 11.0 E2E tests'
- label: 'macOS 11 E2E tests'
depends_on:
- cocoa_fixture
timeout_in_minutes: 60
Expand All @@ -259,7 +259,7 @@ steps:
--fail-fast
--order=random

- label: 'ARM macOS 12.0 E2E tests'
- label: 'ARM macOS 12 E2E tests'
depends_on:
- cocoa_fixture
timeout_in_minutes: 60
Expand Down Expand Up @@ -329,68 +329,68 @@ steps:

- label: 'examples/objective-c-ios'
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
commands:
- cd examples/objective-c-ios
- echo "--- Pod install"
- pod install
- echo "+++ Build Release iOS"
- xcodebuild -workspace objective-c-ios.xcworkspace -scheme objective-c-ios -configuration Release -destination generic/platform=iOS -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -workspace objective-c-ios.xcworkspace -scheme objective-c-ios -configuration Release -destination generic/platform=iOS -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- echo "+++ Build Debug iOS Simulator"
- xcodebuild -workspace objective-c-ios.xcworkspace -scheme objective-c-ios -configuration Debug -destination generic/platform=iOS\ Simulator -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -workspace objective-c-ios.xcworkspace -scheme objective-c-ios -configuration Debug -destination generic/platform=iOS\ Simulator -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES

- label: 'examples/objective-c-osx'
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
commands:
- cd examples/objective-c-osx
- echo "--- Pod install"
- pod install
- echo "+++ Build Release iOS"
- xcodebuild -workspace objective-c-osx.xcworkspace -scheme objective-c-osx -configuration Release -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -workspace objective-c-osx.xcworkspace -scheme objective-c-osx -configuration Release -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- echo "+++ Build Debug iOS Simulator"
- xcodebuild -workspace objective-c-osx.xcworkspace -scheme objective-c-osx -configuration Debug -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -workspace objective-c-osx.xcworkspace -scheme objective-c-osx -configuration Debug -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES

- label: 'examples/swift-ios'
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
commands:
- cd examples/swift-ios
- echo "--- Pod install"
- pod install
- echo "+++ Build Release iOS"
- xcodebuild -workspace swift-ios.xcworkspace -scheme swift-ios -configuration Release -destination generic/platform=iOS -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -workspace swift-ios.xcworkspace -scheme swift-ios -configuration Release -destination generic/platform=iOS -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- echo "+++ Build Debug iOS Simulator"
- xcodebuild -workspace swift-ios.xcworkspace -scheme swift-ios -configuration Debug -destination generic/platform=iOS\ Simulator -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -workspace swift-ios.xcworkspace -scheme swift-ios -configuration Debug -destination generic/platform=iOS\ Simulator -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES

- label: 'examples/swift-package-manager'
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
commands:
- cd examples/swift-package-manager
- echo "--- Resolve Swift Package Dependencies"
- sed -i '' -e 's/kind = branch/kind = revision/' -e "s/branch = master/revision = ${BUILDKITE_COMMIT}/" swift-package-manager.xcodeproj/project.pbxproj
- xcodebuild -scheme swift-package-manager -derivedDataPath DerivedData -resolvePackageDependencies
- xcodebuild -allowProvisioningUpdates -scheme swift-package-manager -derivedDataPath DerivedData -resolvePackageDependencies
- echo "+++ Build Release iOS"
- xcodebuild -scheme swift-package-manager -configuration Release -destination generic/platform=iOS -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -scheme swift-package-manager -configuration Release -destination generic/platform=iOS -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- echo "+++ Build Debug iOS Simulator"
- xcodebuild -scheme swift-package-manager -configuration Debug -destination generic/platform=iOS\ Simulator -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -scheme swift-package-manager -configuration Debug -destination generic/platform=iOS\ Simulator -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES

- label: 'examples/swiftui'
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
commands:
- cd examples/swiftui
- echo "--- Resolve Swift Package Dependencies"
- sed -i '' -e 's/kind = branch/kind = revision/' -e "s/branch = master/revision = ${BUILDKITE_COMMIT}/" swiftui.xcodeproj/project.pbxproj
- xcodebuild -scheme "swiftui (iOS)" -derivedDataPath DerivedData -resolvePackageDependencies
- xcodebuild -allowProvisioningUpdates -scheme "swiftui (iOS)" -derivedDataPath DerivedData -resolvePackageDependencies
- echo "+++ Build Release iOS"
- xcodebuild -scheme "swiftui (iOS)" -configuration Release -destination generic/platform=iOS -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -scheme "swiftui (iOS)" -configuration Release -destination generic/platform=iOS -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- echo "+++ Build Debug iOS Simulator"
- xcodebuild -scheme "swiftui (iOS)" -configuration Debug -destination generic/platform=iOS\ Simulator -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -scheme "swiftui (iOS)" -configuration Debug -destination generic/platform=iOS\ Simulator -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- echo "+++ Build Release macOS"
- xcodebuild -scheme "swiftui (macOS)" -configuration Release -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -scheme "swiftui (macOS)" -configuration Release -derivedDataPath DerivedData -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- echo "+++ Build Release tvOS"
- xcodebuild -scheme "swiftui (tvOS)" -configuration Release -destination generic/platform=tvOS -derivedDataPath DerivedData -allowProvisioningUpdates -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -scheme "swiftui (tvOS)" -configuration Release -destination generic/platform=tvOS -derivedDataPath DerivedData -allowProvisioningUpdates -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- echo "+++ Build Debug tvOS Simulator"
- xcodebuild -scheme "swiftui (tvOS)" -configuration Debug -destination generic/platform=tvOS\ Simulator -derivedDataPath DerivedData -allowProvisioningUpdates -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
- xcodebuild -allowProvisioningUpdates -scheme "swiftui (tvOS)" -configuration Debug -destination generic/platform=tvOS\ Simulator -derivedDataPath DerivedData -allowProvisioningUpdates -quiet build GCC_TREAT_WARNINGS_AS_ERRORS=YES
8 changes: 4 additions & 4 deletions .buildkite/pipeline.quick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ steps:
- label: iOS 13 unit tests
timeout_in_minutes: 10
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
concurrency: 3
concurrency_group: cocoa-unit-tests
commands:
Expand All @@ -39,7 +39,7 @@ steps:
- label: iOS 12 unit tests
timeout_in_minutes: 10
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
concurrency: 3
concurrency_group: cocoa-unit-tests
commands:
Expand Down Expand Up @@ -70,7 +70,7 @@ steps:
- label: tvOS 13 unit tests
timeout_in_minutes: 10
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
concurrency: 3
concurrency_group: cocoa-unit-tests
commands:
Expand All @@ -81,7 +81,7 @@ steps:
- label: tvOS 12 unit tests
timeout_in_minutes: 10
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
concurrency: 3
concurrency_group: cocoa-unit-tests
commands:
Expand Down
18 changes: 9 additions & 9 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ steps:
- label: Static framework and Swift Package Manager builds
timeout_in_minutes: 10
agents:
queue: opensource-mac-cocoa-10.15
queue: opensource-arm-mac-cocoa-12
concurrency: 3
concurrency_group: cocoa-unit-tests
commands:
Expand All @@ -42,7 +42,7 @@ steps:
- label: Carthage
timeout_in_minutes: 15
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
concurrency: 3
concurrency_group: cocoa-unit-tests
commands:
Expand All @@ -56,7 +56,7 @@ steps:
# Unit tests
#

- label: ARM macOS 11 unit tests
- label: ARM macOS 12 unit tests
timeout_in_minutes: 10
agents:
queue: opensource-arm-mac-cocoa-12
Expand Down Expand Up @@ -88,9 +88,9 @@ steps:
- label: iOS 14 unit tests
timeout_in_minutes: 10
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
commands:
- ./scripts/run-unit-tests.sh PLATFORM=iOS OS=14.4
- ./scripts/run-unit-tests.sh PLATFORM=iOS OS=14.5
artifact_paths:
- logs/*

Expand All @@ -106,9 +106,9 @@ steps:
- label: tvOS 14 unit tests
timeout_in_minutes: 10
agents:
queue: opensource-mac-cocoa-11
queue: opensource-arm-mac-cocoa-12
commands:
- ./scripts/run-unit-tests.sh PLATFORM=tvOS OS=14.4
- ./scripts/run-unit-tests.sh PLATFORM=tvOS OS=14.5
artifact_paths:
- logs/*

Expand Down Expand Up @@ -255,10 +255,10 @@ steps:
--app=macOSTestApp
--order=random

- label: 'macOS 10.15 stress test'
- label: 'macOS 12 stress test'
timeout_in_minutes: 3
agents:
queue: opensource-mac-cocoa
queue: opensource-arm-mac-cocoa-12
env:
STRESS_TEST: "true"
commands:
Expand Down
97 changes: 44 additions & 53 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,53 @@ name: "Pull Request"
on: [pull_request]

jobs:
build:

analyze:
runs-on: macos-latest
env:
# Infer 1.0.1 cannot parse the iOS 15 SDK headers
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
steps:
- name: Checkout base branch
uses: actions/checkout@v2
with:
ref: ${{ github.base_ref }}

- name: Build framework
# Base branch may not have the latest Makefile, so cannot use `make` here
run: |
xcodebuild -project Bugsnag.xcodeproj -configuration Release -scheme Bugsnag-iOS -destination generic/platform=iOS -derivedDataPath DerivedData -quiet clean build VALID_ARCHS=arm64
eval $(stat -s DerivedData/Build/Products/Release-iphoneos/Bugsnag.framework/Bugsnag)
echo $st_size > .size_before
rm -rf DerivedData
- name: Checkout PR branch
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
fetch-depth: 0
clean: false

- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Checkout pull request HEAD
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install dependencies
run: brew install infer oclint && gem install xcpretty
- name: Build framework
run: make compile_commands.json
- name: Infer
run: make infer
- name: OCLint
run: make oclint

- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Build framework
run: |
make compile_commands.json
eval $(stat -s DerivedData/Build/Products/Release-iphoneos/Bugsnag.framework/Bugsnag)
echo $st_size > .size_after
- name: Infer
run: |
brew install infer
make infer
- name: OCLint
run: |
brew install oclint
make oclint
- name: Danger
run: bundle exec danger
env:
# https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
danger:
runs-on: macos-latest
steps:
- name: Checkout target branch
uses: actions/checkout@v2
with:
ref: ${{ github.base_ref }}
- name: Build framework
run: xcodebuild -project Bugsnag.xcodeproj -configuration Release -target Bugsnag-iOS -destination generic/platform=iOS -quiet clean build VALID_ARCHS=arm64 RUN_CLANG_STATIC_ANALYZER=NO && mv build build.base
- name: Checkout pull request merge branch
uses: actions/checkout@v2
with:
clean: false
fetch-depth: 100
- name: Build framework
run: xcodebuild -project Bugsnag.xcodeproj -configuration Release -target Bugsnag-iOS -destination generic/platform=iOS -quiet clean build VALID_ARCHS=arm64 RUN_CLANG_STATIC_ANALYZER=NO
- name: Install dependencies
run: brew install bloaty && gem install danger
- name: Run bloaty (compileunits)
run: bloaty build/Release-iphoneos/Bugsnag.framework/Bugsnag --debug-file=build/Release-iphoneos/Bugsnag.framework.dSYM/Contents/Resources/DWARF/Bugsnag -n 0 -d compileunits
- name: Run bloaty (sections,compileunits)
run: bloaty build/Release-iphoneos/Bugsnag.framework/Bugsnag --debug-file=build/Release-iphoneos/Bugsnag.framework.dSYM/Contents/Resources/DWARF/Bugsnag -n 0 -d sections,compileunits
- name: Run bloaty (sections,symbols)
run: bloaty build/Release-iphoneos/Bugsnag.framework/Bugsnag --debug-file=build/Release-iphoneos/Bugsnag.framework.dSYM/Contents/Resources/DWARF/Bugsnag -n 0 -d sections,symbols
- name: Run bloaty (segments,sections)
run: bloaty build/Release-iphoneos/Bugsnag.framework/Bugsnag --debug-file=build/Release-iphoneos/Bugsnag.framework.dSYM/Contents/Resources/DWARF/Bugsnag -n 0 -d segments,sections
- name: Run danger
run: danger
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ author_url: "https://www.bugsnag.com"
author: "Bugsnag Inc"
clean: false # avoid deleting docs/.git
framework_root: "Bugsnag"
github_file_prefix: "https://github.com/bugsnag/bugsnag-cocoa/tree/v6.16.2/Bugsnag"
github_file_prefix: "https://github.com/bugsnag/bugsnag-cocoa/tree/v6.16.3/Bugsnag"
github_url: "https://github.com/bugsnag/bugsnag-cocoa"
hide_documentation_coverage: true
module: "Bugsnag"
module_version: "6.16.2"
module_version: "6.16.3"
objc: true
output: "docs"
readme: "README.md"
Expand Down
4 changes: 2 additions & 2 deletions Bugsnag.podspec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Bugsnag",
"version": "6.16.2",
"version": "6.16.3",
"summary": "The Bugsnag crash reporting framework for Apple platforms.",
"homepage": "https://bugsnag.com",
"license": "MIT",
Expand All @@ -9,7 +9,7 @@
},
"source": {
"git": "https://github.com/bugsnag/bugsnag-cocoa.git",
"tag": "v6.16.2"
"tag": "v6.16.3"
},
"frameworks": [
"Foundation",
Expand Down
Loading

0 comments on commit 9292712

Please sign in to comment.