kennel 2.5.0 → 2.6.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 +4 -4
- data/lib/kennel/tasks.rb +8 -4
- data/lib/kennel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57050545a60c64df6e9fed6ed6a794e6d26379785b9fcd40c38ab0c818669239
|
4
|
+
data.tar.gz: 8fae548c7af45e0bf271859245d03f6fec61e19dca2aaa37a1da8c6df4961f1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d08633b1b4dfd3251bf8567a98601c3cbdc3c9e58be2d6de5d1cc76f75c7d6a6edd208579370c28007bb5b33341b836e0b09b636774cd5e72a7028eb4e760a27
|
7
|
+
data.tar.gz: ca8ae9fc3bc28b7dbc122cb240816533bafeb1845aa49ef5bc3c4baeb5440a361a30f1a8a068509135c972f5a0184850ff91c54610a0f49c5ea3f0532b384b7a
|
data/lib/kennel/tasks.rb
CHANGED
@@ -67,26 +67,30 @@ namespace :kennel do
|
|
67
67
|
end
|
68
68
|
|
69
69
|
# ideally do this on every run, but it's slow (~1.5s) and brittle
|
70
|
-
# (might not find all via the
|
70
|
+
# (might not find all via the regex + might find false-positives because random emails can also be sent to)
|
71
71
|
# https://help.datadoghq.com/hc/en-us/requests/254114 for automatic validation
|
72
|
-
# /monitor/notifications has users+slack+sns
|
72
|
+
# /monitor/notifications has users+slack+sns but not @team- and @webhook-
|
73
73
|
# got a support ticket open to get sns into api/v2 too
|
74
74
|
desc "Verify that all used monitor mentions are valid"
|
75
75
|
task validate_mentions: :environment do
|
76
76
|
known = []
|
77
77
|
|
78
|
-
# @slack- @team- @webhook- user-emails
|
78
|
+
# @slack- @team- @webhook- @sns- user-emails
|
79
79
|
known += Kennel::Api.new.send(:request, :get, "/api/v2/notifications/handles?group_limit=99999")
|
80
80
|
.fetch(:data)
|
81
81
|
.flat_map { |d| d.dig(:attributes, :handles) }
|
82
82
|
.map { |v| v.fetch(:value) }
|
83
83
|
|
84
|
-
# group emails or other 1-off things
|
84
|
+
# group emails or other 1-off things we know are valid
|
85
85
|
manual = ENV["KNOWN"].to_s.split(",")
|
86
86
|
dupes = (manual & known)
|
87
87
|
Kennel::Tasks.abort "KNOWN=#{dupes.join(",")} values are already known and should be removed" if dupes.any?
|
88
88
|
known += manual
|
89
89
|
|
90
|
+
# @sns- handles are randomly invalid so we need to ignore them without checking if the ignore is needed
|
91
|
+
# https://help.datadoghq.com/hc/en-us/requests/2310423
|
92
|
+
known += ENV["KNOWN_RANDOM"].to_s.split(",")
|
93
|
+
|
90
94
|
bad = []
|
91
95
|
Dir["generated/**/*.json"].each do |f|
|
92
96
|
next unless (message = JSON.parse(File.read(f))["message"])
|
data/lib/kennel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kennel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-10-
|
11
|
+
date: 2025-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diff-lcs
|