Skip to content

Commit

Permalink
move quartz to dane, reduce runners
Browse files Browse the repository at this point in the history
  • Loading branch information
slabasan committed Sep 23, 2024
1 parent 214704b commit 8285d9d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ stages:
- build
- status_update

.on_quartz:
.on_dane:
tags:
- shell
- quartz
- dane
rules:
# Only report failure if the pipeline failed.
- if: '$CI_JOB_NAME =~ /status_failure/'
Expand All @@ -17,15 +17,15 @@ stages:
- when: on_success

.status_report: &status_report
- export context="quartz"
- export context="dane"
- |
curl --url "https://api.github.com/repos/llnl/${CI_PROJECT_NAME}/statuses/${CI_COMMIT_SHA}" \
--header 'Content-Type: application/json' \
--header "authorization: Bearer ${GITHUB_TOKEN}" \
--data "{ \"state\": \"${pipeline_status}\", \"target_url\": \"${CI_PIPELINE_URL}\", \"description\": \"GitLab ${context} pipeline\", \"context\": \"ci/gitlab/${context}\" }"
status_pending:
extends: [.on_quartz]
extends: [.on_dane]
stage: status_initiate
id_tokens:
CI_JOB_JWT:
Expand All @@ -35,26 +35,26 @@ status_pending:
- *status_report

status_success:
extends: [.on_quartz]
extends: [.on_dane]
stage: status_update
script:
- export pipeline_status="success"
- *status_report
when: on_success

status_failure:
extends: [.on_quartz]
extends: [.on_dane]
stage: status_update
script:
- export pipeline_status="failure"
- *status_report
when: on_failure

# no access to msr-safe on quartz
build-quartz:
# no access to msr-safe on dane
build-dane:
tags:
- batch
- quartz
- dane
stage: build
script:
# Build and install rankstr dependency
Expand All @@ -69,20 +69,20 @@ build-quartz:
- export HOSTNAME=`hostname`
- echo -e "Hostname:" ${HOSTNAME}
- groups
- mkdir build-gitlab-quartz && mkdir install-gitlab-quartz
- cd build-gitlab-quartz
- export HOST_CONFIG=`ls ../host-configs/quartz[email protected]`
- mkdir build-gitlab-dane && mkdir install-gitlab-dane
- cd build-gitlab-dane
- export HOST_CONFIG=`ls ../host-configs/dane[email protected]`
- echo -e "HOST_CONFIG:" ${HOST_CONFIG}
- echo -e "PWD:" ${PWD}
- cmake -C ${HOST_CONFIG} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install-gitlab-quartz -DBUILD_TESTS=ON -DENABLE_WARNINGS=ON -DRANKSTR_DIR=${RANKSTR_INSTALL} ../src
- cmake -C ${HOST_CONFIG} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install-gitlab-dane -DBUILD_TESTS=ON -DENABLE_WARNINGS=ON -DRANKSTR_DIR=${RANKSTR_INSTALL} ../src
- make VERBOSE=1
- make install
#- env CTEST_OUTPUT_ON_FAILURE=1 make test
- cd ..
- echo -e "PWD:" ${PWD}
- which cmake
- cmake --version
- cd install-gitlab-quartz/examples/using-with-cmake/c
- cd install-gitlab-dane/examples/using-with-cmake/c
- echo -e "PWD:" ${PWD}
- mkdir _test_build
- cd _test_build
Expand Down
52 changes: 26 additions & 26 deletions .gitlab/subscribed-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
include: [component: $CI_SERVER_FQDN/lc-components/id_tokens/id_tokens-component@main]

# Trigger a build pipeline for the following systems
quartz-build-and-test:
dane-build-and-test:
variables:
CI_MACHINE: "quartz"
CI_MACHINE: "dane"
extends: [.build]

corona-gpu-build-and-test:
variables:
CI_MACHINE: "corona-gpu"
extends: [.build]

lassen-gpu-build-and-test:
variables:
CI_MACHINE: "lassen-gpu"
extends: [.build]

lassen-cpu-build-and-test:
variables:
CI_MACHINE: "lassen-cpu"
extends: [.build]

lassen-cpu-and-gpu-build-and-test:
variables:
CI_MACHINE: "lassen-cpugpu"
extends: [.build]

cztb2-build-and-test:
variables:
CI_MACHINE: "cztb2"
extends: [.build]
#corona-gpu-build-and-test:
# variables:
# CI_MACHINE: "corona-gpu"
# extends: [.build]
#
#lassen-gpu-build-and-test:
# variables:
# CI_MACHINE: "lassen-gpu"
# extends: [.build]
#
#lassen-cpu-build-and-test:
# variables:
# CI_MACHINE: "lassen-cpu"
# extends: [.build]
#
#lassen-cpu-and-gpu-build-and-test:
# variables:
# CI_MACHINE: "lassen-cpugpu"
# extends: [.build]
#
#cztb2-build-and-test:
# variables:
# CI_MACHINE: "cztb2"
# extends: [.build]

0 comments on commit 8285d9d

Please sign in to comment.