Skip to content

Commit

Permalink
ci: Add test for FST chain with st_fwd stream data (#421)
Browse files Browse the repository at this point in the history
See #412 for motivation
  • Loading branch information
plexoos authored Oct 27, 2022
1 parent b1f58b3 commit 10774c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
needs: build
strategy:
matrix:
test_id: [10, 11, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 59, 60, 76, 77, 78, 90, 91, 92, 102, 103, 119, 120, 121, 122]
test_id: [10, 11, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 59, 60, 76, 77, 78, 90, 91, 92, 102, 103, 119, 120, 121, 122, 123]
compiler: [gcc485, gcc11]
env:
STARENV: root5-${{ matrix.compiler }}
Expand All @@ -49,7 +49,7 @@ jobs:
path: /tmp

- run: docker load --input /tmp/star-sw-${{ env.STARENV }}.tar
- run: docker run --name star-test-data --volume /star ghcr.io/star-bnl/star-test-data:v5
- run: docker run --name star-test-data --volume /star ghcr.io/star-bnl/star-test-data:v6
- run: |
TEST_CMD=$(docker run --rm ghcr.io/star-bnl/star-sw-${{ env.STARENV }} tests/executest.py -c ${{ matrix.test_id }})
# Workaround https://sft.its.cern.ch/jira/browse/ROOT-7660 in ROOT 5 by checking the output log
Expand All @@ -73,7 +73,7 @@ jobs:
path: /tmp

- run: docker load --input /tmp/star-sw-${{ env.STARENV }}.tar
- run: docker run --name star-test-data --volume /star ghcr.io/star-bnl/star-test-data:v5
- run: docker run --name star-test-data --volume /star ghcr.io/star-bnl/star-test-data:v6
- run: |
TEST_FILE=$(echo "$(docker run --rm ghcr.io/star-bnl/star-sw-${{ env.STARENV }} tests/executest.py ${{ matrix.test_id }} -a fullpath)" | sed -E 's/\.(daq|fzd)$/.event.root/')
TEST_CMD="root4star -b -q -l 'StRoot/macros/analysis/doEvents.C(100, \"$TEST_FILE\")'"
Expand All @@ -97,7 +97,7 @@ jobs:
path: /tmp

- run: docker load --input /tmp/star-sw-${{ env.STARENV }}.tar
- run: docker run --name star-test-data --volume /star ghcr.io/star-bnl/star-test-data:v5
- run: docker run --name star-test-data --volume /star ghcr.io/star-bnl/star-test-data:v6
- run: |
TEST_FILE=$(echo "$(docker run --rm ghcr.io/star-bnl/star-sw-${{ env.STARENV }} tests/executest.py ${{ matrix.test_id }} -a fullpath)" | sed -E 's/\.(daq|fzd)$/.event.root/')
TEST_CMD="root4star -b -q -l 'StRoot/macros/analysis/find_vertex.C(\"$TEST_FILE\")'"
Expand All @@ -120,7 +120,7 @@ jobs:
path: /tmp

- run: docker load --input /tmp/star-sw-${{ env.STARENV }}.tar
- run: docker run --name star-test-data --volume /star ghcr.io/star-bnl/star-test-data:v5
- run: docker run --name star-test-data --volume /star ghcr.io/star-bnl/star-test-data:v6
- run: |
TEST_CMD=$(docker run --rm ghcr.io/star-bnl/star-sw-${{ env.STARENV }} tests/executest.py -c ${{ matrix.test_id }})
docker run --volumes-from star-test-data ghcr.io/star-bnl/star-sw-${{ env.STARENV }} \
Expand Down
9 changes: 9 additions & 0 deletions tests/joblist.json
Original file line number Diff line number Diff line change
Expand Up @@ -1096,5 +1096,14 @@
"inppath": "/star/rcf/test/daq/2022/010/23010027",
"outpath": "/star/rcf/test/dev/daq_sl302.stica_opt/${thisday}/year_2022/production_pp500_2022_64bit",
"nevents": "1000"
},
{
"jobid": "123",
"descr": "Test for StSpinPool/StFcsPi0FinderForEcal (PR #412)",
"chopts": "pp2022,StiCA,BEmcChkStat,ftt,-picowrite,-hitfilt,-evout",
"inpfile": "st_fwd_23040001_raw_0000003.daq",
"inppath": "/star/rcf/test/daq/2022/040/23040001",
"outpath": "",
"nevents": "50"
}
]

0 comments on commit 10774c5

Please sign in to comment.