-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add local CI scripts & rebase docker image (#394)
* Docker image uses `rapidsai/ci-conda` as the base per rapidsai/ops#2806 * Adds the ability to CI locally via `./ci/scripts/run_ci_local.sh build` & `./ci/scripts/run_ci_local.sh test` * Fix type-o in benchmark stage causing benchmarks to be executed twice & preventing results from being published. * Add `.tmp` and `.clangd` to `.gitignore` * Document need to set `DOCKER_BUILDKIT=1` for docker builds. fixes #393 fixes #397 Authors: - David Gardner (https://github.com/dagardner-nv) Approvers: - Christopher Harris (https://github.com/cwharris) URL: #394
- Loading branch information
1 parent
5a4a1a4
commit 079e371
Showing
14 changed files
with
306 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
# SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
export WORKSPACE_TMP="$(pwd)/.tmp/local_ci_workspace" | ||
mkdir -p ${WORKSPACE_TMP} | ||
git clone ${GIT_URL} mrc | ||
cd mrc/ | ||
git checkout ${GIT_BRANCH} | ||
git pull | ||
git checkout ${GIT_COMMIT} | ||
|
||
export MRC_ROOT=$(pwd) | ||
export WORKSPACE=${MRC_ROOT} | ||
export LOCAL_CI=1 | ||
GH_SCRIPT_DIR="${MRC_ROOT}/ci/scripts/github" | ||
|
||
unset CMAKE_CUDA_COMPILER_LAUNCHER | ||
unset CMAKE_CXX_COMPILER_LAUNCHER | ||
unset CMAKE_C_COMPILER_LAUNCHER | ||
|
||
if [[ "${STAGE}" != "bash" ]]; then | ||
# benchmark & codecov are composite stages, the rest are composed of a single shell script | ||
if [[ "${STAGE}" == "benchmark" || "${STAGE}" == "codecov" ]]; then | ||
CI_SCRIPT="${WORKSPACE_TMP}/ci_script.sh" | ||
echo "#!/bin/bash" > ${CI_SCRIPT} | ||
if [[ "${STAGE}" == "benchmark" ]]; then | ||
echo "${GH_SCRIPT_DIR}/pre_benchmark.sh" >> ${CI_SCRIPT} | ||
echo "${GH_SCRIPT_DIR}/benchmark.sh" >> ${CI_SCRIPT} | ||
echo "${GH_SCRIPT_DIR}/post_benchmark.sh" >> ${CI_SCRIPT} | ||
else | ||
echo "${GH_SCRIPT_DIR}/build.sh" >> ${CI_SCRIPT} | ||
echo "${GH_SCRIPT_DIR}/test_codecov.sh" >> ${CI_SCRIPT} | ||
fi | ||
|
||
chmod +x ${CI_SCRIPT} | ||
else | ||
if [[ "${STAGE}" =~ "build" ]]; then | ||
CI_SCRIPT="${GH_SCRIPT_DIR}/build.sh" | ||
elif [[ "${STAGE}" =~ "test" ]]; then | ||
CI_SCRIPT="${GH_SCRIPT_DIR}/test.sh" | ||
else | ||
CI_SCRIPT="${GH_SCRIPT_DIR}/${STAGE}.sh" | ||
fi | ||
fi | ||
|
||
${CI_SCRIPT} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.