debian-forge-composer/internal
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
..
blueprint rhel84/grub2: set saved_entry 2021-02-20 20:01:15 +01:00
boot internal/boot/azure: set storage account 2021-03-06 15:40:48 +00:00
client test: Add tests for trying to override a system source repo 2021-01-29 08:25:23 -08:00
cloudapi distro: move Registry to its own distroregistry package 2021-03-12 08:29:30 +01:00
common weldr: move common.ComposeState to weldr 2020-11-09 14:17:19 +01:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
disk distro/rhel84: remove hardcoded root partition UUIDs 2020-12-15 16:43:39 +01:00
distro distro/test: use the new default distroregistry 2021-03-12 08:29:30 +01:00
distroregistry distroregistry/test: add test for GetDistro 2021-03-12 08:29:30 +01:00
jobqueue jobqueue: Replace JobArgs() with Job() 2021-01-19 10:37:51 +01:00
jsondb jsondb: Allow passing nil as document to Read() 2020-05-13 16:45:09 +02:00
kojiapi distro: move Registry to its own distroregistry package 2021-03-12 08:29:30 +01:00
mocks distro: move Registry to its own distroregistry package 2021-03-12 08:29:30 +01:00
osbuild rhel84/grub2: set saved_entry 2021-02-20 20:01:15 +01:00
rpmmd distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
store distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
target target/azure: document what it does 2021-03-06 15:40:48 +00:00
test test: add arch to the generate test artifact names 2020-12-01 08:27:44 +01:00
upload GCP: refactor logging and storage cleanup 2021-03-12 12:17:02 +01:00
weldr distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
worker distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00