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

[Don't Merge] Test Robolectric Update on CI #5125

Closed
wants to merge 71 commits into from

Conversation

adhiamboperes
Copy link
Collaborator

Explanation

Bumped robolectric version to 4.7 due to sqlite incompatibility with Firestore.

This PR is only intended to test whether the previously failing tests pass on CI.

Essential Checklist

  • The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

For UI-specific PRs only

If your PR includes UI-related changes, then:

  • Add screenshots for portrait/landscape for both a tablet & phone of the before & after UI changes
  • For the screenshots above, include both English and pseudo-localized (RTL) screenshots (see RTL guide)
  • Add a video showing the full UX flow with a screen reader enabled (see accessibility guide)
  • Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing

This is the first version with support for building on M1 Macs
Ignore bcprov-jdk15on during jetifying 3p libraries
Note this will not be necessary in AGP 7.1+ as per [Resolution](https://issuetracker.google.com/issues/159151549#comment12)
According to robolectric/robolectric#6593 (comment), Robolectric instrumenting androidx.* packages by default., but Espresso relies on this logic.
Bump to 3.5.0, latest stable version
Some of the production code was updated in the previous commit.
These scenarios are covered in other tests so I'm fine with not trying to make them work.
This commit sets up the logging infrastructure, including tests.

Since Firestore is introduced, some tests in the app module may be broken, and will be fixed in the next commit.

This commit soes not handle actual upload to firestore yet, because firebase auth is not yet properly configured.
This test cannot pass due to the version of robolectric.

There is a conflict between Firestore's SQLite database connection and Robolectric's shadow implementation of SQLite. Firestore is trying to access an illegal connection pointer (pointer 52), which indicates a problem with the database connection.
Allow real auth in tests for firestore
…-version

# Conflicts:
#	third_party/versions.bzl
#	utility/build.gradle
@adhiamboperes adhiamboperes requested a review from a team as a code owner August 8, 2023 22:13
@adhiamboperes adhiamboperes requested review from BenHenning and removed request for BenHenning August 8, 2023 22:13
@adhiamboperes adhiamboperes self-assigned this Aug 8, 2023
@adhiamboperes adhiamboperes requested review from a team as code owners August 8, 2023 22:16
@adhiamboperes adhiamboperes requested review from BenHenning and removed request for BenHenning August 8, 2023 22:16
@oppiabot
Copy link

oppiabot bot commented Aug 24, 2023

Hi @adhiamboperes, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue.
If you are still working on this PR, please make a follow-up commit within 3 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Aug 24, 2023
@oppiabot oppiabot bot closed this Aug 31, 2023
@adhiamboperes adhiamboperes deleted the test-robolectric-update branch December 5, 2023 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Corresponds to items that haven't seen a recent update and may be automatically closed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant