Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 2 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
# https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Coatjava-CI

on:
pull_request:
push:
branches: [ development ]
tags: [ '*' ]
schedule:
# NOTE: From what I read, the email notification for cron can only go
# to the last committer of this file!!!!!
- cron: '0 22 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -26,7 +20,7 @@ env:
java_distribution: zulu
javadoc_version: 25 # newer than `JAVA_VERSION` for better javadoc
groovy_version: 4.x
CCDB_CONNECTION: 'sqlite:////cvmfs/oasis.opensciencegrid.org/jlab/hallb/clas12/sw/noarch/data/ccdb/ccdb_latest.sqlite'
CCDB_CONNECTION: 'sqlite:///${{ github.workspace }}/coatjava/etc/data/sqlite/ccdb.sqlite'
nthreads: 1

jobs:
Expand Down Expand Up @@ -72,12 +66,6 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.java_distribution }}
cache: maven
- name: setup cvmfs
uses: cvmfs-contrib/github-action-cvmfs@v5
with:
cvmfs_repositories: 'oasis.opensciencegrid.org'
- name: cvmfs
run: ls /cvmfs/oasis.opensciencegrid.org/jlab/hallb/clas12/sw/noarch/data/ccdb/ccdb_latest.sqlite
- name: bump version to tag if tag trigger
if: ${{ github.ref_type == 'tag' }}
run: libexec/version-bump.sh ${{ github.ref_name }}
Expand Down Expand Up @@ -108,12 +96,6 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.java_distribution }}
cache: maven
- name: setup cvmfs
uses: cvmfs-contrib/github-action-cvmfs@v5
with:
cvmfs_repositories: 'oasis.opensciencegrid.org'
- name: cvmfs
run: ls /cvmfs/oasis.opensciencegrid.org/jlab/hallb/clas12/sw/noarch/data/ccdb/ccdb_latest.sqlite
- name: bump version to tag if tag trigger
if: ${{ github.ref_type == 'tag' }}
run: libexec/version-bump.sh ${{ github.ref_name }}
Expand Down Expand Up @@ -160,9 +142,6 @@ jobs:
java-version: ${{ matrix.JAVA_VERSION }}
distribution: ${{ env.java_distribution }}
cache: maven
- uses: cvmfs-contrib/github-action-cvmfs@v5
with:
cvmfs_repositories: 'oasis.opensciencegrid.org'
- name: unit tests
run: ./build-coatjava.sh --lfs --unittests --no-progress -T${{ env.nthreads }}
- name: collect jacoco report
Expand All @@ -187,9 +166,6 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.java_distribution }}
cache: maven
- uses: cvmfs-contrib/github-action-cvmfs@v5
with:
cvmfs_repositories: 'oasis.opensciencegrid.org'
- uses: actions/download-artifact@v8
with:
name: build_ubuntu-latest
Expand All @@ -209,9 +185,6 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.java_distribution }}
cache: maven
- uses: cvmfs-contrib/github-action-cvmfs@v5
with:
cvmfs_repositories: 'oasis.opensciencegrid.org'
- uses: actions/download-artifact@v8
with:
name: build_ubuntu-latest
Expand Down Expand Up @@ -241,10 +214,6 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.java_distribution }}
cache: maven
- name: setup cvmfs
uses: cvmfs-contrib/github-action-cvmfs@v5
with:
cvmfs_repositories: 'oasis.opensciencegrid.org'
- uses: actions/download-artifact@v8
with:
name: build_ubuntu-latest
Expand All @@ -256,6 +225,7 @@ jobs:
- name: untar build
run: |
tar xzvf clara.tar.gz
tar xzvf coatjava.tar.gz
- name: run test
run: |
ls -lhtr
Expand Down Expand Up @@ -298,9 +268,6 @@ jobs:
- uses: actions/download-artifact@v8
with:
name: build_${{ matrix.runner }}
- uses: cvmfs-contrib/github-action-cvmfs@v5
with:
cvmfs_repositories: 'oasis.opensciencegrid.org'
- name: untar build
run: |
tar xzvf coatjava.tar.gz
Expand Down Expand Up @@ -329,9 +296,6 @@ jobs:
- uses: actions/download-artifact@v8
with:
name: build_macos
- uses: cvmfs-contrib/github-action-cvmfs@v5
with:
cvmfs_repositories: 'oasis.opensciencegrid.org'
- name: untar build
run: |
tar xzvf coatjava.tar.gz
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "etc/nnet"]
path = etc/data/nnet
url = https://code.jlab.org/hallb/clas12/coatjava/networks.git
[submodule "etc/data/sqlite"]
path = etc/data/sqlite
url = https://code.jlab.org/hallb/clas12/ccdbrcdb-sqlite
16 changes: 16 additions & 0 deletions build-coatjava.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ cleanBuild=false
runSpotBugs=false
downloadMaps=true
downloadNets=true
downloadSqlites=true
runUnitTests=false
dataRetrieval=lfs
installClara=false
Expand Down Expand Up @@ -40,6 +41,7 @@ DATA RETRIEVAL OPTIONS
Additional options
--nomaps do not download/overwrite field maps
--nonets do not download/overwrite neural networks
--nosqlites do not download/overwrite SQLite files for CCDB/RCDB
--wipe remove retrieved data

TESTING OPTIONS
Expand All @@ -66,6 +68,7 @@ do
-n) runSpotBugs=false ;;
--nomaps) downloadMaps=false ;;
--nonets) downloadNets=false ;;
--nosqlites) downloadSqlites=false ;;
--unittests) runUnitTests=true ;;
--clean) cleanBuild=true ;;
--depana)
Expand Down Expand Up @@ -281,6 +284,19 @@ if $downloadNets; then
esac
fi

# download neural networks
if $downloadSqlites; then
case $dataRetrieval in
lfs)
notify_retrieval 'ccdb/rcdb SQLite files' 'lfs'
download_lfs etc/data/sqlite
;;
*)
echo 'WARNING: sqlites not downloaded; run with `--help` for guidance' >&2
;;
esac
fi

# download validation data
if $downloadData; then
case $dataRetrieval in
Expand Down
1 change: 1 addition & 0 deletions etc/data/sqlite
Submodule sqlite added at 1f4f52
Loading