Electric-Coin-Company / zcash-android-wallet-sdk

Native Android SDK for Zcash
MIT License
5 stars 9 forks source link

Deploy SNAPSHOT: Consider adding keys to improve caching #1343

Open HonzaR opened 8 months ago

HonzaR commented 8 months ago

Is your feature request related to a problem? Please describe.

We could improve caching on Gradle CI deploy_snapshot action, part Setup.

Describe the solution you'd like

Alternatives you've considered

Additional context

Logs from the Setup part of the deploying:

...
> Task :demo-app:compileZcashtestnetReleaseArtProfile
> Task :demo-app:packageZcashtestnetRelease
> Task :demo-app:createZcashtestnetReleaseApkListingFileRedirect
> Task :demo-app:assembleZcashtestnetRelease
> Task :demo-app:assembleRelease
> Task :demo-app:assembleZcashtestnet
> Task :demo-app:assemble

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 16m 42s
1047 actionable tasks: 752 executed, 286 from cache, 9 up-to-date
Run actions/cache/save@704facf57e6136b1bc63b828d79edcd491f0ee84
  with:
    path: ~/.gradle/notifications
  ~/.gradle/wrapper

    key: steps.gradle-binary-cache-restore.key
    enableCrossOsArchive: false
  env:
    home: /home/runner
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.9-9/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.9-9/x64
    SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3
/usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /home/runner/work/zcash-android-wallet-sdk/zcash-android-wallet-sdk --files-from manifest.txt --use-compress-program zstdmt
Failed to save: Unable to reserve cache with key steps.gradle-binary-cache-restore.key, another job may be creating this cache. More details: Cache already exists. Scope: refs/heads/main, Key: steps.gradle-binary-cache-restore.key, Version: b805e7144f1feed702f5afe9a9b097c2d7eaa58710ef4b810e161a7bafa226ed
Warning: Cache save failed.
Run actions/cache/save@704facf57e6136b1bc63b828d79edcd491f0ee84
  with:
    path: ~/.gradle/caches/modules-2

    enableCrossOsArchive: false
  env:
    home: /home/runner
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.9-9/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.9-9/x64
Warning: Key is not specified.
Run actions/cache/save@704facf57e6136b1bc63b828d79edcd491f0ee84
  with:
    path: sdk-lib/target
  ~/.cargo

    enableCrossOsArchive: false
  env:
    home: /home/runner
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.9-9/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.9-9/x64
    SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3
Warning: Key is not specified.
...