gitlab-qa 7.24.5 → 7.25.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.gitlab/ci/jobs/actioncable.gitlab-ci.yml +41 -0
  3. data/.gitlab/ci/jobs/base.gitlab-ci.yml +281 -0
  4. data/.gitlab/ci/jobs/cloud_activation.gitlab-ci.yml +30 -0
  5. data/.gitlab/ci/jobs/custom_parallel.gitlab-ci.yml +21 -0
  6. data/.gitlab/ci/jobs/ee_previous_to_ce_update.gitlab-ci.yml +18 -0
  7. data/.gitlab/ci/jobs/elasticsearch.gitlab-ci.yml +20 -0
  8. data/.gitlab/ci/jobs/geo.gitlab-ci.yml +18 -0
  9. data/.gitlab/ci/jobs/gitaly_cluster.gitlab-ci.yml +45 -0
  10. data/.gitlab/ci/jobs/group_saml.gitlab-ci.yml +20 -0
  11. data/.gitlab/ci/jobs/instance.gitlab-ci.yml +55 -0
  12. data/.gitlab/ci/jobs/instance_saml.gitlab-ci.yml +41 -0
  13. data/.gitlab/ci/jobs/integrations.gitlab-ci.yml +14 -0
  14. data/.gitlab/ci/jobs/jira.gitlab-ci.yml +41 -0
  15. data/.gitlab/ci/jobs/large_setup.gitlab-ci.yml +19 -0
  16. data/.gitlab/ci/jobs/ldap_no_server.gitlab-ci.yml +20 -0
  17. data/.gitlab/ci/jobs/ldap_no_tls.gitlab-ci.yml +41 -0
  18. data/.gitlab/ci/jobs/ldap_tls.gitlab-ci.yml +41 -0
  19. data/.gitlab/ci/jobs/mattermost.gitlab-ci.yml +41 -0
  20. data/.gitlab/ci/jobs/mtls.gitlab-ci.yml +17 -0
  21. data/.gitlab/ci/jobs/object_storage.gitlab-ci.yml +49 -0
  22. data/.gitlab/ci/jobs/object_storage_aws.gitlab-ci.yml +25 -0
  23. data/.gitlab/ci/jobs/object_storage_gcs.gitlab-ci.yml +23 -0
  24. data/.gitlab/ci/jobs/object_storage_registry_tls.gitlab-ci.yml +41 -0
  25. data/.gitlab/ci/jobs/omnibus_image.gitlab-ci.yml +15 -0
  26. data/.gitlab/ci/jobs/omnibus_upgrade.gitlab-ci.yml +28 -0
  27. data/.gitlab/ci/jobs/packages.gitlab-ci.yml +25 -0
  28. data/.gitlab/ci/jobs/praefect.gitlab-ci.yml +71 -0
  29. data/.gitlab/ci/jobs/registry.gitlab-ci.yml +41 -0
  30. data/.gitlab/ci/jobs/registry_with_cdn.gitlab-ci.yml +43 -0
  31. data/.gitlab/ci/jobs/relative_url.gitlab-ci.yml +65 -0
  32. data/.gitlab/ci/jobs/repository_storage.gitlab-ci.yml +41 -0
  33. data/.gitlab/ci/jobs/sanity_framework.gitlab-ci.yml +24 -0
  34. data/.gitlab/ci/jobs/service_ping_disabled.gitlab-ci.yml +19 -0
  35. data/.gitlab/ci/jobs/smtp.gitlab-ci.yml +19 -0
  36. data/.gitlab/ci/jobs/staging.gitlab-ci.yml +10 -0
  37. data/.gitlab/ci/jobs/update.gitlab-ci.yml +60 -0
  38. data/.gitlab/ci/rules.gitlab-ci.yml +19 -6
  39. data/.gitlab-ci.yml +115 -1332
  40. data/Dangerfile +1 -3
  41. data/bin/notify_upstream +98 -0
  42. data/docs/what_tests_can_be_run.md +15 -0
  43. data/lib/gitlab/qa/component/base.rb +0 -1
  44. data/lib/gitlab/qa/component/gitlab.rb +35 -0
  45. data/lib/gitlab/qa/component/staging_ref.rb +1 -0
  46. data/lib/gitlab/qa/docker/engine.rb +4 -0
  47. data/lib/gitlab/qa/release.rb +1 -1
  48. data/lib/gitlab/qa/report/relate_failure_issue.rb +9 -3
  49. data/lib/gitlab/qa/runner.rb +10 -0
  50. data/lib/gitlab/qa/runtime/env.rb +14 -1
  51. data/lib/gitlab/qa/scenario/test/instance/staging_ref_geo.rb +27 -0
  52. data/lib/gitlab/qa/scenario/test/integration/mattermost.rb +5 -1
  53. data/lib/gitlab/qa/scenario/test/integration/registry_with_cdn.rb +42 -0
  54. data/lib/gitlab/qa/version.rb +1 -1
  55. data/lib/gitlab/qa.rb +2 -0
  56. data/scripts/generate-qa-jobs.rb +72 -0
  57. data/support/data/license_usage_seed.rb +75 -0
  58. metadata +43 -4
  59. data/.gitlab/ci/danger.gitlab-ci.yml +0 -25
  60. data/bin/notify_upstream_commit +0 -61
@@ -0,0 +1,19 @@
1
+ ce:service_ping_disabled:
2
+ extends:
3
+ - .rules:ce-never-when-triggered-by-feature-flag-definition-change
4
+ - .test
5
+ - .high-capacity
6
+ - .ce-variables
7
+ - .rspec-report-opts
8
+ variables:
9
+ QA_SCENARIO: "Test::Integration::ServicePingDisabled"
10
+
11
+ ee:service_ping_disabled:
12
+ extends:
13
+ - .rules:ee-never-when-triggered-by-feature-flag-definition-change
14
+ - .test
15
+ - .high-capacity
16
+ - .ee-variables
17
+ - .rspec-report-opts
18
+ variables:
19
+ QA_SCENARIO: "Test::Integration::ServicePingDisabled"
@@ -0,0 +1,19 @@
1
+ ce:smtp:
2
+ extends:
3
+ - .rules:ce-never-when-triggered-by-feature-flag-definition-change
4
+ - .test
5
+ - .high-capacity
6
+ - .ce-variables
7
+ - .rspec-report-opts
8
+ variables:
9
+ QA_SCENARIO: "Test::Integration::SMTP"
10
+
11
+ ee:smtp:
12
+ extends:
13
+ - .rules:ee-never-when-triggered-by-feature-flag-definition-change
14
+ - .test
15
+ - .high-capacity
16
+ - .ee-variables
17
+ - .rspec-report-opts
18
+ variables:
19
+ QA_SCENARIO: "Test::Integration::SMTP"
@@ -0,0 +1,10 @@
1
+ staging:
2
+ script:
3
+ - unset EE_LICENSE
4
+ - 'echo "Running: bundle exec exe/gitlab-qa Test::Instance::Staging ${RELEASE:=$DEFAULT_RELEASE} -- $QA_TESTS $QA_RSPEC_TAGS"'
5
+ - bundle exec exe/gitlab-qa Test::Instance::Staging ${RELEASE:=$DEFAULT_RELEASE} -- $QA_TESTS $QA_RSPEC_TAGS
6
+ extends:
7
+ - .rules:only-qa-never-when-triggered-by-feature-flag-definition-change
8
+ - .test
9
+ - .high-capacity
10
+ allow_failure: true
@@ -0,0 +1,60 @@
1
+ ce:update-parallel:
2
+ extends:
3
+ - .rules:ce-never-when-triggered-by-feature-flag-definition-change-and-never-when-qa-tests-specified
4
+ - .test
5
+ - .high-capacity
6
+ - .ce-variables
7
+ - .rspec-report-opts
8
+ - .update-scenario-script
9
+ parallel: 5
10
+
11
+ ce:update:
12
+ extends:
13
+ - .rules:ce-never-when-triggered-by-feature-flag-definition-change-and-never-when-qa-tests-not-specified
14
+ - .test
15
+ - .high-capacity
16
+ - .ce-variables
17
+ - .rspec-report-opts
18
+ - .update-scenario-script
19
+
20
+ ce:update-quarantine:
21
+ extends:
22
+ - .rules:ce-never-when-triggered-by-feature-flag-definition-change
23
+ - .test
24
+ - .high-capacity
25
+ - .ce-variables
26
+ - .quarantine
27
+ - .rspec-report-opts
28
+ - .update-scenario-script
29
+ variables:
30
+ QA_RSPEC_TAGS: "--tag quarantine --tag ~orchestrated"
31
+
32
+ ee:update-parallel:
33
+ extends:
34
+ - .rules:ee-never-when-triggered-by-feature-flag-definition-change-and-never-when-qa-tests-specified
35
+ - .test
36
+ - .high-capacity
37
+ - .ee-variables
38
+ - .rspec-report-opts
39
+ - .update-scenario-script
40
+ parallel: 10
41
+
42
+ ee:update:
43
+ extends:
44
+ - .rules:ee-never-when-triggered-by-feature-flag-definition-change-and-never-when-qa-tests-not-specified
45
+ - .test
46
+ - .high-capacity
47
+ - .ee-variables
48
+ - .rspec-report-opts
49
+ - .update-scenario-script
50
+
51
+ ee:update-quarantine:
52
+ extends:
53
+ - .rules:ee-never-when-triggered-by-feature-flag-definition-change
54
+ - .test
55
+ - .high-capacity
56
+ - .ee-variables
57
+ - .quarantine
58
+ - .rspec-report-opts
59
+ variables:
60
+ QA_RSPEC_TAGS: "--tag quarantine --tag ~orchestrated"
@@ -2,19 +2,23 @@
2
2
  # Conditions #
