haiku / infrastructure

Haiku infrastructure as code
https://hub.docker.com/r/haiku
MIT License
15 stars 16 forks source link

[concourse]: cleanup repositry directory on failure #110

Open kallisti5 opened 8 months ago

kallisti5 commented 8 months ago

In the event of an upload failure, the concourse pipelines can leave a "broken" repository for an hrev.

We should likely investigate an on_failure step which cleans up the hrev folder in s3 if the upload fails. However, in the event that s3 is 100% unavailable, this may not work.

failure

The better solution is hpkgbouncer needs to validate the "completeness" of the hrev repository directory before sending users there. This would likely be accomplished by:

hpkg bouncer needs a native rust crate that can read hpkr files however to accomplish this.

kallisti5 commented 8 months ago

A note for future viewers: The workaround is to kick off a new concourse job to re-build and re-upload the failed hrev repo. (or manually delete the folder from s3)