-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[libc++][Android] Pass -no-metrics to emulator #99627
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
Conversation
The Android Emulator has started printing this message, so pass the option: ``` ############################################################################## ## WARNING - ACTION REQUIRED ## ## Consider using the '-metrics-collection' flag to help improve the ## ## emulator by sending anonymized usage data. Or use the '-no-metrics' ## ## flag to bypass this warning and turn off the metrics collection. ## ## In a future release this warning will turn into a one-time blocking ## ## prompt to ask for explicit user input regarding metrics collection. ## ## ## ## Please see '-help-metrics-collection' for more details. You can use ## ## '-metrics-to-file' or '-metrics-to-console' flags to see what type of ## ## data is being collected by emulator as part of usage statistics. ## ############################################################################## ```
@llvm/pr-subscribers-libcxx Author: Ryan Prichard (rprichard) ChangesThe Android Emulator has started printing this message, so pass the
Full diff: https://github.com/llvm/llvm-project/pull/99627.diff 2 Files Affected:
diff --git a/libcxx/utils/ci/vendor/android/Dockerfile.emulator b/libcxx/utils/ci/vendor/android/Dockerfile.emulator
index 54953f40014e7..2f52b27f6edcd 100644
--- a/libcxx/utils/ci/vendor/android/Dockerfile.emulator
+++ b/libcxx/utils/ci/vendor/android/Dockerfile.emulator
@@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y \
unzip \
&& rm -rf /var/lib/apt/lists/*
-ENV ANDROID_HOME /opt/android/sdk
+ENV ANDROID_HOME=/opt/android/sdk
RUN curl -sL https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip -o cmdline-tools.zip && \
mkdir -p ${ANDROID_HOME} && \
diff --git a/libcxx/utils/ci/vendor/android/emulator-entrypoint.sh b/libcxx/utils/ci/vendor/android/emulator-entrypoint.sh
index e4538697266a4..99d4995b2ee1d 100755
--- a/libcxx/utils/ci/vendor/android/emulator-entrypoint.sh
+++ b/libcxx/utils/ci/vendor/android/emulator-entrypoint.sh
@@ -45,5 +45,5 @@ fi
# Use exec so that the emulator is PID 1, so that `docker stop` kills the
# emulator.
-exec emulator @emulator -no-audio -no-window \
+exec emulator @emulator -no-audio -no-window -no-metrics \
-partition-size "${EMU_PARTITION_SIZE}"
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y \ | |||
unzip \ | |||
&& rm -rf /var/lib/apt/lists/* | |||
|
|||
ENV ANDROID_HOME /opt/android/sdk | |||
ENV ANDROID_HOME=/opt/android/sdk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't test the Dockerfile changes in our CI. Did you verify this works correctly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I tested it by running run-buildbot android-ndk-33-goog-x86_64
inside vendor/android/run-buildbot-container
. To do that, I first needed to apply #99623 and comment out the broken LLVM-16-on-noble step, as explained on that PR.
Summary: The Android Emulator has started printing this message, so pass the `-no-metrics` option: ``` ############################################################################## ## WARNING - ACTION REQUIRED ## ## Consider using the '-metrics-collection' flag to help improve the ## ## emulator by sending anonymized usage data. Or use the '-no-metrics' ## ## flag to bypass this warning and turn off the metrics collection. ## ## In a future release this warning will turn into a one-time blocking ## ## prompt to ask for explicit user input regarding metrics collection. ## ## ## ## Please see '-help-metrics-collection' for more details. You can use ## ## '-metrics-to-file' or '-metrics-to-console' flags to see what type of ## ## data is being collected by emulator as part of usage statistics. ## ############################################################################## ``` Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251061
The Android Emulator has started printing this message, so pass the
-no-metrics
option: