Project

Profile

Help

Task #7381

Вынести параметр host в defaults file в scripts/build_parser/write_build_results.rb

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

Status:
Closed
Priority:
High
Category:
jenkins_jobs
Sprint/Milestone:
Start date:
11.08.2016
Due date:
% Done:

100%

Estimated time:
0:30 h
Spent time:
Target branch:
Test scenario:

https://github.com/OSLL/mdbci/tree/7381_remove_HOST_param
https://github.com/OSLL/mdbci/pull/280

# At host must be installed MySQL 5.5 and created DB. Instruction:
https://github.com/OSLL/mdbci/blob/integration/scripts/build_parser/README.md

# After install, create DB and run mysql server, run command (echo $? => 0):
scripts/build_parser/write_build_results.rb -f scripts/build_parser/7225_tst/json

# Expected results:
Starting ./write_build_results.rb
Connection to db (:default_file => /home/vagrant/build_parser_db_password, :database => test_results_db established successfuly ...
# In output text must not be a line:
... :host => localhost ...


Description


Related issues

Related to [mdbci] Maria DB Continuous integration tool - Task #7315: Investigate automatic jenkins slave settingClosed28.07.2016

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

History

#1 Updated by Mark Zaslavskiy about 4 years ago

  • Related to Task #7315: Investigate automatic jenkins slave setting added

#2 Updated by Mark Zaslavskiy about 4 years ago

  • Priority changed from Normal to High

#3 Updated by Mark Zaslavskiy about 4 years ago

  • Assignee changed from Mark Zaslavskiy to Ilfat Kinyaev

#4 Updated by Mark Zaslavskiy about 4 years ago

  • Subject changed from Вынести параметр host в defaults file в build_parser to Вынести параметр host в defaults file в scripts/build_parser/write_build_results.rb
  • Description updated (diff)

#5 Updated by Ilfat Kinyaev about 4 years ago

  • Estimated time set to 0:30 h

All need values will save at DEFAULT_FILE = '/home/vagrant/build_parser_db_password' and HOST will be there.

#6 Updated by Ilfat Kinyaev about 4 years ago

  • Status changed from New to Active / In progress

#7 Updated by Ilfat Kinyaev about 4 years ago

  • % Done changed from 0 to 50
  • Test scenario updated (diff)

#8 Updated by Ilfat Kinyaev about 4 years ago

  • Status changed from Active / In progress to New

#9 Updated by Ilfat Kinyaev about 4 years ago

  • Status changed from New to Active / In progress

#10 Updated by Ilfat Kinyaev about 4 years ago

Before corrections:
insider@kii:~/mdbci$ scripts/build_parser/write_build_results.rb -f scripts/build_parser/7225_tst/json
Starting ./write_build_results.rb
Connection to db (:default_file => /home/vagrant/build_parser_db_password, :host => localhost, :database => test_results_db established successfuly
Performed insert (test_run, id = 1): INSERT INTO test_run (jenkins_id, start_time, target, box, product, mariadb_version, test_code_commit_id, maxscale_commit_id, job_name) VALUES ('187', '2016-06-20 10-02-06', 'pushtest-70 ', 'centos_7_libvirt', 'mariadb', '10.0', '66d10ab5c6e5da7798df5495da3a57554ebb83c9', '2cfd2c67690395c26cbc4177678a6c7e61e59719', 'run_test')
Preparing to write test={"test_name"=>"regexfilter1", "test_success"=>"Passed"} into results
Performed insert (results): INSERT INTO results (id, test, result) VALUES ('1', 'regexfilter1', '0')
./write_build_results.rb finished

insider@kii:~/mdbci$ echo $?
0

After corrections:
insider@kii:~/mdbci$ scripts/build_parser/write_build_results.rb -f scripts/build_parser/7225_tst/json
Starting ./write_build_results.rb
Connection to db (:default_file => /home/vagrant/build_parser_db_password, :database => test_results_db established successfuly
Performed insert (test_run, id = 2): INSERT INTO test_run (jenkins_id, start_time, target, box, product, mariadb_version, test_code_commit_id, maxscale_commit_id, job_name) VALUES ('187', '2016-06-20 10-02-06', 'pushtest-70 ', 'centos_7_libvirt', 'mariadb', '10.0', '66d10ab5c6e5da7798df5495da3a57554ebb83c9', '2cfd2c67690395c26cbc4177678a6c7e61e59719', 'run_test')
Preparing to write test={"test_name"=>"regexfilter1", "test_success"=>"Passed"} into results
Performed insert (results): INSERT INTO results (id, test, result) VALUES ('2', 'regexfilter1', '0')
./write_build_results.rb finished

insider@kii:~/mdbci$ echo $?
0

#11 Updated by Ilfat Kinyaev about 4 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Ilfat Kinyaev to Mark Zaslavskiy
  • % Done changed from 50 to 100
  • Test scenario updated (diff)

#12 Updated by Mark Zaslavskiy about 4 years ago

  • Status changed from Review to New
  • Assignee changed from Mark Zaslavskiy to Ilfat Kinyaev

Test scenario does not contain Expected result and does not specify the server, were test scenario should be performed.

#13 Updated by Ilfat Kinyaev about 4 years ago

  • Test scenario updated (diff)

#14 Updated by Ilfat Kinyaev about 4 years ago

  • Test scenario updated (diff)

#15 Updated by Ilfat Kinyaev about 4 years ago

  • Status changed from New to Review
  • Assignee changed from Ilfat Kinyaev to Mark Zaslavskiy

#16 Updated by Mark Zaslavskiy about 4 years ago

  • Status changed from Review to Closed

Also available in: Atom PDF