Skip to content

RUM-483 use macos runner#2154

Merged
xgouchet merged 1 commit into
developfrom
xgouchet/RUM-483/gitlab_macos
Aug 1, 2024
Merged

RUM-483 use macos runner#2154
xgouchet merged 1 commit into
developfrom
xgouchet/RUM-483/gitlab_macos

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

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

codecov-commenter commented Jul 30, 2024

Copy link
Copy Markdown

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

Comment thread .gitlab-ci.yml Outdated

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

Copy link
Copy Markdown
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?

Comment thread .gitlab-ci.yml
- 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
Copy Markdown
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
Copy Markdown
Contributor 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

Comment thread .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
Copy Markdown
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

@mariusc83 mariusc83 left a comment

Copy link
Copy Markdown
Member

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
@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