3
3
  ##############
4
4
  .if-default-refs-or-ce: &if-default-refs-or-ce
5
- if: '$RELEASE == null || $RELEASE =~ /gitlab-ce/ || $CI_MERGE_REQUEST_ID || $CI_COMMIT_REF_NAME == "master"'
5
+ if: '$RELEASE == null || $RELEASE == "" || $RELEASE =~ /gitlab-ce/ || $CI_MERGE_REQUEST_ID || $CI_COMMIT_REF_NAME == "master"'
6
6
 
7
7
  .if-default-refs-or-ee: &if-default-refs-or-ee
8
- if: '$RELEASE == null || $RELEASE =~ /gitlab-ee/ || $CI_MERGE_REQUEST_ID || $CI_COMMIT_REF_NAME == "master"'
8
+ if: '$RELEASE == null || $RELEASE == "" || $RELEASE =~ /gitlab-ee/ || $CI_MERGE_REQUEST_ID || $CI_COMMIT_REF_NAME == "master"'
9
9
 
10
+ .if-default-refs-or-ce-or-ee: &if-default-refs-or-ce-or-ee
11
+ if: '$RELEASE == null || $RELEASE == "" || $RELEASE =~ /gitlab-ce|gitlab-ee/ || $CI_MERGE_REQUEST_ID || $CI_COMMIT_REF_NAME == "master"'
12
+
13
+ # In trigger jobs, such as `trigger-generated-jobs`, if a variable does not have a value set, the job will receive it literally as is i.e., "$RELEASE" in this case.
10
14
  .if-not-gitlab-qa-release: &if-not-gitlab-qa-release
11
- if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/gitlab-qa" && $RELEASE == null'
15
+ if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/gitlab-qa" && ($RELEASE == null || $RELEASE == "" || $RELEASE == "$RELEASE")'
12
16
 
13
17
  .if-staging-and-not-release: &if-staging-and-not-release
14
- if: '$RELEASE == null && $CI_JOB_NAME =~ /staging/'
18
+ if: '($RELEASE == null || $RELEASE == "") && $CI_JOB_NAME =~ /staging/'
15
19
 
16
20
  .if-quarantine-or-custom-and-not-release: &if-quarantine-or-custom-and-not-release
17
- if: '$RELEASE == null && $CI_JOB_NAME =~ /quarantine|custom/'
21
+ if: '($RELEASE == null || $RELEASE == "") && $CI_JOB_NAME =~ /quarantine|custom/'
18
22
 
19
23
  .if-quarantine-or-custom-and-ee-release: &if-quarantine-or-custom-and-ee-release
20
24
  if: '$RELEASE =~ /gitlab-ee/ && $CI_JOB_NAME =~ /quarantine|custom/'
@@ -32,7 +36,7 @@
32
36
  if: '$CI_COMMIT_TAG || $RELEASE =~ /gitlab-ce/'
33
37
 
34
38
  .if-tag-or-release: &if-tag-or-release
35
- if: '$CI_COMMIT_TAG || $RELEASE'
39
+ if: '$CI_COMMIT_TAG || ($RELEASE != null && $RELEASE != "")'
36
40
 
37
41
  .if-set-feature-flag: &if-set-feature-flag
38
42
  if: '$GITLAB_QA_OPTIONS =~ /--set-feature-flags/'
@@ -77,6 +81,15 @@
77
81
  when: manual
78
82
  - <<: *if-default-refs-or-ee
79
83
 
84
+ .rules:never-on-version-change-or-tag:
85
+ rules:
86
+ - <<: *if-not-gitlab-qa-release
87
+ changes: ["lib/**/version.rb"]
88
+ when: never
89
+ - if: '$CI_COMMIT_TAG'
90
+ when: never
91
+ - <<: *if-default-refs-or-ce-or-ee
92
+
80
93
  .rules:only-qa:
81
94
  rules:
82
95
  - <<: *if-not-gitlab-qa-release