From 4b1c5e3a94c3dec444b01ed6787658459e6dae3d Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Wed, 3 May 2023 16:25:42 -0400 Subject: [PATCH] Cirrus: Fix meta task failing to find commit During the nightly cirrus-cron job on main, this error occured: ``` Using built-in Git... Limiting clone depth to 1! Cloning refs/heads/main... Enumerating objects: 9246, done. ...cut... Compressing objects: 100% (7182/7182), done. Total 9246 (delta 1519), reused 6078 (delta 1101), pack-reused 0 HEAD is at f35369055df75553071190cfe8607a594ba0e68b. Hard resetting to 3908816d5310ac1f7bcd4399d23d75c1da0c2678... Failed to force reset to 3908816d5310ac1f7bcd4399d23d75c1da0c2678: object not found! ``` However, the repository code isn't needed or used for the meta task. Fix this by running `/bin/true` as the `clone_script`. Signed-off-by: Chris Evich --- .cirrus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 2b22e6f0cc3..0fffa6caae7 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -83,9 +83,9 @@ meta_task: GCPJSON: ENCRYPTED[d3614d6f5cc0e66be89d4252b3365fd84f14eee0259d4eb47e25fc0bc2842c7937f5ee8c882b7e547b4c5ec4b6733b14] GCPNAME: ENCRYPTED[8509e6a681b859479ce6aa275bd3c4ac82de5beec6df6057925afc4cd85b7ef2e879066ae8baaa2d453b82958e434578] GCPPROJECT: ENCRYPTED[cc09b62d0ec6746a3df685e663ad25d9d5af95ef5fd843c96f3d0ec9d7f065dc63216b9c685c9f43a776a1d403991494] - CIRRUS_CLONE_DEPTH: 1 # source not used - script: '/usr/local/bin/entrypoint.sh |& ${_TIMESTAMP}' + clone_script: 'true' + script: '/usr/local/bin/entrypoint.sh' smoke_task: