-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use the project #174
Comments
Sorry, the documentation for that is very much lacking, yes. The tests are here: https://github.com/smarr/ReBenchDB/blob/master/tests/backend/rebench/api.test.ts Most useful might be the example payload files here: https://github.com/smarr/ReBenchDB/tree/master/tests/data specifically small-payload.json and large-payload.json.bz2. To get an idea of the structure, the type of the data going into the API is The only known client to use it is unfortunately https://github.com/smarr/ReBench/ at this point. Does this give you enough to go on as a start? |
Yeah, that seems really nice; I'll try to look into it in one hour after my meeting! Also, I forgot to ask, but are there some dependencies I need to install? I've seen that you were using PostgreSQL. Is there anything else I should know? |
In theory, the Docker image starts the Postgres server and the Node.js. When I say in theory, I mean the Docker image based on Dockerfile.rebench does actually work for our own performance tracking/benchmarking of ReBenchDB. Though, I used it on podman instead of Docker, and I don't use it to run the rebench.dev instance. |
Huum FYI, the docker image doesn't seem to start the Postgres server (or there is a conf issue):
I'll try to make it work without docker and keep you updated / fix the docker file if I understand what is wrong |
Hm :( I wonder whether there's a difference in how podman and Docker treat these things. I believe @sophie-kaleba also didn't get the Docker image working. |
Honestly, I don't have any issue with using Podman though, I just want to get the easiest thing that works. But I don't know which |
The commands, as per our benchmark setup are in .gitlab-ci.yml. Specifically this:
So, the first command should builds the normal image, the second command builds the image for benchmarking, and the last one then runs the thing executing the benchmarks. And between the two of us, this is the amount of insight I have into docker and podman. The reason to use podman was mostly to avoid requiring root access. |
Yeep I like that, I'll try to use it as well then
Same and I just don't get why it works in your CI and not on my computer when it's the very first principle of podman and docker 😭
But after some googling it looks like you'll have a bug soon in your CI. |
Ok, I was happy a little bit too fast because even though the image now builds, it doesn't work. In a nutshell, here's what is what happens when I try to run the image:
I don't get why because it's pretty clear from your second ( Any idea why, am I supposed to do something? |
In an attempt to "do it the right way", I put a docker-compose version together here: https://github.com/smarr/ReBenchDB/tree/compose Works on my machine with So far untested other than "on my machine". |
Hey, that's awesome! The docker-compose worked on mine, but the podman-compose didn't (I think it's linked to the |
Hey, I'm struggling to understand how to use the project; I didn't find any documentation or where the integration tests are located.
Is there an example showing what is required to create a new benchmark and what info should I send to add new points?
I found this route in the code but tbh it didn't help me much 😅
The text was updated successfully, but these errors were encountered: