Skip to content
Snippets Groups Projects
Unverified Commit fe6b3a85 authored by Rémy Coutable's avatar Rémy Coutable :red_circle:
Browse files

Handle a missing Knapsack report gracefully in rspec_helpers.sh


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 7bf9aef1
No related branches found
No related tags found
3 merge requests!31734Update stable branch 13-0-stable-ee for automatic RC 13.0.0-rc20200512114055,!31464WIP: Resolve "Ability to create an iteration",!31367Handle a missing Knapsack report gracefully in rspec_helpers.sh
......@@ -73,6 +73,12 @@ function rspec_paralellized_job() {
export KNAPSACK_LOG_LEVEL="debug"
export KNAPSACK_REPORT_PATH="knapsack/${report_name}_report.json"
# There's a bug where artifacts are sometimes not downloaded. Since specs can run without the Knapsack report, we can
# handle the missing artifact gracefully here. See https://gitlab.com/gitlab-org/gitlab/-/issues/212349.
if [[ ! -f "${KNAPSACK_RSPEC_SUITE_REPORT_PATH}" ]]; then
echo "{}" > "${KNAPSACK_RSPEC_SUITE_REPORT_PATH}"
fi
cp "${KNAPSACK_RSPEC_SUITE_REPORT_PATH}" "${KNAPSACK_REPORT_PATH}"
if [[ -z "${KNAPSACK_TEST_FILE_PATTERN}" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment