-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: get rid of DRY-violating hard-coded energies (#264)
- Loading branch information
Showing
5 changed files
with
65 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ defaults: | |
|
||
env: | ||
dataset: ci_test | ||
rcdb_connection: mysql://[email protected]/rcdb # RCDB server available to runners | ||
# NOTE: if any of these versions are changed, update the POM files too | ||
java_version: 21 | ||
java_distribution: zulu | ||
|
@@ -143,6 +144,8 @@ jobs: | |
run: ls *.tar.zst | xargs -I{} tar xavf {} | ||
- name: tree | ||
run: tree | ||
- name: set RCDB connection # to one that's available to the runner | ||
run: echo RCDB_CONNECTION=${{env.rcdb_connection}} | tee -a $GITHUB_ENV | ||
- name: run monitoring | ||
run: bin/run-monitoring.sh -d ${{env.dataset}} --findhipo --series --focus-${{matrix.type}} validation_files | ||
- name: tree slurm | ||
|
@@ -195,6 +198,8 @@ jobs: | |
run: ls *.tar.zst | xargs -I{} tar xavf {} | ||
- name: tree | ||
run: tree | ||
- name: set RCDB connection # to one that's available to the runner | ||
run: echo RCDB_CONNECTION=${{env.rcdb_connection}} | tee -a $GITHUB_ENV | ||
- name: test monitoring swifjob | ||
run: | | ||
single_rundir=$(find validation_files -mindepth 1 -maxdepth 1 -type d | head -n1) | ||
|
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -u | ||
source $(dirname $0)/environ.sh | ||
|
||
# set class path to include groovy's classpath, for `java` calls | ||
export CLASSPATH="$JYPATH${CLASSPATH:+:${CLASSPATH}}" | ||
|
||
java org.jlab.clas.timeline.get_beam_energy $* |
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
2 changes: 2 additions & 0 deletions
2
bin/get-beam-energy.groovy → ...jlab/clas/timeline/get_beam_energy.groovy
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package org.jlab.clas.timeline | ||
|
||
// get beam energy from RCDB | ||
import org.rcdb.* | ||
|
||
|
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