gitlab-labkit 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84b7e5d8dd7ac808b13eddd6bd9b9c01e70a0542192a65ba2ef197648998d060
4
- data.tar.gz: b597d7bdbf957cd7affb670255bff5fbb56a0efe3d2f2426a85e21651c07dd14
3
+ metadata.gz: 9feee9c8b400e6d23dae0a6b743f9e3a6f3074e005d8961686c8440d814a4b2f
4
+ data.tar.gz: 971fc652faca19f0a57e151db5d776c75f64be9b04d7ffccd4a4d4dd7b6a3d2a
5
5
  SHA512:
6
- metadata.gz: d6f68fe206dceade497c046cb39d98157a16461e322e852e60618e4d3c4ae4c67b01155a1d73180a74898e4acffef6cfc9b076d61f3bd190c62c7cb766b79831
7
- data.tar.gz: 3e087a7d38e003655216d3c2761b2dfcecd92c40fa18eaf3d49431105d4c9306e526e5bd8ab6c8625d54f9277eff5d177d43c541a5bcc8062010c369e3cb35c9
6
+ metadata.gz: 432a9a9842ca1e17cd1b25fa25303cb219c20a0f4cdd4201ac79a998fc8a72848f4a5dda0a9d3e31e3a0e312d88f97b9760915324892d7c5d2d607f18021e40e
7
+ data.tar.gz: 995aa133640851db2a9d649bd877705853cdfdce69959dd578f437d1d6e589193966202ffa83707f887ee28745d26bbcc2f96c4f87c3a68e951d3e3aeeb83cab
data/.copier-answers.yml CHANGED
@@ -3,7 +3,7 @@
3
3
  # See the project for instructions on how to update the project
4
4
  #
5
5
  # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
6
- _commit: v1.50.0
6
+ _commit: v1.51.0
7
7
  _src_path: https://gitlab.com/gitlab-com/gl-infra/common-template-copier.git
8
8
  ee_licensed: false
9
9
  gitlab_namespace: gitlab-org/ruby/gems
data/.gitlab-ci.yml CHANGED
@@ -19,13 +19,13 @@ include:
19
19
  # It includes standard checks, gitlab-scanners, validations and release processes
20
20
  # common to all projects using this template library.
21
21
  # see https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/templates/standard.md
22
- - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/standard-build@v3.24
22
+ - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/standard-build@v4.8
23
23
 
24
24
  # Runs rspec tests and rubocop on the project
25
25
  # see https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/templates/ruby.md
26
- - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/ruby-build@v3.24
26
+ - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/ruby-build@v4.8
27
27
 
28
- - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/danger@v3.24
28
+ - component: $CI_SERVER_FQDN/gitlab-com/gl-infra/common-ci-tasks/danger@v4.8
29
29
 
30
30
  # Attach a redis service to the rspec job from common-ci-tasks/ruby-build.
31
31
  # GitLab merges keys when a local job has the same name as an included one,
@@ -25,7 +25,7 @@ repos:
25
25
  # Documentation available at
26
26
  # https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/docs/pre-commit.md
27
27
  - repo: https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks
28
- rev: v3.24 # renovate:managed
28
+ rev: v4.8 # renovate:managed
29
29
 
30
30
  hooks:
31
31
  - id: shellcheck # Run shellcheck for changed Shell files
data/lib/labkit/fields.rb CHANGED
@@ -21,6 +21,10 @@ module Labkit
21
21
  # filtering in Kibana and Grafana.
22
22
  DUO_WORKFLOW_DEFINITION = "duo_workflow_definition"
23
23
 
24
+ # Unique identifier for a Duo Workflow instance. Identifies a specific
25
+ # workflow run, enabling per-workflow tracing in logs.
26
+ DUO_WORKFLOW_ID = "duo_workflow_id"
27
+
24
28
  # Error type or classification (e.g. "NoMethodError", "ValidationError").
25
29
  ERROR_TYPE = "error_type"
26
30
 
@@ -125,6 +129,7 @@ module Labkit
125
129
  GL_USER_ID => 1,
126
130
  GL_USER_NAME => 1,
127
131
  DUO_WORKFLOW_DEFINITION => 0,
132
+ DUO_WORKFLOW_ID => 0,
128
133
  ERROR_TYPE => 0,
129
134
  ERROR_MESSAGE => 1,
130
135
  HTTP_STATUS_CODE => 1,
@@ -101,7 +101,9 @@ module Labkit
101
101
  warn baseline_generation_message(new_offenses)
102
102
  else
103
103
  warn report_new_offenses(new_offenses)
104
- raise "New LabKit logging offenses detected"
104
+ # Raise with exit code 2 to bypass the RSpec retry mechanism
105
+ # See https://gitlab.com/gitlab-org/quality/tooling/labkit-spec/-/work_items/2
106
+ raise SystemExit.new(2) # rubocop:disable Style/RaiseArgs
105
107
  end
106
108
  end
107
109
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-labkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Newdigate