Skip to content

Conversation

@fsladkey
Copy link
Member

@fsladkey fsladkey commented Oct 6, 2025

Replace KaFirStopWorldCacheCleaner with no-op implementation

This cache cleaner leads to flakey build failures in AndroidX. KSP has already updated to a Kotlin AA version which no longer registered the cache cleaner by default for standalone but it is still registered for all other usages. This CL replaces it with a no-op implementation.

@fsladkey
Copy link
Member Author

fsladkey commented Oct 6, 2025

Not sure how testable this change is, but happy to add a test if someone can point me in the right direction.

@fsladkey fsladkey force-pushed the no-op-cache-cleaner branch from b2a20cf to 172109d Compare October 6, 2025 14:09
@hfmehmed hfmehmed requested a review from ting-yuan October 6, 2025 14:21
@hfmehmed
Copy link
Collaborator

hfmehmed commented Oct 6, 2025

LGTM. @ting-yuan can you review too

@jsjeon
Copy link
Member

jsjeon commented Oct 6, 2025

Here is another way: https://cs.android.com/android-studio/platform/tools/base/+/1c13ba54892389f0706e7308f6e942039684680d

@fsladkey
Copy link
Member Author

fsladkey commented Oct 6, 2025

Thanks jsjeon!

When I changed the LoadingState so that the correct registry value would be picked up it caused some other failures which I wasn't familiar with the internals of enough to confidently fix. Happy to work with someone more familiar with the codebase to get that version working if it's preferable.

@ting-yuan
Copy link
Collaborator

Both of the ways work. Let's merge this for 2.0.4 and revisit it later if necessary.

@ting-yuan ting-yuan merged commit 2f123da into google:main Oct 6, 2025
3 checks passed
@ting-yuan ting-yuan added this to the 2.0.4 milestone Oct 7, 2025
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.

4 participants