Skip to content
Snippets Groups Projects

Log CI artifact size when downloaded via UI

Merged Stan Hu requested to merge sh-log-artifacts-size-ui-download into master

What does this MR do and why?

Previously we only logged the CI artifact size when the artifact was downloaded via an API endpoint. This commit adds a meta.artifact_size log entry for the ArtifactsController#download case as well.

How to set up and validate locally

  1. Go to a job and download its artifact.
  2. Check /var/log/gitlab/gitlab-rails/production_json.log for meta.artifact_size:
  "meta.user": "root",
  "meta.user_id": 1,
  "meta.project": "root/simple-ci",
  "meta.root_namespace": "root",
  "meta.client_id": "user/1",
  "meta.artifact_size": 209,
  "meta.artifact_used_cdn": true,

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Stan Hu

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading