ci: Re-introduce `depends_built` cache back in macOS and Android tasks #27062

pull hebasto wants to merge 2 commits into bitcoin:master from hebasto:230208-ci-macos changing 1 files +15 −15
  1. hebasto commented at 12:24 PM on February 8, 2023: member

    This PR brings a depends_built cache back to the "macOS 10.15" and "ARM64 Android APK" CI tasks.

    Fixes #27031.

  2. DrahtBot commented at 12:24 PM on February 8, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK MarcoFalke

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #25797 (build: Add CMake-based build system by hebasto)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  3. DrahtBot added the label Tests on Feb 8, 2023
  4. hebasto force-pushed on Feb 8, 2023
  5. hebasto renamed this:
    ci: Use `GLOBAL_TASK_TEMPLATE` in "macOS 10.15" task
    ci: Re-introduce `depends_built` cache` back in "macOS 10.15" task
    on Feb 8, 2023
  6. hebasto renamed this:
    ci: Re-introduce `depends_built` cache` back in "macOS 10.15" task
    ci: Re-introduce `depends_built` cache back in "macOS 10.15" task
    on Feb 8, 2023
  7. hebasto commented at 12:33 PM on February 8, 2023: member

    Updated commit message.

  8. maflcko commented at 12:35 PM on February 8, 2023: member

    When was this introduced?

  9. in .cirrus.yml:58 in f6b4bedf39 outdated
      49 | @@ -50,6 +50,9 @@ global_task_template: &GLOBAL_TASK_TEMPLATE
      50 |    depends_built_cache:
      51 |      folder: "depends/built"
      52 |      fingerprint_script: echo $CIRRUS_TASK_NAME $(git rev-list -1 HEAD ./depends)
      53 | +
      54 | +global_task_template: &GLOBAL_TASK_TEMPLATE
      55 | +  << : *CONTAINER_DEPENDS_TEMPLATE
      56 |    << : *MAIN_TEMPLATE
      57 |  
      58 |  macos_native_task_template: &MACOS_NATIVE_TASK_TEMPLATE
    


    maflcko commented at 12:35 PM on February 8, 2023:

    unrelated: What is the point of a template that is only used once? We don't have a template for windows either.


    hebasto commented at 12:37 PM on February 8, 2023:

    There is no point now. The initial idea was to re-use it with two Apple tasks: x86_64 and arm64.


    maflcko commented at 10:13 AM on February 9, 2023:

    nit: Mind inlining it here?


    maflcko commented at 10:13 AM on February 9, 2023:

    (in a new commit)


    hebasto commented at 10:32 AM on February 9, 2023:

    nit: Mind inlining it here?

    (in a new commit)

    Done.

  10. hebasto commented at 12:54 PM on February 8, 2023: member

    When was this introduced?

    8e017f32889e9536a436f40c91f34f24bfd10525 :man_facepalming:

  11. hebasto force-pushed on Feb 9, 2023
  12. in .cirrus.yml:315 in ffac7397b6 outdated
     321 |    << : *MAIN_TEMPLATE
     322 | -  container:
     323 | -    image: ubuntu:focal
     324 |    env:
     325 |      MACOS_SDK: "Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
     326 |      << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
    


    maflcko commented at 12:04 PM on February 9, 2023:

    first commit: Isn't the same diff needed by the android task?


    hebasto commented at 12:13 PM on February 9, 2023:

    Thanks! Added.

  13. maflcko commented at 12:05 PM on February 9, 2023: member

    review ACK 8f8e54277d785b287fb062687bd349a36e1b4e9e 🎻

    <details><summary>Show signature</summary>

    Signature:

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    
    review ACK 8f8e54277d785b287fb062687bd349a36e1b4e9e 🎻
    -----BEGIN PGP SIGNATURE-----
    
    iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
    pUg2eQv9FCHMLyuAZb9kfKbMHDJ92ahmj9UFic+G8MLGEVDLtMEeYzb8KAIvWQ2k
    1oP7KqqyAR3DgjMUcT6T/ltOLLCp3fnjM4AC0qc/tNdacuMsWqU1bm8SSkqDiGHZ
    LYOXSS97kXNpK5E+iLsM1oAoPK1gWiD2scgXvKlm1w1AS9TFOlA13llZ0NbLJmar
    IB1NeZO9M6a5cHKaf2+b5sAcHET5414CPo/LrX9rh3Rjbw19aYR95CKYh+mmHaMv
    5Zd38CxFk4xS9DYmVcJUWbcn1d1MmhLECcoIE2gbc1rTnRRwDWwAqAlbUAwb0Zz2
    svATwALVpvLiAVtsbQf56YhutkTvLhUOmQC0nvgBn2f0FPGV8xEjFlWOaxvRol+c
    Pw5FAqA37NItPbSJ5pL+rjGSDoQF+OXlkJBPcFR40AykcMPhNiBx6jjLxxug+EAd
    ZCUZVaWip+QOokpptph2mK+fXP4nhMs+NU4CwgSmjpnqShDQKXj2NLnc2KXTrFQB
    hu5plVPg
    =WrCO
    -----END PGP SIGNATURE-----
    

    </details>

  14. ci: Re-introduce `depends_built` cache back in macOS and Android tasks 8a61527cf6
  15. ci: Inline `MACOS_NATIVE_TASK_TEMPLATE` 73a3b161b7
  16. hebasto force-pushed on Feb 9, 2023
  17. hebasto renamed this:
    ci: Re-introduce `depends_built` cache back in "macOS 10.15" task
    ci: Re-introduce `depends_built` cache back in macOS and Android tasks
    on Feb 9, 2023
  18. maflcko commented at 6:05 PM on February 9, 2023: member

    reACK 73a3b161b7bb29327d0a529235cdc7d0295bd316 🌻

    <details><summary>Show signature</summary>

    Signature:

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    
    reACK 73a3b161b7bb29327d0a529235cdc7d0295bd316 🌻
    -----BEGIN PGP SIGNATURE-----
    
    iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
    pUgnZgv/X6udSTPkbxpaHa7QNtPX8PjpqxGD689K6jYOOoq6ev9/CY0wjGqP85ZI
    1H1UNU894lhUhOIoCZFGPWyiQD3g/OXkD3t0VDgMfVe2tpVPO2Yv79IQVH4og0GK
    Ly0NjJMy31IofHIhzdTyhuvITxsy8Te3lCAZ/8ggvmFpfZsVAzWUT5umj0HjDdSB
    O7zIUX6jm/CgI0fVvZvlpwixAl8M8PtkFBewbX8y9ZFU0g/cS8XpIqTb7Ejxwo2B
    osxdv8gY3d4ixXraoc22WLeDOcwm2f7T7QFy3IREubAGHmJyZv6RZzDY73evL0u7
    7kHZC8GOIEDp36YNIGk/4rlY2l1PtCOQ/CGM/EPMSeaASRUB6yPZbhsOMBPYFS9F
    HO4FmGgDg+4DvzBvkPqMfrv+hhinOE4F2QnxcsZ9yTaeOs13o7M3xbsrcj7pTJp5
    cFWnc+N/J40uw5zP/Hcn56iY6gA4oK2v8BPBWF2rXvkS5iS9rewsq08a9VI/RWxA
    CB+13z10
    =4OfT
    -----END PGP SIGNATURE-----
    

    </details>

  19. maflcko merged this on Feb 9, 2023
  20. maflcko closed this on Feb 9, 2023

  21. hebasto deleted the branch on Feb 9, 2023
  22. in .cirrus.yml:42 in 73a3b161b7
      38 | @@ -39,7 +39,7 @@ main_template: &MAIN_TEMPLATE
      39 |    ci_script:
      40 |      - ./ci/test_run_all.sh
      41 |  
      42 | -global_task_template: &GLOBAL_TASK_TEMPLATE
      43 | +container_depends_template: &CONTAINER_DEPENDS_TEMPLATE
    


    maflcko commented at 6:41 PM on February 9, 2023:

    Any reason to add a new template when the existing can be used? (Untested diff):

    diff --git a/.cirrus.yml b/.cirrus.yml
    index 232b24117a..9367d50f6b 100644
    --- a/.cirrus.yml
    +++ b/.cirrus.yml
    @@ -39,7 +39,7 @@ main_template: &MAIN_TEMPLATE
       ci_script:
         - ./ci/test_run_all.sh
     
    -container_depends_template: &CONTAINER_DEPENDS_TEMPLATE
    +global_task_template: &GLOBAL_TASK_TEMPLATE
       << : *BASE_TEMPLATE
       container:
         # https://cirrus-ci.org/faq/#are-there-any-limits
    @@ -50,9 +50,6 @@ container_depends_template: &CONTAINER_DEPENDS_TEMPLATE
       depends_built_cache:
         folder: "depends/built"
         fingerprint_script: echo $CIRRUS_TASK_NAME $(git rev-list -1 HEAD ./depends)
    -
    -global_task_template: &GLOBAL_TASK_TEMPLATE
    -  << : *CONTAINER_DEPENDS_TEMPLATE
       << : *MAIN_TEMPLATE
     
     compute_credits_template: &CREDITS_TEMPLATE
    @@ -303,13 +300,12 @@ task:
     
     task:
       name: 'macOS 10.15 [gui, no tests] [focal]'
    -  << : *CONTAINER_DEPENDS_TEMPLATE
    -  container:
    -    image: ubuntu:focal
       macos_sdk_cache:
         folder: "depends/SDKs/$MACOS_SDK"
         fingerprint_key: "$MACOS_SDK"
    -  << : *MAIN_TEMPLATE
    +  << : *GLOBAL_TASK_TEMPLATE
    +  container:
    +    image: ubuntu:focal
       env:
         MACOS_SDK: "Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
         << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
    @@ -334,16 +330,15 @@ task:
     
     task:
       name: 'ARM64 Android APK [jammy]'
    -  << : *CONTAINER_DEPENDS_TEMPLATE
    -  container:
    -    image: ubuntu:jammy
       android_sdk_cache:
         folder: "depends/SDKs/android"
         fingerprint_key: "ANDROID_API_LEVEL=28 ANDROID_BUILD_TOOLS_VERSION=28.0.3 ANDROID_NDK_VERSION=23.2.8568313"
       depends_sources_cache:
         folder: "depends/sources"
         fingerprint_script: git rev-list -1 HEAD ./depends
    -  << : *MAIN_TEMPLATE
    +  << : *GLOBAL_TASK_TEMPLATE
    +  container:
    +    image: ubuntu:jammy
       env:
         << : *CIRRUS_EPHEMERAL_WORKER_TEMPLATE_ENV
         FILE_ENV: "./ci/test/00_setup_env_android.sh"
    

    hebasto commented at 6:57 PM on February 9, 2023:

    Untested diff

    It looks correct and elegant.

  23. sidhujag referenced this in commit aa8cb5e99f on Feb 10, 2023
  24. bitcoin locked this on Feb 9, 2024

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: 2026-05-02 18:13 UTC

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