Repository navigation
Conversation
…ing an sed command
…t new engines can reuse existing code
…o extract-qlever-start-helpers
…o extract-qlever-start-helpers
…o share-resource-usage-plot-and-monitor
…-index-stats-width
…to qeval-oxigraph
…nitor' into qeval-oxigraph
tanmay-9
force-pushed
the
qeval-oxigraph
branch
from
August 19, 2026 10:13
40a1a99 to
e6e8412
Compare
…-index-stats-width
So far, `BaseStopCommand` returned `False` without a message when the Qleverfile says that the server runs in a container and no container with the configured name exists, so `qeval <engine> stop` exited with status 1 after the line "Checking for container with name ..." and nothing else. Now it reports the missing container, like QLever's `stop` reports a missing process or container.
…nitor' into qeval-oxigraph
…t shows when nothing matched
…graph start --run-in-foreground`, with a warning if it is already gone
…hecking that it supports one
hannahbast
pushed a commit
that referenced
this pull request
Nov 20, 2026
… the resource-usage plot code (#327) Since #305, the QLever binaries sample their own RSS memory and CPU usage and write the resource-usage log themselves, so the Python-side sampler was removed. The other engines of `qeval` do not write such a log, so they need a sampler on the Python side. The plot code so far also only described a QLever index build, since the shaded phase bands and the subtitle come from the QLever index log. With this change, `qeval/resource_monitor.py` provides that sampler. It wraps the index command of an engine and writes a log with the columns that the plot needs (`elapsed_s`, `rss`, `cpu_percent`), by following the index process natively or with `docker stats` or `podman stats` in a container. The plot code is shared by all engines. Only the shaded bands and the subtitle differ per engine, and an engine passes its own `engine_overlay` and `engine_subtitle` functions to `render_usage_plot_if_installed` in the new `qlever/resource_usage/plot_util.py`. Without them, the plot describes a QLever index build, so `qlever index` works as before. `plot_util.py` can be imported without `matplotlib` and `numpy`, so the plotting libraries stay optional for every engine. The log and the plot files of a non-QLever engine are prefixed `<dataset>.<engine>`, so that it is clear which engine a file belongs to. QLever keeps the plain `<dataset>` prefix, since its own binaries write that log. On the side, the two helpers in `qlever/util.py` that only the sampler uses moved along with it to `qeval`, and `parse_git_hash` moved next to its only caller in `usage_plot.py`. The shared test fixtures, including the guard against signals to unrelated processes, moved to `test/conftest.py`, so that they also apply to the tests of `qeval`. NOTE: No engine uses the sampler yet. Oxigraph will be the first one, in #328.
hannahbast
pushed a commit
that referenced
this pull request
Nov 20, 2026
So far, `qeval` could only run QLever. Several commands work the same way for every graph database: `status` and `stop` find the server's processes by a regex, `query` and `benchmark-queries` send SPARQL queries to an HTTP endpoint, `index-stats` reports the time and space of the index build, and `setup-config` derives a Qleverfile from one of QLever's pre-configured ones. QLever's versions of these commands already do almost all of the work, so every new graph database would otherwise copy them with small changes, and a fix in one copy would not reach the others. Commands like `index` and `start` are not part of this, because each graph database builds its index and runs its server with its own binaries, options and logs, so there is little to share. With this change, `qeval/base_commands` has one shared version of each of these commands, built on QLever's. A graph database only provides what differs, such as the regex for its processes, its container image and settings, which files hold its index, and how its index log reports the duration of each phase. Where QLever's command needs a different value for another graph database, such as the path of the SPARQL endpoint or the default regex of `status`, it now gets that value from a small method that the shared version overrides, so that no code is copied. On the side, `Qleverfile.filter` now keeps all options of a section for `None` instead of an empty list, and the `qeval` help mentions graph databases instead of engines. NOTE: No graph database uses the shared commands yet, Oxigraph will follow in a separate change (#328). QLever's commands behave as before.
hannahbast
marked this pull request as ready for review
November 20, 2026 14:26
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With this change, the whole workflow that
qleverprovides for QLever is available for Oxigraph viaqeval oxigraph:setup-config,get-data,index,index-stats,start,status,log,query,stop, andbenchmark-queries. The dataset configs are the same ones as for QLever (qeval oxigraph setup-config olympics, which writes a Qleverfile with only the parameters that Oxigraph knows), and everything works both natively, withoxigraph-clion thePATH, and in a container withdockerorpodman.The Qleverfile has a few Oxigraph-specific parameters:
READ_ONLYandLENIENT,INDEX_BINARYandSERVER_BINARY(bothoxigraphby default), andEXTRA_ARGSfor the index and the server, which is appended to the command line verbatim, so that options not covered by the Qleverfile can still be used. WithREAD_ONLY = yes(the default), the index build compacts the store withoxigraph optimizeafter loading and the server runsserve-read-only.TIMEOUTaccepts a unit like60sor5minas for QLever and is passed on as--timeout-s; older Oxigraph versions do not have that option, in which case the command says that the timeout is ignored instead of failing to start.As for QLever,
qeval oxigraph index-statsreads the phase times from the index log. Oxigraph's own output is not usable for that, though: its progress output is unreliable and it does not always print a final summary line. Soqeval oxigraph indexmeasures the load and the optimize phase itself and appends them, with the total, to the index log, which is also where the shaded phases of the plot come from. The index build records RSS and CPU usage and renders the resource-usage plot just likeqlever indexdoes, with the Oxigraph version in the subtitle.Almost all of this is a thin layer on top of the existing
qlevercommands (mostly a different endpoint, a different process name, or a different way to find the server), and the classes are written so that the engines still to come can use them as their base rather than the QLever ones.Also, a new end-to-end test runs the complete sequence from
setup-configtostopon the olympics dataset, for all three of native,docker, andpodman, and checks that the resource-usage log and plot are actually produced.