Skip to content

Fix the integration tests #490

Closed
Closed

Description

@AtnNn

The tests have bitrotted.

Only 26 out of 100 tests pass.

Activity

  1. ghost assigned on Mar 18, 2013
  2. coffeemug commented on Apr 17, 2013

    @coffeemug
    Contributor

    @AtnNn -- this is too broad and abstract an issue, so it's unassignable for any given sprint. Could you either close it and open a new one, or make this one more concrete and give it a well defined scope?

  3. AtnNn commented on Apr 17, 2013

    @AtnNn
    MemberAuthor

    Here is an old breakdown of the failing tests from before the tests had names. I ran all the integration tests on all our servers without using /dev/shm/. 22 tests timed out before completion. 26 tests passed.

    The 52 failing tests each failed with one of following errors:

    Unable to read from socket: Success
    _pylibmc.ServerError: error 10 from memcached_set: SERVER ERROR
    assert not os.path.exists(db_path) -- AssertionError
    RuntimeError: Process stopped unexpectedly with return code -5 after SIGINT
    File "../test/memcached_workloads/many_keys.py", line 45, in <module> -- value = values[key] -- KeyError: '4814'
    File "../test/memcached_workloads/append_stress.py", line 42, in <module> -- raise ValueError("Expecting STORED reply.")
    Protocol error: Server error: master error: not enough replicas responded

    File "/home/atnnn/rethinkdb/test/common/http_admin.py", line 662, in check_no_issues
        raise RuntimeError("Cluster has issues:\n" + message)
    RuntimeError: Cluster has issues:
    Machine 2a23acd1-6174-4517-acdb-6afe64ecbfb6 is inaccessible.
    Machine 587e19b2-90b3-4507-a124-04a9d1c89a77 is inaccessible.
    
      File "/var/jenkins/workspace/test-runner@4/test/common/http_admin.py", line 374, in do_query_specific_plaintext
        raise BadServerResponse(response.status, response.reason)
    http_admin.BadServerResponse: Server returned error code: 500 Internal Server Error
    
      File "../test/interface/log.py", line 35, in <module>
        assert len(log) >= num_entries
    
    Protocol error: Server error: No master available
    Protocol error: Server error: No master available
    terminate called recursively
    terminate called after throwing an instance of 'protocol_error_t'
    Aborted (core dumped)
    
      File "../test/memcached_workloads/serial_mix.py", line 25, in fail
        raise ValueError("Key %r should have value %r, but had value %r." % (k, v, v2))
    ValueError: Key 'y' should have value 'VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD\
    DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS\
    S', but had value 'VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
    
    #   Failed test 'add == 'addval3''
    #   at /var/jenkins/workspace/test-runner@4/test/memcached_workloads/memcached_suite/lib/MemcachedTest.pm line 59.
    #          got: 'END
    # '
    #     expected: 'VALUE add 0 7
    

    The tests now have names, they can be run easily and they have error logs that are easier to parse. I have to re-run the tests, hope they fail again, and open a seperate issue for each failure.

  4. AtnNn commented on Jan 31, 2014

    @AtnNn
    MemberAuthor

    I want to get the integrations tests to run again and consistently pass. Ideally I will be able to:

    I have started work on this in the atnnn/490 branch.

  5. mlucy commented on Feb 3, 2014

    @mlucy
    Member

    That all sounds wonderful.

    As part of porting the polyglot tests, could we make it so that regression tests for server behavior are written directly in one of the three languages rather than going through yaml and the polyglot test framework? Some types of tests would be an order of magnitude less painful to write in that case.

  6. AtnNn commented on Feb 4, 2014

    @AtnNn
    MemberAuthor

    @mlucy Yes.

    Do you know if there are any of those kinds of tests outside of test/rq_test/src/regression?

  7. mlucy commented on Feb 4, 2014

    @mlucy
    Member

    A lot of the stuff for e.g. sindexes is there to test server behavior.

  8. modified the milestones: tests, subsequent on Apr 25, 2014
  9. assigned and unassigned on Jul 11, 2014
  10. larkost commented on Dec 31, 2014

    @larkost
    Collaborator

    I am going to close this both because much of it is stale or completed, and because there is little point to a very generic umbrella issue like this. Minus a 3 points that are too vague to be addressed everything is covered. Here is the checklist from above:

  11. modified the milestones: tests, 1.16, outdated on Jan 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions