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

Fix integration tests pipeline for API 21 #2197

Conversation

mariusc83
Copy link
Member

What does this PR do?

A brief description of the change being made with this pull request.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@mariusc83 mariusc83 force-pushed the mconstantin/rum-5849/fix-instrumented-tests-on-api-21-emulators branch 2 times, most recently from dbb8f8c to c6765b9 Compare August 16, 2024 12:15
@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.96%. Comparing base (2529684) to head (15b65be).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2197      +/-   ##
===========================================
+ Coverage    69.93%   69.96%   +0.03%     
===========================================
  Files          726      726              
  Lines        26967    26970       +3     
  Branches      4526     4522       -4     
===========================================
+ Hits         18858    18868      +10     
+ Misses        6830     6829       -1     
+ Partials      1279     1273       -6     

see 30 files with indirect coverage changes

@mariusc83 mariusc83 marked this pull request as ready for review August 16, 2024 12:59
@mariusc83 mariusc83 requested review from a team as code owners August 16, 2024 12:59
.gitlab-ci.yml Outdated
run-instrumented-integration:
compile_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
compile_instrumented_integration_for_api_21:
- $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 -Puse-api21-java-backport -Puse-desugaring --stacktrace --no-daemon
run-instrumented-integration:
Copy link
Member

Choose a reason for hiding this comment

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

you can still keep run-instrumented-integration step without splitting and use the same technique to append -Puse-api21-java-backport -Puse-desugaring flags as I used in #2193

also do we need use-desugarding flag? seems we can simply use use-api21-java-backport

Copy link
Member Author

Choose a reason for hiding this comment

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

ok will try that technique instead. But regarding desugaring flag...I would rather keep them separated (one is for desugaring, the other is for java backport)

@@ -27,6 +28,7 @@ internal class SrCheckBoxAndRadioFieldsAllowTest :
)

@Test
@Ignore("These tests were not maintained anymore and they need to be fixed")
Copy link
Member

Choose a reason for hiding this comment

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

we need to add TODO reference everywhere we add this annotation

Copy link
Member

Choose a reason for hiding this comment

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

do we need to add this if we add desugaring?

Copy link
Member

Choose a reason for hiding this comment

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

do we need to add this if we add desugaring?

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 because desugaring doesn't handle everything (this and the Path class are not handled :( )

@mariusc83 mariusc83 force-pushed the mconstantin/rum-5849/fix-instrumented-tests-on-api-21-emulators branch 2 times, most recently from f8a2ab1 to a114bd5 Compare August 16, 2024 14:26
@mariusc83 mariusc83 force-pushed the mconstantin/rum-5849/fix-instrumented-tests-on-api-21-emulators branch from a114bd5 to 15b65be Compare August 16, 2024 14:48
@mariusc83 mariusc83 merged commit e02cf77 into develop Aug 16, 2024
22 checks passed
@mariusc83 mariusc83 deleted the mconstantin/rum-5849/fix-instrumented-tests-on-api-21-emulators branch August 16, 2024 15:28
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.

3 participants