Create a retention policy for job logs
What did we learn?
Results |
---|
|
|
Primary Workflows for Job Logs:
Duration of Job Log Access:
Challenges in Managing Artifact Storage:
Additional Needs and Improvements:
Compliance Requirements:
Background: This research is part of https://gitlab.com/gitlab-org/ux-research/-/issues/2971+, conducted in May 2024. It targeted Dev team leads, platform engineers and software developers from a mix of SMB and enterprise-size customers. The goal was to determine specific use cases for restricting download access to artifacts and to understand how job logs are used and how long they need to be retained. The survey ran for a month, yielding 12 valid responses. Of these, 53% were from technology companies involved in creating pipelines, writing code, and running tests. Additionally, 54% of respondents use Self-Managed GitLab, while 23% use GitLab.com. |
|
Proposal
Following up from Determine if Job Logs count towards artifact st... (#373917 - closed) we have determined:
- Job logs are part of the artifacts storage and
- Jobs logs do not currently have a retention policy (no expiration) and are difficult to manage
As part of &8715 we need to add functionality to enable customers visibility and user-friendly options to view and delete these job artifacts and traces. We currently have one API allowing for deletion: https://docs.gitlab.com/ee/api/jobs.html#erase-a-job.
There are multiple potential solutions. This issue addresses the first item only.
- Introduce a retention policy which expires job logs after a certain period (i.e. 7 days) for auto deletion.
- Add functionality for search/sort/removal as part of the new Artifacts page. This solution is being addressed separately in Delete an artifact on artifacts page (#370150 - closed) and Browse artifacts of all types from artifacts page (#370151) and Ability to filter and batch delete artifacts di... (&1974 - closed).
- Updated API for bulk removal action. This solution is detailed in Follow-up: Introduce Parameters to bulk delete ... (#14495) and will be implemented in Frontend: Artifacts bulk delete: make "select a... (#396792 - closed)