Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias identifier Import alias identifier Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str For NameStore NameLoad body For NameStore SubscriptLoad NameLoad Index NameLoad body If Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num AugAssignAdd SubscriptStore NameLoad Index NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad For NameStore SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num For NameStore NameLoad body If CompareIs SubscriptLoad NameLoad Index NameLoad NameLoad body AugAssignAdd NameStore Num orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num AugAssignAdd SubscriptStore NameLoad Index NameLoad Num Print BinOpMod Str BinOpMult BinOpDiv Call NameLoad NameLoad Call NameLoad NameLoad Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Num keyword NameLoad Print Str For NameStore NameLoad body Print BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIn Str NameLoad body Return SubscriptLoad NameLoad Index Str orelse Return Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str If CompareIn Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str If CompareIn Str NameLoad body For NameStore SubscriptLoad NameLoad Index Str body AugAssignAdd SubscriptStore NameLoad Index NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Dict For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpMult BinOpDiv Call NameLoad NameLoad Call NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str Dict Str Str Str Str Str Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Print Str Print Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults UnaryOpUSub SubscriptLoad SubscriptLoad NameLoad Index Num Index Str For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Print BinOpMod Str TupleLoad NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr If NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index Num Print Str For NameStore SubscriptLoad NameLoad Index Str body Print BinOpMod Str TupleLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Print Str For NameStore SubscriptLoad NameLoad Index Str body Print BinOpMod Str TupleLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Print decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Print BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print Str For TupleStore NameStore NameStore NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse N/A collections N/A logging N/A operator N/A os N/A re N/A time launchpadlib launchpad N/A elastic_recheck.elasticRecheck er N/A elastic_recheck.results er_results N/A LPCACHEDIR N/A N/A N/A os path expanduser ~/.launchpadlib/cache get_options N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Query for existing recheck bugs. N/A N/A N/A parser add_argument --dir -d help Queries Directory default queries N/A N/A N/A parser add_argument --lp -l help Query Launchpad type bool default False N/A N/A N/A parser add_argument --rate -r help Classification rate type bool default True N/A N/A N/A parser parse_args N/A all_fails N/A N/A classifier N/A N/A N/A Find all the fails in the integrated gate.

    This attempts to find all the build jobs in the integrated gate
    so we can figure out how good we are doing on total classification.
     N/A all_fails N/A N/A query filename:"console.html" AND message:"Finished: FAILURE" AND build_queue:"gate" N/A results N/A N/A classifier hits_by_query query size 30000 N/A facets N/A N/A er_results FacetSet N/A N/A N/A facets detect_facets results N/A build_uuid N/A build facets N/A N/A result N/A facets N/A build N/A N/A N/A N/A re search (^openstack/|devstack|grenade) N/A result project N/A N/A N/A all_fails N/A N/A %s.%s N/A build N/A result build_name False N/A all_fails N/A num_fails_per_build_name N/A N/A all_jobs N/A N/A N/A counts N/A N/A collections defaultdict int N/A f all_jobs N/A N/A N/A build job N/A N/A f split . 1 N/A N/A counts N/A job 1 N/A counts N/A classifying_rate N/A N/A fails data N/A N/A N/A Builds and prints the classification rate.

    It's important to know how good a job we are doing, so this
    tool runs through all the failures we've got and builds the
    classification rate. For every failure in the gate queue did
    we find a match for it.
     N/A bugnum data N/A N/A bug N/A data N/A bugnum N/A job N/A bug N/A failed_jobs N/A N/A N/A fails N/A job True N/A total N/A len N/A N/A fails keys N/A bad_jobs N/A N/A collections defaultdict int N/A count 0 N/A f fails N/A N/A N/A N/A fails N/A f True N/A N/A count 1 N/A N/A N/A build job N/A N/A f split . 1 N/A N/A bad_jobs N/A job 1 N/A N/A Classification percentage: %2.2f%% N/A N/A N/A float count N/A float total 100.0 N/A sort N/A sorted N/A N/A bad_jobs iteritems key N/A N/A operator itemgetter 1 reverse True N/A Job fails with most unclassified errors N/A s sort N/A N/A N/A   %3s : %s N/A N/A s N/A 1 N/A s N/A 0 N/A _status_count N/A N/A results N/A N/A N/A counts N/A N/A facets N/A N/A er_results FacetSet N/A N/A N/A facets detect_facets results N/A build_status build_uuid N/A key facets N/A N/A N/A counts N/A key N/A len N/A facets N/A key N/A counts N/A _failure_count N/A N/A hits N/A N/A N/A N/A FAILURE hits N/A N/A N/A hits N/A FAILURE N/A N/A 0 N/A _failed_jobs N/A N/A results N/A N/A N/A failed_jobs N/A N/A facets N/A N/A er_results FacetSet N/A N/A N/A facets detect_facets results N/A build_status build_uuid N/A N/A FAILURE facets N/A N/A build N/A facets N/A FAILURE N/A N/A result N/A N/A facets N/A FAILURE N/A build N/A N/A N/A N/A failed_jobs append N/A %s.%s N/A build N/A result build_name N/A failed_jobs N/A _count_fails_per_build_name N/A N/A hits N/A N/A N/A facets N/A N/A er_results FacetSet N/A counts N/A N/A collections defaultdict int N/A N/A N/A facets detect_facets hits N/A build_status build_name build_uuid N/A N/A FAILURE facets N/A N/A build_name N/A facets N/A FAILURE N/A N/A N/A counts N/A build_name 1 N/A counts N/A _failure_percentage N/A N/A hits fails N/A N/A N/A total_fails_per_build_name N/A num_fails_per_build_name fails N/A fails_per_build_name N/A _count_fails_per_build_name hits N/A per N/A N/A build fails_per_build_name N/A N/A this_job N/A fails_per_build_name N/A build N/A N/A build total_fails_per_build_name N/A N/A total N/A total_fails_per_build_name N/A build N/A N/A per N/A build N/A N/A N/A float this_job N/A float total 100.0 N/A per N/A collect_metrics N/A N/A classifier fails N/A N/A N/A data N/A N/A q N/A classifier queries N/A N/A start N/A N/A time time N/A results N/A N/A classifier hits_by_query N/A q N/A query size 30000 N/A log N/A N/A logging getLogger recheckwatchbot N/A N/A N/A log debug N/A Took %d seconds to run (uncached) query for bug %s N/A N/A N/A N/A time time start N/A q N/A bug N/A hits N/A _status_count results N/A N/A data N/A N/A q N/A bug N/A fails hits percentages query failed_jobs N/A _failure_count hits hits N/A _failure_percentage results fails N/A q N/A query N/A _failed_jobs results N/A data N/A print_metrics N/A N/A data with_lp N/A False N/A N/A Elastic recheck known issues N/A N/A sorted_data N/A sorted N/A N/A data iteritems key N/A N/A N/A x N/A N/A N/A N/A x N/A 1 N/A fails N/A d sorted_data N/A N/A bug N/A d N/A 0 N/A data N/A d N/A 1 N/A N/A Bug: https://bugs.launchpad.net/bugs/%s => %s N/A bug N/A N/A N/A data N/A query rstrip N/A with_lp N/A N/A N/A get_launchpad_bug N/A d N/A 0 N/A Hits N/A s N/A data N/A hits N/A N/A N/A   %s: %s N/A s N/A N/A data N/A hits N/A s N/A Percentage of Gate Queue Job failures triggered by this bug N/A s N/A data N/A percentages N/A N/A N/A   %s: %2.2f%% N/A s N/A N/A data N/A percentages N/A s N/A N/A get_launchpad_bug N/A N/A bug N/A N/A N/A lp N/A N/A N/A launchpad Launchpad login_anonymously grabbing bugs production LPCACHEDIR N/A lp_bug N/A N/A lp bugs N/A bug N/A N/A Title: %s N/A lp_bug title N/A targets N/A map N/A N/A N/A x N/A N/A N/A x bug_target_name N/A x status N/A lp_bug bug_tasks N/A Project: Status N/A N/A target status targets N/A N/A N/A   %s: %s N/A target status N/A main N/A N/A N/A N/A N/A opts N/A get_options N/A classifier N/A N/A er Classifier N/A opts dir N/A fails N/A all_fails classifier N/A data N/A collect_metrics classifier fails N/A N/A print_metrics data with_lp N/A opts lp N/A N/A opts rate N/A N/A N/A classifying_rate fails data N/A N/A N/A __name__ __main__ N/A N/A N/A main