This PR brings a depends_built cache back to the "macOS 10.15" and "ARM64 Android APK" CI tasks.
Fixes #27031.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
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-->
Reviewers, this pull request conflicts with the following ones:
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.
Updated commit message.
When was this introduced?
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
unrelated: What is the point of a template that is only used once? We don't have a template for windows either.
There is no point now. The initial idea was to re-use it with two Apple tasks: x86_64 and arm64.
nit: Mind inlining it here?
(in a new commit)
nit: Mind inlining it here?
(in a new commit)
Done.
When was this introduced?
8e017f32889e9536a436f40c91f34f24bfd10525 :man_facepalming:
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
first commit: Isn't the same diff needed by the android task?
Thanks! Added.
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>
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>
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
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"
Untested diff
It looks correct and elegant.