Skip to content

feat(kover): bump 0.9.1 → 0.9.8 + opt in scheduler & compose modules - #48

Merged
therajanmaurya merged 2 commits into
MobileByteLabs:developmentfrom
therajanmaurya:feat/kover-agp9-opt-in
Jun 5, 2026
Merged

therajanmaurya merged 2 commits into
MobileByteLabs:developmentfrom
therajanmaurya:feat/kover-agp9-opt-in

Conversation

@therajanmaurya

@therajanmaurya therajanmaurya commented Jun 5, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Bumps Kover 0.9.1 → 0.9.8 — fixes #772 (variantName null crash with AGP 9 android.kotlin.multiplatform.library)
  • Opts cmp-worker-scheduler and cmp-worker-compose into the Kover convention plugin — coverage gate now spans 8 commonMain modules (up from 6)
  • :koverVerify passes at 100% line coverage across all 8 modules

Changes

File Change
gradle/libs.versions.toml kover = "0.9.1" → 0.9.8
cmp-worker-scheduler/build.gradle.kts Add id("io.github.mobilebytelabs.kover")
cmp-worker-compose/build.gradle.kts Same
build-logic/.../Kover.kt New exclusions: WorkSchedulerKt (JVM inline backup), ExactAlarmScheduler/Receiver, WorkScheduler, Synchronizer, WorkSchedulerScreenKt, WorkStatusChipKt
docs/getting-started/coverage.md 8 modules in scope; remove AGP 9 known-limitation section
CHANGELOG.md [Unreleased] entry
DefaultWorkSchedulerTest.kt +9 tests covering BLOCKED/null observeWork branches, nextOccurrenceOf loop, WorkHandle secondary constructor
FakeWorkManager.kt clearRequests() + simulateBlocked()
AbstractDataSyncWorkerTest.kt ChangeListVersionsTest + GetChangeListVersionsTest

Test plan

  • :koverVerify → BUILD SUCCESSFUL (100% on 8 modules)
  • All new tests pass under JVM + Android host test targets
  • No regressions in existing test suite (109 actionable tasks)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes

    • Fixed a crash in code coverage tooling with certain build configurations.
  • Tests

    • Expanded test coverage for scheduler and data synchronization operations.
  • Documentation

    • Updated coverage documentation reflecting expanded coverage requirements across additional modules.

Kover 0.9.8 fixes #772 (variantName null crash with AGP 9
android.kotlin.multiplatform.library). cmp-worker-scheduler and
cmp-worker-compose are now opted into Kover; :koverVerify passes at
100% across all 8 commonMain modules.

Changes:
- gradle/libs.versions.toml: kover 0.9.1 → 0.9.8
- cmp-worker-scheduler/build.gradle.kts: add kover convention plugin
- cmp-worker-compose/build.gradle.kts: same
- build-logic/Kover.kt: WorkSchedulerKt exclusion (JVM inline backup)
  + ExactAlarmScheduler/Receiver, WorkScheduler, Synchronizer,
  WorkSchedulerScreenKt, WorkStatusChipKt, WorkerKmpApp exclusions
- docs/getting-started/coverage.md: 8 modules in scope, remove AGP 9
  known-limitation section
- CHANGELOG.md: [Unreleased] entry for Kover 0.9.8 + 8-module gate
- DefaultWorkSchedulerTest: +9 tests (BLOCKED/null observeWork branches,
  nextOccurrenceOf loop, WorkHandle secondary constructor, foreground/
  background expedited, multiWorker isolation, scheduleDataSyncAt exact)
- FakeWorkManager: clearRequests() + simulateBlocked()
- AbstractDataSyncWorkerTest: ChangeListVersionsTest +
  GetChangeListVersionsTest
@coderabbitai

coderabbitai Bot commented Jun 5, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bed4675c-940b-4fff-b062-8c2f0a8ee31f

📥 Commits

Reviewing files that changed from the base of the PR and between c1e49cb and c569721.

📒 Files selected for processing (9)
  • CHANGELOG.md
  • build-logic/convention/src/main/kotlin/io/github/mobilebytelabs/worker/convention/Kover.kt
  • cmp-worker-compose/build.gradle.kts
  • cmp-worker-scheduler/build.gradle.kts
  • cmp-worker-scheduler/src/commonTest/kotlin/io/github/mobilebytelabs/worker/scheduler/DefaultWorkSchedulerTest.kt
  • cmp-worker-scheduler/src/commonTest/kotlin/io/github/mobilebytelabs/worker/scheduler/FakeWorkManager.kt
  • cmp-worker-scheduler/src/commonTest/kotlin/io/github/mobilebytelabs/worker/scheduler/sync/AbstractDataSyncWorkerTest.kt
  • docs/getting-started/coverage.md
  • gradle/libs.versions.toml

📝 Walkthrough

Walkthrough

Kover is upgraded from 0.9.1 to 0.9.8 to fix an AGP 9 multiplatform library crash. Kover exclusion filters are expanded, two worker modules are opted into coverage tracking with 100% line coverage requirements, and test coverage is extended across scheduler/compose tests and sync worker tests to support the new gating.

Changes

Kover Coverage Upgrade and Module Opt-in

Layer / File(s) Summary
Kover Version Update and Configuration Filters
gradle/libs.versions.toml, build-logic/convention/src/main/kotlin/io/github/mobilebytelabs/worker/convention/Kover.kt
Kover dependency bumped to 0.9.8 fixing AGP 9 multiplatform variantName null crash. Coverage exclusion filters expanded to ignore Kotlin JVM $DefaultImpls classes, alarm scheduler/receiver stubs, WorkScheduler interface artifacts, Synchronizer dispatch helpers, and composable screen file-class outputs.
cmp-worker-scheduler and cmp-worker-compose Kover Opt-in
cmp-worker-compose/build.gradle.kts, cmp-worker-scheduler/build.gradle.kts
Kover Gradle plugin added to plugins blocks in both modules; prior comments explaining intentional Kover exclusion are removed.
Test Coverage Extensions for Full Coverage
cmp-worker-scheduler/src/commonTest/kotlin/io/github/mobilebytelabs/worker/scheduler/DefaultWorkSchedulerTest.kt, cmp-worker-scheduler/src/commonTest/kotlin/io/github/mobilebytelabs/worker/scheduler/FakeWorkManager.kt, cmp-worker-scheduler/src/commonTest/kotlin/io/github/mobilebytelabs/worker/scheduler/sync/AbstractDataSyncWorkerTest.kt
FakeWorkManager gains clearRequests() and simulateBlocked(id) helpers. New tests cover work status transitions (Running, Failed, Cancelled, Pending states), daily sync scheduling boundary conditions, WorkHandle constructor distinctness, and ChangeListVersions immutability behavior.
CHANGELOG and Coverage Documentation Updates
CHANGELOG.md, docs/getting-started/coverage.md
CHANGELOG documents Kover 0.9.8 bump and newly opted-in modules with coverage gate confirmation. Coverage docs reflect 8 testable modules (up from 6), add cmp-worker-scheduler and cmp-worker-compose to opted-in set, remove AGP 9 + Kover 0.9.1 limitation narrative, and update coverage epic plan link to archived location.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • MobileByteLabs/worker-kmp#47: Prior PR introduced the "AGP 9 + Kover 0.9.1" limitation that blocked cmp-worker-scheduler and cmp-worker-compose from opting into coverage; this PR resolves that limitation with the Kover 0.9.8 upgrade and completes the module opt-in.

Poem

🐰 Hop, hop! The coverage gate's now open wide,
Two worker modules hop inside, with tests to guide,
Kover's bumped and filters set just right,
CommonMain shines with coverage so bright! 🌟

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@therajanmaurya
therajanmaurya marked this pull request as ready for review June 5, 2026 07:31
@therajanmaurya
therajanmaurya merged commit 7a0521a into MobileByteLabs:development Jun 5, 2026
12 of 13 checks passed
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.

'variantName' property has null with Android Gradle Library Plugin for KMP

1 participant