ci: Revamp SDK caches #23597

pull hebasto wants to merge 3 commits into bitcoin:master from hebasto:211125-sdk-cache changing 2 files +22 −18
  1. hebasto commented at 7:24 pm on November 25, 2021: member

    On master (681b25e3cd7d084f642693152322ed9a40f33ba0) SDK (macOS and Android) are not invalidated timely. For instance, during updating macOS SDK in #21851 it is not possible to run a related CI task successfully.

    Another flaw is related to Android SDK – the following commands https://github.com/bitcoin/bitcoin/blob/681b25e3cd7d084f642693152322ed9a40f33ba0/ci/test/05_before_script.sh#L25-L32 run regardless of cache state. See CI task log for details.

    This PR:

    • drops caching of depends/sdk-sources in favor of separated caching of depends/SDKs/$MACOS_SDK and depends/SDKs/android
    • establishes conditions for cache invalidation
    • bypass unneeded commands when a cache is populated
  2. ci: Make macOS SDK cache independent, and update it timely e988bc7f2e
  3. ci: Revamp Android SDK cache, and update it timely 3ad5ace351
  4. ci: Always run merge_base_script first for consistency 6c7b8837d3
  5. hebasto added the label Tests on Nov 25, 2021
  6. hebasto commented at 9:41 pm on November 25, 2021: member
    After all CI green in https://cirrus-ci.com/build/6055309803257856 I triggered another CI run to demonstrate caches in work.
  7. hebasto force-pushed on Nov 25, 2021
  8. hebasto commented at 11:14 pm on November 25, 2021: member
    CI log with populated cache: https://cirrus-ci.com/build/5069190378815488
  9. fanquake approved
  10. fanquake commented at 2:35 am on November 30, 2021: member
    ACK 6c7b8837d32aace0fb085406f22e6bfdcafa8aaf
  11. fanquake merged this on Nov 30, 2021
  12. fanquake closed this on Nov 30, 2021

  13. hebasto deleted the branch on Nov 30, 2021
  14. sidhujag referenced this in commit c654f13993 on Nov 30, 2021
  15. RandyMcMillan referenced this in commit 8a1bac44b5 on Dec 23, 2021
  16. DrahtBot locked this on Nov 30, 2022


hebasto fanquake

Labels
Tests


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-18 18:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me