gitlab-qa 10.4.1 → 11.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.gitlab/changelog_config.yml +13 -0
  3. data/.gitlab/merge_request_templates/Release.md +9 -36
  4. data/.rubocop_todo.yml +0 -12
  5. data/Dangerfile +1 -5
  6. data/Gemfile.lock +4 -4
  7. data/README.md +1 -2
  8. data/docs/running_against_remote_grid.md +39 -2
  9. data/gitlab-qa.gemspec +1 -1
  10. data/lib/gitlab/qa/component/gitaly_cluster.rb +0 -1
  11. data/lib/gitlab/qa/component/gitlab.rb +10 -9
  12. data/lib/gitlab/qa/component/selenoid.rb +8 -3
  13. data/lib/gitlab/qa/runtime/env.rb +21 -41
  14. data/lib/gitlab/qa/scenario/test/instance/airgapped.rb +0 -2
  15. data/lib/gitlab/qa/scenario/test/integration/gitaly_cluster.rb +0 -2
  16. data/lib/gitlab/qa/scenario/test/integration/mtls.rb +0 -1
  17. data/lib/gitlab/qa/scenario/test/integration/praefect.rb +0 -2
  18. data/lib/gitlab/qa/scenario/test/integration/registry_with_cdn.rb +2 -2
  19. data/lib/gitlab/qa/version.rb +1 -1
  20. data/lib/gitlab/qa.rb +0 -1
  21. data/support/data/admin_access_token_seed.rb +4 -1
  22. metadata +5 -39
  23. data/bin/slack +0 -14
  24. data/exe/gitlab-qa-report +0 -10
  25. data/lib/gitlab/qa/report/base_test_results.rb +0 -39
  26. data/lib/gitlab/qa/report/find_set_dri.rb +0 -43
  27. data/lib/gitlab/qa/report/generate_test_session.rb +0 -275
  28. data/lib/gitlab/qa/report/gitlab_issue_client.rb +0 -190
  29. data/lib/gitlab/qa/report/gitlab_issue_dry_client.rb +0 -28
  30. data/lib/gitlab/qa/report/j_unit_test_results.rb +0 -27
  31. data/lib/gitlab/qa/report/json_test_results.rb +0 -29
  32. data/lib/gitlab/qa/report/prepare_stage_reports.rb +0 -86
  33. data/lib/gitlab/qa/report/relate_failure_issue.rb +0 -374
  34. data/lib/gitlab/qa/report/report_as_issue.rb +0 -176
  35. data/lib/gitlab/qa/report/report_results.rb +0 -64
  36. data/lib/gitlab/qa/report/results_in_issues.rb +0 -126
  37. data/lib/gitlab/qa/report/results_in_testcases.rb +0 -111
  38. data/lib/gitlab/qa/report/results_reporter_shared.rb +0 -70
  39. data/lib/gitlab/qa/report/summary_table.rb +0 -43
  40. data/lib/gitlab/qa/report/test_result.rb +0 -184
  41. data/lib/gitlab/qa/report/update_screenshot_path.rb +0 -63
  42. data/lib/gitlab/qa/reporter.rb +0 -131
  43. data/lib/gitlab/qa/runtime/token_finder.rb +0 -44
  44. data/lib/gitlab/qa/slack/post_to_slack.rb +0 -30
  45. data/lib/gitlab/qa/system_logs/finders/json_log_finder.rb +0 -65
  46. data/lib/gitlab/qa/system_logs/finders/rails/api_log_finder.rb +0 -21
  47. data/lib/gitlab/qa/system_logs/finders/rails/application_log_finder.rb +0 -21
  48. data/lib/gitlab/qa/system_logs/finders/rails/exception_log_finder.rb +0 -21
  49. data/lib/gitlab/qa/system_logs/finders/rails/graphql_log_finder.rb +0 -21
  50. data/lib/gitlab/qa/system_logs/log_types/log.rb +0 -38
  51. data/lib/gitlab/qa/system_logs/log_types/rails/api_log.rb +0 -34
  52. data/lib/gitlab/qa/system_logs/log_types/rails/application_log.rb +0 -27
  53. data/lib/gitlab/qa/system_logs/log_types/rails/exception_log.rb +0 -23
  54. data/lib/gitlab/qa/system_logs/log_types/rails/graphql_log.rb +0 -30
  55. data/lib/gitlab/qa/system_logs/shared_fields.rb +0 -29
  56. data/lib/gitlab/qa/system_logs/system_logs_formatter.rb +0 -65
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Gitlab
4
- module QA
5
- module SystemLogs
6
- module LogTypes
7
- module Rails
8
- class ApplicationLog < Log
9
- include SharedFields::Exception
10
- include SharedFields::Meta
11
-
12
- def initialize(data)
13
- super('Rails Application', data)
14
- end
15
-
16
- def summary_fields
17
- super.concat(
18
- exception_fields,
19
- meta_fields
20
- )
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Gitlab
4
- module QA
5
- module SystemLogs
6
- module LogTypes
7
- module Rails
8
- class ExceptionLog < Log
9
- include SharedFields::Exception
10
-
11
- def initialize(data)
12
- super('Rails Exceptions', data)
13
- end
14
-
15
- def summary_fields
16
- super.concat(exception_fields)
17
- end
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Gitlab
4
- module QA
5
- module SystemLogs
6
- module LogTypes
7
- module Rails
8
- class GraphqlLog < Log
9
- include SharedFields::Meta
10
-
11
- def initialize(data)
12
- super('Rails GraphQL', data)
13
- end
14
-
15
- def summary_fields
16
- super.concat(
17
- [
18
- :operation_name,
19
- :query_string,
20
- :variables
21
- ],
22
- meta_fields
23
- )
24
- end
25
- end
26
- end
27
- end
28
- end
29
- end
30
- end
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Gitlab
4
- module QA
5
- module SystemLogs
6
- module SharedFields
7
- module Meta
8
- def meta_fields
9
- [
10
- :meta_user,
11
- :meta_project,
12
- :meta_caller_id
13
- ]
14
- end
15
- end
16
-
17
- module Exception
18
- def exception_fields
19
- [
20
- :exception_class,
21
- :exception_message,
22
- :exception_backtrace
23
- ]
24
- end
25
- end
26
- end
27
- end
28
- end
29
- end
@@ -1,65 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Gitlab
4
- module QA
5
- module SystemLogs
6
- class SystemLogsFormatter
7
- NUM_OF_LOG_SECTIONS = 4
8
-
9
- def initialize(base_paths, correlation_id)
10
- @base_paths = base_paths
11
- @correlation_id = correlation_id
12
- end
13
-
14
- def system_logs_summary_markdown
15
- log_sections = Array.new(NUM_OF_LOG_SECTIONS) { [] }
16
-
17
- @base_paths.each do |base_path|
18
- all_logs = [
19
- Finders::Rails::ApiLogFinder.new(base_path).find(@correlation_id),
20
- Finders::Rails::ExceptionLogFinder.new(base_path).find(@correlation_id),
21
- Finders::Rails::ApplicationLogFinder.new(base_path).find(@correlation_id),
22
- Finders::Rails::GraphqlLogFinder.new(base_path).find(@correlation_id)
23
- ]
24
-
25
- create_log_summary_sections!(all_logs, log_sections)
26
- end
27
-
28
- log_sections.prepend('### System Logs') unless log_sections.all?(&:empty?)
29
- log_sections.join("\n").rstrip
30
- end
31
-
32
- private
33
-
34
- def create_log_summary_sections!(all_logs, sections)
35
- sections.zip(all_logs) do |section, logs|
36
- unless logs.empty?
37
- section_title = "\n#### #{logs.first.name}"
38
- section.append(section_title) unless section.include?(section_title)
39
- section.append(create_log_summaries(logs))
40
- end
41
- end
42
- end
43
-
44
- def create_log_summaries(logs)
45
- section = []
46
-
47
- logs.each do |log|
48
- log_summary = <<~MARKDOWN.chomp
49
- <details><summary>Click to expand</summary>
50
-
51
- ```json
52
- #{JSON.pretty_generate(log.summary)}
53
- ```
54
- </details>
55
- MARKDOWN
56
-
57
- section.append(log_summary)
58
- end
59
-
60
- section.join("\n\n")
61
- end
62
- end
63
- end
64
- end
65
- end