diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-26 18:19:16 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-26 18:19:16 +0000 |
commit | fa69a57b46f4893c488445f79d6d290463820f7d (patch) | |
tree | 4a73ccd1f8ffb4dbb47a42c6edb309238828a44e /scripts | |
parent | 34283a71d9ac31eb4da0b59d0b25fc2be014bc9c (diff) | |
download | gitlab-ce-fa69a57b46f4893c488445f79d6d290463820f7d.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/gitlab_component_helpers.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/gitlab_component_helpers.sh b/scripts/gitlab_component_helpers.sh index 2e816330eb6..0c34b5669a8 100644 --- a/scripts/gitlab_component_helpers.sh +++ b/scripts/gitlab_component_helpers.sh @@ -106,12 +106,12 @@ function upload_gitlab_assets_package() { # Fixtures functions function check_fixtures_download() { if [[ "${REUSE_FRONTEND_FIXTURES_ENABLED:-}" != "true" ]]; then + echoinfo "INFO: Reusing frontend fixtures is disabled due to REUSE_FRONTEND_FIXTURES_ENABLED=${REUSE_FRONTEND_FIXTURES_ENABLED}." return 1 fi - # Note: Currently, reusing frontend fixtures is only supported in EE. - # Other projects will be supported through this issue in the future: https://gitlab.com/gitlab-org/gitlab/-/issues/393615. if [[ "${CI_PROJECT_NAME}" != "gitlab" ]] || [[ "${CI_JOB_NAME}" =~ "foss" ]]; then + echoinfo "INFO: Reusing frontend fixtures is only supported in EE." return 1 fi @@ -128,13 +128,13 @@ function check_fixtures_download() { function check_fixtures_reuse() { if [[ "${REUSE_FRONTEND_FIXTURES_ENABLED:-}" != "true" ]]; then + echoinfo "INFO: Reusing frontend fixtures is disabled due to REUSE_FRONTEND_FIXTURES_ENABLED=${REUSE_FRONTEND_FIXTURES_ENABLED}." rm -rf "tmp/tests/frontend"; return 1 fi - # Note: Currently, reusing frontend fixtures is only supported in EE. - # Other projects will be supported through this issue in the future: https://gitlab.com/gitlab-org/gitlab/-/issues/393615. if [[ "${CI_PROJECT_NAME}" != "gitlab" ]] || [[ "${CI_JOB_NAME}" =~ "foss" ]]; then + echoinfo "INFO: Reusing frontend fixtures is only supported in EE." rm -rf "tmp/tests/frontend"; return 1 fi @@ -143,11 +143,12 @@ function check_fixtures_reuse() { # Remove tmp/tests/frontend/ except on the first parallelized job so that depending # jobs don't download the exact same artifact multiple times. if [[ -n "${CI_NODE_INDEX:-}" ]] && [[ "${CI_NODE_INDEX}" -ne 1 ]]; then - echoinfo "INFO: Removing 'tmp/tests/frontend' as we're on node ${CI_NODE_INDEX}."; + echoinfo "INFO: Removing 'tmp/tests/frontend' as we're on node ${CI_NODE_INDEX}. Dependent jobs will use the artifacts from the first parallelized job."; rm -rf "tmp/tests/frontend"; fi return 0 else + echoinfo "INFO: 'tmp/tests/frontend' does not exist."; return 1 fi } |