Skip to content

Some of the driver tests test the installed driver #711

Closed

Description

@AtnNn

The python cursor tests for example:

ERROR: test_close (__main__.TestCursor)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "connections/cursor.py", line 34, in test_close
    self.cur.close()
  File "/home/atnnn/.python/local/lib/python2.7/site-packages/rethinkdb/net.py", line 39, in close
    self.conn._end(self.query, self.term)
  File "/home/atnnn/.python/local/lib/python2.7/site-packages/rethinkdb/net.py", line 119, in _end
    query.type = p.Query.END
AttributeError: type object 'Query' has no attribute 'END'

Activity

  1. ghost assigned on Apr 25, 2013
  2. AtnNn commented on Apr 25, 2013

    @AtnNn
    MemberAuthor

    Created review 443 for @wmrowan for the python tests.

    The other tests still need to be checked.

  3. coffeemug commented on May 6, 2013

    @coffeemug
    Contributor

    Moving to 1.6, as this isn't essential to shipping 1.5.

  4. modified the milestones: tests, backlog on Apr 25, 2014
  5. AtnNn commented on Jul 11, 2014

    @AtnNn
    MemberAuthor

    @larkost is there anything left to do to fix this issue?

  6. assigned and unassigned on Jul 11, 2014
  7. larkost commented on Jul 12, 2014

    @larkost
    Collaborator

    I thought that I would do just a little more cleanup, and be done with at least the Python part of it, but it is turning into a large project. As a bit of a preview on this here is a estimation of what needs to be done:

    • hard path references in bench need to be evaluated. If they need changes this is at least 40 files to touch
    • drivers/ruby/quickstart.rb probably needs to make sure that it is loading the driver it thinks it is
    • scripts/spin_up_cluster and scripts/spin_up_cluster_with_name_conflict should either be removed, or harmonized with the testing infrastructure
    • test/common/driver.py::find_rethinkdb_executable should be placed into test/common/utils.py and harmonized with the techniques there
    • test/common/test_report.py should probably make sure that it is getting the version of the database that is being tested by asking the executable
    • test/common/unit.py should use the tools from test/common/utils.py
    • test/rql_test/drivers/driver.rb and test/rql_test/drivers/driver.js need to verify that they are getting the driver they expect (Python version does).
    • Ruby hard coded and/or unchecked loading of drivers: test/rdb_workloads/lots_of_tables.rb, test/rql_test/server_test.rb, test/rql_test/connections/http.rb
    • JavaScript hard coded and/or unchecked loading of drivers: test/rql_test/connections/connection.js, test/rql_test/connections/cursor.js, test/rql_test/connections/date.js, test/rql_test/connections/feeds.js, test/rql_test/connections/http.js, test/rql_test/connections/promise.js
  8. larkost commented on Jul 12, 2014

    @larkost
    Collaborator

    That last is in addition to the Python cleanup work that is already either in-progress or done.

  9. danielmewes commented on Jul 16, 2014

    @danielmewes
    Member

    FYI: The scripts in bench are mostly deprecated. We should delete all of them except for set-corecount and set-scheduler maybe, which are still useful.

    Unless we are still using the old stress-client for some tests, in which case we would also have to keep bench/stress-client (@AtnNn?).

  10. AtnNn commented on Jul 16, 2014

    @AtnNn
    MemberAuthor

    bench/stress-client should have already been deleted. It uses the memcache protocol, which rethinkdb doesn't support.

  11. larkost commented on Jul 22, 2014

    @larkost
    Collaborator

    @danielmewes can I ask you to clean out bench? That would solve other problems as well.

  12. danielmewes commented on Jul 22, 2014

    @danielmewes
    Member

    @larkost in CR 1811

  13. 20 remaining items

  14. added 8 commits that reference this issue on Oct 22, 2014
  15. larkost commented on Oct 22, 2014

    @larkost
    Collaborator

    Merged into next with 1256ac0

  16. modified the milestones: tests, 1.16 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