-
Notifications
You must be signed in to change notification settings - Fork 50
feat(ci): test run in celeritas #811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
wdconinc
wants to merge
19
commits into
main
Choose a base branch
from
celeritas
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
dc15774
feat(ci): test run in celeritas
wdconinc 3e2d68d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 977a30c
fix: dont use heredoc
wdconinc 5edefee
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 39a690d
fix: run celeritas loop over configs
wdconinc 7c85bfd
fix: celeritas single loop as matrix
wdconinc 77e7c0b
fix: celeritas matrix.detector_configs
wdconinc 8e05611
fix: convert_to_gdml /run/initialize before production cuts
wdconinc c88b228
fix: celeritas grep stuff
wdconinc e9200c7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4a77af6
fix: celeritas slot_diagnostic is not a valid key
wdconinc bff9978
fix: celeritas suppress with '/G4Exception-START/,+7d'
wdconinc 51cb79b
fix: celeritas local input file
wdconinc f88f58d
fix: celeritas xrdcp to local file
wdconinc f335630
fix: celeritas.json use detector_config
wdconinc 62fa27d
fix: celeritas set detector_config=${{matrix.detector_config}}
wdconinc d5a29d0
Change offload output file extension to .hepmc3
rahmans1 e834c5d
feat: celeritas upload artifact
wdconinc 15aba55
feat: sd_type = event_hit with ROOT output file
wdconinc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,29 @@ | ||
{ | ||
"geometry_file": "${detector_config}.gdml", | ||
"event_file": "pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.hepmc", | ||
"output_file": "pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.json", | ||
"physics_output_file": "pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.root", | ||
"offload_output_file": | ||
"pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.offloaded.hepmc3", | ||
"num_track_slots": 1024, | ||
"initializer_capacity": 32768, | ||
"secondary_stack_factor": 2, | ||
"physics_list": "celer_ftfp_bert", | ||
"field_type": "uniform", | ||
"field": [ | ||
0.0, | ||
0.0, | ||
1.7 | ||
], | ||
"field_options": { | ||
"minimum_step": 1e-06, | ||
"delta_chord": 0.025, | ||
"delta_intersection": 1e-05, | ||
"epsilon_step": 1e-05 | ||
}, | ||
"use_device": false, | ||
"sd_type": "event_hit", | ||
"step_diagnostic": false, | ||
"step_diagnostic_bins": 8, | ||
"slot_diagnostic_prefix": "slot-diag-cpu-" | ||
} |
This file contains hidden or 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,47 @@ | ||
name: Celeritas | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
detector_configs: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
celeritas: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
detector_config: ${{fromJson(inputs.detector_configs)}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: build-gcc-fast-eic-shell | ||
path: install/ | ||
- uses: cvmfs-contrib/github-action-cvmfs@v4 | ||
- uses: eic/run-cvmfs-osg-eic-shell@main | ||
with: | ||
platform-release: "jug_xl:nightly" | ||
network_types: "none" | ||
setup: install/bin/thisepic.sh | ||
run: | | ||
# convert to gdml, but with sensitive detectors included | ||
scripts/convert_to_gdml.py --compact $DETECTOR_PATH/${{matrix.detector_config}}.xml --output ${{matrix.detector_config}}.gdml | sed '/G4Exception-START/,+7d' | ||
# create celeritas input file from template | ||
export detector_config=${{matrix.detector_config}} | ||
cat .github/workflows/celeritas.json | envsubst > ${{matrix.detector_config}}.json | ||
# copy remote file | ||
xrdcp root://dtn-eic.jlab.org//work/eic2/EPIC/EVGEN/CI/pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.hepmc . | ||
# run celeritas | ||
celer-g4 ${{matrix.detector_config}}.json | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: celeritas_${{matrix.detector_config}}_pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.json | ||
path: "pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.json" | ||
if-no-files-found: error | ||
wdconinc marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: celeritas_${{matrix.detector_config}}_pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.root | ||
path: "pythia8NCDIS_5x41_minQ2=1_beamEffects_xAngle=-0.025_hiDiv_1_20ev.root" | ||
if-no-files-found: error |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.