influxdata / Litmus

testing framework
0 stars 0 forks source link

fix nightly tasks tests for open source and idpe #153

Closed gshif closed 5 years ago

gshif commented 5 years ago

There are 4 tasks tests that are failing for nightly test runs for open source.(Not sure what has changed yet):

gshif commented 5 years ago

Might be related to:

commit e983809bb0c43668c1c23c3bba4ff65e569d8708
Merge: 5fbed0b6a 492d8406a
Author: Jorge Landivar <landivar@gmail.com>
Date:   Mon Apr 1 09:59:15 2019 -0500

    Merge pull request #12951 from influxdata/fix/task-options-flux-duration-parser

    fix(tasks): make durations visibly show up nicely
gshif commented 5 years ago

also, there is a change in type for offset:

- int32 offset = 6;
+ string offset = 6;
gshif commented 5 years ago

On IDPE I am seeing more failures:

_____________________________________________________________________________ TestUpdateTasks.test_update_existing_delay_for_cron ______________________________________________________________________________
src/cloud/rest_api/tasks/test_gateway_update_tasks.py:253: in test_update_existing_delay_for_cron
    _assert(self, update_task_d.get('status'), 200, 'STATUS CODE')
src/cloud/rest_api/conftest.py:90: in _assert
    assert actual == expected, \
E   AssertionError: Actual '500' 'STATUS CODE' does not equal to expected '200' 'STATUS CODE'
E   assert 500 == 200
_____________________________________________________________________________ TestUpdateTasks.test_update_existing_delay_for_every _____________________________________________________________________________
src/cloud/rest_api/tasks/test_gateway_update_tasks.py:273: in test_update_existing_delay_for_every
    _assert(self, create_task_d.get('status'), 201, 'STATUS CODE')
src/cloud/rest_api/conftest.py:90: in _assert
    assert actual == expected, \
E   AssertionError: Actual '500' 'STATUS CODE' does not equal to expected '201' 'STATUS CODE'
E   assert 500 == 201
_________________________________________________________________________________ TestUpdateTasks.test_update_delay_for_every __________________________________________________________________________________
src/cloud/rest_api/tasks/test_gateway_update_tasks.py:299: in test_update_delay_for_every
    _assert(self, create_task_d.get('status'), 201, 'STATUS CODE')
src/cloud/rest_api/conftest.py:90: in _assert
    assert actual == expected, \
E   AssertionError: Actual '500' 'STATUS CODE' does not equal to expected '201' 'STATUS CODE'
E   assert 500 == 201
__________________________________________________________________________________ TestUpdateTasks.test_update_delay_for_cron __________________________________________________________________________________
src/cloud/rest_api/tasks/test_gateway_update_tasks.py:325: in test_update_delay_for_cron
    _assert(self, create_task_d.get('status'), 201, 'STATUS CODE')
src/cloud/rest_api/conftest.py:90: in _assert
    assert actual == expected, \
E   AssertionError: Actual '500' 'STATUS CODE' does not equal to expected '201' 'STATUS CODE'
E   assert 500 == 201
______________________________________________________________________________ TestUpdateTasks.test_update_remove_delay_from_cron ______________________________________________________________________________
src/cloud/rest_api/tasks/test_gateway_update_tasks.py:351: in test_update_remove_delay_from_cron
    _assert(self, create_task_d.get('status'), 201, 'STATUS CODE')
src/cloud/rest_api/conftest.py:90: in _assert
    assert actual == expected, \
E   AssertionError: Actual '500' 'STATUS CODE' does not equal to expected '201' 'STATUS CODE'
E   assert 500 == 201
_____________________________________________________________________________ TestUpdateTasks.test_update_remove_delay_from_every ______________________________________________________________________________
src/cloud/rest_api/tasks/test_gateway_update_tasks.py:379: in test_update_remove_delay_from_every
    _assert(self, create_task_d.get('status'), 201, 'STATUS CODE')
src/cloud/rest_api/conftest.py:90: in _assert
    assert actual == expected, \
E   AssertionError: Actual '500' 'STATUS CODE' does not equal to expected '201' 'STATUS CODE'
E   assert 500 == 201
_____________________________________________________________________________ TestUpdateTasks.test_update_status[active-inactive] ______________________________________________________________________________
src/cloud/rest_api/tasks/test_gateway_update_tasks.py:410: in test_update_status
    _assert(self, create_task_d.get('status'), 201, 'STATUS CODE')
src/cloud/rest_api/conftest.py:90: in _assert
    assert actual == expected, \
E   AssertionError: Actual '500' 'STATUS CODE' does not equal to expected '201' 'STATUS CODE'
E   assert 500 == 201
_____________________________________________________________________________ TestUpdateTasks.test_update_status[inactive-active] ______________________________________________________________________________
src/cloud/rest_api/tasks/test_gateway_update_tasks.py:410: in test_update_status
    _assert(self, create_task_d.get('status'), 201, 'STATUS CODE')
src/cloud/rest_api/conftest.py:90: in _assert
    assert actual == expected, \
E   AssertionError: Actual '500' 'STATUS CODE' does not equal to expected '201' 'STATUS CODE'
E   assert 500 == 201
gshif commented 5 years ago

The errors for updating offset is:

e_msg = 'failed to update task'
e_code = 'internal error'
e_op = 'None'
e_err = 'rpc error: code = Unavailable desc = transport is closing'
error_message = '{u'message': u'failed to update task', u'code': u'internal error', u'error': u'rpc error: code = Unavailable desc = transport is closing'}'

For remove offset and update status active/inactive I am seeing :

e_msg = 'failed to create task'
e_code = 'internal error'
e_op = 'None'
e_err = 'rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 10.104.19.116:8275: connect: connection refused"'
error_message = '{u'message': u'failed to create task', u'code': u'internal error', u'error': u'rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 10.104.19.116:8275: connect: connection refused"'}'
gshif commented 5 years ago

Tests are fixed and merged into master