-
-
Notifications
You must be signed in to change notification settings - Fork 56
Conversation
639e633
to
6c0b732
Compare
I force-pushed to make it a bit easier to review. The important commit is this one: 608e26e. |
@ralphtheninja I think there's something wrong with Travis. Is auto cancel on and limit off? And not quite sure why it never works on the first build on Linux and MacOS. Works on Windows and on my local linux machine, but on Travis I always get:
|
@ralphtheninja Wouldn't it be better to disable the concurrent jobs limit and enable auto cancel? Because currently my builds aren't starting because they're waiting for a commit from a few hours ago which I don't need anymore, and I can't cancel them. |
So change it? :) |
@ralphtheninja Well, I'd need to have write access to the repository for that. In the meantime I'll just make a few tests on my own Travis instance. |
d17454c
to
adb5002
Compare
@filoozom What's the status of this? Ready for review? |
Haven't had a lot of free time recently, but this was ready except for some bug I couldn't solve or even reproduce: on Travis, the first build always fails because of |
adb5002
to
315a486
Compare
4e50591
to
1c4df2f
Compare
Well, looks like it's finally working! I'm not convinced that it's the best way but I couldn't for the life of me figure out a better one. For future reference:
with
doesn't work. It creates the In the end I used I changed the Travis configuration to allow for more than one concurrent job and auto cancel branch and pull request builds, which makes it significantly faster (should now last ~8 minutes instead of ~40 if all builds can start at the same time), hope it wasn't set like this for some kind of compatibility reasons? |
@filoozom What's the benefit of generating |
@vweevers Well it's not strictly necessary, but the file doesn't exist initially so I need to copy it anyways, so might as well put the right values in it. It does result in a Git SHA that needs to be updated in |
We'd need to remember to update that. Plus, it adds a build step (small, but still). To justify that, there must be a real benefit.
Seeing as this is a JS project, we'd have to (also) expose the git hash through a JS interface. I doubt anyone would use it. IMO having the git submodule is an adequate way of finding out the RocksDB version. |
Sure, but I need the build step either way because I need to at least copy
Yes, that was planned too but we could scratch it and forget about it. |
Superseded by #141. |
Basically the same as Level/leveldown#522 but for RocksDB.
To circumvent the issue that we need the
build_version.cc
file (#80), I added a small script inscripts/build-version.js
that basically replaces both variables frombuild_version.cc.in
and writes the output tobuild_version.cc
. It has no dependency other than NodeJS and should thus work accross platforms without any issues.This PR places the upstream commit at https://github.com/facebook/rocksdb/tree/4e0065015d3dab1d94ef7cb2b4b1d1fecfa0e926, which is the exact version we're currently using.
I'll open another PR afterwards to upgrade to an actual tagged release of RocksDB.
I also took the opportunity to rename all LevelDB related stuff to RocksDB to reduce the confusion.
Fixes #80.
Todo