Skip to content

Fix memory leak and tests#1164

Merged
Iamlooker merged 4 commits intoDroid-ify:mainfrom
amartinz:fixes
Jan 8, 2026
Merged

Fix memory leak and tests#1164
Iamlooker merged 4 commits intoDroid-ify:mainfrom
amartinz:fixes

Conversation

@amartinz
Copy link
Copy Markdown
Contributor

@amartinz amartinz commented Jan 8, 2026

This MR fixes a memory leak within the V1Parser and fixes the instrumentation tests.

The test was trying to look up index-v1.jar within the app's assets
which does not contain it.

Use the instrumentation package instead.

Signed-off-by: Alexander Martinz <[email protected]>
The index converter never uses null and instead returns
an empty list:
  - `donate = if (donate != null) listOf(donate) else emptyList()`

Instead of adjusting this to return null, align with how `categories`
is specified and default to an empty list instead.

This also fixes the test V1SyncableTest#v1tov2.

Signed-off-by: Alexander Martinz <[email protected]>
The v1 parser expects a jar file but v2 only provides json
which results in the tests to break.

This test also benchmarked the v1 performance twice, as a
benchmark v1 test already exists.

The tests are going to be reworked/obsolete in future
refactorings anyways, so at least fix the test for now
so the test suite completes successfully.

Signed-off-by: Alexander Martinz <[email protected]>
@Iamlooker Iamlooker merged commit ca621e8 into Droid-ify:main Jan 8, 2026
@amartinz amartinz deleted the fixes branch January 8, 2026 13:10
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.

2 participants