perf(ci): Parallelize screenshot generation across CI jobs#113
Draft
perf(ci): Parallelize screenshot generation across CI jobs#113
Conversation
Split screenshot generation into build-once + run-per-device jobs to eliminate fastlane snapshot's per-device-family rebuild and enable targeted retries on failure. New lanes: - build_screenshots: xcodebuild build-for-testing (single build) - run_screenshot_on_device: test-without-building on one device - collect_screenshots: gather results into fastlane/screenshots/ - generate_screenshots_parallel: local convenience lane Split release_ci into release_ci_build + release_ci_upload so the release workflow can run IPA build and screenshot generation in parallel, then combine for App Store upload.
Sentry Build Distribution
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parallelize App Store screenshot generation to reduce release workflow time.
Previously,
fastlane snapshotran screenshots in 2 batches (iPhones, then iPads), rebuilding the test target for each batch. With 4 devices this took ~48 minutes — most of it building, not testing (actual UI tests take <1 min per device).This PR introduces a build-once + run-per-device approach:
build_screenshotslane runsxcodebuild build-for-testingoncerun_screenshot_on_devicelane runstest-without-buildingon a single device with status bar overridecollect_screenshotsgathers PNGs intofastlane/screenshots/en-US/The release workflow is restructured into parallel jobs:
release-build— IPA build, validation, Sentry setup (runs in parallel with screenshots)build-screenshots— single test bundle buildscreenshot(matrix: 4 devices) — parallel per-device test executionrelease-upload— collects everything, uploads to App StoreBenefits:
New lanes
release_ci_buildandrelease_ci_uploadsplit the monolithicrelease_cifor the multi-job workflow. The originalrelease_cilane is preserved for single-job use.