dri 0.1.1 → 0.1.2
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/Gemfile.lock +1 -1
- data/lib/dri/commands/fetch/failures.rb +1 -1
- data/lib/dri/commands/fetch/testcases.rb +4 -0
- data/lib/dri/commands/fetch/triaged.rb +4 -4
- data/lib/dri/commands/init.rb +3 -2
- data/lib/dri/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dfdbd437522c61a85ee277d56572906e94f8b9c33d2b511701e5e0daa6ad576
|
4
|
+
data.tar.gz: 93c8566dc5c2cc610aa181e0242562dc84db111a1bf149448032cbbba0a4ee54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 432a698eb76717876ab269523cae3377ea546103dfedaa04001ff7b07a7080ab4a069f4b795d6b949c78bca02cd500e584bccfbee8c9470bcafda2029eb095c2
|
7
|
+
data.tar.gz: 152bbfc469b575c0f7e65e28ffdeba5517449b635016630d677ffded81c9e01a89acb93b0c9f6cc176b2e4226f7e1bf797505f162521a73791e5224a14462efd
|
data/Gemfile.lock
CHANGED
@@ -67,7 +67,7 @@ module Dri
|
|
67
67
|
if @options[:urgent]
|
68
68
|
table = TTY::Table.new(labels, urgent)
|
69
69
|
puts table.render(:ascii, resize: true, alignments: [:center, :center, :center, :center])
|
70
|
-
output.puts "\nFound: #{urgent.size} urgent failures,
|
70
|
+
output.puts "\nFound: #{urgent.size} urgent failures, ocurring in both canary.gitlab.com and canary.staging.gitlab.com."
|
71
71
|
else
|
72
72
|
table = TTY::Table.new(labels, failures)
|
73
73
|
puts table.render(:ascii, resize: true, alignments: [:center, :center, :center, :center])
|
@@ -31,6 +31,10 @@ module Dri
|
|
31
31
|
|
32
32
|
pipelines = @options[:filter_pipelines] ? filtered_pipelines : @available_pipelines
|
33
33
|
|
34
|
+
if pipelines.empty?
|
35
|
+
logger.error "No pipelines selected to continue to fetch testcases."
|
36
|
+
end
|
37
|
+
|
34
38
|
pipelines.each do |pipeline|
|
35
39
|
logger.info "Fetching failing testcases in #{pipeline}\n"
|
36
40
|
response = api_client.fetch_failing_testcases(pipeline, state: 'opened')
|
@@ -12,9 +12,9 @@ module Dri
|
|
12
12
|
def execute(input: $stdin, output: $stdout)
|
13
13
|
verify_config_exists
|
14
14
|
|
15
|
-
title = add_color('Title', :
|
16
|
-
url = add_color('URL', :
|
17
|
-
type_label = add_color('Type', :
|
15
|
+
title = add_color('Title', :magenta)
|
16
|
+
url = add_color('URL', :magenta)
|
17
|
+
type_label = add_color('Type', :magenta)
|
18
18
|
|
19
19
|
table_labels = [ title, url, type_label ]
|
20
20
|
failures_triaged = []
|
@@ -30,7 +30,7 @@ module Dri
|
|
30
30
|
end
|
31
31
|
|
32
32
|
response.each do |triaged|
|
33
|
-
title = truncate(triaged["title"],
|
33
|
+
title = truncate(triaged["title"], 70)
|
34
34
|
url = triaged["web_url"]
|
35
35
|
labels = triaged["labels"]
|
36
36
|
type = ""
|
data/lib/dri/commands/init.rb
CHANGED
@@ -3,12 +3,13 @@
|
|
3
3
|
require_relative '../command'
|
4
4
|
|
5
5
|
require "tty-font"
|
6
|
-
require "pastel"
|
7
6
|
|
8
7
|
module Dri
|
9
8
|
module Commands
|
10
9
|
class Init < Dri::Command
|
11
10
|
def initialize(options)
|
11
|
+
@options = options
|
12
|
+
|
12
13
|
font = TTY::Font.new(:doom)
|
13
14
|
puts pastel.yellow(font.write("DRI"))
|
14
15
|
end
|
@@ -21,7 +22,7 @@ module Dri
|
|
21
22
|
if config.exist?
|
22
23
|
overwrite = prompt.yes?("There is already a configuration initialized. Would you like to overwrite it?")
|
23
24
|
unless overwrite
|
24
|
-
output.puts "Using existing configuration. To view configuration in use try
|
25
|
+
output.puts "Using existing configuration. To view configuration in use try #{add_color('dri profile', :yellow)}."
|
25
26
|
exit 0
|
26
27
|
end
|
27
28
|
end
|
data/lib/dri/version.rb
CHANGED