Skip to content

Update semver tests and the pom validator tests to handle new sdk #5133

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
Jul 5, 2023

Conversation

VinayGuthal
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

Release note changes

No release note changes were detected. If you made changes that should be
present in the next release, ensure you've added an entry in the appropriate
CHANGELOG.md file(s).

@VinayGuthal VinayGuthal changed the title update Update semver tests and the pom validator tests to handle new sdk Jul 5, 2023
@VinayGuthal VinayGuthal requested a review from daymxn July 5, 2023 15:56
@google-oss-bot
Copy link
Contributor

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

@VinayGuthal VinayGuthal requested a review from davidmotson July 5, 2023 15:58
@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

buildSrc Test Results

28 tests   28 ✔️  1m 42s ⏱️
  6 suites    0 💤
  6 files      0

Results for commit 73f04d5.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

Unit Test Results

   765 files  +   737     765 suites  +737   36m 42s ⏱️ + 34m 54s
4 948 tests +4 669  4 926 ✔️ +4 647  21 💤 +21  1 +1 
8 853 runs  +8 295  8 810 ✔️ +8 252  42 💤 +42  1 +1 

For more details on these failures, see this check.

Results for commit 73f04d5. ± Comparison against base commit 52389ce.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 5, 2023

Size Report 1

Affected Products

  • firebase-config-ktx

    TypeBase (1e44257)Merge (2b7aedc)Diff
    apk (aggressive)160 kB160 kB-4 B (-0.0%)
    apk (release)1.71 MB1.71 MB-4 B (-0.0%)

Test Logs

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

Copy link
Member

@daymxn daymxn left a comment

Choose a reason for hiding this comment

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

left some comments- they aren't major; so if you need to get this out asap go ahead:)

@@ -43,10 +43,15 @@ abstract class PomValidator : DefaultTask() {

@TaskAction
fun run() {
var diff = diffWithPomFromURL(getLatestReleasePomUrl())
try {
var diff = diffWithPomFromURL(getLatestReleasePomUrl())
Copy link
Member

Choose a reason for hiding this comment

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

I realize I accidentally left this as var- this should probably be changed to val


from(project.zipTree("semver/previous.aar"))
into(project.file("semver/previous-version"))
if (project.file("semver/previous.aar").exists()) {
Copy link
Member

Choose a reason for hiding this comment

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

Keep in mind that if this file is added by any task- this will fail. This check will occur at configuration time, not execution time.

try {
URL(gMavenPath).openStream().use { Files.copy(it, Paths.get(filePath.get())) }
} catch (_: java.io.FileNotFoundException) {
// Gmaven Artifact doesn't exist.
Copy link
Member

Choose a reason for hiding this comment

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

You should be fine to replace these empty returns with StopActionException for more information.

throw StopActionException("GMaven artifact doesn't exist")

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 5, 2023

Coverage Report 1

Affected Products

  • firebase-database

    Overall coverage changed from 50.20% (1e44257) to 50.13% (2b7aedc) by -0.07%.

    FilenameBase (1e44257)Merge (2b7aedc)Diff
    ChildChangeAccumulator.java96.67%83.33%-13.33%
    DoubleNode.java88.24%100.00%+11.76%
    WebsocketConnection.java35.03%32.77%-2.26%
  • firebase-firestore

    Overall coverage changed from 44.34% (1e44257) to 44.40% (2b7aedc) by +0.06%.

    FilenameBase (1e44257)Merge (2b7aedc)Diff
    AsyncQueue.java70.65%77.61%+6.97%
    DeleteMutation.java95.24%90.48%-4.76%
    PatchMutation.java98.39%100.00%+1.61%
    SetMutation.java94.44%97.22%+2.78%
  • firebase-installations

    Overall coverage changed from ? (1e44257) to 58.61% (2b7aedc) by ?.

    22 individual files with coverage change

    FilenameBase (1e44257)Merge (2b7aedc)Diff
    AutoValue_InstallationResponse.java?58.93%?
    AutoValue_PersistedInstallationEntry.java?61.18%?
    AutoValue_TokenResult.java?45.65%?
    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%?
    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.14% (1e44257) to 84.25% (2b7aedc) by +0.12%.

    FilenameBase (1e44257)Merge (2b7aedc)Diff
    Metadata.java36.51%41.27%+4.76%
  • firebase-storage

    Overall coverage changed from ? (1e44257) to 86.11% (2b7aedc) by ?.

    46 individual files with coverage change

    FilenameBase (1e44257)Merge (2b7aedc)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?83.67%?
    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?86.60%?
    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?100.00%?
    SmartHandler.java?92.31%?
    StorageException.java?69.09%?
    StorageMetadata.java?86.34%?
    StorageReference.java?89.94%?
    StorageReferenceUri.java?100.00%?
    StorageRegistrar.java?100.00%?
    StorageTask.java?83.99%?
    StorageTaskManager.java?100.00%?
    StorageTaskScheduler.java?95.45%?
    StreamDownloadTask.java?88.41%?
    TaskListenerImpl.java?100.00%?
    UpdateMetadataNetworkRequest.java?100.00%?
    UpdateMetadataTask.java?82.14%?
    UploadTask.java?83.17%?
    Util.java?73.24%?

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 5, 2023

Startup Time Report 1

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

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

@VinayGuthal VinayGuthal merged commit d68ed5c into master Jul 5, 2023
@VinayGuthal VinayGuthal deleted the fix_semver_and_pom branch July 5, 2023 17:21
VinayGuthal added a commit that referenced this pull request Jul 5, 2023
@firebase firebase locked and limited conversation to collaborators Aug 5, 2023
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