Skip to content

Commit

Permalink
Cirrus: Fix meta task failing to find commit
Browse files Browse the repository at this point in the history
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 f353690.
Hard resetting to 3908816...
Failed to force reset to 3908816:
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 <[email protected]>
  • Loading branch information
cevich committed May 3, 2023
1 parent f353690 commit 4b1c5e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4b1c5e3

Please sign in to comment.