Comments (2)
Finished code changes. Will test, then submit PR.
from jobsub_lite.
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)
- Request: quota messages should be disabled by default, but show up in --debug mode
- Start planning for transition to EL9 Apptainer default container HOT 6
- Migrate away from UPS
- Add a trace for jobsub_cmd commands
- If a disk quota check errors out, we shouldn't fail the submission HOT 7
- Reimplement disk quota checks using os.statvfs()
- workdir is not TMPDIR HOT 4
- wasteful re-compression HOT 5
- New condor_vault_storer version HOT 3
- Replace os.system call in tarfile creation with subprocess function
- the GZIP=-n in tarfile creation is giving a warning on AL9
- jobsub_cleanup_cred doesn't work for non-Analysis users
- Handle multiple set of job logs for restarted jobs
- If spack can't find an IFDH version, just use current HOT 4
- Organize current tests into integration and true unit tests
- Try to see if we can mock out some of our unit tests that really aren't
- (non-)creation of .empy_file in wrapper can mask underlying errors
- Log web sandbox creation works only with proxy HOT 3
- Fail getting proxy if cigetcert fails for any reason
- Remove POMS clause in jobsub_lite version of condor_vault_storer script since POMS will no longer support analysis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jobsub_lite.