Giter Site home page Giter Site logo

Comments (2)

shreyb avatar shreyb commented on August 14, 2024

Finished code changes. Will test, then submit PR.

from jobsub_lite.

shreyb avatar shreyb commented on August 14, 2024

Testing passed. Ready to open PR.

Ran test with new code, and it worked:

Tests

Run with no singularity image specified

Expected outcome: use default singularity image (/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:osg3.6)

$ ./jobsub_lite/bin/jobsub_submit -G mu2e   --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC,OFFSITE --devserver file:///home/sbhat/TestJobs/test_env.sh

...after job ran:

$ grep SINGULARITY *.out
[FERMIHTC-SINGULARITY]: INFO -- SingularityImage classAd detected
[FERMIHTC-SINGULARITY]: INFO -- Attempting to run job in /cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:osg3.6
[FERMIHTC-SINGULARITY]: INFO -- Running /usr/bin/singularity exec --pid --ipc --contain --bind /cvmfs --bind /etc/hosts --home /storage/local/data1/condor/execute/dir_10427:/srv --pwd /srv /cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:osg3.6 ./condor_exec.exe
SINGULARITY_APPNAME=
FERMIHTC_SINGULARITY_PWD=/srv
FERMIHTC_SINGULARITY_ARGS=--pid --ipc --contain
SINGULARITY_NAME=fnal-wn-sl7:osg3.6
FERMIHTC_SINGULARITY_BIND=/cvmfs /etc/hosts
FERMIHTC_SINGULARITY_CMD=exec
FERMIHTC_SINGULARITY_BIN=/usr/bin/singularity
SINGULARITY_CONTAINER=/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:osg3.6

Pass.

Run with --no-singularity

Expected outcome: Job should run on bare metal (or if on Fermigrid or other similar site, in Docker container, but not singularity)

$ ./jobsub_lite/bin/jobsub_submit -G mu2e   --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC,OFFSITE --no-singularity --devserver file:///home/sbhat/TestJobs/test_env.sh

...after job ran:

$ grep SINGULARITY *.out
[FERMIHTC-SINGULARITY]: INFO -- No Singulariy image specified
[FERMIHTC-SINGULARITY]: INFO -- Running job on the host machine
[FERMIHTC-SINGULARITY]: INFO -- Running ./condor_exec.exe
FERMIHTC_SINGULARITY_PWD=/srv
FERMIHTC_SINGULARITY_ARGS=--pid --ipc --contain
FERMIHTC_SINGULARITY_BIND=/cvmfs /etc/hosts
FERMIHTC_SINGULARITY_CMD=exec
FERMIHTC_SINGULARITY_BIN=/usr/bin/singularity

Pass.

Run with non-default singularity image specified

Expected outcome: Job should run in specified singularity image (/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:osg3.5)

$ ./jobsub_lite/bin/jobsub_submit -G mu2e   --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC,OFFSITE --singularity-image="/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:osg3.5"  --devserver file:///home/sbhat/TestJobs/test_env.sh

...after job ran:

$ grep SINGULARITY *.out
[FERMIHTC-SINGULARITY]: INFO -- SingularityImage classAd detected
[FERMIHTC-SINGULARITY]: INFO -- Attempting to run job in /cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:osg3.5
[FERMIHTC-SINGULARITY]: INFO -- Running /usr/bin/singularity exec --pid --ipc --contain --bind /cvmfs --bind /etc/hosts --home /storage/local/data1/condor/execute/dir_2074:/srv --pwd /srv /cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:osg3.5 ./condor_exec.exe
SINGULARITY_APPNAME=
FERMIHTC_SINGULARITY_PWD=/srv
FERMIHTC_SINGULARITY_ARGS=--pid --ipc --contain
SINGULARITY_NAME=fnal-wn-sl7:osg3.5
FERMIHTC_SINGULARITY_BIND=/cvmfs /etc/hosts
FERMIHTC_SINGULARITY_CMD=exec
FERMIHTC_SINGULARITY_BIN=/usr/bin/singularity
SINGULARITY_CONTAINER=/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:osg3.5

Pass.

Run with latest-tagged singularity image specified

Note: This is kind of a repeat of the last test, but how we want to run in production

Expected outcome: Job should run in specified singularity container (/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest)

$ ./jobsub_lite/bin/jobsub_submit -G mu2e   --resource-provides=usage_model=DEDICATED,OPPORTUNISTIC,OFFSITE --singularity-image="/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest"  --devserver file:///home/sbhat/TestJobs/test_env.sh

...after job ran:

$ grep SINGULARITY *.out
[FERMIHTC-SINGULARITY]: INFO -- SingularityImage classAd detected
[FERMIHTC-SINGULARITY]: INFO -- Attempting to run job in /cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest
[FERMIHTC-SINGULARITY]: INFO -- Running /usr/bin/singularity exec --pid --ipc --contain --bind /cvmfs --bind /etc/hosts --home /storage/local/data1/condor/execute/dir_2075:/srv --pwd /srv /cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest ./condor_exec.exe
SINGULARITY_APPNAME=
FERMIHTC_SINGULARITY_PWD=/srv
FERMIHTC_SINGULARITY_ARGS=--pid --ipc --contain
SINGULARITY_NAME=fnal-wn-sl7:latest
FERMIHTC_SINGULARITY_BIND=/cvmfs /etc/hosts
FERMIHTC_SINGULARITY_CMD=exec
FERMIHTC_SINGULARITY_BIN=/usr/bin/singularity
SINGULARITY_CONTAINER=/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-wn-sl7:latest

Pass.

from jobsub_lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.