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
a2c675ed
Commit
a2c675ed
authored
Aug 02, 2021
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch..."
This reverts merge request !66927
parent
05476fef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
39 deletions
+22
-39
.gitlab/ci/test-metadata.gitlab-ci.yml
.gitlab/ci/test-metadata.gitlab-ci.yml
+0
-1
scripts/rspec_helpers.sh
scripts/rspec_helpers.sh
+22
-38
No files found.
.gitlab/ci/test-metadata.gitlab-ci.yml
View file @
a2c675ed
...
...
@@ -26,7 +26,6 @@ update-tests-metadata:
-
.test-metadata:rules:update-tests-metadata
stage
:
post-test
dependencies
:
-
retrieve-tests-metadata
-
setup-test-env
-
rspec migration pg12
-
rspec frontend_fixture
...
...
scripts/rspec_helpers.sh
View file @
a2c675ed
#!/usr/bin/env bash
function
retrieve_tests_metadata
()
{
mkdir
-p
$(
dirname
"
$KNAPSACK_RSPEC_SUITE_REPORT_PATH
"
)
$(
dirname
"
$FLAKY_RSPEC_SUITE_REPORT_PATH
"
)
rspec_profiling/
mkdir
-p
knapsack/ rspec_flaky/
rspec_profiling/
if
[[
-z
"
${
RETRIEVE_TESTS_METADATA_FROM_ARTIFACTS
}
"
]]
;
then
if
[[
!
-f
"
${
KNAPSACK_RSPEC_SUITE_REPORT_PATH
}
"
]]
;
then
curl
--location
-o
"
${
KNAPSACK_RSPEC_SUITE_REPORT_PATH
}
"
"https://gitlab-org.gitlab.io/gitlab/
${
KNAPSACK_RSPEC_SUITE_REPORT_PATH
}
"
||
echo
"{}"
>
"
${
KNAPSACK_RSPEC_SUITE_REPORT_PATH
}
"
fi
if
[[
!
-f
"
${
FLAKY_RSPEC_SUITE_REPORT_PATH
}
"
]]
;
then
curl
--location
-o
"
${
FLAKY_RSPEC_SUITE_REPORT_PATH
}
"
"https://gitlab-org.gitlab.io/gitlab/
${
FLAKY_RSPEC_SUITE_REPORT_PATH
}
"
||
echo
"{}"
>
"
${
FLAKY_RSPEC_SUITE_REPORT_PATH
}
"
fi
else
# ${CI_DEFAULT_BRANCH} might not be master in other forks but we want to
# always target the canonical project here, so the branch must be hardcoded
local
project_path
=
"gitlab-org/gitlab"
...
...
@@ -28,7 +19,6 @@ function retrieve_tests_metadata() {
if
[[
!
-f
"
${
FLAKY_RSPEC_SUITE_REPORT_PATH
}
"
]]
;
then
scripts/api/download_job_artifact.rb
--project
"
${
project_path
}
"
--job-id
"
${
test_metadata_job_id
}
"
--artifact-path
"
${
FLAKY_RSPEC_SUITE_REPORT_PATH
}
"
||
echo
"{}"
>
"
${
FLAKY_RSPEC_SUITE_REPORT_PATH
}
"
fi
fi
}
function
update_tests_metadata
()
{
...
...
@@ -50,13 +40,8 @@ function update_tests_metadata() {
}
function
retrieve_tests_mapping
()
{
mkdir
-p
$(
dirname
"
$RSPEC_PACKED_TESTS_MAPPING_PATH
"
)
mkdir
-p
crystalball/
if
[[
-z
"
${
RETRIEVE_TESTS_METADATA_FROM_ARTIFACTS
}
"
]]
;
then
if
[[
!
-f
"
${
RSPEC_PACKED_TESTS_MAPPING_PATH
}
"
]]
;
then
(
curl
--location
-o
"
${
RSPEC_PACKED_TESTS_MAPPING_PATH
}
.gz"
"https://gitlab-org.gitlab.io/gitlab/
${
RSPEC_PACKED_TESTS_MAPPING_PATH
}
.gz"
&&
gzip
-d
"
${
RSPEC_PACKED_TESTS_MAPPING_PATH
}
.gz"
)
||
echo
"{}"
>
"
${
RSPEC_PACKED_TESTS_MAPPING_PATH
}
"
fi
else
# ${CI_DEFAULT_BRANCH} might not be master in other forks but we want to
# always target the canonical project here, so the branch must be hardcoded
local
project_path
=
"gitlab-org/gitlab"
...
...
@@ -68,7 +53,6 @@ function retrieve_tests_mapping() {
if
[[
!
-f
"
${
RSPEC_PACKED_TESTS_MAPPING_PATH
}
"
]]
;
then
(
scripts/api/download_job_artifact.rb
--project
"
${
project_path
}
"
--job-id
"
${
test_metadata_with_mapping_job_id
}
"
--artifact-path
"
${
RSPEC_PACKED_TESTS_MAPPING_PATH
}
.gz"
&&
gzip
-d
"
${
RSPEC_PACKED_TESTS_MAPPING_PATH
}
.gz"
)
||
echo
"{}"
>
"
${
RSPEC_PACKED_TESTS_MAPPING_PATH
}
"
fi
fi
scripts/unpack-test-mapping
"
${
RSPEC_PACKED_TESTS_MAPPING_PATH
}
"
"
${
RSPEC_TESTS_MAPPING_PATH
}
"
}
...
...
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