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 #5370, part of #59: Migrate to Bazel 6.5.0 #4886

Merged
merged 292 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
292 commits
Select commit Hold shift + click to select a range
47f9c02
Post-merge lint fix.
BenHenning Mar 29, 2023
8ae5aa8
Fix updated TODOs.
BenHenning Mar 29, 2023
de3cf14
Merge branch 'upgrade-compute-affected-tests' into update-rules-jvm-e…
BenHenning Mar 29, 2023
b2ca68b
Fix Dagger structure.
BenHenning Mar 30, 2023
839be0f
Upgrade Dagger version.
BenHenning Mar 30, 2023
c2fe337
Fix test builds that depend on Dagger generation.
BenHenning Mar 30, 2023
a543500
Update Maven dependency licenses.
BenHenning Mar 30, 2023
b882832
Fix broken test & binary builds.
BenHenning Mar 30, 2023
c5b940b
Add support for Kotlin 1.6.
BenHenning Mar 30, 2023
10ae796
Correctly interact with rules_kotlin.
BenHenning Mar 30, 2023
1cf7b76
Fix upgrade by downgrading Moshi to 1.13.
BenHenning Mar 30, 2023
d2799f0
Turn on warnings as errors for Kotlin.
BenHenning Mar 31, 2023
86dacfb
Fix Java build & other warnings.
BenHenning Apr 1, 2023
bc62b22
Try to fix AndroidX databinding compile race.
BenHenning Apr 1, 2023
6f9bbd6
Fix static check failures.
BenHenning Apr 1, 2023
7cc591d
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning Apr 1, 2023
a4790a4
Post-merge fixes.
BenHenning Apr 1, 2023
b74ecbb
Fix Proguard builds (temp) and static failures.
BenHenning Apr 1, 2023
aaa0299
Merge branch 'develop' into upgrade-compute-affected-tests
BenHenning Apr 1, 2023
d520fa9
Merge branch 'upgrade-compute-affected-tests' into update-rules-jvm-e…
BenHenning Apr 1, 2023
037be61
Merge branch 'update-rules-jvm-external' into update-dagger-structure
BenHenning Apr 1, 2023
756534a
Merge branch 'update-dagger-structure' into upgrade-to-kotlin1.6
BenHenning Apr 1, 2023
a92e37c
Fix CI breakages, including Gradle.
BenHenning Apr 1, 2023
bb8592b
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning Apr 1, 2023
9890877
Post-merge dep fixes + test fix.
BenHenning Apr 1, 2023
f118fa2
Undo unnecessary changes.
BenHenning Apr 1, 2023
6abf41b
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning Apr 2, 2023
151ecca
Post-merge fixes.
BenHenning Apr 2, 2023
d8792a8
Fix broken CI checks.
BenHenning Apr 3, 2023
6b5291f
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning Apr 3, 2023
125be3c
Post-merge fixes.
BenHenning Apr 3, 2023
59f7f87
Address self-review comments.
BenHenning Apr 3, 2023
0709b3d
Fix broken tests.
BenHenning Apr 3, 2023
e44b59d
Address TODOs as part of the migration.
BenHenning Apr 3, 2023
d2df104
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning Apr 3, 2023
3b7df64
Post-merge fixes.
BenHenning Apr 3, 2023
a40f75a
Update build stats workflow.
BenHenning Apr 3, 2023
227b0f4
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning Apr 3, 2023
6e747dc
Fix Proguard breakages & post-merge fixes.
BenHenning Apr 3, 2023
8a19b4e
Merge branch 'develop' into upgrade-compute-affected-tests
BenHenning May 11, 2023
773f7ff
Fix breakage from develop.
BenHenning May 11, 2023
311951f
Merge branch 'upgrade-compute-affected-tests' into update-rules-jvm-e…
BenHenning May 11, 2023
9e377d5
Merge branch 'update-rules-jvm-external' into update-dagger-structure
BenHenning May 12, 2023
f087488
Merge branch 'update-dagger-structure' into upgrade-to-kotlin1.6
BenHenning May 12, 2023
413952c
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning May 12, 2023
e80d869
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning May 12, 2023
a7fffec
Upgrade to 6.2.0.
BenHenning May 12, 2023
e7435a5
Fix hanging CoroutineExecutorService test.
BenHenning May 12, 2023
0b4fefa
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning May 12, 2023
c0b3894
Permant-ify temporary TODOs for new tests.
BenHenning May 12, 2023
ec33a12
Upgrade runner for build stats.
BenHenning May 12, 2023
8a8101b
Fix broken Gradle build.
BenHenning May 12, 2023
d629d71
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning May 12, 2023
e5eb517
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning May 12, 2023
fb3ebc6
Fix CI configs.
BenHenning May 12, 2023
6fc9216
Clean up temporary TODOs.
BenHenning May 12, 2023
afbe6e6
Fix issue with compute stats workflow.
BenHenning May 13, 2023
88763e2
Attempt 2 to fix new Bazel versions build stats.
BenHenning May 13, 2023
3cfdf26
Attempt (3).
BenHenning May 13, 2023
0097827
Attempt (3).
BenHenning May 13, 2023
b4802b7
Fix another regular 'apt' usage.
BenHenning May 13, 2023
525a601
Merge branch 'develop' into upgrade-compute-affected-tests
BenHenning Jun 6, 2023
6cca78f
Merge branch 'upgrade-compute-affected-tests' into update-rules-jvm-e…
BenHenning Jun 6, 2023
327114d
Post-merge fixes.
BenHenning Jun 6, 2023
bb4ff28
Merge branch 'update-rules-jvm-external' into update-dagger-structure
BenHenning Jun 6, 2023
5d924f4
Post-merge fixes.
BenHenning Jun 6, 2023
8690354
Merge branch 'update-dagger-structure' into upgrade-to-kotlin1.6
BenHenning Jun 6, 2023
66bf94f
Post-merge fixes.
BenHenning Jun 6, 2023
667bf89
Fix a variety of dev platform-specific issues.
BenHenning Aug 22, 2023
fb59232
Tidy some things up, and revert fragment test.
BenHenning Aug 28, 2023
2551d4b
Fix test behavior inconsistency in test.
BenHenning Sep 11, 2023
714f3ea
Merge branch 'develop' into fix-platform-specific-issues
BenHenning Sep 11, 2023
7488b9f
Fix broken ProfileAndDeviceIdFragmentTest test.
BenHenning Sep 13, 2023
e3d4091
Merge branch 'develop' into fix-platform-specific-issues
BenHenning Oct 26, 2023
5671673
Post-merge fix.
BenHenning Oct 26, 2023
f5ed0c9
Merge branch 'fix-platform-specific-issues' into upgrade-compute-affe…
BenHenning Oct 26, 2023
bd1466d
Merge branch 'develop' into fix-platform-specific-issues
BenHenning Jan 16, 2024
d9b38ea
Merge branch 'fix-platform-specific-issues' into upgrade-compute-affe…
BenHenning Jan 16, 2024
9f1a2ec
Some follow-up post-merge fixes.
BenHenning Jan 17, 2024
39a3add
Make TodoOpenCheck locally runnable.
BenHenning Jan 18, 2024
4f7bfd6
Simplify GitHubIssue & some static fixes/docs.
BenHenning Jan 18, 2024
000bba3
Add ScriptBackgroundCoroutineDispatcher.
BenHenning Jan 18, 2024
79878cd
Some more robustness fixes.
BenHenning Jan 19, 2024
a5f71d6
Merge branch 'fix-platform-specific-issues' into introduce-better-scr…
BenHenning Jan 19, 2024
0b55bd4
Post-merge fixes.
BenHenning Jan 19, 2024
53d6727
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Jan 19, 2024
00c7c28
Post-merge fixes & adjustments.
BenHenning Jan 20, 2024
bd97611
Fix BUILD file lint issue.
BenHenning Jan 20, 2024
d54829d
Merge branch 'fix-platform-specific-issues' into introduce-better-scr…
BenHenning Jan 20, 2024
fa9cae4
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Jan 20, 2024
0618b12
Static fix checks.
BenHenning Jan 20, 2024
fb148ea
Merge branch 'make-todo-check-locally-runnable' into upgrade-compute-…
BenHenning Jan 20, 2024
ab326ff
Post-merge fixes.
BenHenning Jan 20, 2024
d5bfad5
Merge branch 'upgrade-compute-affected-tests' of github.com:oppia/opp…
BenHenning Jan 20, 2024
1067a18
Merge branch 'upgrade-compute-affected-tests' into update-rules-jvm-e…
BenHenning Jan 20, 2024
1e2df14
Post-merge fixes.
BenHenning Jan 20, 2024
211487c
Merge branch 'develop' into fix-platform-specific-issues
BenHenning Feb 6, 2024
1a666a9
Post-merge fixes.
BenHenning Feb 6, 2024
a2ee5d3
Add smoke tests for instr. binaries & tests.
BenHenning Feb 7, 2024
d5b9012
Some minor refactoring for readability.
BenHenning Feb 7, 2024
e6ec869
Fixed broken instrumentation builds.
BenHenning Feb 7, 2024
9f50469
Merge branch 'develop' into fix-instrumentation-build-failure
BenHenning Feb 7, 2024
8dbf4dc
Add missing CODEOWNERS line.
BenHenning Feb 7, 2024
9c38057
Remove old files from CODEOWNERS.
BenHenning Feb 7, 2024
f2ff4e3
Merge branch 'fix-instrumentation-build-failure' into fix-platform-sp…
BenHenning Feb 7, 2024
fad48ed
Add missing tests for TestBlazeWorkspace changes.
BenHenning Feb 8, 2024
e1802c8
Add missing Firebase auth tests.
BenHenning Feb 8, 2024
00c32f6
Merge branch 'fix-instrumentation-build-failure' into fix-platform-sp…
BenHenning Feb 8, 2024
2f87f4d
Merge branch 'fix-platform-specific-issues' into introduce-better-scr…
BenHenning Feb 8, 2024
aa3547c
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Feb 8, 2024
d3cbd93
Post-merge fixes for previously missed tests.
BenHenning Feb 8, 2024
13e4358
Merge branch 'fix-platform-specific-issues' into introduce-better-scr…
BenHenning Feb 8, 2024
622aced
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Feb 8, 2024
50f41d2
Merge branch 'develop' into fix-instrumentation-build-failure
BenHenning Feb 8, 2024
c8df70e
Merge branch 'fix-instrumentation-build-failure' into fix-platform-sp…
BenHenning Feb 8, 2024
c85d421
Merge branch 'develop' into fix-instrumentation-build-failure
BenHenning Feb 9, 2024
dcf27b6
Merge branch 'fix-instrumentation-build-failure' into fix-platform-sp…
BenHenning Feb 9, 2024
2369514
Merge branch 'develop' into fix-platform-specific-issues
BenHenning Feb 9, 2024
c7ec5d4
Merge branch 'fix-platform-specific-issues' into introduce-better-scr…
BenHenning Feb 9, 2024
4b418bd
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Feb 9, 2024
d6a9f70
Merge branch 'make-todo-check-locally-runnable' into upgrade-compute-…
BenHenning Feb 9, 2024
8de4d51
Improve new test robustness.
BenHenning Feb 9, 2024
3f69f11
Fix updated Maven license deps.
BenHenning Feb 9, 2024
ea8e0b1
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Feb 9, 2024
2916770
Update scripts/src/javatests/org/oppia/android/scripts/common/GitClie…
BenHenning Feb 14, 2024
f2d810a
Merge branch 'develop' into fix-platform-specific-issues
BenHenning Feb 14, 2024
808f412
Merge branch 'fix-platform-specific-issues' into introduce-better-scr…
BenHenning Feb 14, 2024
2315aea
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Feb 14, 2024
af51395
Add tests for GitHubClient & TodoOpenCheck.
BenHenning Feb 14, 2024
6856e3c
Merge branch 'develop' into fix-platform-specific-issues
BenHenning Feb 14, 2024
5a050de
Merge branch 'fix-platform-specific-issues' into introduce-better-scr…
BenHenning Feb 14, 2024
13b8d4b
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Feb 14, 2024
280b3ec
Add missing docs.
BenHenning Feb 14, 2024
0bd7e2f
Merge branch 'make-todo-check-locally-runnable' into upgrade-compute-…
BenHenning Feb 14, 2024
5951c0f
Post-merge fixes.
BenHenning Feb 15, 2024
ee71b32
Merge branch 'upgrade-compute-affected-tests' into update-rules-jvm-e…
BenHenning Feb 15, 2024
3627067
Update Maven dep list checker & updater scripts.
BenHenning Feb 15, 2024
a5eb624
Merge branch 'develop' into introduce-better-script-execution-support
BenHenning Feb 20, 2024
ae239b3
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Feb 20, 2024
34ea6aa
Fix broken TodoOpenCheck tests & check exemptions.
BenHenning Feb 20, 2024
df61985
Merge branch 'make-todo-check-locally-runnable' into upgrade-compute-…
BenHenning Feb 20, 2024
161ae8d
Merge branch 'upgrade-compute-affected-tests' into update-rules-jvm-e…
BenHenning Feb 20, 2024
8c87993
Fix broken checks & failing static checks.
BenHenning Feb 22, 2024
bb6e681
Merge branch 'update-rules-jvm-external' into update-dagger-structure
BenHenning Feb 22, 2024
5c812a1
Post merge build, test, and static check fixes.
BenHenning Feb 23, 2024
57c275c
Merge branch 'update-dagger-structure' into upgrade-to-kotlin1.6
BenHenning Feb 23, 2024
e0e74d5
Merge branch 'develop' into introduce-better-script-execution-support
BenHenning Mar 4, 2024
2dd0cd7
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Mar 4, 2024
79a2f0f
Merge branch 'make-todo-check-locally-runnable' into upgrade-compute-…
BenHenning Mar 4, 2024
60458bf
Merge branch 'upgrade-compute-affected-tests' into update-rules-jvm-e…
BenHenning Mar 4, 2024
228a037
Merge branch 'update-rules-jvm-external' into update-dagger-structure
BenHenning Mar 4, 2024
195d604
Some post-merge fixes.
BenHenning Mar 4, 2024
3bdd1e0
Merge branch 'update-dagger-structure' into upgrade-to-kotlin1.6
BenHenning Mar 4, 2024
7cd345b
Silence deprecation warnings.
BenHenning Mar 5, 2024
70df9b3
Merge branch 'develop' into introduce-better-script-execution-support
BenHenning Mar 14, 2024
04fc8b8
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Mar 14, 2024
c301eed
Address reviewer comment.
BenHenning Mar 14, 2024
51a96ce
Merge branch 'develop' into introduce-better-script-execution-support
seanlip Mar 15, 2024
b3e2fd9
Merge commit 'e2f94e41e4cba3bc5b5f3af65f7c43a6543b4c52' into introduc…
BenHenning Mar 20, 2024
73a8bce
Merge branch 'introduce-better-script-execution-support' into make-to…
BenHenning Mar 20, 2024
f48f78e
Merge branch 'develop' into make-todo-check-locally-runnable
BenHenning Mar 20, 2024
02ccc87
Merge branch 'develop' into make-todo-check-locally-runnable
BenHenning May 16, 2024
28fcb9d
Merge branch 'make-todo-check-locally-runnable' into upgrade-compute-…
BenHenning May 16, 2024
aa8988c
Merge branch 'upgrade-compute-affected-tests' into update-rules-jvm-e…
BenHenning May 16, 2024
658c9f0
Merge branch 'update-rules-jvm-external' into update-dagger-structure
BenHenning May 16, 2024
53d42e1
Merge branch 'update-dagger-structure' into upgrade-to-kotlin1.6
BenHenning May 16, 2024
4cf06d4
Address self-review comments.
BenHenning May 16, 2024
0cc5d5d
Merge branch 'upgrade-compute-affected-tests' into update-rules-jvm-e…
BenHenning May 17, 2024
c43c036
Address review comment.
BenHenning May 17, 2024
c30a839
Merge branch 'update-rules-jvm-external' into update-dagger-structure
BenHenning May 17, 2024
fbac9a2
Post-merge fixes.
BenHenning May 17, 2024
840de58
Merge branch 'update-dagger-structure' into upgrade-to-kotlin1.6
BenHenning May 17, 2024
ce2c34b
Fix NetworkLoggingInterceptorTest.
BenHenning May 20, 2024
0f48cf5
Fix more tests & upgrade Robolectric.
BenHenning May 20, 2024
caf6f28
Fix more broken tests.
BenHenning May 20, 2024
118d32f
Undo Robolectric upgrade.
BenHenning May 21, 2024
956b358
Upgrade to rules_kotlin 1.5.0 beta 3.
BenHenning May 21, 2024
dd84da3
Merge branch 'upgrade-to-newer-rules-kotlin' into upgrade-to-kotlin1.6
BenHenning May 21, 2024
f5c07fc
Fix build-time Kotlin & Java warnings.
BenHenning May 22, 2024
0429177
Fix a few follow-up issues.
BenHenning May 22, 2024
8dcb531
Merge branch 'fix-build-time-kotlin-java-warnings' into upgrade-to-ko…
BenHenning May 22, 2024
c24069b
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning May 22, 2024
c2fee1b
Post-merge fixes.
BenHenning May 22, 2024
46c65e8
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning May 22, 2024
d99f1a2
Post-merge fix.
BenHenning May 22, 2024
31ffc28
Follow-up fixes & doc updates.
BenHenning May 22, 2024
3dc6b7b
Merge branch 'develop' into upgrade-compute-affected-tests
BenHenning May 22, 2024
acd1c0d
Merge branch 'develop' into upgrade-compute-affected-tests
BenHenning May 22, 2024
c672af0
Address reviewer comment.
BenHenning May 22, 2024
1b19f5b
Merge branch 'upgrade-compute-affected-tests' into update-rules-jvm-e…
BenHenning May 22, 2024
3e923e2
Follow-up variable rename for clarity.
BenHenning May 22, 2024
9af41bd
Merge branch 'update-rules-jvm-external' into update-dagger-structure
BenHenning May 22, 2024
6100394
Merge branch 'update-dagger-structure' into upgrade-to-newer-rules-ko…
BenHenning May 22, 2024
b6c3ebe
Merge branch 'upgrade-to-newer-rules-kotlin' into fix-build-time-kotl…
BenHenning May 22, 2024
d3cea44
Merge branch 'fix-build-time-kotlin-java-warnings' into upgrade-to-ko…
BenHenning May 22, 2024
da57feb
Address static check failures.
BenHenning May 22, 2024
32733a0
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning May 22, 2024
1a67dd6
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning May 22, 2024
441e293
Move forward TODO fixes from #4937.
BenHenning May 23, 2024
2f1eed7
Remove unused view model bridge classes.
BenHenning May 23, 2024
0c96f8d
Merge branch 'fix-build-time-kotlin-java-warnings' into upgrade-to-ko…
BenHenning May 23, 2024
afde202
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning May 23, 2024
e57be5b
Rework CI workflow.
BenHenning May 24, 2024
a07d3a6
Address all reviewer comments.
BenHenning May 25, 2024
0b7d357
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning May 25, 2024
d2185a4
Address reviewer comments + other simplifications.
BenHenning May 26, 2024
785d408
Pull in other warning fixes from #4886.
BenHenning May 26, 2024
7ccba36
Merge branch 'fix-build-time-kotlin-java-warnings' into upgrade-to-ko…
BenHenning May 26, 2024
f74d059
Pulled forward Gradle change from #4886.
BenHenning May 26, 2024
baa2c50
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning May 26, 2024
42ab459
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning May 26, 2024
455342b
Static check fixes.
BenHenning May 26, 2024
1ee44c7
Re-add missing newline.
BenHenning May 26, 2024
7951d46
Merge branch 'develop' into update-rules-jvm-external
BenHenning May 26, 2024
d4d8646
Merge branch 'develop' into update-rules-jvm-external
BenHenning May 27, 2024
b6cfd74
Merge branch 'update-rules-jvm-external' into update-dagger-structure
BenHenning May 27, 2024
0468e81
Merge branch 'develop' into update-dagger-structure
BenHenning May 27, 2024
47ad078
Merge branch 'update-dagger-structure' into upgrade-to-newer-rules-ko…
BenHenning May 27, 2024
828e43e
Merge branch 'upgrade-to-newer-rules-kotlin' into fix-build-time-kotl…
BenHenning May 27, 2024
eda781e
Merge branch 'fix-build-time-kotlin-java-warnings' into upgrade-to-ko…
BenHenning May 27, 2024
82c530a
Down version to 1.6.10.
BenHenning May 27, 2024
05bc1c2
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning May 27, 2024
386a487
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning May 27, 2024
62795b1
Update third-party wrappers to use aliases.
BenHenning May 27, 2024
1a51da1
Update Troubleshooting-Installation.md
BenHenning May 27, 2024
7c186c3
Merge branch 'develop' into upgrade-to-newer-rules-kotlin
BenHenning May 28, 2024
dffff83
Merge branch 'upgrade-to-newer-rules-kotlin' into fix-build-time-kotl…
BenHenning May 28, 2024
bc79bf7
Address review comment.
BenHenning May 29, 2024
2d3f5d5
Merge branch 'develop' into fix-build-time-kotlin-java-warnings
BenHenning May 29, 2024
bc98d27
Merge branch 'fix-build-time-kotlin-java-warnings' into upgrade-to-ko…
BenHenning May 29, 2024
bacbc2a
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning May 29, 2024
16af8e1
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning May 29, 2024
4b26fd5
Merge branch 'develop' into fix-build-time-kotlin-java-warnings
BenHenning Jun 3, 2024
fd69342
Merge branch 'fix-build-time-kotlin-java-warnings' into upgrade-to-ko…
BenHenning Jun 3, 2024
3dcc2ac
Merge branch 'develop' into fix-build-time-kotlin-java-warnings
BenHenning Jun 11, 2024
4cbf04c
Merge branch 'fix-build-time-kotlin-java-warnings' into upgrade-to-ko…
BenHenning Jun 11, 2024
f97c111
Add config for Kotlin warnings.
BenHenning Jun 11, 2024
e9ac7f3
Address reviewer comment.
BenHenning Jun 11, 2024
c1d6959
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning Jun 11, 2024
5347c9b
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning Jun 11, 2024
e62a51e
Reconfigure Java in Bazel.
BenHenning Jun 11, 2024
bfb583b
Undo action.yml changes.
BenHenning Jun 11, 2024
3b682f0
Address lint failures.
BenHenning Jun 11, 2024
9af2662
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning Jun 11, 2024
daf282f
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning Jun 11, 2024
89a184d
Merge branch 'develop' into upgrade-to-kotlin1.6
BenHenning Jun 12, 2024
cae201f
Merge branch 'upgrade-to-kotlin1.6' into add-build-stats-ci-workflow
BenHenning Jun 12, 2024
62858bb
Merge branch 'develop' into add-build-stats-ci-workflow
BenHenning Jun 12, 2024
95671b5
Merge branch 'add-build-stats-ci-workflow' into migrate-to-newer-baze…
BenHenning Jun 12, 2024
9e4b083
Apply suggestions from code review
BenHenning Jun 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Configurations for arguments that should automatically be added to Bazel commands.
# Configurations to ensure that Android-specific classes build correctly.
build --android_databinding_use_v3_4_args \
--experimental_android_databinding_v2 \
BenHenning marked this conversation as resolved.
Show resolved Hide resolved
--java_header_compilation=false \
--noincremental_dexing \
--define=android_standalone_dexing_tool=d8_compat_dx \
--android_databinding_use_androidx
BenHenning marked this conversation as resolved.
Show resolved Hide resolved

# Ensure that all builds use the same JDK for building & running (for better hermeticity and fewer
# inconsistencies across environment configurations).
build --java_runtime_version=remotejdk_11 --tool_java_runtime_version=remotejdk_11

# Ensure all built Java files treat warnings as errors (similar to the Kotlin configuration) to help
# reduce code smell & potential bugs during development.
build --javacopt="-Werror"
Expand Down
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.0
6.5.0
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contains common operations to set up a hermetic Android + Bazel build environment for Oppia
# Android CI workflows. Action prerequisites:
# - JDK 9 must be installed & set as the default version via JAVA_HOME
# - Bazel must be installed, in the path, and be version 4.0.0
# - JDK 11 must be installed & set as the default version via JAVA_HOME
# - Bazel must be installed, in the path, and be version 6.5.0

# TODO(#1861): Revert SDK pinning for improved CI performance once Bazel is sufficiently stable that
# we can rely on the automatic SDK provided by GitHub's CI environment.
Expand All @@ -19,20 +19,20 @@ runs:
$JAVA_HOME/bin/java -version

# Verify that the correct version of Java is installed.
java -version 2>&1 | grep -q -E "1.9|9.0"
java -version 2>&1 | grep -q -E "11.0"
HAS_CORRECT_JAVA_VERSION=$(echo $?)
if [[ "$HAS_CORRECT_JAVA_VERSION" == 1 ]] ; then
echo "Expected Java 9 to be installed"
echo "Expected Java 11 to be installed"
exit 1
fi
shell: bash

- name: Verify Bazel version
run: |
bazel --version | grep -q 4.0.0
bazel --version | grep -q 6.5.0
HAS_CORRECT_BAZEL_VERSION=$(echo $?)
if [[ "$HAS_CORRECT_JAVA_VERSION" == 1 ]] ; then
echo "Expected Bazel 4.0.0 to be installed"
echo "Expected Bazel 6.5.0 to be installed"
exit 1
fi
shell: bash
Expand Down Expand Up @@ -77,26 +77,13 @@ runs:
$ANDROID_HOME/cmdline-tools/tools/bin/sdkmanager --install "platforms;android-33"
shell: bash

- name: Install build tools 29.0.2
- name: Install build tools 32.0.0
run: |
$ANDROID_HOME/cmdline-tools/tools/bin/sdkmanager --install "build-tools;29.0.2"
shell: bash

- name: Configure Bazel to use JDK 9 for building
run: |
echo "build --java_language_version=9" >> $HOME/.bazelrc
$ANDROID_HOME/cmdline-tools/tools/bin/sdkmanager --install "build-tools;32.0.0"
shell: bash

- name: Configure Bazel to use specific sandbox tmpfs
run: |
echo "build --enable_platform_specific_config" >> $HOME/.bazelrc
echo "build:linux --sandbox_tmpfs_path=/tmp" >> $HOME/.bazelrc
shell: bash

- name: Set up Oppia Bazel Android Tools
run: |
mkdir $HOME/opensource
cd $HOME/opensource
git clone https://github.com/oppia/oppia-bazel-tools
echo build --override_repository=android_tools="$(cd "$(dirname "$HOME/opensource/oppia-bazel-tools")"; pwd)/$(basename "$HOME/opensource/oppia-bazel-tools")" >> $HOME/.bazelrc
shell: bash
30 changes: 15 additions & 15 deletions .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 9
- name: Set up JDK 11
BenHenning marked this conversation as resolved.
Show resolved Hide resolved
uses: actions/setup-java@v1
with:
java-version: 9
java-version: 11

- name: Set up Bazel
uses: abhinavsingh/setup-bazel@v3
with:
version: 4.0.0
version: 6.5.0

- name: Set up build environment
uses: ./.github/actions/set-up-android-bazel-build-environment
Expand Down Expand Up @@ -168,15 +168,15 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 9
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 9
java-version: 11

- name: Set up Bazel
uses: abhinavsingh/setup-bazel@v3
with:
version: 4.0.0
version: 6.5.0

- name: Set up build environment
uses: ./.github/actions/set-up-android-bazel-build-environment
Expand Down Expand Up @@ -302,15 +302,15 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 9
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 9
java-version: 11

- name: Set up Bazel
uses: abhinavsingh/setup-bazel@v3
with:
version: 4.0.0
version: 6.5.0

- name: Set up build environment
uses: ./.github/actions/set-up-android-bazel-build-environment
Expand Down Expand Up @@ -449,15 +449,15 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 9
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 9
java-version: 11

- name: Set up Bazel
uses: abhinavsingh/setup-bazel@v3
with:
version: 4.0.0
version: 6.5.0

- name: Set up build environment
uses: ./.github/actions/set-up-android-bazel-build-environment
Expand Down Expand Up @@ -570,15 +570,15 @@ jobs:
with:
fetch-depth: 0

- name: Set up JDK 9
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 9
java-version: 11

- name: Set up Bazel
uses: abhinavsingh/setup-bazel@v3
with:
version: 4.0.0
version: 6.5.0

- name: Set up build environment
uses: ./.github/actions/set-up-android-bazel-build-environment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Bazel
uses: abhinavsingh/setup-bazel@v3
with:
version: 4.0.0
version: 6.5.0

- name: TODO Issue Resolved Check
id: todoIssueResolvedCheck
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/static_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ jobs:
- name: Create oppia android tools directory
run: mkdir -p $HOME/oppia-android-tools

# Java 11 is specifically needed for Checkstyle.
- name: Set up JDK 1.11
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11
java-version: 11

- name: Download Checkstyle
run: |
Expand Down Expand Up @@ -104,7 +103,7 @@ jobs:
- name: Set up Bazel
uses: abhinavsingh/setup-bazel@v3
with:
version: 4.0.0
version: 6.5.0

- uses: actions/cache@v2
id: scripts_cache
Expand Down Expand Up @@ -196,7 +195,7 @@ jobs:
- name: Set up Bazel
uses: abhinavsingh/setup-bazel@v3
with:
version: 4.0.0
version: 6.5.0

- name: Maven Repin Check
if: always()
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ jobs:
run: |
echo "PR $PR_NUMBER is merging into $PR_BASE_REF_NAME from https://github.com/$PR_HEAD branch $PR_HEAD_REF_NAME."

- name: Set up JDK 9
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 9
java-version: 11

- name: Set up Bazel
uses: abhinavsingh/setup-bazel@v3
with:
version: 4.0.0
version: 6.5.0

# For reference on this & the later cache actions, see:
# https://github.com/actions/cache/issues/239#issuecomment-606950711 &
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-20.04
outputs:
matrix: ${{ steps.compute-test-matrix.outputs.matrix }}
have_tests_to_run: ${{ steps.compute-test-matrix.outputs.have_tests_to_run }}
can_skip_tests: ${{ steps.compute-test-matrix.outputs.can_skip_tests }}
env:
CACHE_DIRECTORY: ~/.bazel_cache
steps:
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Set up Bazel
uses: abhinavsingh/setup-bazel@v3
with:
version: 4.0.0
version: 6.5.0

