Skip to content

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Jun 13, 2025

Integrate the Dokka documentation engine into the Data Connect demo project. This addition allows for the generation of KDoc documentation from the Kotlin source code, including sources generated by Data Connect. This will be especially useful for testing the README.md that gets generated as part of the codegen, which is not yet released (Googlers see cl/769257895).

Highlights

  • Add Dokka Plugin: Add the org.jetbrains.dokka Gradle plugin to the firebase-dataconnect/demo module's build file.
  • Configure Dokka: Configure the Dokka plugin to set the module name and include generated sources from the dataConnect/generatedSources directory.
  • Enable Dokka V2 Plugin Mode: Added experimental properties to gradle.properties to enable Dokka's V2 plugin mode.

This comment was marked as resolved.

This comment was marked as off-topic.

gemini-code-assist[bot]

This comment was marked as outdated.

@dconeybe dconeybe changed the base branch from main to dconeybe/dataconnect/DemoEmulatorExecutableProperty June 13, 2025 16:14
gemini-code-assist[bot]

This comment was marked as resolved.

gemini-code-assist[bot]

This comment was marked as resolved.

Copy link
Contributor

Summary of Changes

This pull request integrates the Dokka documentation engine into the Data Connect demo project. This addition allows for the generation of KDoc documentation from the Kotlin source code, including sources generated by Data Connect, making the demo code easier to understand and navigate through generated documentation.

Highlights

  • Add Dokka Plugin: Added the org.jetbrains.dokka Gradle plugin to the firebase-dataconnect/demo module's build file.
  • Configure Dokka: Configured the Dokka plugin to set the module name and include generated sources from the dataConnect/generatedSources directory.
  • Enable Dokka V2 Plugin Mode: Added experimental properties to gradle.properties to enable Dokka's V2 plugin mode.
Changelog
  • firebase-dataconnect/demo/build.gradle.kts
    • Added the Dokka Gradle plugin dependency.
    • Added a Dokka configuration block to specify the module name and source sets.
  • firebase-dataconnect/demo/gradle.properties
    • Added properties to enable Dokka's experimental V2 plugin mode.
Activity
  • github-actions[bot] posted standard PR merging guidelines.
  • github-actions[bot] posted a warning about updating Firebase AI mock responses.
  • dconeybe issued /gemini comment and /gemini review commands.
  • dconeybe issued the /gemini summary command (which I am responding to).

@dconeybe dconeybe requested a review from Copilot June 13, 2025 16:25
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds Dokka documentation generation to the Data Connect demo by applying the Dokka plugin, configuring it to include generated sources, and updating CI to produce and upload HTML docs.

  • Apply and configure org.jetbrains.dokka plugin in the demo module
  • Enable Dokka V2 experimental plugin mode via gradle.properties
  • Add CI steps to run Dokka and upload generated HTML documentation

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
firebase-dataconnect/demo/gradle.properties Enable Dokka V2 plugin mode and suppress warnings
firebase-dataconnect/demo/build.gradle.kts Add Dokka plugin (v2.0.0) and configure source roots
.github/workflows/dataconnect_demo_app.yml Run Dokka in CI and upload HTML output as an artifact
Comments suppressed due to low confidence (3)

.github/workflows/dataconnect_demo_app.yml:120

  • The Gradle task 'dokkaGeneratePublicationHtml' may not exist in Dokka 2.0; you might need to use the built-in 'dokkaHtml' task or confirm the exact task name to prevent CI failures.
          dokkaGeneratePublicationHtml

.github/workflows/dataconnect_demo_app.yml:139

  • The upload path 'build/dokka/html' might not match Dokka’s actual output directory (often includes the module name); consider using a wildcard (e.g., 'build/dokka/html/**') or verify the folder structure to ensure the artifacts are captured.
          path: firebase-dataconnect/demo/build/dokka/html

firebase-dataconnect/demo/gradle.properties:9

  • [nitpick] Adding a brief comment to explain these experimental flags (enabling Dokka V2 mode and suppressing warnings) would help future maintainers understand their purpose.
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled

Copy link
Contributor

github-actions bot commented Jun 13, 2025

Test Results

 1 077 files  + 38   1 077 suites  +38   36m 26s ⏱️ +54s
 5 985 tests ±  0   5 962 ✅ ±  0  22 💤 ±0  1 ❌ ±0 
