19 Commits

Author SHA1 Message Date
Federico Ressi
03b9eec659 Use local upper-constraints.txt
- Remove support for constrains file from infrared plugin
- Use file stored on tobiko repository by default

Change-Id: I0f835d753fb9d3a1670e8eb9b196e02e989d4262
2021-10-27 14:33:56 +02:00
Eduardo Olivares
e21d209587 Set undercloud_ssh_hostname on tobiko.conf
Tobiko IR tasks failed on some downstream environments when the
undercloud hostname was not undercloud-0

When this happens, the tobiko IR command can be executed with
--undercloud-host or --underclout-ssh-host options

RHOSENTDFG-1695

Change-Id: Ife055b62682044bdc446e6447ef9da562fe4bb73
Co-Author: Eduardo Olivares Toledo <eolivare@redhat.com>
2021-03-09 13:40:29 +00:00
Federico Ressi
3ce3c741e5 Switch to pytest test runner
Change-Id: I8132e07ad624fe9faa01265d700b5eb37b94815f
2020-12-18 13:51:08 +00:00
Federico Ressi
7d5d82d02e Fix --tobiko-refspec option in IR tobiko plugin
Change-Id: Ifaf1d5946ec2dad569faa3e205f4f50018ed63be
2020-12-01 12:16:19 +01:00
Federico Ressi
5252001658 Introduce pre-commit hooks for linters verifications
Change-Id: Icd098df8adf72bf53955b0f07d9ed606c7803296
2020-07-03 06:15:47 +00:00
Federico Ressi
077dc49e40 Move CI tasks from roles to infrared_plugin/roles
- create plugin roles folder with tasks required
  only by the plugin
- remove unused roles from tobiko roles folder
- link tobiko roles one by one to plugin roles folder

Change-Id: If74642f04b451cffc61c55560cd5004db14475ae
2020-05-14 09:23:47 +00:00
Federico Ressi
92248c8506 Refactor test execution scripts
- Acreate a new tools/run_tests.py script to
  execute test cases
- Move report generation to such script and
  remove 'report' tox environment
- Running test cases generates report files
  (.log, .html, .xml) into 'report/{envname}'
  directory
- Test cases failures will returns exit code 1
  Other script test runner failures returns
  exit code 2

Big refactory to tox.ini file to try semplifying it:

- create the new 'py3' tox environment for running unit
  tests as default platform python 3 interpreter
- use same as py3 '{envdir}' for scenario, functional,
  neutron and faults tox environments

Change-Id: Id09425245cc86b84b41e6b3b1c1db759cc686f3a
2020-05-06 17:41:35 +02:00
Federico Ressi
9501f7589a Continue running workflow steps after step failures
Introduce new IR plugin option '--failfast' to abort
execution at the first failing workflow step

Change-Id: Ia79968cf7846f33fdaa05ac5bd511b614ae0784a
2020-05-04 16:25:43 +02:00
Federico Ressi
388426812d Use upper-constraints file from requirements project
Change-Id: I26318898ced32248a2ff31a78ec15d49382b9027
2020-05-04 14:47:41 +02:00
Federico Ressi
1f4e11b118 Update IR plugin
Change-Id: I8a4c483a4ac4b1f8dd1a3ec729ffe5bf6410073e
2020-04-29 05:38:11 +00:00
Federico Ressi
3eadbe21f9 Set remote test directories owner user
Change-Id: I007b5f88a72f4c3a821466358d0c3793008354cf
2020-04-22 13:49:13 +00:00
Federico Ressi
cfc5bc2607 Update tobiko-deploy role
Change-Id: If4e5a74dcc90b18d060c4f8bf4f0a170d881d9d1
2020-04-17 13:51:33 +02:00
Federico Ressi
c9716ccac2 Update pre-run roles
Change-Id: Iaf9f31c46dbf11f3c57c084def50c0a3ab88f3f5
2020-04-14 13:57:09 +02:00
Federico Ressi
672017742a Update tobiko-deploy and tobiko-ensure-* roles
Change-Id: I1354b356970a7da24679a2cb1e2730d0c59f32e4
2020-04-03 16:22:39 +02:00
Federico Ressi
86441d7aac Update roles requiring python
Change-Id: Iae5cd4affc3e7d148221e55768fbdf6d28907e54
2020-04-03 11:10:38 +00:00
Federico Ressi
e116222308 Allow to specify python interpter used for testing IR plugin
Change-Id: I2ea68efed1fe1c0dc22b3c49118cfc5c93c8a037
2020-04-01 08:42:00 +00:00
Federico Ressi
7f97e137eb Copy test result files to zull logs dir
Change-Id: I6abef9016403d6b3c2801a9de64a55f237b99fab
2020-03-23 22:37:03 +01:00
Federico Ressi
cbfb7ffbdc Keep separed test results messages from errors
Change-Id: I17bbdba20aa863b316d3ff5850eeeac885a5b4c4
2020-03-17 13:39:09 +00:00
Federico Ressi
a4ab99ba89 Spliting infrared plugin into roles
Create a set of roles to be composed into a new infrared plugin. The
final goal for these roles is to be used for either downstream and
upstream CI

Change-Id: I48d5f500c2e694c3f94ee497a0df1d92b6c411b3
2020-03-17 11:07:08 +00:00