[
https://issues.apache.org/jira/browse/BEAM-4065?focusedWorklogId=98901&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-98901
]
ASF GitHub Bot logged work on BEAM-4065:
----------------------------------------
Author: ASF GitHub Bot
Created on: 07/May/18 07:19
Start Date: 07/May/18 07:19
Worklog Time Spent: 10m
Work Description: chamikaramj commented on a change in pull request
#5180: [BEAM-4065] Basic performance tests analysis added.
URL: https://github.com/apache/beam/pull/5180#discussion_r186341903
##########
File path: .test-infra/jenkins/verify_performance_test_results.py
##########
@@ -0,0 +1,259 @@
+#!/usr/bin/env python
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# This script performs basic analytic of performance tests results.
+# It operates in two modes:
+# --mode=report - In this mode script iterates over list of BigQuery tables
and
+# analyses the data. This mode is intended to be run on a regulars basis,
e.g. daily.
+# Report will contain average tests execution time of given metric, its
comparison with
+# with average calculated from historical data, recent standard deviation
and standard
+# deviation calculated based on historical data.
+# --mode=validation - In this mode script will analyse single BigQuery table
and check
+# recent results.
+#
+# Other parameters are described in script. Notification is optional
parameter.
+# --send_notification - if present, script will send notification to slack
channel.
+# Requires setting env variable SLACK_WEBOOK_URL which value could be
obtained by
+# creating incoming webhook on Slack.
+#
+# Example script usage:
+# verify_performance_test_results.py \
+# --bqtable='["beam_performance.avroioit_hdfs_pkb_results", \
+# "beam_performance.textioit_pkb_results"]' \
+# --metric="run_time" --mode=report --send_notification
+#
+
+import argparse, time, calendar, json, re, os, requests
+from google.cloud import bigquery
+
+### TIME SETTINGS ###########
+TIME_PATTERN = '%d-%m-%Y_%H-%M-%S'
+NOW = int(time.time())
+#NOW = calendar.timegm(time.strptime('14-03-2018_13-30-27', TIME_PATTERN))
#left for testing
Review comment:
Delete commented out code ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 98901)
> Performance Tests Results Analysis and Regression Detection
> -----------------------------------------------------------
>
> Key: BEAM-4065
> URL: https://issues.apache.org/jira/browse/BEAM-4065
> Project: Beam
> Issue Type: Improvement
> Components: build-system
> Reporter: Kamil Szewczyk
> Assignee: Kamil Szewczyk
> Priority: Major
> Time Spent: 3h 50m
> Remaining Estimate: 0h
>
> Performance tests are running on Jenkins on regular basis and results are
> pushed to BigQuery. However there is no automatic regression detection or
> daily reports with results.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)