Package schrodinger :: Package utils :: Module installation_check
[hide private]
[frames] | no frames]

Module installation_check

Classes [hide private]
  TestJobDJ
A flavor of JobDJ that takes a list of host entries (jobcontrol.Host objects) and lets the caller schedule exactly one job per entry.
  TestJob
A flavor of JobControlJob to be used with TestJobDJ.
Functions [hide private]
 
main()
The main "entry point" for the module, which gets run by the installation_check_run wrapper script.
 
cd(*args, **kwds)
 
get_host_entries(args)
Get all the host entries (jobcontrol.Host objects) from the hosts file.
 
run_test_jobs(entries, launch_dir='.', timeout=None)
Run testapp jobs using a list of host entries (jobcontrol.Host objects).
 
run_postmortem(jobids)
Run postmortem for a given set of jobids, log the results into the "postmortem.log"
 
test_pyqt()
Determine if we have correct libraries to load PyQt.
 
run_installation_check(output_dir='.')
Runs diagnostic commands and writes output in the directory specified.
 
queue_inst_file(queue_name, filename)
 
queue_orig_dir(queue_name)
 
queue_orig_file(queue_name, filename)
 
queue_config_diffs()
Return a collection of diffs of config and template queue files (original version from the installation vs what's in the user's queues dir)
 
queue_config_file_pairs()
Return a list of pairs of config/template queue files to be compared, and a list of warnings.
 
queue_config_files_diff(inst_filepath, orig_filepath)
Return a diff (list of strings) of two config/template queue files
 
log_banner(logger)
Log the basic information.
 
check_running_as_root(logger)
Produce a warning if we are running as root.
 
parse_args()
Parse cmdline arguments.
Variables [hide private]
  SCHRODINGER = '/scr/buildbot/savedbuilds/NB/2016-4/build-126'
  QUEUES_DIR = '/scr/buildbot/savedbuilds/NB/2016-4/build-126/qu...
  EXE = ''
  logger = log.get_output_logger("inst_check")
  dir_warning_template = '* WARNING: directory \'{}\' does not e...
  file_warning_template = '* WARNING: file \'{}\' does not exist\n'
  __package__ = 'schrodinger.utils'
Function Details [hide private]

cd(*args, **kwds)

 
Decorators:
  • @contextmanager

get_host_entries(args)

 

Get all the host entries (jobcontrol.Host objects) from the hosts file. If no -test arguments were given, return them all. If -test arguments were given, return entries whose names are given by those arguments and which are present in the hosts file (warn on absent ones)

run_test_jobs(entries, launch_dir='.', timeout=None)

 

Run testapp jobs using a list of host entries (jobcontrol.Host objects). Return a list of all jobids, succeeded and failed, that were run

test_pyqt()

 

Determine if we have correct libraries to load PyQt.

If test fails, raises RuntimeError with suggestion on how to fix.

run_installation_check(output_dir='.')

 

Runs diagnostic commands and writes output in the directory specified. Note: licadmin will write the license-info file in the current directory, not in output_dir. We may want to remove the output_dir argument and leave it to the caller to cd to the correct directory

queue_config_file_pairs()

 

Return a list of pairs of config/template queue files to be compared, and a list of warnings. A pair is one file from the user's installation and the original version of the same file (from the 'orig' subdirectory). A warning is produced whenever the 'orig' subdirectory is not found, or when a user's or original file that should be present, is not.


Variables Details [hide private]

QUEUES_DIR

Value:
'/scr/buildbot/savedbuilds/NB/2016-4/build-126/queues'

dir_warning_template

Value:
'''* WARNING: directory \'{}\' does not exist
'''