Skip to content

Remove redundant testUtil sourceset from firebase-database #4710

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

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

Conversation

jmwski
Copy link
Contributor

@jmwski jmwski commented Feb 22, 2023

Right now a bunch of tests in firebase-database generate unbound reference warnings in intellij even though those same tests compile and run successfully. All the unbound references are for symbols in firebase-database/src/testUtils/*.java. I noticed that we had two gradle sourceSets that point to this location. Removing the test sourceset clears the intellij warnings.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 22, 2023

Javadoc Changes:
--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/database/FirebaseDatabase.html	2023-02-22 22:30:58.468970273 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/database/FirebaseDatabase.html	2023-02-22 22:30:26.796880903 +0000
@@ -122,7 +122,7 @@
           <tr>
             <td width="40%"><code>synchronized void</code></td>
             <td>
-              <div><code><a href="/docs/reference/android/com/google/firebase/database/FirebaseDatabase.html#setLogLevel(com.google.firebase.database.Logger.Level)">setLogLevel</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/database/Logger.Level.html">Logger.Level</a>&nbsp;logLevel)</code></div>
+              <div><code><a href="/docs/reference/android/com/google/firebase/database/FirebaseDatabase.html#setLogLevel(com.google.firebase.database.Logger.Level)">setLogLevel</a>(@<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;logLevel)</code></div>
               <p>By default, this is set to <code><a href="/docs/reference/android/com/google/firebase/database/Logger.Level.html#INFO">INFO</a></code>.</p>
             </td>
           </tr>
@@ -462,7 +462,7 @@
     </div>
     <div><a name="setLogLevel-com.google.firebase.database.Logger.Level-"></a><a name="setloglevel"></a>
       <h3 class="api-name" id="setLogLevel(com.google.firebase.database.Logger.Level)">setLogLevel</h3>
-      <pre class="api-signature no-pretty-print">synchronized&nbsp;public&nbsp;void&nbsp;<a href="/docs/reference/android/com/google/firebase/database/FirebaseDatabase.html#setLogLevel(com.google.firebase.database.Logger.Level)">setLogLevel</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/database/Logger.Level.html">Logger.Level</a>&nbsp;logLevel)</pre>
+      <pre class="api-signature no-pretty-print">synchronized&nbsp;public&nbsp;void&nbsp;<a href="/docs/reference/android/com/google/firebase/database/FirebaseDatabase.html#setLogLevel(com.google.firebase.database.Logger.Level)">setLogLevel</a>(@<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;logLevel)</pre>
       <p>By default, this is set to <code><a href="/docs/reference/android/com/google/firebase/database/Logger.Level.html#INFO">INFO</a></code>. This includes any internal errors (<code><a href="/docs/reference/android/com/google/firebase/database/Logger.Level.html#ERROR">ERROR</a></code>) and any security debug messages (<code><a href="/docs/reference/android/com/google/firebase/database/Logger.Level.html#INFO">INFO</a></code>) that the client receives. Set to <code><a href="/docs/reference/android/com/google/firebase/database/Logger.Level.html#DEBUG">DEBUG</a></code> to turn on the diagnostic logging, and <code><a href="/docs/reference/android/com/google/firebase/database/Logger.Level.html#NONE">NONE</a></code> to disable all logging.</p>
       <div class="devsite-table-wrapper">
         <table class="responsive">
@@ -473,7 +473,7 @@
           </thead>
           <tbody class="list">
             <tr>
-              <td width="40%"><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/database/Logger.Level.html">Logger.Level</a>&nbsp;logLevel</code></td>
+              <td width="40%"><code>@<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;logLevel</code></td>
               <td>
                 <p>The desired minimum log level</p>
               </td>
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/database/FirebaseDatabase.html	2023-02-22 22:30:58.480970311 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/database/FirebaseDatabase.html	2023-02-22 22:30:26.816880969 +0000
@@ -122,7 +122,7 @@
           <tr>
             <td width="40%"><code>synchronized <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></code></td>
             <td>
-              <div><code><a href="/docs/reference/kotlin/com/google/firebase/database/FirebaseDatabase.html#setLogLevel(com.google.firebase.database.Logger.Level)">setLogLevel</a>(logLevel:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/database/Logger.Level.html">Logger.Level</a>)</code></div>
+              <div><code><a href="/docs/reference/kotlin/com/google/firebase/database/FirebaseDatabase.html#setLogLevel(com.google.firebase.database.Logger.Level)">setLogLevel</a>(logLevel:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>)</code></div>
               <p>By default, this is set to <code><a href="/docs/reference/kotlin/com/google/firebase/database/Logger.Level.html#INFO">INFO</a></code>.</p>
             </td>
           </tr>
@@ -462,7 +462,7 @@
     </div>
     <div><a name="setLogLevel-com.google.firebase.database.Logger.Level-"></a><a name="setloglevel"></a>
       <h3 class="api-name" id="setLogLevel(com.google.firebase.database.Logger.Level)">setLogLevel</h3>
-      <pre class="api-signature no-pretty-print">synchronized&nbsp;fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/database/FirebaseDatabase.html#setLogLevel(com.google.firebase.database.Logger.Level)">setLogLevel</a>(logLevel:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/database/Logger.Level.html">Logger.Level</a>):&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></pre>
+      <pre class="api-signature no-pretty-print">synchronized&nbsp;fun&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/database/FirebaseDatabase.html#setLogLevel(com.google.firebase.database.Logger.Level)">setLogLevel</a>(logLevel:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>):&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></pre>
       <p>By default, this is set to <code><a href="/docs/reference/kotlin/com/google/firebase/database/Logger.Level.html#INFO">INFO</a></code>. This includes any internal errors (<code><a href="/docs/reference/kotlin/com/google/firebase/database/Logger.Level.html#ERROR">ERROR</a></code>) and any security debug messages (<code><a href="/docs/reference/kotlin/com/google/firebase/database/Logger.Level.html#INFO">INFO</a></code>) that the client receives. Set to <code><a href="/docs/reference/kotlin/com/google/firebase/database/Logger.Level.html#DEBUG">DEBUG</a></code> to turn on the diagnostic logging, and <code><a href="/docs/reference/kotlin/com/google/firebase/database/Logger.Level.html#NONE">NONE</a></code> to disable all logging.</p>
       <div class="devsite-table-wrapper">
         <table class="responsive">
@@ -473,7 +473,7 @@
           </thead>
           <tbody class="list">
             <tr>
-              <td width="40%"><code>logLevel:&nbsp;<a href="/docs/reference/kotlin/com/google/firebase/database/Logger.Level.html">Logger.Level</a></code></td>
+              <td width="40%"><code>logLevel:&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a></code></td>
               <td>
                 <p>The desired minimum log level</p>
               </td>

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 22, 2023

@github-actions
Copy link
Contributor

Unit Test Results

  8 files   -    466    8 suites   - 466   25s ⏱️ - 18m 15s
13 tests  - 3 061  13 ✔️  - 3 044  0 💤  - 17  0 ±0 
26 runs   - 6 122  26 ✔️  - 6 088  0 💤  - 34  0 ±0 

Results for commit 9dde2b5. ± Comparison against base commit e2d3607.

@google-oss-bot
Copy link
Contributor

@google-oss-bot
Copy link
Contributor

Startup Time Report 1

Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS.

Notes

Startup Times

  • fire-rtdb

    DeviceStatisticsDistributions
    oriole-32
    Percentilee2d3607af4624cDiffSignificant (?)
    p1037.9 ±11 μs40.2 ±13 μs+2.38 μs (+6.3%)NO
    p2541.1 ±13 μs43.2 ±15 μs+2.10 μs (+5.1%)NO
    p5046.2 ±16 μs48.7 ±18 μs+2.53 μs (+5.5%)NO
    p7558.0 ±25 μs64.1 ±25 μs+6.09 μs (+10.5%)NO
    p9085.8 ±56 μs79.0 ±41 μs-6.75 μs (-7.9%)NO

    20 test runs in comparison
    CommitTest Runs
    e2d3607
    • 2023-02-21_23:09:01.347393_YFLB
    • 2023-02-21_23:09:01.349241_BaeK
    • 2023-02-21_23:09:01.349252_FNDs
    • 2023-02-21_23:09:01.349379_QLEP
    • 2023-02-21_23:09:01.349385_OheB
    • 2023-02-21_23:09:01.349391_grRU
    • 2023-02-21_23:09:01.349397_essC
    • 2023-02-21_23:09:01.349402_KCkT
    • 2023-02-21_23:09:01.349407_vryO
    • 2023-02-21_23:09:01.349413_tbcs
    af4624c
    • 2023-02-22_22:51:04.280837_rIaT
    • 2023-02-22_22:51:04.288968_RDhO
    • 2023-02-22_22:51:04.288988_CjTG
    • 2023-02-22_22:51:04.289261_XFHb
    • 2023-02-22_22:51:04.289289_Wglx
    • 2023-02-22_22:51:04.289297_sJiV
    • 2023-02-22_22:51:04.289304_Jexd
    • 2023-02-22_22:51:04.289310_ICwR
    • 2023-02-22_22:51:04.289316_Gybg
    • 2023-02-22_22:51:04.289323_VIfm
    redfin-30
    Percentilee2d3607af4624cDiffSignificant (?)
    p1079.8 ±9 μs77.3 ±9 μs-2.48 μs (-3.1%)NO
    p2584.3 ±8 μs81.4 ±8 μs-2.92 μs (-3.5%)NO
    p5090.1 ±7 μs87.3 ±7 μs-2.75 μs (-3.0%)NO
    p7599.9 ±12 μs96.4 ±8 μs-3.48 μs (-3.5%)NO
    p90123 ±22 μs113 ±14 μs-9.91 μs (-8.1%)NO

    20 test runs in comparison
    CommitTest Runs
    e2d3607
    • 2023-02-21_23:09:01.347393_YFLB
    • 2023-02-21_23:09:01.349241_BaeK
    • 2023-02-21_23:09:01.349252_FNDs
    • 2023-02-21_23:09:01.349379_QLEP
    • 2023-02-21_23:09:01.349385_OheB
    • 2023-02-21_23:09:01.349391_grRU
    • 2023-02-21_23:09:01.349397_essC
    • 2023-02-21_23:09:01.349402_KCkT
    • 2023-02-21_23:09:01.349407_vryO
    • 2023-02-21_23:09:01.349413_tbcs
    af4624c
    • 2023-02-22_22:51:04.280837_rIaT
    • 2023-02-22_22:51:04.288968_RDhO
    • 2023-02-22_22:51:04.288988_CjTG
    • 2023-02-22_22:51:04.289261_XFHb
    • 2023-02-22_22:51:04.289289_Wglx
    • 2023-02-22_22:51:04.289297_sJiV
    • 2023-02-22_22:51:04.289304_Jexd
    • 2023-02-22_22:51:04.289310_ICwR
    • 2023-02-22_22:51:04.289316_Gybg
    • 2023-02-22_22:51:04.289323_VIfm
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentilee2d3607af4624cDiffSignificant (?)
    p10205 ±24 ms217 ±38 ms+11.1 ms (+5.4%)NO
    p25213 ±26 ms223 ±41 ms+10.1 ms (+4.7%)NO
    p50226 ±32 ms233 ±46 ms+7.19 ms (+3.2%)NO
    p75238 ±38 ms244 ±49 ms+5.94 ms (+2.5%)NO
    p90248 ±42 ms256 ±50 ms+8.87 ms (+3.6%)NO

    20 test runs in comparison
    CommitTest Runs
    e2d3607
    • 2023-02-21_23:09:01.347393_YFLB
    • 2023-02-21_23:09:01.349241_BaeK
    • 2023-02-21_23:09:01.349252_FNDs
    • 2023-02-21_23:09:01.349379_QLEP
    • 2023-02-21_23:09:01.349385_OheB
    • 2023-02-21_23:09:01.349391_grRU
    • 2023-02-21_23:09:01.349397_essC
    • 2023-02-21_23:09:01.349402_KCkT
    • 2023-02-21_23:09:01.349407_vryO
    • 2023-02-21_23:09:01.349413_tbcs
    af4624c
    • 2023-02-22_22:51:04.280837_rIaT
    • 2023-02-22_22:51:04.288968_RDhO
    • 2023-02-22_22:51:04.288988_CjTG
    • 2023-02-22_22:51:04.289261_XFHb
    • 2023-02-22_22:51:04.289289_Wglx
    • 2023-02-22_22:51:04.289297_sJiV
    • 2023-02-22_22:51:04.289304_Jexd
    • 2023-02-22_22:51:04.289310_ICwR
    • 2023-02-22_22:51:04.289316_Gybg
    • 2023-02-22_22:51:04.289323_VIfm
    redfin-30
    Percentilee2d3607af4624cDiffSignificant (?)
    p10230 ±3 ms254 ±4 ms+24.0 ms (+10.5%)YES
    p25236 ±3 ms260 ±4 ms+24.3 ms (+10.3%)YES
    p50242 ±3 ms267 ±4 ms+24.6 ms (+10.1%)YES
    p75250 ±3 ms275 ±4 ms+24.8 ms (+9.9%)YES
    p90259 ±3 ms287 ±7 ms+27.9 ms (+10.8%)MAYBE

    20 test runs in comparison
    CommitTest Runs
    e2d3607
    • 2023-02-21_23:09:01.347393_YFLB
    • 2023-02-21_23:09:01.349241_BaeK
    • 2023-02-21_23:09:01.349252_FNDs
    • 2023-02-21_23:09:01.349379_QLEP
    • 2023-02-21_23:09:01.349385_OheB
    • 2023-02-21_23:09:01.349391_grRU
    • 2023-02-21_23:09:01.349397_essC
    • 2023-02-21_23:09:01.349402_KCkT
    • 2023-02-21_23:09:01.349407_vryO
    • 2023-02-21_23:09:01.349413_tbcs
    af4624c
    • 2023-02-22_22:51:04.280837_rIaT
    • 2023-02-22_22:51:04.288968_RDhO
    • 2023-02-22_22:51:04.288988_CjTG
    • 2023-02-22_22:51:04.289261_XFHb
    • 2023-02-22_22:51:04.289289_Wglx
    • 2023-02-22_22:51:04.289297_sJiV
    • 2023-02-22_22:51:04.289304_Jexd
    • 2023-02-22_22:51:04.289310_ICwR
    • 2023-02-22_22:51:04.289316_Gybg
    • 2023-02-22_22:51:04.289323_VIfm

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

@maneesht maneesht requested a review from rlazo February 23, 2023 17:28
@@ -3,6 +3,7 @@
# 20.1.0
* [unchanged] Updated to accommodate the release of the updated
[database] Kotlin extensions library.
* [fixed] Remove redundant gradle sourceSet to clear spurious Android Studio unbound reference errors.
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if we need a changelog here, as this isn't a user-facing change.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, no need of changelog entries for non-user visible changes.

@rlazo
Copy link
Collaborator

rlazo commented Feb 23, 2023

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.

4 participants