Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Automate baseline profile generation #1016

Merged
merged 1 commit into from
Nov 29, 2022
Merged

Conversation

chrisbanes
Copy link
Owner

@chrisbanes chrisbanes commented Nov 28, 2022

This PR automates baseline profile generation, by running our Macrobenchmark tests on an Android emulator, and then committing the updated baseline profile back to the repository.

If you'd like to know more about baseline profiles, I recommend looking through the documentation.

Some notes

Trigger

This workflow does not try to avoid commit cycles, whereby the workflow commits a new baseline profile, which then triggers the action to run again, which commits a new profile... repeat. Instead, it is designed to run on a schedule where it doesn't really matter if another load of workflows are triggered. Currently, it is set to run nightly.

Runner

It uses the more commonly used reactivecircus/android-emulator-runner to run the emulator. I would have liked to use Gradle Managed Devices, but I couldn't get it to work at all on GitHub Actions.

However, using this runner seemed to break the automatic copy of the baseline profile from the emulator to the build dir. This is why there's a manual adb pull in the workflow.

@chrisbanes chrisbanes force-pushed the cb/baseline-profile-gen branch 6 times, most recently from d7aa113 to ab2a39e Compare November 29, 2022 09:39
@chrisbanes chrisbanes force-pushed the cb/baseline-profile-gen branch from 1c48e2e to 7c8d708 Compare November 29, 2022 14:13
@chrisbanes chrisbanes changed the title [WIP] Automate baseline profile generation Automate baseline profile generation Nov 29, 2022
@chrisbanes chrisbanes marked this pull request as ready for review November 29, 2022 14:38
@chrisbanes chrisbanes merged commit 1ddb56b into main Nov 29, 2022
@chrisbanes chrisbanes deleted the cb/baseline-profile-gen branch November 29, 2022 14:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant