Skip to content

Commit 8af54a9

Browse files
Sakib Rahmanclaude
andcommitted
Replace DEBUG with INFO and print all relevant variables in nevents/timings
- Add INFO logging to .nevents and .timings templates showing all variables - Replace DEBUG with INFO in determine_timing.sh - Remove redundant exports from determine_timing.sh (variables come from CI) - Print EBEAM, PBEAM, and NEVENTS_PER_TEST in addition to existing variables 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 644c051 commit 8af54a9

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

.gitlab-ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ stages:
3030
- export DETECTOR_CONFIG="${DETECTOR_CONFIG_OVERRIDE:-${DETECTOR_CONFIG}}"
3131
- export DETECTOR_VERSION="${DETECTOR_VERSION_OVERRIDE:-${DETECTOR_VERSION}}"
3232
- export RESULTS_BASE="results/${CONTAINER_NAME}/${IMAGE_TAG}/${DETECTOR_CONFIG}/${DETECTOR_VERSION}"
33+
- echo "INFO [nevents] - CONTAINER_NAME = ${CONTAINER_NAME}"
34+
- echo "INFO [nevents] - IMAGE_TAG = ${IMAGE_TAG}"
35+
- echo "INFO [nevents] - DETECTOR_CONFIG = ${DETECTOR_CONFIG}"
36+
- echo "INFO [nevents] - DETECTOR_VERSION = ${DETECTOR_VERSION}"
37+
- echo "INFO [nevents] - RESULTS_BASE = ${RESULTS_BASE}"
3338
- mkdir -p $(dirname ${RESULTS_BASE}/datasets/glob/$DATA)
3439
- grep -v "^\#" $DATA | parallel scripts/glob.sh ${RESULTS_BASE}/datasets/glob/$DATA {}
3540
- sort -o ${RESULTS_BASE}/datasets/glob/$DATA ${RESULTS_BASE}/datasets/glob/$DATA
@@ -47,9 +52,14 @@ stages:
4752
- export PBEAM="${PBEAM_OVERRIDE:-${PBEAM}}"
4853
- export NEVENTS_PER_TEST="${NEVENTS_PER_TEST_OVERRIDE:-${NEVENTS_PER_TEST}}"
4954
- export RESULTS_BASE="results/${CONTAINER_NAME}/${IMAGE_TAG}/${DETECTOR_CONFIG}/${DETECTOR_VERSION}"
50-
- echo "DEBUG - DETECTOR_CONFIG from CI = ${DETECTOR_CONFIG}"
51-
- echo "DEBUG - DETECTOR_VERSION from CI = ${DETECTOR_VERSION}"
52-
- echo "DEBUG - RESULTS_BASE = ${RESULTS_BASE}"
55+
- echo "INFO [timings] - CONTAINER_NAME = ${CONTAINER_NAME}"
56+
- echo "INFO [timings] - IMAGE_TAG = ${IMAGE_TAG}"
57+
- echo "INFO [timings] - DETECTOR_CONFIG = ${DETECTOR_CONFIG}"
58+
- echo "INFO [timings] - DETECTOR_VERSION = ${DETECTOR_VERSION}"
59+
- echo "INFO [timings] - EBEAM = ${EBEAM}"
60+
- echo "INFO [timings] - PBEAM = ${PBEAM}"
61+
- echo "INFO [timings] - NEVENTS_PER_TEST = ${NEVENTS_PER_TEST}"
62+
- echo "INFO [timings] - RESULTS_BASE = ${RESULTS_BASE}"
5363
- mkdir -p $(dirname ${RESULTS_BASE}/datasets/timings/$DATA)
5464
# Use sed '1!d1' instead of head -n 1 to avoid pipefail issues
5565
- grep -v "^\#" ${RESULTS_BASE}/datasets/nevents/$DATA | sed '1!d' | parallel scripts/determine_timing.sh ${RESULTS_BASE}/datasets/timings/$DATA {}

scripts/determine_timing.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,12 @@ mkdir -p ${dir}
3232
logfile=${RESULTS_BASE:-results}/logs/${file}.out
3333
mkdir -p $(dirname ${logfile})
3434

35-
# Export detector configuration if provided
36-
export DETECTOR_CONFIG="${DETECTOR_CONFIG:-epic_craterlake}"
37-
export DETECTOR_VERSION="${DETECTOR_VERSION:-main}"
38-
39-
echo "DEBUG [determine_timing.sh] - DETECTOR_CONFIG = ${DETECTOR_CONFIG}"
40-
echo "DEBUG [determine_timing.sh] - DETECTOR_VERSION = ${DETECTOR_VERSION}"
41-
echo "DEBUG [determine_timing.sh] - RESULTS_BASE = ${RESULTS_BASE:-results}"
35+
echo "INFO [determine_timing.sh] - DETECTOR_CONFIG = ${DETECTOR_CONFIG:-epic_craterlake}"
36+
echo "INFO [determine_timing.sh] - DETECTOR_VERSION = ${DETECTOR_VERSION:-main}"
37+
echo "INFO [determine_timing.sh] - EBEAM = ${EBEAM:-18}"
38+
echo "INFO [determine_timing.sh] - PBEAM = ${PBEAM:-275}"
39+
echo "INFO [determine_timing.sh] - NEVENTS_PER_TEST = ${n_events_test}"
40+
echo "INFO [determine_timing.sh] - RESULTS_BASE = ${RESULTS_BASE:-results}"
4241

4342
# time for 1 event (first)
4443
t1=$(date +%s.%N)

0 commit comments

Comments
 (0)