You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that all the drivers are kept in the main tree. This is problematic for developers who want to contribute to them or even just check out the source code locally.
I'd be happy to help with moving the node driver out of the tree.
We've talked about this before, and decided to leave the drivers in the main tree for the time being. It makes life much easier for the server team, because:
When they add a new term or new functionality, they can add that term to the drivers and/or write tests for that functionality without getting multiple repositories involved.
They can run the driver-dependent tests without getting multiple repositories involved.
They know that they always have the right client for the version of the server they've checked out.
This is really important when git bisecting across protocol changes.
The JS driver in particular is also used for the Web UI, so keeping them synced in the same repository is very important.
We may re-visit this decision once the pace of ReQL development slows.
Is there anything we can do to make working with the drivers in the main RethinkDB repository more pleasant? Is the primary obstacle the size of the git clone?
One simple thing we could do (that I've seen other projects do) is place useful README.md files in subdirectories throughout the repository, explaining what code lives in each directory.
The fact that the 3 supported drivers are part of the main repo is fantastic.
I don't know what your internal sentiment is regarding long-term support for these drivers, but if you guys are committed to them, then having them right alongside the main source really speaks mountains about the RethinkDB emphasis on the developer.
The fact that you have to clone the whole repo to work on the drivers is also fantastic. I've never worked with a C++ codebase before, but I'll tell you this: I won't come any closer to working on a C++ codebase if I don't have one on my computer. Cloning a repo is easy, and it might take a bit more time, but at the end of the day it's trivial to clone a big repo vs. a small repo. When I do get that big repo after a few extra minutes of waiting, I then find myself encouraged to explore the other drivers and the server source. I love that.
I'm glad you like the arrangement. I think the three main drivers are going to be part of the main repo for a long time yet. ReQL development hasn't slowed down at all, despite what we thought a year ago, so it's still really important for our dev process that they be in the same repo as the server.
Would love them moved out as well, makes it that much easier to contribute, and find the code. This has a lot to do with productivity, commit history, issues, PRs, etc. It's all merged together and that's a HUGE pain! Like I was just looking through the commit history, trying to find where Promise support was added to the Javascript driver, and I couldn't find anything.. almost 30k commits.
Also having dedicated contributors just for that driver.
Those are some nice commands, didn't know you could use git log on a directory.
I've never had a chance to try out git blame. git shortlog looks nice.
Now this is all nice and well, but once again not everyone knows how to do this, and not everyone has cloned the repo first. Really it comes down to how much you guys want to get others involved, and make on-boarding for contributors easy, which says a lot about a project.
Maybe we could add some useful commands like this to the READMEs for the drivers. From past experience I can say that splitting up projects that are actually developed in lockstep into multiple repositories and using submodules or subtree merges to keep them in sync is a huge pain.
Is the main reason that ReQL is still changing too fast? Or is it that the web app is also bundled in this repo (should be in it's own repo as well..)?
@knownasilya Sorry for the late response: It's a combination of both. At the moment it makes our lives a bit easier because it's easier to keep the server and drivers in sync and to run tests at a given (even non-release) version without having to deal with separate repositories.
(at least for javascript (actually coffeescript in this case))
Have you guys heard about npm link ? I think it solves all those problems.
You can npm link a specific version, the latest version, an older version, whatever, while allowing everyone the privileges of having the driver on it's own directory.
This issue has come up again. As RethinkDB moves to being a more community-driven project, we want to make it easier to contribute to the drivers, and perhaps have separate maintainers for them.
I think those considerations outweigh the advantages of a monorepo with tight coupling.
This process would also blur the line between community drivers and official drivers. Previously, no feature was allowed to be merged unless it was supported in at least one driver, and no release was made until all four official drivers had feature parity.
The testsuite is also important to consider. Currently, tests for RethinkDB itself and for each official driver are mixed up together in an efficient but monolithic testsuite.
Reacted by João Jerónimo, Brian Chavez, chrismcc, Ilya Radchenko, Marshall Cottrell, James Ross and Simone Accascina
Driver consistency is a huge plus to using RethinkDB. It would be great if that quality remained, whether via keeping it in a single repository, or some other process (merge criteria? clever CI? etc).
I'd also worry about driver drift - what happens when (eg) the node community ends up adding a bunch of features that the other communities don't implement or don't agree with?
Or just a unified test suite that can handle all of the drivers, e.g. handle input and output but don't worry about the implementation, by running against each, so once all pass the suite you do a release.
We already have such tests, called the polyglot tests. They have built-in support for the Ruby, JavaScript and Python drivers. Using conversion scripts, those same tests are also used to test the Java driver and a few other drivers
@AtnNn we should also consider tackling #3771 (i.e. adopting rethinkdbdash as the official JS driver) at the same time. I would imagine a trivial amount of work would need to go into updating the polyglot tests to run against rethinkdbdash. Once we start splitting out the repos, that would be an opportune time to do it.
Activity
mlucy commentedon Dec 5, 2013
Hi @mmalecki,
We've talked about this before, and decided to leave the drivers in the main tree for the time being. It makes life much easier for the server team, because:
The JS driver in particular is also used for the Web UI, so keeping them synced in the same repository is very important.
We may re-visit this decision once the pace of ReQL development slows.
Is there anything we can do to make working with the drivers in the main RethinkDB repository more pleasant? Is the primary obstacle the size of the
git clone?mglukhovsky commentedon Dec 5, 2013
One simple thing we could do (that I've seen other projects do) is place useful README.md files in subdirectories throughout the repository, explaining what code lives in each directory.
This makes it super-pleasant to browse on GitHub.
dminkovsky commentedon Jul 18, 2014
The fact that the 3 supported drivers are part of the main repo is fantastic.
I don't know what your internal sentiment is regarding long-term support for these drivers, but if you guys are committed to them, then having them right alongside the main source really speaks mountains about the RethinkDB emphasis on the developer.
The fact that you have to clone the whole repo to work on the drivers is also fantastic. I've never worked with a C++ codebase before, but I'll tell you this: I won't come any closer to working on a C++ codebase if I don't have one on my computer. Cloning a repo is easy, and it might take a bit more time, but at the end of the day it's trivial to clone a big repo vs. a small repo. When I do get that big repo after a few extra minutes of waiting, I then find myself encouraged to explore the other drivers and the server source. I love that.
mlucy commentedon Jul 20, 2014
@dminkovsky -- ^.^
I'm glad you like the arrangement. I think the three main drivers are going to be part of the main repo for a long time yet. ReQL development hasn't slowed down at all, despite what we thought a year ago, so it's still really important for our dev process that they be in the same repo as the server.
knownasilya commentedon Jan 8, 2015
Would love them moved out as well, makes it that much easier to contribute, and find the code. This has a lot to do with productivity, commit history, issues, PRs, etc. It's all merged together and that's a HUGE pain! Like I was just looking through the commit history, trying to find where Promise support was added to the Javascript driver, and I couldn't find anything.. almost 30k commits.
Also having dedicated contributors just for that driver.
deontologician commentedon Jan 8, 2015
@knownasilya If you're looking for changes that only affect a single directory, you can specify it to git log:
AtnNn commentedon Jan 8, 2015
For the specific problem of finding commits and tracking changes, you can use the following
gitcommands:git blameto find the commit that introduced a change:02b70c7 (Add promises to the JS driver) is the commit you are looking for.
git logto show all changes in a specific subfolder:git shortlogto find contributors to the driver:knownasilya commentedon Jan 8, 2015
Those are some nice commands, didn't know you could use
git logon a directory.I've never had a chance to try out
git blame.git shortloglooks nice.Now this is all nice and well, but once again not everyone knows how to do this, and not everyone has cloned the repo first. Really it comes down to how much you guys want to get others involved, and make on-boarding for contributors easy, which says a lot about a project.
deontologician commentedon Jan 8, 2015
Maybe we could add some useful commands like this to the READMEs for the drivers. From past experience I can say that splitting up projects that are actually developed in lockstep into multiple repositories and using submodules or subtree merges to keep them in sync is a huge pain.
AtnNn commentedon Jan 8, 2015
@knownasilya, I agree with you. I also believe that splitting out the drivers would encourage making the driver protocol more version-agnostic.
However #1740 (comment) above explains why this hasn't been done yet.
knownasilya commentedon Jan 8, 2015
Is the main reason that ReQL is still changing too fast? Or is it that the web app is also bundled in this repo (should be in it's own repo as well..)?
knownasilya commentedon Jan 8, 2015
Added #3523
danielmewes commentedon Jun 8, 2015
@knownasilya Sorry for the late response: It's a combination of both. At the moment it makes our lives a bit easier because it's easier to keep the server and drivers in sync and to run tests at a given (even non-release) version without having to deal with separate repositories.
joaojeronimo commentedon Jun 11, 2015
(at least for javascript (actually coffeescript in this case))
Have you guys heard about
npm link? I think it solves all those problems.You can npm link a specific version, the latest version, an older version, whatever, while allowing everyone the privileges of having the driver on it's own directory.
AtnNn commentedon Oct 25, 2016
This issue has come up again. As RethinkDB moves to being a more community-driven project, we want to make it easier to contribute to the drivers, and perhaps have separate maintainers for them.
I think those considerations outweigh the advantages of a monorepo with tight coupling.
This process would also blur the line between community drivers and official drivers. Previously, no feature was allowed to be merged unless it was supported in at least one driver, and no release was made until all four official drivers had feature parity.
The testsuite is also important to consider. Currently, tests for RethinkDB itself and for each official driver are mixed up together in an efficient but monolithic testsuite.
kofalt commentedon Oct 25, 2016
Driver consistency is a huge plus to using RethinkDB. It would be great if that quality remained, whether via keeping it in a single repository, or some other process (merge criteria? clever CI? etc).
I'd also worry about driver drift - what happens when (eg) the node community ends up adding a bunch of features that the other communities don't implement or don't agree with?
knownasilya commentedon Oct 25, 2016
Or just a unified test suite that can handle all of the drivers, e.g. handle input and output but don't worry about the implementation, by running against each, so once all pass the suite you do a release.
AtnNn commentedon Oct 25, 2016
We already have such tests, called the polyglot tests. They have built-in support for the Ruby, JavaScript and Python drivers. Using conversion scripts, those same tests are also used to test the Java driver and a few other drivers
marshall007 commentedon Oct 26, 2016
@AtnNn we should also consider tackling #3771 (i.e. adopting
rethinkdbdashas the official JS driver) at the same time. I would imagine a trivial amount of work would need to go into updating the polyglot tests to run againstrethinkdbdash. Once we start splitting out the repos, that would be an opportune time to do it.