Skip to content

Fix baseline profile generation - #2138

Open
liutikas wants to merge 1 commit into
android:mainfrom
liutikas:fixbaselineprofile
Open

Fix baseline profile generation#2138
liutikas wants to merge 1 commit into
android:mainfrom
liutikas:fixbaselineprofile

Conversation

@liutikas

Copy link
Copy Markdown
Collaborator

Before this change baseline profiles where not being generated at all because
android { buildTypes { release {
baselineProfile.automaticGenerationDuringBuild = true
}}}

is overwritten by
baselineProfile {
// Don't build on every iteration of a full assemble.
// Instead enable generation directly for the release build variant.
automaticGenerationDuringBuild = false
}

Instead, correctly set it for the release variant

@liutikas
liutikas requested a review from dturner as a code owner August 31, 2026 20:17
@liutikas
liutikas requested review from keyboardsurfer and removed request for dturner August 31, 2026 20:20
@liutikas

Copy link
Copy Markdown
Collaborator Author

Note, this makes it runs, but it seems that GitHub actions fail as we cannot run the emulator. @keyboardsurfer do you have an idea what needs to change to fix that?

Before this change baseline profiles where not being generated at all
because
android { buildTypes { release {
            baselineProfile.automaticGenerationDuringBuild = true
}}}

is overwritten by
baselineProfile {
    // Don't build on every iteration of a full assemble.
    // Instead enable generation directly for the release build variant.
    automaticGenerationDuringBuild = false
}

Instead, correctly set it for the release variant
@liutikas

Copy link
Copy Markdown
Collaborator Author

Note, this makes it runs, but it seems that GitHub actions fail as we cannot run the emulator. @keyboardsurfer do you have an idea what needs to change to fix that?

Execution failed for task ':benchmarks:pixel6Api33Setup'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.ManagedDeviceInstrumentationTestSetupTask$ManagedDeviceSetupRunnable
   > com.android.build.gradle.internal.AvdSnapshotHandler$EmulatorStartFailedException: Unable to start Android emulator for dev33_default_x86_64_Pixel_6. Error message from emulator process = [ERROR        | gpuChoiceBasedOnGpuOptions: Selected GPU option 'auto-no-window' is not valid, switching to 'auto' mode.
gradle/actions: Writing build results to /home/runner/work/_temp/.gradle-actions/build-results/__run_6-1788208518773.json
     ERROR        | x86_64 emulation currently requires hardware acceleration!]

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