ci-automation: publish test results, add to GC

This change adds copying test results to the build cache server, and
adds respective deletion to the garbage collector.

Also, the patch fixes an issue with torcx publishing (manifest
publishing had arch hard-coded).

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
This commit is contained in:
Thilo Fromm 2022-02-22 16:22:57 +01:00
parent db062b2e81
commit 8157bf0302
3 changed files with 7 additions and 5 deletions

View File

@ -92,6 +92,7 @@ function garbage_collect() {
rmpat="${rmpat} ${BUILDCACHE_PATH_PREFIX}/boards/*/${os_vernum}/"
rmpat="${rmpat} ${BUILDCACHE_PATH_PREFIX}/containers/${os_docker_vernum}/flatcar-images-*"
rmpat="${rmpat} ${BUILDCACHE_PATH_PREFIX}/images/*/${os_vernum}/"
rmpat="${rmpat} ${BUILDCACHE_PATH_PREFIX}/testing/${os_vernum}/"
fi
echo "## The following files will be removed ##"

View File

@ -123,7 +123,7 @@ function packages_build() {
# Publish torcx manifest and docker tarball to "images" cache so tests can pull it later.
copy_to_buildcache "images/${arch}/${vernum}/torcx" \
"${torcx_tmp}/torcx/amd64-usr/latest/torcx_manifest.json"
"${torcx_tmp}/torcx/${arch}-usr/latest/torcx_manifest.json"
copy_to_buildcache "images/${arch}/${vernum}/torcx" \
"${torcx_tmp}/torcx/pkgs/${arch}-usr/docker/"*/*.torcx.tgz

View File

@ -176,9 +176,10 @@ function test_run() {
echo "########### All re-runs exhausted ($retries). Giving up. ###########"
fi
# TODO: publish to bincache?
# "${tests_dir}/"*.tap
# "${tests_dir}/_kola_temp.tar.xz"
# publish TAP files to buold cache
copy_to_buildcache "testing/${vernum}/${arch}/${image}" \
"${tests_dir}/"*.tap
copy_to_buildcache "testing/${vernum}/${arch}/${image}/debug" \
"${tests_dir}/_kola_temp/"*
}
# --