12 357 runs  +648  12 312 ✅ +648  44 💤 ±0  1 ❌ ±0 

For more details on these failures, see this check.

Results for commit 05485ff. ± Comparison against base commit 11dfdac.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 13, 2025

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 13, 2025

Coverage Report 1

Affected Products

  • firebase-database

    Overall coverage changed from 50.20% (11dfdac) to 50.16% (63a044b) by -0.03%.

    FilenameBase (11dfdac)Merge (63a044b)Diff
    ChildChangeAccumulator.java96.67%83.33%-13.33%
    ViewProcessor.java91.79%92.10%+0.30%
  • firebase-installations

    Overall coverage changed from ? (11dfdac) to 58.17% (63a044b) by ?.

    23 individual files with coverage change

    FilenameBase (11dfdac)Merge (63a044b)Diff
    AutoValue_InstallationResponse.java?58.93%?
    AutoValue_PersistedInstallationEntry.java?56.98%?
    AutoValue_TokenResult.java?42.22%?
    AwaitListener.java?0.00%?
    Clock.java?0.00%?
    CrossProcessLock.java?51.85%?
    FirebaseInstallations.java?96.62%?
    FirebaseInstallationServiceClient.java?4.80%?
    FirebaseInstallationsException.java?78.57%?
    FirebaseInstallationsRegistrar.java?100.00%?
    GetAuthTokenListener.java?100.00%?
    GetIdListener.java?70.00%?
    IidStore.java?22.39%?
    InstallationResponse.java?100.00%?
    Installations.kt?40.00%?
    PersistedInstallation.java?97.01%?
    PersistedInstallationEntry.java?100.00%?
    RandomFidGenerator.java?20.00%?
    RequestLimiter.java?100.00%?
    StateListener.java?0.00%?
    SystemClock.java?100.00%?
    TokenResult.java?100.00%?
    Utils.java?95.00%?

  • firebase-messaging

    Overall coverage changed from 84.02% (11dfdac) to 84.13% (63a044b) by +0.11%.

    FilenameBase (11dfdac)Merge (63a044b)Diff
    Metadata.java36.51%41.27%+4.76%
  • firebase-ml-modeldownloader

    Overall coverage changed from 81.86% (11dfdac) to 82.11% (63a044b) by +0.25%.

    FilenameBase (11dfdac)Merge (63a044b)Diff
    FirebaseModelDownloader.java82.21%84.66%+2.45%
  • firebase-sessions

    Overall coverage changed from 66.56% (11dfdac) to 66.67% (63a044b) by +0.11%.

    FilenameBase (11dfdac)Merge (63a044b)Diff
    RemoteSettings.kt87.32%88.73%+1.41%
  • firebase-storage

    Overall coverage changed from 83.96% (11dfdac) to 84.33% (63a044b) by +0.37%.

    FilenameBase (11dfdac)Merge (63a044b)Diff
    StorageException.java65.45%69.09%+3.64%
    StorageTask.java83.38%83.99%+0.60%
    UploadTask.java81.52%83.17%+1.65%
  • firebase-firestore

    FilenameBase (11dfdac)Merge (63a044b)Diff
    DeleteMutation.java90.48%95.24%+4.76%
    SetMutation.java97.22%94.44%-2.78%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/kaSxNNCdYb.html

Base automatically changed from dconeybe/dataconnect/DemoEmulatorExecutableProperty to main June 20, 2025 21:23
@dconeybe dconeybe changed the title dataconnect: demo: add "dokka" to generate ktdoc dataconnect: demo: Setup dokka Jun 20, 2025
@dconeybe dconeybe requested a review from aashishpatil-g June 20, 2025 21:33
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 20, 2025

Startup Time Report 1

The report is too large (122,616 chars) to be displayed on GitHub. Please check this report on GCS.

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/BcbOoBvIuq/index.html

@dconeybe dconeybe merged commit 7966873 into main Jun 23, 2025
597 of 604 checks passed
@dconeybe dconeybe deleted the dconeybe/dataconnect/DemoDokka2 branch June 23, 2025 19:58
@firebase firebase locked and limited conversation to collaborators Jul 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants