Skip to content

dataconnect: github actions cache key fix #6829

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 8 commits into from
Apr 2, 2025

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Apr 2, 2025

This fixes the "Warning: Key is not specified" warning in the scheduled nightly runs in the "Save Gradle cache" and "Save AVD cache" steps of the dataconnect github actions workflow. The problem was that it was defining the key as ${{ steps.restore-gradle-cache.outputs.cache-primary-key }} and ${{ steps.restore-avd-cache.outputs.cache-primary-key }}, respectively, but since those dependent steps were explicitly skipped in nightly runs their outputs were not defined.

Copy link
Contributor

github-actions bot commented Apr 2, 2025

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

@dconeybe dconeybe changed the title Dconeybe/dataconnect/gha cache keys fix dataconnect: github actions cache key fix Apr 2, 2025
Copy link
Contributor

github-actions bot commented Apr 2, 2025

Test Results

 1 034 files  +   936   1 034 suites  +936   34m 28s ⏱️ + 32m 42s
 5 872 tests + 5 211   5 850 ✅ + 5 190  22 💤 +21  0 ❌ ±0 
11 807 runs  +10 485  11 763 ✅ +10 443  44 💤 +42  0 ❌ ±0 

Results for commit fa17dde. ± Comparison against base commit 3d41253.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 2, 2025

@dconeybe dconeybe requested a review from Copilot April 2, 2025 13:47
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

This PR fixes a warning in the GitHub Actions workflow related to missing keys during nightly runs by replacing references to skipped step outputs with hard-coded cache key prefixes suffixed by the unique run ID.

  • Updated the Gradle cache key to use a fixed prefix concatenated with the GitHub run ID.
  • Updated the AVD cache key to include the Android emulator API level and the GitHub run ID.
Comments suppressed due to low confidence (1)

.github/workflows/dataconnect.yml:166

  • [nitpick] Consider adding a hyphen after 'api' (e.g., 'api-${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}') to improve readability and consistency in the cache key format.
key: avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}-${{ github.run_id }}

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 2, 2025

Coverage Report 1

Affected Products

  • firebase-appdistribution

    Overall coverage changed from ? (3d41253) to 75.72% (4718073) by ?.

    68 individual files with coverage change

    FilenameBase (3d41253)Merge (4718073)Diff
    AabUpdater.java?98.36%?
    AabUpdater_Factory.java?0.00%?
    ApkInstaller.java?100.00%?
    ApkInstaller_Factory.java?0.00%?
    ApkUpdater.java?92.63%?
    ApkUpdater_Factory.java?0.00%?
    AppDistributionReleaseImpl.java?100.00%?
    AppDistributionReleaseInternal.java?100.00%?
    AppDistroComponent.java?0.00%?
    AppDistroComponent_MainModule_BindContentResolverFactory.java?0.00%?
    AppIconSource.java?84.62%?
    AppIconSource_Factory.java?100.00%?
    AutoValue_AppDistributionReleaseImpl.java?65.45%?
    AutoValue_AppDistributionReleaseInternal.java?71.58%?
    AutoValue_ImageUtils_ImageSize.java?35.00%?
    AutoValue_TesterApiDisabledErrorDetails.java?29.41%?
    AutoValue_TesterApiDisabledErrorDetails_HelpLink.java?54.17%?
    AutoValue_UpdateProgressImpl.java?65.96%?
    DaggerAppDistroComponent.java?80.56%?
    DevModeDetector.java?9.09%?
    DevModeDetector_Factory.java?100.00%?
    ErrorMessages.java?0.00%?
    FeedbackActivity.java?3.39%?
    FeedbackActivity_MembersInjector.java?0.00%?
    FeedbackSender.java?84.48%?
    FeedbackSender_Factory.java?0.00%?
    FeedbackTrigger.java?61.54%?
    FirebaseAppDistributionExceptions.java?80.00%?
    FirebaseAppDistributionFileProvider.java?0.00%?
    FirebaseAppDistributionImpl.java?89.89%?
    FirebaseAppDistributionImpl_Factory.java?0.00%?
    FirebaseAppDistributionLifecycleNotifier.java?91.49%?
    FirebaseAppDistributionLifecycleNotifier_Factory.java?0.00%?
    FirebaseAppDistributionNotificationsManager.java?88.89%?
    FirebaseAppDistributionNotificationsManager_Factory.java?0.00%?
    FirebaseAppDistributionRegistrar.java?95.83%?
    FirebaseAppDistributionTesterApiClient.java?88.78%?
    FirebaseAppDistributionTesterApiClient_Factory.java?0.00%?
    HttpsUrlConnectionFactory.java?50.00%?
    HttpsUrlConnectionFactory_Factory.java?100.00%?
    ImageUtils.java?100.00%?
    InstallActivity.java?2.67%?
    LogWrapper.java?86.67%?
    NewReleaseFetcher.java?86.67%?
    NewReleaseFetcher_Factory.java?0.00%?
    PackageInfoUtils.java?42.86%?
    ReleaseIdentifier.java?91.78%?
    ReleaseIdentifier_Factory.java?0.00%?
    ReleaseUtils.java?83.33%?
    ScreenshotTaker.java?36.17%?
    ScreenshotTaker_Factory.java?0.00%?
    SequentialReference.java?100.00%?
    SignInResultActivity.java?0.00%?
    SignInStorage.java?100.00%?
    SignInStorage_Factory.java?0.00%?
    TakeScreenshotAndStartFeedbackActivity.java?0.00%?
    TakeScreenshotAndStartFeedbackActivity_MembersInjector.java?0.00%?
    TaskCache.java?100.00%?
    TaskCompletionSourceCache.java?72.41%?
    TaskUtils.java?77.50%?
    TesterApiDisabledErrorDetails.java?93.75%?
    TesterApiHttpClient.java?90.09%?
    TesterApiHttpClient_Factory.java?0.00%?
    TesterSignInManager.java?89.41%?
    TesterSignInManager_Factory.java?0.00%?
    UpdateProgressImpl.java?100.00%?
    UpdateTaskCache.java?91.30%?
    UpdateTaskImpl.java?76.32%?

  • firebase-database

    Overall coverage changed from 50.21% (3d41253) to 50.15% (4718073) by -0.05%.

    FilenameBase (3d41253)Merge (4718073)Diff
    BooleanNode.java100.00%92.31%-7.69%
    ChildChangeAccumulator.java96.67%83.33%-13.33%
  • firebase-firestore

    Overall coverage changed from 45.77% (3d41253) to 45.77% (4718073) by -0.00%.

    FilenameBase (3d41253)Merge (4718073)Diff
    PatchMutation.java100.00%98.39%-1.61%
  • firebase-storage

    Overall coverage changed from 83.96% (3d41253) to 84.16% (4718073) by +0.21%.

    FilenameBase (3d41253)Merge (4718073)Diff
    UploadTask.java81.52%83.17%+1.65%

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 2, 2025

Startup Time Report 1

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

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

@dconeybe dconeybe marked this pull request as ready for review April 2, 2025 17:47
@dconeybe dconeybe requested a review from aashishpatil-g April 2, 2025 17:48
@dconeybe dconeybe merged commit a0a02a7 into main Apr 2, 2025
264 of 265 checks passed
@dconeybe dconeybe deleted the dconeybe/dataconnect/GHACacheKeysFix branch April 2, 2025 17:54
@firebase firebase locked and limited conversation to collaborators May 3, 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