Repository activity
40458 results across all weeks
qcheck-alcotest: bound alcotest below 1.10.0 for tests
Each failing test of example/alcotest now prints a File "src/core/QCheck2.ml", line ... header (mirage/alcotest#451), which QCheck_alcotest_test.expected does not have. The test passes with alcotest 1.9.1 and fails with 1.10.0; the library works with both, so the bound only applies with-test.
Thomas Gazagnaire (@samoht)routes.0.7.0: disable tests
It fails with:
Thomas Gazagnaire (@samoht)routes.1.0.0: bound alcotest below 1.9.0 for tests
test/routing_test.ml line 90 calls map inside an Alcotest.( ... ) local open to mean Routes.map, which the Alcotest.map added in alcotest 1.9.0 (mirage/alcotest#412) now shadows. The tests pass with 1.8.0 and do not compile with 1.9.0.
Thomas Gazagnaire (@samoht)salsa20.0.1.0: restrict to topkg < 1.1.1
Otherwise it fails with:
Thomas Gazagnaire (@samoht)sihl, sihl-type: bound alcotest below 1.10.0
Otherwise it fails with:
Thomas Gazagnaire (@samoht)sihl: bound alcotest-lwt below 1.10.0 for tests
template/test/test.ml defines its own suite and calls Alcotest.(run "unit" suite) (line 13), where the Alcotest.suite added in alcotest 1.10.0 (mirage/alcotest#468) now shadows it. The test has no package field, so dune build -p @runtest builds it for every sihl-* package; it compiles and passes with alcotest 1.9.1 and does not compile with 1.10.0. The file…
Thomas Gazagnaire (@samoht)smtml: add upper bound on dolmen
Otherwise they fail with dolmen 0.11:
Thomas Gazagnaire (@samoht)styled-ppx: disable tests
They fail with:
Thomas Gazagnaire (@samoht)testo: bound alcotest below 1.10.0 for tests
Testo.to_alcotest returns test cases typed string * [ Quick | Slow ] * ... (core/Testo.mli, line 848), which no longer match Alcotest.test_case since its speed became a wider tag type in alcotest 1.10.0 (mirage/alcotest#448). tests/Test_alcotest.ml line 28 compiles with 1.9.1 and not with 1.10.0.
Thomas Gazagnaire (@samoht)topojsone: restrict tests to OCaml < 5.4
Otherwise it fails with:
Thomas Gazagnaire (@samoht)uunf.18.0.0: accept CI failures on debian-13
It fails on 4.14+flambda with:
Thomas Gazagnaire (@samoht)xapi-stdext-encodings: bound alcotest below 1.10.0 for tests
lib/xapi-stdext-encodings/test.ml defines let uchar = Alcotest.int (line 550) and uses it in Alcotest.(check (pair uchar int)) (line 555), where the Alcotest.uchar added in alcotest 1.10.0 (mirage/alcotest#435) now shadows it. The tests pass with 1.9.1 and stop compiling at mirage/alcotest@947f07e113.
Thomas Gazagnaire (@samoht)(EXPERIMENT) CI, benchmarks: stop installing Binaryen
On top of #2571, which makes Binaryen optional.
hhugoCompiler/Runtime: avoid holey arrays with V8
V8 tracks the elements kind of arrays, and holey arrays reaching the same store sites as packed ones make these sites convert packed arrays to holey ones. This is recorded in the allocation site of the converted arrays, so block literals end up being created holey as well. This causes polymorphism and repeated "wrong map" deoptimizations.
Jérôme Vouillon (@vouillon)Compiler/Wasm: box integer-typed variables used as references
With GADTs, a variable typed as an integer can be used as a reference cell, an array or a function in a dead branch. Offset_ref, Array_set and Apply loaded such a variable without boxing it, producing an invalid ref.cast or call on an i32.
Jérôme Vouillon (@vouillon)Compiler: Flow knows the value of a tested variable along some edges
Flow (JavaScript target only) now uses the value of a tested variable along the edges of the test:
hhugoCompiler: call functions in blocks without Function.prototype.call
Exact calls to functions stored in blocks (module fields of other compilation units, records of closures) were emitted as M[i].call(null, x) (de27231, part of #1397), to avoid a method call. On V8 this prevents inlining: TurboFan's ReduceFunctionPrototypeCall rewrites it into a call of M[i] marked CallFeedbackRelation::kUnrelated, and ReduceJSCall then ignor…
hhugoCompiler: do not fold integer operations on non-integer literals
The JavaScript code generator simplifies integer additions, subtractions and shifts whose operands are number literals, parsing the literals as integers. With GADTs, such an operation can be applied to a float constant in dead code, once a function is inlined:
Jérôme Vouillon (@vouillon)Compiler: fix --enable callgen
With --enable callgen, applications are inlined instead of going through caml_callN, and the inlined code repeats the function and the arguments:
hhugoCompiler: fix float constants when the compiler runs in JavaScript
When js_of_ocaml is itself compiled to JavaScript, floats are unboxed numbers, which Obj.is_block takes for integers. Float constants nested in structured constants were thus parsed as integers and truncated by Targetint (0.2888 became 0, -0. became 0, 1e100 became 0, 2147483648. became -2147483648), with an "integer-overflow" warning. Compiling the lexifi-g…
Jérôme Vouillon (@vouillon)