debian-forge-composer/cmd
Tomas Hozza 7de2011beb GCP: refactor logging and storage cleanup
Originally, the internal GCP library in `internal/upload/gcp` was
logging various information and errors. Refactor the code to move all
logging to callers of the library. As a result, some methods now return
additional information to preserve the same amount of information being
logged for GCP.

Refactor methods to have only single purpose and not do any extra work,
such as storage cleanup. Methods which create new resources now don't do
any cleanup at all. The caller is responsible to check for any errors
and perform any cleanup necessary. Necessary methods to perform cleanup
are provided.

Modify worker's job implementation and GCP CLI tool to explicitly do all
necessary cleanup, including in case of errors.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-03-12 12:17:02 +01:00
..
cloud-cleaner test: extract GenerateCIArtifactName to test helpers 2020-12-01 08:27:44 +01:00
osbuild-auth-tests test/auth: rework the test to use the new openssl setup 2020-11-05 13:48:48 +01:00
osbuild-composer distroregistry: add a default distroregistry 2021-03-12 08:29:30 +01:00
osbuild-composer-cli-tests tests: rename composer-cli tests 2020-10-06 13:08:26 +02:00
osbuild-dnf-json-tests distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
osbuild-image-tests test/image: improve logging of failed osbuild execution 2021-03-04 12:29:16 +02:00
osbuild-koji upload/koji: don't pass task_id to cg_init_build 2020-09-16 00:15:02 +01:00
osbuild-koji-tests test/koji: move the koji test to schutzbot 2020-11-02 19:59:28 +01:00
osbuild-pipeline distro/*: remove redundant manifest tests 2021-03-12 08:29:30 +01:00
osbuild-store-dump distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
osbuild-upload-aws upload/aws: fix architecture for aarch64 images 2020-12-01 08:27:44 +01:00
osbuild-upload-azure cmd/upload-azure: set storage account 2021-03-06 15:40:48 +00:00
osbuild-upload-gcp GCP: refactor logging and storage cleanup 2021-03-12 12:17:02 +01:00
osbuild-worker GCP: refactor logging and storage cleanup 2021-03-12 12:17:02 +01:00