Skip to content

perf(ci): Use Debug configuration for CI screenshots#111

Merged
philprime merged 3 commits intomainfrom
perf/screenshot-ci-debug-build
Mar 19, 2026
Merged

perf(ci): Use Debug configuration for CI screenshots#111
philprime merged 3 commits intomainfrom
perf/screenshot-ci-debug-build

Conversation

@philprime
Copy link
Member

Switch from Release to Debug build configuration for the generate_screenshots_ci fastlane lane.

Fastlane's capture_screenshots defaults to Release builds, which include Whole Module Optimization and aggressive compiler passes. Analysis of recent CI runs showed:

  • UI Tests (Debug): ~7 minutes
  • Screenshot Generation (Release): ~17 minutes

The build phase alone accounts for ~9 minutes in Release vs ~3-4 minutes in Debug.

For CI visual regression testing with Sentry, Debug builds are acceptable since the UI layout is identical between configurations. The full generate_screenshots lane (used for App Store submissions) remains unchanged and will continue to use Release configuration.

Expected savings: ~5-6 minutes per PR workflow run.

Switch from Release to Debug build configuration for the
generate_screenshots_ci lane. Release builds include Whole Module
Optimization and aggressive compiler passes that significantly
increase build time (~9 min vs ~3-4 min).

For CI visual regression testing with Sentry, Debug builds are
acceptable since UI layout is identical between configurations.
The full generate_screenshots lane remains Release for App Store
submissions.

Expected savings: ~5-6 minutes per CI run.
Simplify the job and step names for cleaner CI output.
@philprime philprime marked this pull request as ready for review March 19, 2026 15:36
@philprime philprime enabled auto-merge (squash) March 19, 2026 15:37
Remove invalid github.job.name from concurrency group - this context
variable is not available at workflow level and was causing the
cancel-in-progress to not work correctly.
@sentry
Copy link

sentry bot commented Mar 19, 2026

Sentry Build Distribution

App Name App ID Version Configuration Install Page
Flinky com.techprimate.Flinky 1.1.3 (47) -- Install Build

@philprime philprime merged commit 5775e1f into main Mar 19, 2026
6 of 7 checks passed
@philprime philprime deleted the perf/screenshot-ci-debug-build branch March 19, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant