Problem
The CI is failing because the docker image cache is faulty (the size is too small to be complete):

https://github.com/apache/apisix/actions/runs/8356719685/job/22875292483?pr=11060#step:11:14
I suspect this is because on one of the previous CI runs, the cache write process was interrupted due to excess disk usage. Here is one example:

Solution
- leverage the script that frees disk space to free some more space by removing unnecessary packages.
- write another script (run before saving docker images) that frees disk space by removing some more packages.
- since we save docker images after setting up the CI environment and running tests, this script can be more fierce on removing big files/packages as it is safer to remove them now
- ensure a mechanism that would abort the
cache write process if it encounters any error so that cache is not incomplete.

Problem
The CI is failing because the docker image cache is faulty (the size is too small to be complete):

https://github.com/apache/apisix/actions/runs/8356719685/job/22875292483?pr=11060#step:11:14
I suspect this is because on one of the previous CI runs, the

cache writeprocess was interrupted due to excess disk usage. Here is one example:Solution
cache writeprocess if it encounters any error so that cache is not incomplete.