Package schrodinger :: Package test :: Package scival :: Module run
[hide private]
[frames] | no frames]

Module run

Client-side methods for adding entries into the Scientific Validation's run application. This includes the Host and Build models.

Classes [hide private]
  BuildList
  CustomBuild
Functions [hide private]
 
environment_get(schrodinger, args, label)
Return the ID of the environment with the same description and build_id.
 
environment_add(description, build_id, label)
Create a new Environment and return the environment's ID.
 
host_get(hostname)
Return the ID of the job host matching the provided hostname.
 
host_add(hostname)
Return the ID of the job host matching the provided hostname.
 
_get_build_str(build_obj, ignore=[])
Private function to print the description of a build
 
_raise_build_get_error(builds, pre_message, ignore=[])
 
build_list(number=5)
List the number most recent builds.
 
build_get(path, build_id=None)
Return the build matching the provided path.
 
build_add(build_params)
Add a build to the Builds model.
 
get_mmshare_directory(schrodinger_path, custom=False)
Find the mmshare directory in a given SCHRODINGER directory.
 
get_standard_build_params(path)
Given a build path, get details about that build.
 
standard_build_add(path)
Add a standard build to the Builds model.
 
add_custom_build_parser(subparser)
Add the parser for adding custom builds to a subparser.
 
mmshare_type(value)
A type for the argparser that requires a 5-digit integer
Variables [hide private]
  logger = log.get_logger("scivalclient.run")
  USERNAME = 'buildbot'
  RUNNING = 'R'
  FAILED = 'F'
  SUCCEEDED = 'S'
  ENVIRON_URL = 'https://validation.schrodinger.com/api/v0.8/run...
  BUILDS_URL = 'https://validation.schrodinger.com/api/v0.8/run/...
  HOSTS_URL = 'https://validation.schrodinger.com/api/v0.8/run/h...
  CUSTOM_BUILD_TYPE = 'Custom'
  __package__ = 'schrodinger.test.scival'
Function Details [hide private]

build_get(path, build_id=None)

 

Return the build matching the provided path.

If an existing build can't be found, it will automatically add a new path as long as it conforms to one of our standard build locations and its version and build type can be determined.

Parameters:
  • build_id - Only the run command has this param, not the build command. It is used to specify a custom build to use.

get_standard_build_params(path)

 

Given a build path, get details about that build. The dict returned will have the following keywords:

  • description ( General description, i.e. "Suite 2011, build12" )
  • mmshare_version ( the mmshare version )
  • created_date ( timestamp of the last modification to mmshare dir )
  • build_type ( OB, NB or DB )

Variables Details [hide private]

ENVIRON_URL

Value:
'https://validation.schrodinger.com/api/v0.8/run/environment/'

BUILDS_URL

Value:
'https://validation.schrodinger.com/api/v0.8/run/build/'

HOSTS_URL

Value:
'https://validation.schrodinger.com/api/v0.8/run/host/'