Project

Profile

Help

Task #7520

Add section with build params to generated json

Added by Mark Zaslavskiy over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
High
Category:
performance
Sprint/Milestone:
Start date:
13.09.2016
Due date:
% Done:

0%

Estimated time:
Target branch:
Test scenario:

Get into irb shell
>> irb

And copy next code to shell

env_vars = [
'BUILD_NUMBER',
'BUILD_TIMESTAMP',
'box',
'product',
'version',
'machine_count',
'sysbench_params',
'machines_count',
'target',
'JOB_NAME'
]
env_vars.each { |ev| ENV[ev] = ev }
ENV['name'] = 'test_config'
ENV['WORKSPACE'] = Dir.pwd
File.open('maxscale.cnf', 'w') { |file| file.write('test') }
require './scripts/benchmark_parser/parse_log.rb'
puts extract_sysbench_results_raw('./scripts/benchmark_parser/test_data/preformance_test_7483.txt');
puts JSON.pretty_generate get_build_params_hash

Expect output like:

Found start of sysbench block
Read all sysbench_results_raw
{
"jenkins_id": "BUILD_NUMBER",
"start_time": "BUILD_TIMESTAMP",
"box": "box",
"product": "product",
"mariadb_version": "version",
"test_code_commit_id": "cc9de3e0a13d1b52ae12769c95c7cf5e0ebc5032",
"product_under_test": "maxscale",
"job_name": "JOB_NAME",
"machine_count": "machines_count",
"sysbench_params": "sysbench_params",
"mdbci_template": "test_config.json",
"test_tool": "sysbench",
"target": "target",
"maxscale_commit_id": "NOT FOUND",
"maxscale_cnf": "/home/galiaf95/Development/OSLL/maxscale_jenkins_mdbci/maxscale.cnf"
}


Description

Reuse existing build_log_parser code for extracting params + extract additional params (sysbench_params, machine_count, generate config template path, maxscale_cnf path)
Put this params to build_params section of the generated json file

Params:

    'jenkins_id',
    'start_time',
    'box'
    'product'
    'mariadb_version'
    'test_code_commit_id'
    'product_under_test'
    'job_name',
    'machine_count'
    'sysbench_params'
    'mdbci_template' # path to file
    'test_tool'
    'target'
    'maxscale_commit_id'   
    'maxscale_cnf' # path to file


Related issues

Related to [mdbci] Maria DB Continuous integration tool - Task #7425: implement script for parsing sysbench log and collecting resultsClosed18.08.2016

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Related to [mdbci] Maria DB Continuous integration tool - Task #7535: Find out why maxscale commit is not found in performance_test logsClosed14.09.2016

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by Mark Zaslavskiy over 4 years ago

  • Related to Task #7425: implement script for parsing sysbench log and collecting results added

#2 Updated by Mark Zaslavskiy over 4 years ago

  • Description updated (diff)

#3 Updated by Alexander Kaluzhny over 4 years ago

  • Status changed from New to Active / In progress

#4 Updated by Alexander Kaluzhny over 4 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Alexander Kaluzhny to Mark Zaslavskiy
  • Test scenario updated (diff)

#5 Updated by Alexander Kaluzhny over 4 years ago

  • Related to Task #7535: Find out why maxscale commit is not found in performance_test logs added

#6 Updated by Mark Zaslavskiy over 4 years ago

  • Status changed from Review to Closed

Also available in: Atom PDF