Skip to content

Create Gradle cache-compliant metalava tasks. #3994

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

Merged
merged 3 commits into from
Aug 16, 2022
Merged

Create Gradle cache-compliant metalava tasks. #3994

merged 3 commits into from
Aug 16, 2022

Conversation

vkryachko
Copy link
Member

The original tasks were not properly cacheable and will fail validation
in future Gradle versions.

The original tasks were not properly cacheable and will fail validation
in future Gradle versions.
@github-actions
Copy link
Contributor

github-actions bot commented Aug 16, 2022

Unit Test Results

   391 files  ±0     391 suites  ±0   16m 1s ⏱️ - 1m 5s
4 707 tests ±0  4 684 ✔️ +1  22 💤 ±0  1  - 1 
4 723 runs  ±0  4 700 ✔️ +1  22 💤 ±0  1  - 1 

For more details on these failures, see this check.

Results for commit b40193c. ± Comparison against base commit ba6f410.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 16, 2022

Size Report 1

Affected Products

  • firebase-firestore

    TypeBase (ba6f410)Merge (48db140)Diff
    aar1.26 MB1.26 MB-3 B (-0.0%)

Test Logs

Notes

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

@github-actions
Copy link
Contributor

github-actions bot commented Aug 16, 2022

buildSrc Test Results

18 tests   18 ✔️  2m 8s ⏱️
  4 suites    0 💤
  4 files      0

Results for commit b40193c.

♻️ This comment has been updated with latest results.

@firebase firebase deleted a comment from google-oss-bot Aug 16, 2022
@firebase firebase deleted a comment from google-oss-bot Aug 16, 2022
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Aug 16, 2022

Coverage Report 1

Affected Products

  • firebase-database

    Overall coverage changed from 50.15% (ba6f410) to 50.18% (48db140) by +0.03%.

    FilenameBase (ba6f410)Merge (48db140)Diff
    ChildChangeAccumulator.java83.33%96.67%+13.33%
    QueryParams.java90.36%89.76%-0.60%
  • firebase-firestore

    Overall coverage changed from 45.92% (ba6f410) to 46.02% (48db140) by +0.10%.

    FilenameBase (ba6f410)Merge (48db140)Diff
    AsyncQueue.java78.11%78.61%+0.50%
    Datastore.java29.76%32.14%+2.38%
    DeleteMutation.java90.48%95.24%+4.76%
    FirestoreChannel.java16.38%18.10%+1.72%
    FirestoreClient.java33.09%38.24%+5.15%
    GrpcCallProvider.java62.35%69.41%+7.06%
    IndexBackfiller.java89.06%93.75%+4.69%
    LruGarbageCollector.java90.65%93.46%+2.80%
  • firebase-storage

    Overall coverage changed from ? (ba6f410) to 86.24% (48db140) by ?.

    46 individual files with coverage change

    FilenameBase (ba6f410)Merge (48db140)Diff
    ActivityLifecycleListener.java?74.14%?
    AdaptiveStreamBuffer.java?84.62%?
    CancelException.java?100.00%?
    CancellableTask.java?100.00%?
    ControllableTask.java?100.00%?
    DeleteNetworkRequest.java?100.00%?
    DeleteStorageTask.java?100.00%?
    ExponentialBackoffSender.java?86.00%?
    FileDownloadTask.java?80.00%?
    FirebaseStorage.java?85.11%?
    FirebaseStorageComponent.java?100.00%?
    GetDownloadUrlTask.java?96.77%?
    GetMetadataNetworkRequest.java?100.00%?
    GetMetadataTask.java?85.19%?
    GetNetworkRequest.java?100.00%?
    HttpURLConnectionFactory.java?0.00%?
    HttpURLConnectionFactoryImpl.java?50.00%?
    ListNetworkRequest.java?100.00%?
    ListResult.java?100.00%?
    ListTask.java?85.71%?
    NetworkRequest.java?87.18%?
    OnPausedListener.java?0.00%?
    OnProgressListener.java?0.00%?
    ResumableNetworkRequest.java?100.00%?
    ResumableUploadByteRequest.java?90.91%?
    ResumableUploadCancelRequest.java?100.00%?
    ResumableUploadQueryRequest.java?100.00%?
    ResumableUploadStartRequest.java?95.24%?
    Slashes.java?88.24%?
    Sleeper.java?0.00%?
    SleeperImpl.java?33.33%?
    SmartHandler.java?87.50%?
    StorageException.java?69.09%?
    StorageMetadata.java?86.34%?
    StorageReference.java?89.94%?
    StorageReferenceUri.java?100.00%?
    StorageRegistrar.java?100.00%?
    StorageTask.java?84.89%?
    StorageTaskManager.java?100.00%?
    StorageTaskScheduler.java?100.00%?
    StreamDownloadTask.java?88.89%?
    TaskListenerImpl.java?100.00%?
    UpdateMetadataNetworkRequest.java?100.00%?
    UpdateMetadataTask.java?82.14%?
    UploadTask.java?82.01%?
    Util.java?73.24%?

Test Logs

Notes

  • Commit (48db140) is created by Prow via merging PR base commit (ba6f410) and head commit (b40193c).
  • Run gradle <product>:checkCoverage to produce HTML coverage reports locally. After gradle commands finished, report files can be found under <product-build-dir>/reports/jacoco/.

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

this.dependencies.add([email protected]("com.android:metalava:1.3.0"))
}
?: configurations.create("metalavaArtifacts") {
this.dependencies.add([email protected]("com.android.tools.metalava:metalava:1.0.0-alpha06"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

question: is this a newer or older version?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is a newer version

"--hide",
"HiddenSuperclass", // We allow having a hidden parent class
"--hide",
"HiddenAbstractMethod"
Copy link
Collaborator

Choose a reason for hiding this comment

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

why was this add?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a new check metalava added, similar to the one you fixed in piper for auth

method @NonNull public static com.google.firebase.database.FirebaseDatabase database(@NonNull com.google.firebase.ktx.Firebase, @NonNull String url);
method @NonNull public static com.google.firebase.database.FirebaseDatabase database(@NonNull com.google.firebase.ktx.Firebase, @NonNull com.google.firebase.FirebaseApp app);
method @NonNull public static com.google.firebase.database.FirebaseDatabase database(@NonNull com.google.firebase.ktx.Firebase, @NonNull com.google.firebase.FirebaseApp app, @NonNull String url);
method @NonNull public static com.google.firebase.database.FirebaseDatabase getDatabase(@NonNull com.google.firebase.ktx.Firebase);
method @Nullable public static inline <reified T> T getValue(@NonNull com.google.firebase.database.DataSnapshot);
method @Nullable public static inline <reified T> T getValue(@NonNull com.google.firebase.database.MutableData);
method public static inline <reified T> T getValue(@NonNull com.google.firebase.database.DataSnapshot);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This has changed from nullable to not annotated. Would this be an issue?

Here and below

Copy link
Member Author

Choose a reason for hiding this comment

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

I've been wondering that same thing, filed a bug internally http://b/242720906

@vkryachko
Copy link
Member Author

/retest

@vkryachko vkryachko merged commit c4f03b6 into master Aug 16, 2022
@vkryachko vkryachko deleted the vk.metalava branch August 16, 2022 19:08
@firebase firebase locked and limited conversation to collaborators Sep 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants