Out of Space Events for "Artifact" and "Cache"
Problem to solve
This solves a problem where:
- artifacts or cached files fail to be passed properly between jobs
- but subsequent jobs continue to run as if no failure occurred
- resulting in a situation where subsequent jobs could be missing required files
In my particular case, we passed a number of files from a "build" job that runs a
composer install and then passes the artifacts (which are in
vendor directory) to a subsequent job. In our particular case, the artifact was downloaded in a subsequent step, an extract began and could not complete but the failed extraction did not mark the job as failed, resulting in an incomplete
vendor directory being included in a deployment to a server.
The intended user of this feature is any user of gitlab responsible for the final output of jobs
- Delaney (Development Team Lead)
- Sasha (Software Developer)
- Devon (DevOps Engineer)
- Sidney (Systems Administrator)
- Sam (Security Analyst)
- Dana (Data Analyst)
Personas are described at https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/ -->
The implementation of this feature will result in a decrease in the number of flawed jobs that are marked as "passing" but should have been marked as "failing".
To solve the problem mark any job in which an
artifact upload/download or
cache upload/download fails.
Permissions and Security
The documentation here https://docs.gitlab.com/ee/user/project/pipelines/job_artifacts.html may require an update explaining that space must be available in order for artifact creation or download to occur successfully.
This change might cause an increase in failing builds as a result of some jobs already creating or accepting incomplete artifact or cache items.
What does success look like, and how can we measure that?
We can measure the success of this feature by elimination of any tickets reporting problems with "No space left on device" errors on use of either artifacts or cache items.
What is the type of buyer?
Links / references