|
smollerGraph 0.20.2
A small graph database, from scratch
|
Accepted
Episode 1 built smollerGraph on a Mac, with Clang, and ran its tests there. Episode 2 opened with "a bit of engineering we skipped last time", so that each step from then on is built and tested on a clean machine, and the build doesn't depend on what's installed on the one it runs on.
Dockerfile, from Ubuntu 24.04 (ep002/step-1): toolchain installs the compilers, CMake, Ninja and the certificates FetchContent needs to download over HTTPS, without recommended packages; build configures and builds in Release; and test runs ctest, with output on failure, so a failing test stops the build. .dockerignore keeps the build folder and .git out of the image's context..github/workflows/ci.yml) on each push to main, on each pull request and from a button, so "CI builds and tests the code with the commands you'd run on
your own machine".lint, clang-format 19.1.7 and cpplint 2.0.2, pinned, in a slim Python image, and tidy, clang-tidy 18, with its checks for bugs, the static analyzer's, threads and performance as errors. CI runs lint before the tests and tidy after them.docs-build and docs, which build the API docs (0022).compose.yaml runs sg serve from the build stage (episode 4), and the same file runs on the server (0014).--no-cache-filter test (episode 2).ep005/step-1 made Release the default. Episode 3's benchmark ran such a build (0008).src into a folder named after the project, for guards such as SMOLLERGRAPH_GRAPH_H_ (episode 4).