Skip to content
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

RUM-483 use macos runner #2154

Merged
merged 1 commit into from
Aug 1, 2024
Merged

RUM-483 use macos runner #2154

merged 1 commit into from
Aug 1, 2024

Conversation

xgouchet
Copy link
Member

What does this PR do?

Adds instrumented test support to our Gitlab CI pipeline

@xgouchet xgouchet requested review from a team as code owners July 30, 2024 15:17
@codecov-commenter
Copy link

codecov-commenter commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.96%. Comparing base (b9848cc) to head (e673497).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2154      +/-   ##
===========================================
- Coverage    69.99%   69.96%   -0.03%     
===========================================
  Files          726      726              
  Lines        26984    26995      +11     
  Branches      4520     4524       +4     
===========================================
  Hits         18887    18887              
- Misses        6827     6832       +5     
- Partials      1270     1276       +6     

see 31 files with indirect coverage changes

.gitlab-ci.yml Outdated
@@ -26,6 +30,34 @@ stages:
- publish
- notify

.snippets:
install-android-sdk:
- curl -sSL -o commandlinetools.zip https://dl.google.com/android/repository/commandlinetools-mac-11076708_latest.zip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put the version in an easier to modify variable?

- echo y | ~/android_sdk/cmdline-tools/latest/bin/sdkmanager --install "$ANDROID_BUILD_TOOLS"
- echo y | ~/android_sdk/cmdline-tools/latest/bin/sdkmanager --install "$ANDROID_EMULATOR_IMAGE"
- yes | ~/android_sdk/cmdline-tools/latest/bin/sdkmanager --licenses || true
- echo "no" | ~/android_sdk/cmdline-tools/latest/bin/avdmanager --verbose create avd --force --name "$EMULATOR_NAME" --package "$ANDROID_EMULATOR_IMAGE"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work okay if the emulator already exists? I assume that's what the echo "no" is for?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, in theory the emulator can't exist before hand, the no is there to prevent creating a backup of the data between emulator runs

.gitlab-ci.yml Outdated
run-instrumented-integration:
- $ANDROID_HOME/emulator/emulator -avd "$EMULATOR_NAME" -grpc-use-jwt -no-snapstorage -no-audio -no-window -no-boot-anim -verbose -qemu -machine virt &
- GRADLE_OPTS="-Xmx3072m" ./gradlew :instrumented:integration:assembleDebug :instrumented:integration:assembleDebugAndroidTest --stacktrace --no-daemon
# - ./android-wait-for-emulator.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Purposefully commented out?

@xgouchet xgouchet force-pushed the xgouchet/RUM-483/gitlab_macos branch from 24d3125 to 806342c Compare July 31, 2024 06:56
Copy link
Member

@mariusc83 mariusc83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nicee

@xgouchet xgouchet force-pushed the xgouchet/RUM-483/gitlab_macos branch from 806342c to 02d2aa7 Compare July 31, 2024 09:29
@xgouchet xgouchet force-pushed the xgouchet/RUM-483/gitlab_macos branch from 02d2aa7 to e673497 Compare August 1, 2024 10:05
@xgouchet xgouchet merged commit ac9b0ed into develop Aug 1, 2024
22 checks passed
@xgouchet xgouchet deleted the xgouchet/RUM-483/gitlab_macos branch August 1, 2024 16:27
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.

5 participants