webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions | Variables
web-platform-tests.check_stability Namespace Reference

Classes

class  Browser
 
class  Chrome
 
class  FilteredIO
 
class  Firefox
 
class  pwd
 
class  TravisFold
 

Functions

def do_delayed_imports ()
 
def setup_logging ()
 
def setup_action_filter ()
 
def replace_streams (capacity, warning_msg)
 
def get (url)
 
def call (args)
 
def get_git_cmd (repo_path)
 
def seekable (fileobj)
 
def untar (fileobj)
 
def unzip (fileobj)
 
def fetch_wpt_master (user)
 
def get_sha1 ()
 
def build_manifest ()
 
def install_wptrunner ()
 
def get_files_changed ()
 
def get_affected_testfiles (files_changed)
 
def wptrunner_args (root, files_changed, iterations, browser)
 
def setup_log_handler ()
 
def is_inconsistent (results_dict, iterations)
 
def err_string (results_dict, iterations)
 
def process_results (log, iterations)
 
def format_comment_title (product)
 
def markdown_adjust (s)
 
def table (headings, data, log)
 
def write_inconsistent (inconsistent, iterations)
 
def write_results (results, iterations, comment_pr)
 
def get_parser ()
 
def main ()
 

Variables

 BaseHandler = None
 
 LogActionFilter = None
 
 LogHandler = None
 
 LogLevelFilter = None
 
 StreamHandler = None
 
 TbplFormatter = None
 
 manifest = None
 
 reader = None
 
 wptcommandline = None
 
 wptrunner = None
 
 wpt_root = None
 
 wptrunner_root = None
 
 logger = None
 
def retcode = main()
 
 inner
 
 actions
 
 results
 

Function Documentation

◆ build_manifest()

def web-platform-tests.check_stability.build_manifest ( )
Build manifest of all files in web-platform-tests

◆ call()

def web-platform-tests.check_stability.call (   args)
Log terminal command, invoke it as a subprocess.

Returns a bytestring of the subprocess output if no error.

◆ do_delayed_imports()

def web-platform-tests.check_stability.do_delayed_imports ( )
Import and set up modules only needed if execution gets to this point.

◆ err_string()

def web-platform-tests.check_stability.err_string (   results_dict,
  iterations 
)
Create and return string with errors from test run.

◆ fetch_wpt_master()

def web-platform-tests.check_stability.fetch_wpt_master (   user)
Fetch the master branch via git.

◆ format_comment_title()

def web-platform-tests.check_stability.format_comment_title (   product)
Produce a Markdown-formatted string based on a given "product"--a string
containing a browser identifier optionally followed by a colon and a
release channel. (For example: "firefox" or "chrome:dev".) The generated
title string is used both to create new comments and to locate (and
subsequently update) previously-submitted comments.

◆ get()

def web-platform-tests.check_stability.get (   url)
Issue GET request to a given URL and return the response.

◆ get_affected_testfiles()

def web-platform-tests.check_stability.get_affected_testfiles (   files_changed)
Determine and return list of test files that reference changed files.

◆ get_files_changed()

def web-platform-tests.check_stability.get_files_changed ( )
Get and return files changed since current branch diverged from master.

◆ get_git_cmd()

def web-platform-tests.check_stability.get_git_cmd (   repo_path)
Create a function for invoking git commands as a subprocess.

◆ get_parser()

def web-platform-tests.check_stability.get_parser ( )
Create and return script-specific argument parser.

◆ get_sha1()

def web-platform-tests.check_stability.get_sha1 ( )
Get and return sha1 of current git branch HEAD commit.

◆ install_wptrunner()

def web-platform-tests.check_stability.install_wptrunner ( )
Clone and install wptrunner.

◆ is_inconsistent()

def web-platform-tests.check_stability.is_inconsistent (   results_dict,
  iterations 
)
Return whether or not a single test is inconsistent.

◆ main()

def web-platform-tests.check_stability.main ( void  )
Perform check_stability functionality and return exit code.

◆ markdown_adjust()

def web-platform-tests.check_stability.markdown_adjust (   s)
Escape problematic markdown sequences.

◆ process_results()

def web-platform-tests.check_stability.process_results (   log,
  iterations 
)
Process test log and return overall results and list of inconsistent tests.

◆ replace_streams()

def web-platform-tests.check_stability.replace_streams (   capacity,
  warning_msg 
)

◆ seekable()

def web-platform-tests.check_stability.seekable (   fileobj)
Attempt to use file.seek on given file, with fallbacks.

◆ setup_action_filter()

def web-platform-tests.check_stability.setup_action_filter ( )
Create global LogActionFilter class as part of deferred module load.

◆ setup_log_handler()

def web-platform-tests.check_stability.setup_log_handler ( )
Set up LogHandler class as part of deferred module load.

◆ setup_logging()

def web-platform-tests.check_stability.setup_logging ( )
Set up basic debug logger.

◆ table()

def web-platform-tests.check_stability.table (   headings,
  data,
  log 
)
Create and log data to specified logger in tabular format.

◆ untar()

def web-platform-tests.check_stability.untar (   fileobj)
Extract tar archive.

◆ unzip()

def web-platform-tests.check_stability.unzip (   fileobj)
Extract zip archive.

◆ wptrunner_args()

def web-platform-tests.check_stability.wptrunner_args (   root,
  files_changed,
  iterations,
  browser 
)
Derive and return arguments for wpt-runner.

◆ write_inconsistent()

def web-platform-tests.check_stability.write_inconsistent (   inconsistent,
  iterations 
)
Output inconsistent tests to logger.error.

◆ write_results()

def web-platform-tests.check_stability.write_results (   results,
  iterations,
  comment_pr 
)
Output all test results to logger.info.

Variable Documentation

◆ actions

web-platform-tests.check_stability.actions

◆ BaseHandler

web-platform-tests.check_stability.BaseHandler = None

◆ inner

web-platform-tests.check_stability.inner

◆ LogActionFilter

web-platform-tests.check_stability.LogActionFilter = None

◆ logger

web-platform-tests.check_stability.logger = None

◆ LogHandler

web-platform-tests.check_stability.LogHandler = None

◆ LogLevelFilter

web-platform-tests.check_stability.LogLevelFilter = None

◆ manifest

web-platform-tests.check_stability.manifest = None

◆ reader

web-platform-tests.check_stability.reader = None

◆ results

web-platform-tests.check_stability.results

◆ retcode

def web-platform-tests.check_stability.retcode = main()

◆ StreamHandler

web-platform-tests.check_stability.StreamHandler = None

◆ TbplFormatter

web-platform-tests.check_stability.TbplFormatter = None

◆ wpt_root

web-platform-tests.check_stability.wpt_root = None

◆ wptcommandline

web-platform-tests.check_stability.wptcommandline = None

◆ wptrunner

web-platform-tests.check_stability.wptrunner = None

◆ wptrunner_root

web-platform-tests.check_stability.wptrunner_root = None