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

Add DackkaPlugin tests #4508

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Add DackkaPlugin tests #4508

wants to merge 9 commits into from

Conversation

daymxn
Copy link
Member

@daymxn daymxn commented Jan 3, 2023

Per b/249825782,

This adds tests to build-src-check for the DackkaPlugin. These tests come with a predefined output that is expected from Dackka, and will rerun the project used to generate said output- and compare it with the expected output. You can read more about it in the documentation for DackkaPluginTests.

This also adds a testPlugins that can be used instead of passing enablePluginTests around the command line. Although support remains for enablePluginTests.

Example:

./gradlew -b buildSrc/build.gradle.kts testPlugins

@daymxn daymxn requested a review from rlazo January 3, 2023 21:37
@daymxn daymxn self-assigned this Jan 3, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2023

Javadoc Changes:
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/appdistribution/AppDistributionRelease.html	2023-01-06 18:59:40.296208387 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/appdistribution/AppDistributionRelease.html	2023-01-06 18:52:11.464971174 +0000
@@ -21,7 +21,7 @@
         </thead>
         <tbody class="list">
           <tr>
-            <td width="40%"><code>abstract @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/appdistribution/BinaryType.html">BinaryType</a></code></td>
+            <td width="40%"><code>abstract @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a></code></td>
             <td>
               <div><code><a href="/docs/reference/android/com/google/firebase/appdistribution/AppDistributionRelease.html#getBinaryType()">getBinaryType</a>()</code></div>
               <p>Returns the binary type for this build.</p>
@@ -54,7 +54,7 @@
     <h2>Public methods</h2>
     <div><a name="getBinaryType--"></a><a name="getbinarytype"></a>
       <h3 class="api-name" id="getBinaryType()">getBinaryType</h3>
-      <pre class="api-signature no-pretty-print">abstract&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/appdistribution/BinaryType.html">BinaryType</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/appdistribution/AppDistributionRelease.html#getBinaryType()">getBinaryType</a>()</pre>
+      <pre class="api-signature no-pretty-print">abstract&nbsp;@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">Object</a>&nbsp;<a href="/docs/reference/android/com/google/firebase/appdistribution/AppDistributionRelease.html#getBinaryType()">getBinaryType</a>()</pre>
       <p>Returns the binary type for this build.</p>
     </div>
     <div><a name="getDisplayVersion--"></a><a name="getdisplayversion"></a>
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/appdistribution/AppDistributionRelease.html	2023-01-06 18:59:40.308208373 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/appdistribution/AppDistributionRelease.html	2023-01-06 18:52:11.504971048 +0000
@@ -21,7 +21,7 @@
         </thead>
         <tbody class="list">
           <tr>
-            <td width="40%"><code><a href="/docs/reference/kotlin/com/google/firebase/appdistribution/BinaryType.html">BinaryType</a></code></td>
+            <td width="40%"><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a></code></td>
             <td>
               <div><code><a href="/docs/reference/kotlin/com/google/firebase/appdistribution/AppDistributionRelease.html#getBinaryType()">getBinaryType</a>()</code></div>
               <p>Returns the binary type for this build.</p>
@@ -54,7 +54,7 @@
     <h2>Public functions</h2>
     <div><a name="getBinaryType--"></a><a name="getbinarytype"></a>
       <h3 class="api-name" id="getBinaryType()">getBinaryType</h3>
-      <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/appdistribution/AppDistributionRelease.html#getBinaryType()">getBinaryType</a>():&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/appdistribution/BinaryType.html">BinaryType</a></pre>
+      <pre class="api-signature no-pretty-print">fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/appdistribution/AppDistributionRelease.html#getBinaryType()">getBinaryType</a>():&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a></pre>
       <p>Returns the binary type for this build.</p>
     </div>
     <div><a name="getDisplayVersion--"></a><a name="getdisplayversion"></a>

@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2023

Unit Test Results

   402 files  +   375     402 suites  +375   18m 43s ⏱️ + 14m 39s
4 760 tests +4 286  4 737 ✔️ +4 263  22 💤 +22  1 +1 
4 776 runs  +4 302  4 753 ✔️ +4 279  22 💤 +22  1 +1 

For more details on these failures, see this check.

Results for commit 73c035c. ± Comparison against base commit 72b228d.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 3, 2023

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 3, 2023

Coverage Report 1

Affected Products

  • firebase-database

    Overall coverage changed from 50.07% (ef311dc) to 50.15% (9a2b9d8) by +0.09%.

    FilenameBase (ef311dc)Merge (9a2b9d8)Diff
    ChildChangeAccumulator.java83.33%96.67%+13.33%
    WebsocketConnection.java32.77%35.03%+2.26%
  • firebase-messaging

    Overall coverage changed from ? (ef311dc) to 85.25% (9a2b9d8) by ?.

    41 individual files with coverage change

    FilenameBase (ef311dc)Merge (9a2b9d8)Diff
    AutoProtoEncoderDoNotUseEncoder.java?98.17%?
    ByteStreams.java?59.72%?
    CommonNotificationBuilder.java?90.78%?
    Constants.java?92.86%?
    DisplayNotification.java?91.38%?
    EnhancedIntentService.java?76.60%?
    ExecutorFactory.java?0.00%?
    FcmBroadcastProcessor.java?93.33%?
    FcmExecutors.java?80.00%?
    FcmLifecycleCallbacks.java?89.29%?
    FirebaseInstanceIdReceiver.java?72.73%?
    FirebaseMessaging.java?75.33%?
    FirebaseMessagingRegistrar.java?100.00%?
    FirebaseMessagingService.java?94.03%?
    GmsRpc.java?83.15%?
    ImageDownload.java?93.33%?
    MessagingAnalytics.java?81.78%?
    MessagingClientEvent.java?93.58%?
    MessagingClientEventExtension.java?76.47%?
    Metadata.java?61.90%?
    NotificationParams.java?98.71%?
    PoolableExecutors.java?29.17%?
    ProtoEncoderDoNotUse.java?50.00%?
    ProxyNotificationInitializer.java?93.75%?
    ProxyNotificationPreferences.java?88.89%?
    RemoteMessage.java?95.48%?
    RemoteMessageCreator.java?88.89%?
    RequestDeduplicator.java?90.00%?
    SendException.java?100.00%?
    ServiceStarter.java?87.50%?
    SharedPreferencesQueue.java?98.65%?
    Store.java?74.19%?
    SyncTask.java?70.83%?
    ThreadPriority.java?100.00%?
    TopicOperation.java?90.00%?
    TopicsStore.java?100.00%?
    TopicsSubscriber.java?89.47%?
    TopicsSyncTask.java?53.33%?
    WakeLockHolder.java?95.92%?
    WithinAppServiceBinder.java?90.91%?
    WithinAppServiceConnection.java?84.15%?

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 3, 2023

Startup Time Report 1

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

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

@daymxn daymxn requested a review from rlazo January 5, 2023 19:03
@rlazo
Copy link
Collaborator

rlazo commented Jan 5, 2023

Ping me when the javadoc changes are final. I'd like to take a quick look at them before approving the PR. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants