Skip to content
Snippets Groups Projects

Draft: run du

Compare and
1 file
+ 32
115
Compare changes
  • Side-by-side
  • Inline
+ 32
115
@@ -6,6 +6,7 @@ variables:
@@ -6,6 +6,7 @@ variables:
DETECTOR_REPOSITORYURL: 'https://github.com/eic/epic.git'
DETECTOR_REPOSITORYURL: 'https://github.com/eic/epic.git'
GITHUB_SHA: ''
GITHUB_SHA: ''
GITHUB_REPOSITORY: ''
GITHUB_REPOSITORY: ''
 
RM: ''
workflow:
workflow:
name: '$PIPELINE_NAME'
name: '$PIPELINE_NAME'
@@ -66,124 +67,40 @@ stages:
@@ -66,124 +67,40 @@ stages:
fi
fi
benchmarks:detector:pending:
stage: status-pending
extends: .status
variables:
STATE: "pending"
DESCRIPTION: "Started..."
when: always
common:setup:
common:setup:
stage: config
stage: config
before_script:
before_script:
script:
script:
- |
- |
if [[ "${COMMON_BENCH_VERSION}" == "" ]] ; then
uptime
export COMMON_BENCH_VERSION="master"
df -h
fi
mount
echo "COMMON_BENCH_VERSION = ${COMMON_BENCH_VERSION}"
if [ -n "${RM}" ] ; then rm -rf $RM ; fi
echo "COMMON_BENCH_VERSION=${COMMON_BENCH_VERSION}" >> .env
cat >filter_broken.py <<EOF
git clone -b "${COMMON_BENCH_VERSION}" https://eicweb.phy.anl.gov/EIC/benchmarks/common_bench.git setup
import sys
echo "BENCHMARKS_TAG: ${BENCHMARKS_TAG}"
import ROOT
echo "BENCHMARKS_CONTAINER: ${BENCHMARKS_CONTAINER}"
for filename in sys.stdin:
echo "BENCHMARKS_REGISTRY: ${BENCHMARKS_REGISTRY}"
filename = filename.rstrip()
- source setup/bin/env.sh && ./setup/bin/install_common.sh
bad = False;
try:
f = ROOT.TFile(filename)
common:detector:
bad = bad or f.IsZombie()
stage: initialize
except OSError:
needs: ["common:setup"]
bad = True
script:
if bad:
- source .local/bin/env.sh && build_detector.sh
print(filename)
- mkdir_local_data_link sim_output
EOF
- mkdir -p results
:>list
- mkdir -p config
for file in $(find /scratch/snakemake-cache -type f); do
- print_env.sh
if file -b "$file" | grep -E '^ROOT file' >/dev/null; then
echo "$file" > list
get_data:
fi
stage: data_init
done
needs: ["common:detector"]
cat list | python filter_broken.py | tee broken
script:
cat broken | xargs rm
- source .local/bin/env.sh
find `realpath /scratch` -type l -print0 | (du -sL --files0-from=- || true) | sort -n > /tmp/df
- ln -s "${LOCAL_DATA_PATH}/sim_output" sim_output
#find `realpath /scratch` -type f -print0 | du -s --files0-from=- || true | sort -n > /tmp/df
- ln -s "${LOCAL_DATA_PATH}/datasets/data" data
head /tmp/df
- cd ${LOCAL_DATA_PATH} && git clone --depth=1 https://eicweb.phy.anl.gov/EIC/datasets.git datasets
tail -n 1000 /tmp/df
\ No newline at end of file
.det_benchmark:
needs:
- ["get_data","common:detector"]
before_script:
- mc config host add S3 https://eics3.sdcc.bnl.gov:9000 ${S3_ACCESS_KEY} ${S3_SECRET_KEY}
- source .local/bin/env.sh
- ls -lrtha
- ln -s "${LOCAL_DATA_PATH}/sim_output" sim_output
- ln -s "${LOCAL_DATA_PATH}/datasets/data" data
# snakemake support
- mkdir "${DETECTOR_CONFIG}"
- ln -s "${LOCAL_DATA_PATH}/sim_output" "${DETECTOR_CONFIG}/sim_output"
- ln -s "../results" "${DETECTOR_CONFIG}/results"
# cache downloaded artifacts
- if [ -d /scratch ]; then mkdir -p /scratch/EPIC; ln -sf /scratch/EPIC ./EPIC; fi
- du -hs /scratch/EPIC
- ls -lrtha
retry:
max: 2
when:
- runner_system_failure
include:
- local: 'benchmarks/backgrounds/config.yml'
- local: 'benchmarks/backwards_ecal/config.yml'
- local: 'benchmarks/ecal_gaps/config.yml'
- local: 'benchmarks/tracking_detectors/config.yml'
- local: 'benchmarks/tracking_performances/config.yml'
- local: 'benchmarks/barrel_ecal/config.yml'
- local: 'benchmarks/barrel_hcal/config.yml'
- local: 'benchmarks/zdc/config.yml'
- local: 'benchmarks/zdc_lyso/config.yml'
- local: 'benchmarks/material_maps/config.yml'
- local: 'benchmarks/material_scan/config.yml'
- local: 'benchmarks/pid/config.yml'
- local: 'benchmarks/timing/config.yml'
- local: 'benchmarks/b0_tracker/config.yml'
deploy_results:
stage: deploy
needs:
- ["collect_results:zdc","collect_results:barrel_ecal","collect_results:barrel_hcal","collect_results:material_scan"]
script:
- echo "deploy results!"
- find results -print | sort | tee summary.txt
benchmarks:detector:success:
stage: status-report
dependencies: []
extends: .status
variables:
STATE: "success"
DESCRIPTION: "Succeeded!"
when: on_success
benchmarks:detector:failure:
stage: status-report
dependencies: []
extends: .status
variables:
STATE: "failure"
DESCRIPTION: "Failed!"
when: on_failure
pages:
stage: deploy
rules:
- if: '$CI_COMMIT_BRANCH == "master" && $CI_SERVER_HOST != "eicweb.phy.anl.gov"'
cache:
paths:
- node_modules/
image: node:latest
script:
- mkdir public && cp doc/main.html public/index.html
artifacts:
paths:
- public
Loading