starting new job...
→ running command: cd "/etc/byggsteg/job-clone//kracht/trunk" && git reset --hard && git pull
HEAD is now at 84fe9dd feat: Add Nix packaging
Already up to date.
→ running command: cd /etc/byggsteg/job-clone/kracht/trunk && uname -a
Linux wolk-jjba 7.1.5-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux
→ running command: cd /etc/byggsteg/job-clone/kracht/trunk && git log --name-status HEAD^..HEAD
commit 84fe9dd37740e85da93f6103650a93141e8bfb06
Author: Josep Bigorra <jjbigorra@gmail.com>
Date: Fri Oct 23 14:42:47 2026 +0200
feat: Add Nix packaging
Add default.nix and flake.nix, so the checkout builds with `nix build' and
opens a development shell with `nix develop', without waiting for a
release to be packaged elsewhere.
default.nix is the derivation of the `guile-kracht' package in nixpkgs --
same phases, same layout under $out -- but it builds the working tree
rather than a pinned tag, so a packaging break shows up here first. The
flake exposes it as both `.#guile-kracht' and `.#default'.
The version is written by hand in default.nix: bump it with the tag.
🤖 Generated with [ECA](https://eca.dev) (deepseek/deepseek-flash)
Co-Authored-By: eca-agent <git@eca.dev>
A default.nix
A flake.lock
A flake.nix
→ running command: cd /etc/byggsteg/job-clone/kracht/trunk && maak test
scanning directories for unit tests...
scanning present working directory for unit tests...
shuffled the files with seed 970887932 (replay with VERITAS_SEED=970887932)
found unit tests: (prelude-spec.scm modules-spec.scm entities-spec.scm)
running unit tests from file: prelude-spec.scm, entrypoint: spec
[info] shuffled with seed 970887932 (replay with VERITAS_SEED=970887932)
------------------------------------------
[suite] Another test suite
[test] sha tests
[assert] get-short-commit-sha works as expected
[pass] got: #t
[test] html-unescape tests
[assert] Multiple entity occurrences
[pass] got: It's a "quote".
[assert] C-cedilla entity
[pass] got: ç
[assert] Example sentence unescaped
[pass] got: Ólá, múndo! Isto é um teste.
[assert] String with no entities
[pass] got: Hello, World!
[assert] Empty string
[pass] got:
[assert] Accented a entity
[pass] got: á
[assert] Mix of entities
[pass] got: He's a "guy".
[assert] Single apos entity
[pass] got: '
[assert] Single quot entity
[pass] got: "
[assert] Accented A entity
[pass] got: Á
[test] Round-trip tests
[assert] Unescape then escape round-trips the significant characters
[pass] got: &lt;div&gt;&apos;test&apos;&lt;/div&gt;
[assert] Example sentence
[pass] got: Olá, múndo! Isto é um teste.
[assert] Escape then unescape
[pass] got: Hello, it's a "test" with áéíóú.
[assert] Unescape then escape (for chars in alist)
[pass] got: &apos;&aacute;&eacute;&iacute;&oacute;&uacute;&quot;
[test] html-escape tests
[assert] Empty string
[pass] got:
[assert] String with multiple occurrences
[pass] got: He said, &quot;It&apos;s a beautiful day!&quot;
[assert] Accented i
[pass] got: &iacute;
[assert] Accented o
[pass] got: &oacute;
[assert] Accented u
[pass] got: &uacute;
[assert] Accented O
[pass] got: &Oacute;
[assert] C-cedilla
[pass] got: &ccedil;
[assert] Single quote
[pass] got: &apos;
[assert] Example sentence escaped
[pass] got: &Oacute;l&aacute;, m&uacute;ndo! Isto &eacute; um teste.
[assert] N-tilde
[pass] got: &ntilde;
[assert] Double quote
[pass] got: &quot;
[assert] Accented E
[pass] got: &Eacute;
[assert] Accented U
[pass] got: &Uacute;
[assert] String with no special characters
[pass] got: Hello, World!
[assert] Mix of quotes
[pass] got: He&apos;s a &quot;guy&quot;.
[assert] Accented I
[pass] got: &Iacute;
[assert] Multiple accents
[pass] got: &Aacute;rvore &eacute; bonita
------------------------------------------
[suite] Robustness test suite
[test] SQL literal escaping
[assert] value->sql-literal plain string
[pass] got: 'hello'
[assert] escape-sql-string doubles quotes
[pass] got: O''Brien
[assert] escape-sql-string rejects NUL
[pass] got: rejected
[assert] pair->sql-assignment hyphenated column
[pass] got: first_name = 'Josep'
[assert] pair->sql-assignment keeps numbers raw
[pass] got: age = 30
[assert] value->sql-literal boolean true
[pass] got: 1
[assert] value->sql-literal number
[pass] got: 42
[assert] value->sql-literal boolean false
[pass] got: 0
[assert] escape-sql-string doubles backslashes on request
[pass] got: a\\b''c
[assert] quote-sql-identifier doubles embedded quotes
[pass] got: "we""ird"
[assert] quote-sql-identifier wraps a symbol
[pass] got: "select"
[assert] pair->sql-assignment escapes quotes
[pass] got: name = 'O''Brien'
[assert] value->sql-literal escapes quotes
[pass] got: 'O''Brien'
[test] shuffle-fy does not mutate its input
[assert] the original list is unchanged
[pass] got: (1 2 3 4 5)
[test] html escaping covers the HTML-significant characters
[assert] malformed numeric references are untouched
[pass] got: &#; &#x; &#0; &#xg;
[assert] unknown entity left untouched
[pass] got: &unknown;
[assert] slashes, stars, dollars and percent are left alone
[pass] got: a/b*c$%
[assert] both quote styles are escaped
[pass] got: &quot;x&quot; &apos;y&apos;
[assert] legacy entities are still decoded
[pass] got: a/b*c$%
[assert] ampersand is escaped
[pass] got: a &amp; b
[assert] escaping is not idempotent
[pass] got: &amp;amp;
[assert] uppercase legacy entities are decoded
[pass] got: &<>"
[assert] angle brackets are escaped
[pass] got: &lt;script&gt;
[assert] numeric character references are decoded
[pass] got: '&
[test] shuffle-fy preserves the elements
[assert] single element list
[pass] got: (1)
[assert] empty list
[pass] got: ()
[assert] the same seed yields the same order
[pass] got: (10 3 9 6 13 15 8 18 19 0 4 12 7 11 2 5 14 17 16 1)
[assert] a shuffled range is still the range
[pass] got: (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49)
[test] base64-encode known vectors
[assert] one byte needs two padding chars
[pass] got: Zg==
[assert] empty string
[pass] got:
[assert] hello world
[pass] got: aGVsbG8gd29ybGQ=
[assert] two bytes need one padding char
[pass] got: Zm8=
[assert] three bytes need no padding
[pass] got: Zm9v
[assert] hello
[pass] got: aGVsbG8=
[test] base64-decode known vectors
[assert] padded two bytes
[pass] got: fo
[assert] empty string
[pass] got:
[assert] hello world
[pass] got: hello world
[assert] padded one byte
[pass] got: f
[assert] unpadded three bytes
[pass] got: foo
[test] base64 round trips
[assert] ascii
[pass] got: hello world
[assert] embedded heredoc-looking terminator is safe
[pass] got: x
EOFEOF
y
[assert] utf-8
[pass] got: héllo wörld áéíóú
[assert] whitespace in the encoded input is ignored
[pass] got: hello
[assert] newlines inside the payload
[pass] got: line one
line two
[test] file read/write helpers
[assert] write-file-string returns the character count
[pass] got: 14
[assert] cleanup the temporary file
[pass] success running without errors
[assert] read-file-string returns exact contents
[pass] got: line 1
line 2
------------------------------------------
[suite] Prelude test suite
[test] assoc-lens tests
[assert] nested lookup
[pass] got: 1
[assert] intermediate value is not an alist
[pass] got: #f
[assert] missing nested key
[pass] got: #f
[test] assoc-ref-or tests
[assert] missing key defaults to #f
[pass] got: #f
[assert] missing key uses the given default
[pass] got: missing
[assert] found key
[pass] got: 1
[test] alist-set tests
[assert] the original alist is never mutated
[pass] got: ((a . 1))
[assert] add a new key at the front
[pass] got: ((c . 3) (a . 1))
[assert] replace an existing key in place
[pass] got: ((a . 9) (b . 2))
[test] assoc-ref-or-empty-str tests
[assert] key is first element
[pass] got: value
[assert] key not found
[pass] got:
[assert] key is last element
[pass] got: value
[assert] empty alist
[pass] got:
[assert] key found - non-string value
[pass] got: 2
[assert] key found - string value
[pass] got: hello
[test] empty-string? tests
[assert] empty-string? with empty string
[pass] got: #t
[assert] empty-string? with whitespace
[pass] got: #f
[assert] empty-string? with non-empty string
[pass] got: #f
[test] string-drop tests
[assert] string-drop-first-last empty string
[pass] got:
[assert] string-drop-first-last two chars
[pass] got: ab
[assert] string-drop-first-last-line two lines
[pass] got:
[assert] string-drop-first-last normal case
[pass] got: ell
[assert] string-drop-first-last-line normal case
[pass] got: middle line
[assert] string-drop-first-last-line single line
[pass] got:
[assert] string-drop-first-last-line empty input
[pass] got:
[assert] string-drop-first-last single char
[pass] got: a
[test] string-drop-first-last-n tests
[assert] negative n is clamped to zero
[pass] got: hell
[assert] n at the boundary returns empty string
[pass] got:
[assert] n larger than length is clamped
[pass] got:
[assert] drop two leading and the last char
[pass] got: ll
[assert] drop one leading and the last char
[pass] got: ell
[assert] n = 0 drops only the last char
[pass] got: hell
[assert] short strings are returned unaltered
[pass] got: ab
[test] non-empty-string? tests
[assert] non-empty-string? with empty string
[pass] got: #f
[assert] non-empty-string? with #t (not a string)
[pass] got: #f
[assert] non-empty-string? with whitespace
[pass] got: #t
[assert] non-empty-string? with non-empty string
[pass] got: #t
[assert] non-empty-string? with a number
[pass] got: #f
[assert] non-empty-string? with #f
[pass] got: #f
[test] alist-from-url-encoded-body
[assert] square brackets characters (%5B, %5D)
[pass] got: ((array . [1,2]))
[assert] unicode characters (e.g., 'é' - %C3%A9 in UTF-8)
[pass] got: ((name . fiancé))
[assert] literal equals sign stays part of the value
[pass] got: ((q . a=b))
[assert] space character (%20)
[pass] got: ((message . hello world))
[assert] exclamation mark character (%21)
[pass] got: ((warning . danger!))
[assert] duplicate keys
[pass] got: ((item . apple) (item . orange))
[assert] dollar sign character (%24)
[pass] got: ((amount . $100))
[assert] keys and values with special characters (URL-encoded)
[pass] got: ((param_1 . value with spaces) (param/2 . another_value!))
[assert] multiple key-value pairs
[pass] got: ((name . Jane Doe) (age . 30))
[assert] backslash character (%5C)
[pass] got: ((winpath . C:\Users\))
[assert] only an ampersand
[pass] got: ()
[assert] question mark character (%3F)
[pass] got: ((query . what?))
[assert] single key value pair
[pass] got: ((name . John Doe))
[assert] empty body
[pass] got: ()
[assert] semicolon character (%3B)
[pass] got: ((cookie . id;user))
[assert] parentheses characters (%28, %29)
[pass] got: ((func . f(x)))
[assert] ampersand character (%26)
[pass] got: ((data . one&two))
[assert] mixed valid and malformed pairs
[pass] got: ((a . 1) (b . ) (c . 3))
[assert] at symbol character (%40)
[pass] got: ((email . test@example.com))
[assert] comma character (%2C)
[pass] got: ((list . a,b,c))
[assert] hash/pound sign character (%23)
[pass] got: ((tag . #important))
[assert] value with no key (unlikely but possible from split)
[pass] got: (( . value))
[assert] colon character (%3A)
[pass] got: ((protocol . http:))
[assert] slash character (%2F)
[pass] got: ((path . /usr/local))
[assert] multiple encoded characters in one value
[pass] got: ((complex . a&b=c?d e))
[assert] equals sign character (%3D)
[pass] got: ((equation . x=y))
[assert] multiple keys, no equals sign
[pass] got: ((key1 . ) (key2 . ))
[assert] single key, no equals sign
[pass] got: ((key-only . ))
[assert] empty key and empty value
[pass] got: ()
[assert] empty &-separated segments are skipped
[pass] got: ((a . 1) (b . 2))
[assert] key with no value
[pass] got: ((key . ))
[assert] plus sign (%2B) - often used for space, but distinct from actual '+'
[pass] got: ((code . a+b))
[assert] curly braces characters (%7B, %7D)
[pass] got: ((json . {data}))
------------------------------------------
[suite] flatten-list
[test] it does not disturb its input
[assert] the argument is untouched
[pass] got: (1 (2 3) (4 (5)))
[assert] flattening twice changes nothing
[pass] got: (1 2 3 4 5)
[test] the shapes it has to handle
[assert] an empty list
[pass] got: ()
[assert] a bare atom becomes a one-element list
[pass] got: (a)
[assert] an empty list of empty lists
[pass] got: ()
[assert] empty lists disappear
[pass] got: (1 2)
[assert] deep nesting
[pass] got: (1 2 3 4 5)
[assert] nesting on both sides of a spine
[pass] got: (1 2 3 4 5 6)
[assert] one level of nesting
[pass] got: (1 2 3 4)
[assert] a list with nothing to flatten
[pass] got: (1 2 3)
[test] it scales the way its callers need it to
[assert] a thousand levels deep
[pass] got: (deep)
[assert] depth-first, left to right
[pass] got: (1 2 3 4 5 6 7 8)
[assert] a thousand sibling lists
[pass] got: (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999)
[test] length is preserved for proper lists
[assert] a flattened tree has the same element count
[pass] got: 6
[test] what counts as a leaf
[assert] a string is a leaf, not a list of characters
[pass] got: (abc)
[assert] mixed atoms keep their order and identity
[pass] got: (1 two #t x three 4)
[assert] and a dotted pair on its own likewise
[pass] got: (a b)
[assert] numbers and booleans are not list-like
[pass] got: (0 #f #t 1)
[assert] an improper tail is flattened, not kept whole
[pass] got: (a b c)
[assert] a vector is a leaf too
[pass] got: (1 #(2 3) 4)
[test] it survives the deeply nested input it is used on
[assert] a hundred levels deep
[pass] got: (deep)
------------------------------------------
[suite] context-aware escaping
[test] unquoted attribute values
[assert] whitespace and delimiters cannot end the value
[pass] got: a&#x20;b&#x3D;c&#x2F;d&#x3E;e
[assert] letters, digits, - _ and . pass through
[pass] got: abc-1_2.3
[assert] quotes are encoded rather than ended
[pass] got: &#x22;&#x27;
[assert] a non-BMP character stays one reference
[pass] got: &#x1F600;
[test] CSS values
[assert] a percent sign is escaped
[pass] got: 100\000025
[assert] no function call survives
[pass] got: #f
[assert] a non-BMP character uses a six-digit escape
[pass] got: \01F600
[assert] alphanumerics stay readable
[pass] got: TimesNewRoman10px
[test] every encoder leaves the empty string alone
[assert] empty input, empty output
[pass] got: ( )
[test] JavaScript string literals
[assert] quotes and spaces become escapes
[pass] got: O\x27Reilly\x20\x22x\x22
[assert] an encoded value needs no further HTML escaping
[pass] got: it\x27s\x20\x3C\x2Fscript\x3E
[assert] BMP characters use \xHH
[pass] got: caf\xE9
[assert] a non-BMP character becomes a surrogate pair
[pass] got: \uD83D\uDE00
[assert] a newline cannot break the literal
[pass] got: a\x0Ab
[assert] the line separator U+2028 is escaped
[pass] got: a\u2028b
[assert] a backslash is escaped, not left to combine
[pass] got: a\x5Cb
[assert] alphanumerics stay readable
[pass] got: abcXYZ019
[assert] no slash survives, so </script is impossible
[pass] got: #f
[test] html-escape-context picks an encoder per position
[assert] url component
[pass] got: a%2Fb%3Fc%3Dd%26e
[assert] javascript string
[pass] got: a\x22b
[assert] text
[pass] got: &lt;b&gt;
[assert] text is the default
[pass] got: &lt;b&gt;
[assert] an unknown context is an error
[pass] got: rejected
[assert] quoted attribute
[pass] got: a&quot;b
[assert] unquoted attribute
[pass] got: a&#x20;b
[assert] css value
[pass] got: a\000022 b
------------------------------------------
[suite] SQL statement builder
[test] placeholder dialects
[assert] a procedure supplies a custom style
[pass] got: SELECT :p1
[assert] percent (pyformat)
[pass] got: INSERT INTO "users" ("name") VALUES (%s)
[test] INSERT ... RETURNING
[assert] the star stays unquoted
[pass] got: INSERT INTO "users" ("name") VALUES (?) RETURNING *
[assert] a column list is quoted
[pass] got: INSERT INTO "users" ("name") VALUES (?) RETURNING "id"
[test] upsert: multi-row batches
[assert] parameters run row by row
[pass] got: (1 A 2 B)
[test] upsert: ON CONFLICT for PostgreSQL and SQLite
[assert] DO NOTHING keeps the conflict target
[pass] got: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT ("id") DO NOTHING
[assert] an explicit column list narrows the update
[pass] got: INSERT INTO "users" ("id", "name", "age") VALUES (?, ?, ?) ON CONFLICT ("id") DO UPDATE SET "name" = EXCLUDED."name"
[assert] the upsert binds no parameter of its own
[pass] got: (1 A 2)
[assert] and may omit it
[pass] got: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT DO NOTHING
[assert] sqlite renders the same ON CONFLICT form
[pass] got: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT ("id") DO UPDATE SET "name" = EXCLUDED."name"
[test] DELETE conditions
[assert] a null test binds nothing
[pass] got: (7)
[test] multi-row INSERT
[assert] one row is a legal batch
[pass] got: INSERT INTO "users" ("name") VALUES (?)
[assert] numbered placeholders keep counting across rows
[pass] got: INSERT INTO "users" ("name", "age") VALUES ($1, $2), ($3, $4)
[assert] parameters run row by row
[pass] got: (A 1 B 2)
[assert] rows are put into the first row's column order
[pass] got: (A 1 B 2)
[test] WHERE fragments compose
[assert] an empty condition list yields no clause
[pass] got:
[assert] with its parameters
[pass] got: (1 2)
[assert] #:start-index continues another fragment
[pass] got: WHERE "a" = $4
[test] upsert: misuse is reported
[assert] ON CONFLICT DO UPDATE needs a target
[pass] got: rejected
[assert] MySQL has no DO NOTHING
[pass] got: rejected
[assert] a conflict target that is not in the rows
[pass] got: rejected
[assert] an unknown dialect
[pass] got: rejected
[assert] an update that is neither 'auto, 'nothing nor a list
[pass] got: rejected
[assert] a column that is not in the rows
[pass] got: rejected
[assert] MySQL has no RETURNING
[pass] got: rejected
[assert] MySQL has no conflict target to give
[pass] got: rejected
[assert] nothing left to update
[pass] got: rejected
[test] a query hands itself to the driver
[assert] sql-query->alist exposes the sql and the params
[pass] got: (SELECT * FROM "t" WHERE "id" = ? (1))
[test] IN and NOT IN
[assert] an empty IN never matches
[pass] got: SELECT * FROM "users" WHERE 1 = 0
[assert] a populated NOT IN binds each element
[pass] got: (SELECT * FROM "users" WHERE "id" NOT IN (?, ?, ?) (1 2 3))
[assert] an empty NOT IN always matches
[pass] got: SELECT * FROM "users" WHERE 1 = 1
[test] INSERT binds every value
[assert] parameters follow row order
[pass] got: (O'Brien 30)
[test] sql-parameterize fills a hand-written template
[assert] question marks in order
[pass] got: (SELECT * FROM t WHERE a = ? AND b = ? (1 2))
[assert] a template with no values is left alone
[pass] got: SELECT 1
[assert] renumbered for PostgreSQL
[pass] got: UPDATE t SET a = $1 WHERE b = $2
[test] SELECT with every clause
[assert] a lone OFFSET numbers from the first free slot
[pass] got: SELECT * FROM "users" OFFSET $1
[test] UPDATE binds the SET values before the WHERE ones
[assert] parameters
[pass] got: (A 9 7)
[assert] no conditions means no WHERE clause
[pass] got: UPDATE "users" SET "active" = ?
[test] identifier quoting is what keeps a value out of the SQL
[assert] a quote in a column name is doubled, not closed
[pass] got: SELECT * FROM "t" WHERE "x""; DROP TABLE t" = ?
[assert] and never appears in the statement
[pass] got: #f
[assert] #:quote-identifiers? #f emits bare names
[pass] got: SELECT id FROM users WHERE first_name = ?
[test] multi-row INSERT refuses rows that do not line up
[assert] an empty batch
[pass] got: rejected
[assert] a row with different columns
[pass] got: rejected
[assert] a row carrying an extra column
[pass] got: rejected
[test] upsert: ON DUPLICATE KEY UPDATE for MySQL
[assert] MySQL quotes its identifiers and sources VALUES()
[pass] got: INSERT INTO `users` (`id`, `name`) VALUES (?, ?) ON DUPLICATE KEY UPDATE `id` = VALUES(`id`), `name` = VALUES(`name`)
[assert] an explicit column list keeps the key out of it
[pass] got: INSERT INTO `users` (`id`, `name`, `age`) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE `name` = VALUES(`name`)
[test] #:dialect decides how identifiers are delimited
[assert] quote-sql-identifier switches delimiter on request
[pass] got: ("id" `id`)
[assert] the default is still ANSI quoting
[pass] got: SELECT "id" FROM "users" WHERE "id" = ?
[assert] an unknown dialect is rejected
[pass] got: rejected
[assert] and so do the other builders
[pass] got: (UPDATE `users` SET `name` = ? WHERE `id` = ? DELETE FROM `users` WHERE `id` = ?)
[assert] MySQL uses backticks, not double quotes
[pass] got: SELECT `id`, `name` FROM `users` WHERE `id` = ? LIMIT ?
[test] misuse is reported, not silently mis-compiled
[assert] a condition that is not a pair or list
[pass] got: rejected
[assert] an unknown placeholder style
[pass] got: rejected
[assert] an operator outside the allow-list
[pass] got: rejected
[assert] too few values
[pass] got: rejected
[assert] too many values
[pass] got: rejected
[assert] an unknown ORDER BY direction
[pass] got: rejected
[assert] an INSERT with no columns
[pass] got: rejected
------------------------------------------
[suite] SRFI re-exports
[test] srfi-2, 8, 11 and 26 syntactic forms
[assert] cut
[pass] got: 3
[assert] cute
[pass] got: (2 3)
[assert] let*-values
[pass] got: 2
[assert] and-let* failure
[pass] got: #f
[assert] let-values
[pass] got: 7
[assert] receive
[pass] got: (1 2)
[assert] and-let* success
[pass] got: ok
[test] srfi-111 boxes
[assert] set-box!
[pass] got: 8
[assert] box?
[pass] got: #t
[assert] box and unbox
[pass] got: 7
[test] srfi-43 vector procedures
[assert] vector-fold
[pass] got: 6
[assert] vector-for-each
[pass] got: 6
[assert] vector-index
[pass] got: 2
[assert] vector-append
[pass] got: #(1 2 3)
[assert] vector-map receives the index
[pass] got: #(0 2 6)
[assert] vector-count
[pass] got: 2
[test] native Guile hash tables are left untouched
[assert] core make-hash-table/hash-ref still work
[pass] got: found
[test] match and pretty-print re-exports
[assert] match
[pass] got: 3
[assert] pretty-print writes to a string
[pass] got: #t
[test] srfi-1 list procedures
[assert] lset-union
[pass] got: (1 2 3)
[assert] filter-map
[pass] got: (1 9)
[assert] take and drop
[pass] got: ((1 2) (3 4))
[assert] zip
[pass] got: ((1 a) (2 b))
[assert] fold-right
[pass] got: (1 2 3)
[assert] list-tabulate
[pass] got: (0 1 4)
[assert] delete-duplicates
[pass] got: (1 2 3)
[assert] reduce
[pass] got: 6
[assert] fold
[pass] got: 6
[assert] count
[pass] got: 2
[test] srfi-19 date and time
[assert] make-date returns a date
[pass] got: #t
[assert] current-date returns a date
[pass] got: #t
[assert] date->string returns a string
[pass] got: #t
[info] ran 7 tasks in: 0 seconds, 125354 microseconds
running unit tests from file: modules-spec.scm, entrypoint: spec
[info] shuffled with seed 970887932 (replay with VERITAS_SEED=970887932)
------------------------------------------
[suite] Kracht sub-modules
[test] (kracht web) works standalone
[assert] html-unescape numeric reference
[pass] got: '
[assert] html-escape-context javascript
[pass] got: a\x22b
[assert] alist-from-url-encoded-body
[pass] got: ((a . 1))
[assert] html-unescape
[pass] got: <
[assert] html-escape
[pass] got: &apos;
[assert] html-escape-css-value
[pass] got: 100\000025
[assert] html-escape ampersand
[pass] got: a &amp; b
[test] (kracht html-entities) works standalone
[assert] including one the HTML4 set has no name for
[pass] got: …
[assert] an unknown reference is #f
[pass] got: #f
[assert] the escape table is the HTML4 set
[pass] got: 253
[assert] and the decode table is the HTML5 one
[pass] got: 2125
[assert] html-char-ref writes a reference
[pass] got: &lt;
[assert] html-entity-ref reads a reference
[pass] got: &
[test] (kracht io) works standalone
[assert] get-short-commit-sha returns a string
[pass] got: #t
[assert] syscall returns a string
[pass] got: #t
[test] (kracht strings) works standalone
[assert] base64-encode
[pass] got: aGVsbG8=
[assert] string-drop-first-last
[pass] got: ell
[assert] base64-decode
[pass] got: hello
[assert] non-empty-string?
[pass] got: #t
[test] the split is clean: modules do not leak each other's names
[assert] (kracht sql) exports sql-upsert-many
[pass] got: #t
[assert] (kracht strings) exports base64-encode
[pass] got: #t
[assert] (kracht prelude) re-exports sql-insert
[pass] got: #t
[assert] (kracht html-entities) is tables only, not the escapers
[pass] got: #f
[assert] (kracht prelude) re-exports html-entity-ref
[pass] got: #t
[assert] (kracht html-entities) exports html-char-ref
[pass] got: #t
[assert] (kracht sql) exports value->sql-literal
[pass] got: #t
[assert] (kracht sql) exports sql-select
[pass] got: #t
[assert] (kracht sql) exports sql-parameterize
[pass] got: #t
[assert] (kracht web) exports html-escape-context
[pass] got: #t
[assert] (kracht sql) does not export the web encoders
[pass] got: #f
[assert] (kracht sql) exports quote-sql-identifier
[pass] got: #t
[assert] (kracht prelude) re-exports sql-insert-many
[pass] got: #t
[assert] (kracht io) does not export base64-encode
[pass] got: #f
[assert] (kracht strings) does not export html-escape
[pass] got: #f
[assert] (kracht sql) does not export flatten-list
[pass] got: #f
[test] (kracht lists) works standalone
[assert] assoc-ref-or
[pass] got: 1
[assert] alist?
[pass] got: #t
[assert] flatten-list
[pass] got: (1 2 3)
[test] (kracht sql) works standalone
[assert] sql-select binds its value
[pass] got: (SELECT * FROM "t" WHERE "id" = ? (1))
[assert] value->sql-literal escapes quotes
[pass] got: 'O''Brien'
[assert] symbol->sql-column
[pass] got: first_name
[assert] quote-sql-identifier
[pass] got: "select"
[assert] sql-column->symbol
[pass] got: first-name
[assert] sql-insert-many groups one VALUES per row
[pass] got: INSERT INTO "t" ("a") VALUES (?), (?)
[assert] sql-upsert renders ON CONFLICT
[pass] got: INSERT INTO "t" ("id", "a") VALUES (?, ?) ON CONFLICT ("id") DO UPDATE SET "a" = EXCLUDED."a"
[info] ran 1 tasks in: 0 seconds, 11484 microseconds
running unit tests from file: entities-spec.scm, entrypoint: spec
[info] shuffled with seed 970887932 (replay with VERITAS_SEED=970887932)
------------------------------------------
[suite] HTML entity tables
[test] html-unescape uses the wider table
[assert] the legacy upper-case spellings still work
[pass] got: &<>"
[assert] two references with nothing between them
[pass] got: αΑ
[assert] a two-code-point reference decodes to two
[pass] got: (2 ≂̸)
[assert] the HTML5-only names decode too
[pass] got: a/b*c$%
[assert] numeric references still work alongside them
[pass] got: α'
[assert] a string of symbols comes back
[pass] got: Price… €5 — © α→
[assert] an unknown name is still left alone
[pass] got: &nope;
[assert] a reference at the very end of the string
[pass] got: 5 ≤
[test] the two tables agree with each other;;; note: source file ./src/kracht/prelude.scm
;;; newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/prelude.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/prelude.scm.go
;;; note: source file ./src/kracht/strings.scm
;;; newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/strings.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/strings.scm.go
;;; note: source file ./src/kracht/lists.scm
;;; newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/lists.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/lists.scm.go
;;; note: source file ./src/kracht/sql.scm
;;; newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/sql.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/sql.scm.go
;;; note: source file ./src/kracht/web.scm
;;; newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/web.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/web.scm.go
;;; note: source file ./src/kracht/html-entities.scm
;;; newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/html-entities.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/html-entities.scm.go
;;; note: source file ./src/kracht/io.scm
;;; newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/io.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/io.scm.go
[assert] and reading it back gives the same character
[pass] got: ()
[assert] the encoder's own lookup is consistent
[pass] got: ()
[assert] nothing is emitted that cannot be read back
[pass] got: ()
[test] every entry is shaped the way a lookup expects
[assert] escape values are named references
[pass] got: #t
[assert] escape keys are single characters
[pass] got: #t
[assert] decode names run from & to ;
[pass] got: #t
[test] a reference stands for the character the standard gives it
[assert] and they survive a round trip
[pass] got: ⟨⟩
[assert] the mathematical brackets are what is written
[pass] got: (&lang; &rang;)
[assert] the CJK brackets have no reference to write
[pass] got: (#f #f)
[assert] so those characters pass through unchanged
[pass] got: 〈〉
[assert] while the references still decode as HTML5 reads them
[pass] got: (⟨ ⟩)
[test] html-entity-ref reads a reference
[assert] an entity standing for two code points
[pass] got: ≂̸
[assert] a mathematical symbol
[pass] got: ≤
[assert] a Greek letter
[pass] got: α
[assert] the legacy upper-case spelling too
[pass] got: &
[assert] a non-breaking space
[pass] got:
[assert] a currency sign's HTML5-only spelling
[pass] got: $
[assert] the ampersand entity
[pass] got: &
[assert] and another
[pass] got: —
[assert] an arrow
[pass] got: →
[assert] a currency sign
[pass] got: €
[assert] punctuation the old table did not have
[pass] got: …
[assert] case matters: this is the capital
[pass] got: Α
[test] the tables are the standard's, not a hand-written sample
[assert] the escape set is the HTML4 one
[pass] got: 253
[assert] every HTML5 reference ending in a semicolon
[pass] got: 2125
[test] html-escape uses the wider table
[assert] a character with no entity passes through
[pass] got: a😀
[assert] the HTML5-only names are still not emitted
[pass] got: a/b*c$%
[assert] and the five significant ones are unaffected
[pass] got: &lt;&gt;&amp;&quot;&apos;
[assert] symbols and accents all become entities
[pass] got: Price&hellip; &euro;5 &mdash; &copy; &alpha;&rarr; caf&eacute;
[assert] a non-breaking space is written as one
[pass] got: a&nbsp;b
[test] escaping and unescaping are inverses over the whole table
[assert] every escapable character survives a round trip
[pass] got: ()
[assert] and so does a sentence mixing them
[pass] got: cafá € ≤ 3 — ™
[test] html-char-ref writes a reference
[assert] another
[pass] got: &amp;
[assert] a significant character
[pass] got: &lt;
[assert] an accent, as before
[pass] got: &aacute;
[assert] a character with no entity
[pass] got: #f
[assert] and the apostrophe HTML5 gave us
[pass] got: &apos;
[assert] another
[pass] got: &gt;
[assert] and another
[pass] got: &atilde;
[assert] a digit has none either
[pass] got: #f
[assert] a symbol
[pass] got: &copy;
[assert] another
[pass] got: &quot;
[assert] nor does a slash
[pass] got: #f
[assert] a non-breaking space
[pass] got: &nbsp;
[assert] nor an astral-plane character
[pass] got: #f
[test] html-entity-ref refuses what is not a reference
[assert] a reference with no semicolon
[pass] got: #f
[assert] the empty string
[pass] got: #f
[assert] an unknown name
[pass] got: #f
[assert] an empty reference
[pass] got: #f
[assert] a name with no ampersand
[pass] got: #f
[info] ran 1 tasks in: 0 seconds, 15520 microseconds
finished running tests
--------------------------------------------------------------
Maak: the infinitely extensible command runner
Loading tasks from Maak file: /etc/byggsteg/job-clone/kracht/trunk/maak.scm
Executing Maak tasks: test
--------------------------------------------------------------
=> Running Maak task: test
Run project's tests.
→ running command: cd /etc/byggsteg/job-clone/kracht/trunk && sudo maak deploy
API documentation saved to doc/api
index.texi: warning: must specify a title with a title command or @top
renamed './index' -> './doc/api-dist'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/API.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fhtml_002dentities.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fio.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005flists.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fprelude.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fsql.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fstrings.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fweb.html'
removed directory '/srv/http/jointhefreeworld.org/api-docs/kracht'
mkdir: created directory '/srv/http/jointhefreeworld.org/api-docs/kracht'
renamed 'doc/api-dist/API.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/API.html'
renamed 'doc/api-dist/kracht_005fhtml_002dentities.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fhtml_002dentities.html'
renamed 'doc/api-dist/kracht_005fio.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fio.html'
renamed 'doc/api-dist/kracht_005flists.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005flists.html'
renamed 'doc/api-dist/kracht_005fprelude.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fprelude.html'
renamed 'doc/api-dist/kracht_005fsql.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fsql.html'
renamed 'doc/api-dist/kracht_005fstrings.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fstrings.html'
renamed 'doc/api-dist/kracht_005fweb.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fweb.html'
removed 'doc/api/index.texi'
removed directory 'doc/api'
removed directory 'doc/api-dist'
removed directory 'doc'
--------------------------------------------------------------
Maak: the infinitely extensible command runner
Loading tasks from Maak file: /etc/byggsteg/job-clone/kracht/trunk/maak.scm
Executing Maak tasks: deploy
--------------------------------------------------------------
=> Running Maak task: deploy
Generate documentation for the project and publish to web directory.