Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
824cfe38
Commit
824cfe38
authored
Sep 01, 2020
by
Albert Salim
Committed by
Rémy Coutable
Sep 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detect matching EE and FOSS tests based on MR changes
parent
1d7d32b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
6 deletions
+45
-6
.gitignore
.gitignore
+1
-0
.gitlab/ci/rails.gitlab-ci.yml
.gitlab/ci/rails.gitlab-ci.yml
+3
-5
.gitlab/ci/rules.gitlab-ci.yml
.gitlab/ci/rules.gitlab-ci.yml
+10
-1
.gitlab/ci/setup.gitlab-ci.yml
.gitlab/ci/setup.gitlab-ci.yml
+31
-0
No files found.
.gitignore
View file @
824cfe38
...
...
@@ -94,5 +94,6 @@ webpack-dev-server.json
.solargraph.yml
apollo.config.js
/tmp/matching_foss_tests.txt
/tmp/matching_tests.txt
ee/changelogs/unreleased-ee
.gitlab/ci/rails.gitlab-ci.yml
View file @
824cfe38
...
...
@@ -493,19 +493,17 @@ rspec-ee system pg12 geo:
rspec foss-impact
:
extends
:
-
.rspec-base-pg11-as-if-foss
-
.rails:rules:ee-mr-only
-
.rails:rules:rspec-foss-impact
needs
:
[
"
setup-test-env"
,
"
retrieve-tests-metadata"
,
"
compile-test-assets
as-if-foss"
,
"
detect-tests
as-if-foss"
]
script
:
-
install_gitlab_gem
-
install_tff_gem
-
run_timed_command "scripts/gitaly-test-build"
-
run_timed_command "scripts/gitaly-test-spawn"
-
source scripts/rspec_helpers.sh
-
tooling/bin/find_foss_tests tmp/matching_foss_tests.txt
-
rspec_matched_foss_tests tmp/matching_foss_tests.txt "--tag ~quarantine"
artifacts
:
expire_in
:
7d
paths
:
-
tmp/matching_foss_tests.txt
-
tmp/capybara/
# EE: Canonical MR pipelines
##################################################
.gitlab/ci/rules.gitlab-ci.yml
View file @
824cfe38
...
...
@@ -555,7 +555,16 @@
-
<<
:
*if-master-refs
changes
:
*code-backstage-patterns
.rails:rules:ee-mr-only:
.rails:rules:detect-tests:
rules
:
-
<<
:
*if-not-ee
when
:
never
-
<<
:
*if-security-merge-request
changes
:
*code-backstage-patterns
-
<<
:
*if-dot-com-gitlab-org-merge-request
changes
:
*code-backstage-patterns
.rails:rules:rspec-foss-impact:
rules
:
-
<<
:
*if-not-ee
when
:
never
...
...
.gitlab/ci/setup.gitlab-ci.yml
View file @
824cfe38
...
...
@@ -59,3 +59,34 @@ verify-tests-yml:
-
source scripts/utils.sh
-
install_tff_gem
-
scripts/verify-tff-mapping
.detect-test-base
:
image
:
ruby:2.6-alpine
needs
:
[]
stage
:
prepare
script
:
-
source scripts/utils.sh
-
install_gitlab_gem
-
install_tff_gem
-
tooling/bin/find_foss_tests ${MATCHED_TESTS_FILE}
artifacts
:
expire_in
:
7d
paths
:
-
${MATCHED_TESTS_FILE}
detect-tests
:
extends
:
-
.detect-test-base
-
.rails:rules:detect-tests
variables
:
MATCHED_TESTS_FILE
:
tmp/matching_tests.txt
detect-tests as-if-foss
:
extends
:
-
.detect-test-base
-
.rails:rules:detect-tests
-
.as-if-foss
variables
:
MATCHED_TESTS_FILE
:
tmp/matching_foss_tests.txt
before_script
:
-
'
[
"$FOSS_ONLY"
=
"1"
]
&&
rm
-rf
ee/
qa/spec/ee/
qa/qa/specs/features/ee/
qa/qa/ee/
qa/qa/ee.rb'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment