ilbers / isar

Integration System for Automated Root filesystem generation
Other
177 stars 72 forks source link

Help: how to use s3 as sstate_cache back end #95

Closed littlesuperxxc closed 1 year ago

littlesuperxxc commented 1 year ago

I am building my own system based on kas and isar.

I try to use S3 as sstate_cache backend. For now I just config the variable in CI,

 SSTATE_LOCATION: "${RUNNER_SSTATE}/${CI_PROJECT_NAME}"
 SSTATE_MIRRORS: "file://.* ${SSTATE_LOCATION}/PATH;downloadfilename=PATH"

And RUNNER_SSTATE is set on AWS runner, environment = ["RUNNER_SSTATE=s3://isar-sstate-cache-123456789", "RUNNER_CACHE_DIR=/cache"]

When I use ./isar/scripts/isar-sstate info -v "${RUNNER_SSTATE}/${CI_PROJECT_NAME}", it can get some useful info image

But when looking into build logs, Sstate summary is always like this: image

I check the user doc of isar, unfortunately, I didn't get some useful information about sstate_cache.

can some tell me why about this? Is that I miss some configurations? Thanks a lot