Skip to content
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

Removes unecessary result library #78

Merged
merged 3 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions benchpress-lsp.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
opam-version: "2.0"
version: "0.1"
license: "BSD-2-Clause"
authors: ["Simon Cruanes" "Guillaume Bury"]
synopsis: "LSP server for benchpress' config files"
maintainer: "[email protected]"
Expand Down
3 changes: 2 additions & 1 deletion benchpress-server.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
opam-version: "2.0"
version: "0.1"
license: "BSD-2-Clause"
authors: ["Simon Cruanes" "Guillaume Bury"]
synopsis: "Server and web UI for benchpress"
maintainer: "[email protected]"
Expand All @@ -20,7 +21,7 @@ depends: [
"gnuplot" { >= "0.6" & < "0.8" }
"sqlite3"
"sqlite3_utils" { >= "0.4" & < "0.5" }
"tiny_httpd" { >= "0.16" & < "1.0" }
"tiny_httpd" { >= "0.17" & < "1.0" }
"printbox" { >= "0.6" }
"printbox-text" { >= "0.6" }
"ocaml" {>= "4.12" }
Expand Down
1 change: 1 addition & 0 deletions benchpress-worker.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
opam-version: "2.0"
version: "0.1"
license: "BSD-2-Clause"
authors: ["Simon Cruanes" "Guillaume Bury" "Hichem Rami Ait El Hara"]
synopsis: "A benchpress helper worker"
maintainer: "[email protected]"
Expand Down
1 change: 1 addition & 0 deletions benchpress.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
opam-version: "2.0"
version: "0.1"
license: "BSD-2-Clause"
authors: ["Simon Cruanes" "Guillaume Bury"]
synopsis: "Tool to run one or more logic programs, on a set of files, and collect the results"
maintainer: "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions src/bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
(promote
(into ../..)
(until-clean))
(libraries benchpress containers cmdliner result uuidm logs logs.cli
sqlite3_utils base64)
(libraries benchpress containers cmdliner uuidm logs logs.cli sqlite3_utils
base64)
(flags :standard -warn-error -a+8 -safe-string -open Benchpress))

(rule
Expand Down
6 changes: 3 additions & 3 deletions src/server/benchpress_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
open Common
module T = Test
module H = Tiny_httpd
module U = Tiny_httpd_util
module U = Tiny_httpd.Util
module PB = PrintBox
module Log = (val Logs.src_log (Logs.Src.create "benchpress-serve"))

Expand Down Expand Up @@ -1746,9 +1746,9 @@ let handle_file self : unit =
Log.debug (fun k -> k "get-file: `%s`" file);
let bytes =
if file = "prelude" then
H.Byte_stream.of_string Builtin_config.config (* magic file! *)
H.IO.Input.of_string Builtin_config.config (* magic file! *)
else (
try H.Byte_stream.of_chan @@ open_in file
try H.IO.Input.of_in_channel @@ open_in file
with e ->
H.Response.fail_raise ~code:404
"cannot open file %S:\n\
Expand Down
2 changes: 1 addition & 1 deletion src/server/dune
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(promote
(into ../../)
(until-clean))
(libraries benchpress containers cmdliner result uuidm logs logs.cli
(libraries benchpress containers cmdliner uuidm logs logs.cli
tiny_httpd tiny_httpd.prometheus sqlite3_utils base64 printbox jemalloc)
(flags :standard -warn-error -a+8 -safe-string -open Benchpress -linkall))

Expand Down
Loading