Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run e2e tests against XcFramework test fixture #1684

Merged
merged 21 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .buildkite/pipeline.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,96 @@ env:
LANG: "en_GB.UTF-8"

steps:

- label: Build XcFramework test fixtures
key: xcframework_cocoa_fixture
depends_on: framework_build
timeout_in_minutes: 30
agents:
queue: macos-14
env:
XCODE_VERSION: 15.3.0
plugins:
- artifacts#v1.9.3:
download: "Bugsnag.xcframework.zip"
upload:
- features/fixtures/ios/output/iOSTestAppXcFramework.ipa
# - features/fixtures/macos/output/macOSTestApp.zip
- features/fixtures/ios/output/xcframework_ipa_url_bb.txt
commands:
- unzip Bugsnag.xcframework.zip
- bundle install
- make xcframework-test-fixtures
- bundle exec upload-app --farm=bb --app=./features/fixtures/ios/output/iOSTestAppXcFramework.ipa --app-id-file=./features/fixtures/ios/output/xcframework_ipa_url_bb.txt

##############################################################################
#
# E2E tests
#

##############################################################################
#
# XcFramework E2E tests
#

- label: ':bitbar: iOS 16 XcFramework barebone E2E tests'
depends_on:
- xcframework_cocoa_fixture
timeout_in_minutes: 20
agents:
queue: opensource
plugins:
artifacts#v1.9.3:
download: "features/fixtures/ios/output/xcframework_ipa_url_bb.txt"
upload: "maze_output/failed/**/*"
docker-compose#v4.7.0:
pull: cocoa-maze-runner-bitbar
run: cocoa-maze-runner-bitbar
service-ports: true
command:
- "--app=@/app/build/xcframework_ipa_url_bb.txt"
- "--farm=bb"
- "--device=IOS_16"
- "--no-tunnel"
- "--aws-public-ip"
- "features/release/barebone_tests.feature"
concurrency: 25
concurrency_group: 'bitbar'
concurrency_method: eager
retry:
automatic:
- exit_status: -1 # Agent was lost
limit: 2

- label: ':bitbar: iOS 13 XcFramework barebone E2E tests'
depends_on:
- xcframework_cocoa_fixture
timeout_in_minutes: 20
agents:
queue: opensource
plugins:
artifacts#v1.9.3:
download: "features/fixtures/ios/output/xcframework_ipa_url_bb.txt"
upload: "maze_output/failed/**/*"
docker-compose#v4.7.0:
pull: cocoa-maze-runner-bitbar
run: cocoa-maze-runner-bitbar
service-ports: true
command:
- "--app=@/app/build/xcframework_ipa_url_bb.txt"
- "--farm=bb"
- "--device=IOS_13"
- "--no-tunnel"
- "--aws-public-ip"
- "features/release/barebone_tests.feature"
concurrency: 25
concurrency_group: 'bitbar'
concurrency_method: eager
retry:
automatic:
- exit_status: -1 # Agent was lost
limit: 2

#
# BitBar
#
Expand Down
5 changes: 3 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ steps:
#

- label: Static framework and Swift Package Manager builds
key: framework_build
timeout_in_minutes: 10
agents:
queue: macos-14
Expand All @@ -17,10 +18,10 @@ steps:
- make build_xcframework
- make build_swift
- make build_ios_static
- zip -r Bugsnag.xcframework.zip build/xcframeworks/products/Bugsnag.xcframework
twometresteve marked this conversation as resolved.
Show resolved Hide resolved
plugins:
- artifacts#v1.9.3:
upload: "build/xcframeworks/products/Bugsnag.xcframework"
compressed: xcframework.zip
upload: "Bugsnag.xcframework.zip"

- label: Build test fixtures
key: cocoa_fixture
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ Package.resolved
/oclint.json
bb.ready
/maze_output
Gemfile.lock
226 changes: 0 additions & 226 deletions Gemfile.lock

This file was deleted.

4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ test-fixtures: ## Build the end-to-end test fixture
@./features/scripts/export_mac_app.sh Release
@./features/scripts/export_mac_app.sh Debug

xcframework-test-fixtures: ## Build the xcframework end-to-end test fixture
@./features/scripts/export_xcframework_ios_app.sh
# @./features/scripts/export_xcframework_mac_app.sh

e2e_ios_local:
@./features/scripts/export_ios_app.sh
bundle exec maze-runner --app=features/fixtures/ios/output/iOSTestApp.ipa --farm=local --os=ios --apple-team-id=7W9PZ27Y5F --udid="$(shell idevice_id -l)" $(FEATURES)
Expand Down
12 changes: 0 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,3 @@ services:
- ./features/:/app/features/
- ./maze_output:/app/maze_output
- /var/run/docker.sock:/var/run/docker.sock

cocoa-maze-runner-legacy:
image: 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:latest-v9-cli-legacy
environment:
<<: *common-environment
BROWSER_STACK_USERNAME:
BROWSER_STACK_ACCESS_KEY:
USE_LEGACY_DRIVER: 1
volumes:
- ./features/fixtures/ios/output:/app/build
- ./features/:/app/features/
- ./maze_output:/app/maze_output
Loading
Loading