-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Remove more legacy code following the drop of support for API 19 #9036
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
45f5eb2 to
2f49086
Compare
|
@MGaetan89 Please check CI logs to check whether there are extra adaption we need to do for this PR. Thanks. |
|
@MGaetan89 Please rebase your PR based on latest master branch as I merged some commits to make CI green. |
b3a8c79 to
7e43cab
Compare
Done. I'll check the remaining failures this weekend. |
|
@MGaetan89 I think you can reproduce them locally and fix them. |
robolectric/src/test/java/org/robolectric/shadows/ShadowEnvironmentTest.java
Show resolved
Hide resolved
7e43cab to
ef61138
Compare
|
@MGaetan89 Please rebase and we can check whether it can merged now. |
ef61138 to
1f4e106
Compare
Done. Looks like there are still some failing tests. I'm investigating now |
|
I recommend you to run these tests locally to ensure they can all pass as this PR changes a lot of code before pushing again. |
1f4e106 to
f38d68d
Compare
|
@utzcoz I fixed the tests in Also, I noticed that robolectric/testapp/build.gradle Line 8 in 98a8644
|
@MGaetan89 I think yes. But you can open a new PR to cleanup. |
|
We're getting closer!
|
This aligns it with the other modules, which are already using `minSdk` 21. As discussed in robolectric#9036 (comment)
|
I think it might be related to cache or Emulator. I deleted the cache, and tried it again. |
|
Same result, and it happens as well in #9106 In the log, I see the following error message:
Since Linux runners have 14Gb of storage, maybe there are other caches taking up all the space? |
|
@MGaetan89 In my opinion, other caches are necessary? Actually, SDK34 uses aosp_atd with a smaller disk usage. |
@MGaetan89 What about integrating this action to freeup disk space by removing unused files bound by GitHub Action images? |
|
Maybe another commit in this PR |
fe072d6 to
eac7f98
Compare
|
Done in eac7f98 I'll squash my commits once the build is completed. |
|
@MGaetan89 Please fix commit message warnings. |
eac7f98 to
e3b602e
Compare
e3b602e to
c49e5cb
Compare
|
@utzcoz your suggestion seems to be working fine, thank you! I've squashed my commits together, so the build should be successful soon 🤞🏻 |
robolectric/src/test/java/org/robolectric/shadows/ShadowContextImplTest.java
Show resolved
Hide resolved
|
@MGaetan89 Thanks. Maybe we need another PR to migrate test expected to assertThrows brought by this PR. This one LGTM. cc @brettchabot and @hoisie for this extra cleanup PR. |
This aligns it with the other modules, which are already using `minSdk` 21. As discussed in robolectric#9036 (comment)
This aligns it with the other modules, which are already using `minSdk` 21. As discussed in #9036 (comment)
This PR replaces usages of `@Test(expected = <exception>)` with `assertThrows()`. It also replaces `try`/`catch` with `assertThrows()`. As suggested in robolectric#9036 (comment)
This PR replaces usages of `@Test(expected = <exception>)` with `assertThrows()`. It also replaces `try`/`catch` with `assertThrows()`. As suggested in robolectric#9036 (comment)
This PR replaces usages of `@Test(expected = <exception>)` with `assertThrows()`. It also replaces `try`/`catch` with `assertThrows()`. As suggested in robolectric#9036 (comment)
This PR replaces usages of `@Test(expected = <exception>)` with `assertThrows()`. It also replaces `try`/`catch` with `assertThrows()`. As suggested in #9036 (comment)
Follow-up PR of #9020 and #9027