- uses: actions/cache@v2
id: scripts_cache
Expand Down Expand Up @@ -86,16 +86,16 @@ jobs:
echo "Affected tests (note that this might be all tests if configured to run all or on the develop branch): $TEST_BUCKET_LIST"
echo "::set-output name=matrix::{\"affected-tests-bucket-base64-encoded-shard\":[$TEST_BUCKET_LIST]}"
if [[ ! -z "$TEST_BUCKET_LIST" ]]; then
echo "::set-output name=have_tests_to_run::true"
echo "::set-output name=can_skip_tests::false"
BenHenning marked this conversation as resolved.
Show resolved Hide resolved
else
echo "::set-output name=have_tests_to_run::false"
echo "::set-output name=can_skip_tests::true"
echo "No tests are detected as affected by this change. If this is wrong, you can add '[RunAllTests]' to the PR title to force a run."
fi

bazel_run_test:
name: Run Bazel Test
needs: bazel_compute_affected_targets
if: ${{ needs.bazel_compute_affected_targets.outputs.have_tests_to_run == 'true' }}
if: ${{ needs.bazel_compute_affected_targets.outputs.can_skip_tests != 'true' }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
Expand All @@ -107,15 +107,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up JDK 9
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 9
java-version: 11

- name: Set up Bazel
uses: abhinavsingh/setup-bazel@v3
with:
version: 4.0.0
version: 6.5.0

- uses: actions/cache@v2
id: scripts_cache
Expand Down Expand Up @@ -325,5 +325,5 @@ jobs:
steps:
# This step will be skipped if there are no tests to run, so the overall job should pass.
- name: Check tests passed (for tests that ran)
if: ${{ needs.bazel_compute_affected_targets.outputs.have_tests_to_run == 'true' && needs.bazel_run_test.result != 'success' }}
if: ${{ needs.bazel_compute_affected_targets.outputs.can_skip_tests != 'true' && needs.bazel_run_test.result != 'success' }}
run: exit 1
17 changes: 2 additions & 15 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ http_archive(
# Add support for Kotlin: https://github.com/bazelbuild/rules_kotlin.
http_archive(
name = "io_bazel_rules_kotlin",
patches = ["//tools/kotlin:add_kotlinc_optin_support.patch"],
patches = ["//tools/kotlin:remove_processor_duplicates.patch"],
sha256 = HTTP_DEPENDENCY_VERSIONS["rules_kotlin"]["sha"],
urls = ["https://github.com/bazelbuild/rules_kotlin/releases/download/%s/rules_kotlin_release.tgz" % HTTP_DEPENDENCY_VERSIONS["rules_kotlin"]["version"]],
)

load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories", "kotlinc_version")

# Use the 1.6 compiler since rules_kotlin 1.5 defaults to the 1.5 compiler.
# Use the 1.6 compiler since Kotlin 1.6 is the current supported version in the repository.
kotlin_repositories(
compiler_release = kotlinc_version(
release = "1.6.10",
Expand Down Expand Up @@ -212,7 +212,6 @@ maven_install(
maven_install_json = "//third_party:maven_install.json",
override_targets = {
"com.google.guava:guava": "@//third_party:com_google_guava_guava",
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm": "@//third_party:kotlinx-coroutines-core-jvm",
},
repositories = DAGGER_REPOSITORIES + MAVEN_REPOSITORIES,
strict_visibility = True,
Expand Down Expand Up @@ -240,15 +239,3 @@ pinned_maven_install()
"jre",
]
]

http_jar(
name = "kotlinx-coroutines-core-jvm",
sha256 = HTTP_DEPENDENCY_VERSIONS["kotlinx-coroutines-core-jvm"]["sha"],
urls = [
"{0}/org/jetbrains/kotlinx/kotlinx-coroutines-core-jvm/{1}/kotlinx-coroutines-core-jvm-{1}.jar".format(
url_base,
HTTP_DEPENDENCY_VERSIONS["kotlinx-coroutines-core-jvm"]["version"],
)
for url_base in DAGGER_REPOSITORIES + MAVEN_REPOSITORIES
],
)
2 changes: 1 addition & 1 deletion build_vars.bzl
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
BUILD_SDK_VERSION = 33
BUILD_TOOLS_VERSION = "29.0.2"
BUILD_TOOLS_VERSION = "32.0.0"
BenHenning marked this conversation as resolved.
Show resolved Hide resolved
1 change: 0 additions & 1 deletion config/kitkat_main_dex_class_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ androidx/multidex/ZipUtil.class
androidx/work/Configuration$Provider.class
androidx/work/Configuration.class
androidx/work/WorkManager.class
com/google/firebase/FirebaseApp.class
javax/inject/Provider.class
kotlin/Function.class
kotlin/jvm/functions/Function0.class
Expand Down
2 changes: 1 addition & 1 deletion scripts/assets/file_content_validation_checks.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ file_content_checks {
}
file_content_checks {
file_path_regex: ".+?\\.kt"
prohibited_content_regex: "(format|getString|getStringArray|getQuantityString|getQuantityText|toLowerCase|toUpperCase|capitalize|decapitalize|lowercase|uppercase)\\("
prohibited_content_regex: "(format|getString|getStringArray|getQuantityString|getQuantityText|toLowerCase|toUpperCase|capitalize|decapitalize|lowercase|uppercase|replaceFirstChar)\\("
failure_message: "String formatting and resource retrieval should go through AppLanguageResourceHandler, OppiaLocale.DisplayLocale, or OppiaLocale.MachineLocale depending on the context (see each class's documentation for details on when each should be used)."
exempted_file_name: "app/src/main/java/org/oppia/android/app/translation/AppLanguageResourceHandler.kt"
exempted_file_name: "domain/src/main/java/org/oppia/android/domain/util/JsonExtensions.kt"
Expand Down
11 changes: 11 additions & 0 deletions scripts/assets/maven_dependencies.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,17 @@ maven_dependency {
}
}
}
maven_dependency {
artifact_name: "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4"
artifact_version: "1.6.4"
license {
license_name: "The Apache Software License, Version 2.0"
original_link: "https://www.apache.org/licenses/LICENSE-2.0.txt"
scrapable_link {
url: "https://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
}
maven_dependency {
artifact_name: "org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.6.4"
artifact_version: "1.6.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.junit.rules.TemporaryFolder
import java.io.File

/** The version of Bazel to use in tests that set up Bazel workspaces. */
const val BAZEL_VERSION = "4.0.0"
const val BAZEL_VERSION = "6.5.0"

/**
* Test utility for generating various test & library targets in the specified [TemporaryFolder].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ class AndroidBuildSdkPropertiesTest {
fun testBuildToolsVersion_isTheCorrectVersion() {
val properties = AndroidBuildSdkProperties()

assertThat(properties.buildToolsVersion).isEqualTo("29.0.2")
assertThat(properties.buildToolsVersion).isEqualTo("32.0.0")
}
}
Loading
Loading