Skip to content

bug(ci): ci failing due to incomplete docker image backup #11068

Description

@shreemaan-abhishek

Problem

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

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:
image

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.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions