guile-openapi-generator-2cd60cfe-237c

job succeeded

starting new job...


→ running command: mkdir -p "/etc/byggsteg/job-clone//guile-openapi-generator" && git clone -b "trunk" "https://codeberg.org/jjba23/guile-openapi-generator.git" "/etc/byggsteg/job-clone//guile-openapi-generator/trunk"

Cloning into '/etc/byggsteg/job-clone//guile-openapi-generator/trunk'...

→ running command: cd /etc/byggsteg/job-clone/guile-openapi-generator/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/guile-openapi-generator/trunk && git log --name-status HEAD^..HEAD

commit 97f93f969e8dc1a729a9b4ded29a2bbb95d42902
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Thu Oct 22 09:03:40 2026 +0200

    feat: Improve generator implementation

A       .woodpecker/byggsteg.yaml
M       README.org
M       maak.scm
M       manifest.scm
M       src/openapi-generator/client.scm
M       src/openapi-generator/generator.scm
M       src/openapi-generator/models.scm
M       src/openapi-generator/reader.scm
M       src/openapi-generator/runtime.scm
M       src/openapi-generator/schema.scm
M       src/openapi-generator/spec.scm
A       test/fixtures/library.yaml
A       test/fixtures/programs/full-api.scm
A       test/fixtures/programs/full-client.scm
M       test/fixtures/programs/models-union.scm
M       test/veritas/unit/generator-spec.scm
A       test/veritas/unit/integration-spec.scm
M       test/veritas/unit/models-spec.scm
M       test/veritas/unit/runtime-spec.scm

→ running command: cd /etc/byggsteg/job-clone/guile-openapi-generator/trunk && maak test

substitute: looking for substitutes on 'https://bordeaux.guix.gnu.org'... 100.0%
15.0 MB will be downloaded
.
The following derivation will be built:
  /gnu/store/vk352gwcapgf1z6g6zcrn0drbzjjyyc3-profile.drv

building CA certificate bundle...
listing Emacs sub-directories...
building fonts directory...
building directory of Info manuals...
building profile with 8 packages...
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling ./test/veritas/unit/generator-spec.scm
;;; compiling ./src/openapi-generator/generator.scm
;;; compiling ./src/openapi-generator/jso.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/jso.scm.go
;;; compiling ./src/openapi-generator/naming.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/naming.scm.go
;;; compiling ./src/openapi-generator/reader.scm
;;; compiling ./src/openapi-generator/json.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/json.scm.go
;;; compiling ./src/openapi-generator/yaml.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/yaml.scm.go
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/reader.scm.go
;;; compiling ./src/openapi-generator/spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/spec.scm.go
;;; compiling ./src/openapi-generator/schema.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/schema.scm.go
;;; compiling ./src/openapi-generator/config.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/config.scm.go
;;; compiling ./src/openapi-generator/models.scm
;;; compiling ./src/openapi-generator/code.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/code.scm.go
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/models.scm.go
;;; compiling ./src/openapi-generator/controllers.scm
;;; compiling ./src/openapi-generator/emitter.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/emitter.scm.go
;;; openapi-generator/controllers.scm:161:8: warning: non-literal format string
;;; openapi-generator/controllers.scm:226:3: warning: non-literal format string
;;; openapi-generator/controllers.scm:327:14: warning: non-literal format string
;;; openapi-generator/controllers.scm:374:14: warning: non-literal format string
;;; openapi-generator/controllers.scm:479:14: warning: non-literal format string
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/controllers.scm.go
;;; compiling ./src/openapi-generator/client.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/client.scm.go
;;; openapi-generator/generator.scm:343:9: warning: non-literal format string
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/generator.scm.go
;;; compiling ./src/openapi-generator/cli.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator/cli.scm.go
;;; compiling ./test/openapi-support.scm
;;; compiling ./src/openapi-generator.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/src/openapi-generator.scm.go
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/openapi-support.scm.go
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/generator-spec.scm.go
openapi-generator: ~A
guile-openapi-generator 0.1.0

Read an OpenAPI 3.x specification and generate Guile code.

Usage: 
scanning directories for unit tests...
scanning present working directory for unit tests...

shuffled the files with seed 79562721 (replay with VERITAS_SEED=79562721)

found unit tests: (generator-spec.scm jso-spec.scm spec-spec.scm yaml-spec.scm reader-spec.scm integration-spec.scm controllers-spec.scm models-spec.scm schema-spec.scm runtime-spec.scm naming-spec.scm client-spec.scm code-spec.scm)


running unit tests from file: generator-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Version
  [🧪 test] The generator reports its own version
    ✅ got: #t
    ✅ got: #f
+----------------------------------------------+
[📑 suite] Validating the specification
  [🧪 test] #:validate? decides whether an in-memory document is checked
    [⚙️ assert] a Swagger document is refused by default
    ✅ success catching error: misc-error: (#f ~A (<document> declares Swagger 2.0; only OpenAPI 3.x is supported) #f)
    [⚙️ assert] skipping validation still runs
    ✅ got: (readme)
+----------------------------------------------+
[📑 suite] Command line
  [🧪 test] An unknown controller backend is an error
    ✅ got: 1
  [🧪 test] generate is accepted as the first word
    ✅ got: 0
    ✅ got: #f
  [🧪 test] Backend names are parsed
    ✅ got: artanis
    ✅ got: none
    ✅ got: curl
  [🧪 test] A missing --input is an error
    ✅ got: 1
  [🧪 test] --help and --version succeed
    ✅ got: 0
    ✅ got: 0
+----------------------------------------------+
[📑 suite] Generation report
  [🧪 test] The module name defaults to the API title
    [⚙️ assert] mini/models.scm
    ✅ got: #t
    ✅ got: #t
  [🧪 test] The README names the API and its operations
    ✅ got: #t
    ✅ got: #t
  [🧪 test] The client backend changes the generated client
    [⚙️ assert] the curl backend was chosen
    ✅ got: #t
  [🧪 test] Models only, when asked
    [⚙️ assert] only/models.scm
    ✅ got: #t
    [⚙️ assert] only/README.org
    ✅ got: #t
    [⚙️ assert] only/controllers.scm
    ✅ got: #f
    [⚙️ assert] only/client.scm
    ✅ got: #f
    ✅ got: (models readme)
  [🧪 test] A run writes models, controllers, a client and a README
    [⚙️ assert] petstore/models.scm
    ✅ got: #t
    [⚙️ assert] petstore/controllers.scm
    ✅ got: #t
    [⚙️ assert] petstore/client.scm
    ✅ got: #t
    [⚙️ assert] petstore/README.org
    ✅ got: #t
    ✅ got: 4
    ✅ got: models
  [🧪 test] The Artanis adapter is written when it is asked for
    [⚙️ assert] artanis-app/artanis.scm
    ✅ got: #t
    [⚙️ assert] artanis-app/controllers.scm
    ✅ got: #t
+----------------------------------------------+
[📑 suite] Self-contained trees
  [🧪 test] The runtime is copied next to the generated code
    [⚙️ assert] vendored/jso.scm
    ✅ got: #t
    [⚙️ assert] vendored/runtime.scm
    ✅ got: #t
    [⚙️ assert] vendored/models.scm
    ✅ got: #t
  [🧪 test] The copy imports the copy
    ✅ got: #t
  [🧪 test] The copied tree loads with only its own directory on the path
    ✅ got: (cat Mia #t 9 #t #t)
ℹ️ info - ran 5 tasks in: 7 seconds, -58939 microseconds

running unit tests from file: jso-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Accessors
  [🧪 test] jso-put keeps the position of an existing member
    ✅ got: ((a . 9) (b . 2))
  [🧪 test] Keys and values keep the document order
    ✅ got: (a b c)
    ✅ got: (1 2 ((d . 4)))
  [🧪 test] jso-append lets later entries win
    ✅ got: ((a . 2) (b . 1))
  [🧪 test] jso-delete removes one member
    ✅ got: ((a . 1) (c 4))
  [🧪 test] jso-ref-path walks nested objects
    ✅ got: 4
    [⚙️ assert] a missing step yields #f
    ✅ got: #f
  [🧪 test] A deep copy shares no pairs
    ✅ got: ((a . 1) (b . 2) (c (d . 4)))
    [⚙️ assert] the nested object is a copy
    ✅ got: #f
+----------------------------------------------+
[📑 suite] Normalisation
  [🧪 test] A jso object round-trips through JSON
    ✅ got: 1
    ✅ got: 4
    ✅ got: (a b c)
  [🧪 test] Symbol keys become strings
    ✅ got: ((name . Pet))
  [🧪 test] Normalisation descends into arrays
    ✅ got: #(((name . Pet)))
+----------------------------------------------+
[📑 suite] JSON merge patch
  [🧪 test] A member replaces the target member
    [⚙️ assert] b is replaced, a is kept
    ✅ got: ((a . 1) (b . 3))
  [🧪 test] Objects merge recursively
    [⚙️ assert] nested members merge, they do not replace
    ✅ got: ((c (d . 5) (e . 6)))
  [🧪 test] A null member deletes the target member
    [⚙️ assert] b is removed
    ✅ got: ((a . 1))
  [🧪 test] A nested null deletes a nested member
    [⚙️ assert] d is removed from the nested object
    ✅ got: ((a . 1) (b . 2) (c))
  [🧪 test] A patch that is not an object replaces the target
    [⚙️ assert] RFC 7386: anything else replaces
    ✅ got: #(1 2)
  [🧪 test] A member that is absent from the patch is untouched
    [⚙️ assert] b and c survive, only a changes
    ✅ got: ((a . 9) (b . 2) (c (d . 4)))
+----------------------------------------------+
[📑 suite] Objects and arrays
  [🧪 test] An empty object is the empty list
    [⚙️ assert] nothing is in it
    ✅ got: ()
  [🧪 test] Arrays are vectors
    [⚙️ assert] a JSON array is a vector
    ✅ got: #t
  [🧪 test] null is a value, not an absence
    [⚙️ assert] the member is present
    ✅ got: #t
    [⚙️ assert] and it holds null
    ✅ got: #t
    [⚙️ assert] an absent member falls back to the default
    ✅ got: nothing
  [🧪 test] A parsed object has string keys
    ✅ got: ((name . Pet))
ℹ️ info - ran 4 tasks in: 0 seconds, 20698 microseconds

running unit tests from file: spec-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Security
  [🧪 test] Operation security wins over the global one
    ✅ got: (((oauth2 write:animals)))
  [🧪 test] An empty operation security means public
    [⚙️ assert] deleteAnimal opts out
    ✅ got: ()
  [🧪 test] Global security applies to an operation without its own
    ✅ got: (((api_key)))
  [🧪 test] The security schemes are read
    ✅ got: (api_key basic_auth bearer_auth oauth2 open_id)
    ✅ got: http
    ✅ got: bearer
    ✅ got: JWT
+----------------------------------------------+
[📑 suite] References
  [🧪 test] A pointer escape is understood
    [⚙️ assert] the escape sequence for a slash is understood
    ✅ got: string
  [🧪 test] A local pointer resolves
    ✅ got: object
  [🧪 test] An unresolvable pointer raises
    ✅ success catching error: misc-error: (#f JSON pointer does not resolve ~S (#/components/schemas/Nope) #f)
+----------------------------------------------+
[📑 suite] Responses
  [🧪 test] The success response is found
    ✅ got: 200
    ✅ got: application/json
  [🧪 test] A default response is a fallback
    ✅ got: default
  [🧪 test] A response reference is resolved
    ✅ got: Something went wrong
    ✅ got: 1
+----------------------------------------------+
[📑 suite] Document
  [🧪 test] The title, version and servers are read
    ✅ got: Petstore
    ✅ got: 3.0.3
    ✅ got: https://api.example.com/v1
    ✅ got: 2
  [🧪 test] The component schemas are read in order
    ✅ got: (Pet NewPet)
    [⚙️ assert] Pet is a component schema
    ✅ got: #t
+----------------------------------------------+
[📑 suite] Operations
  [🧪 test] operationId wins, otherwise method and path decide
    ✅ got: list-pets
    [⚙️ assert] post-pets has no operationId
    ✅ got: post-pets
  [🧪 test] Every path and method becomes an operation
    ✅ got: (list-pets post-pets get-pet-by-id delete-pets-by-pet-id)
  [🧪 test] Path level parameters are inherited
    ✅ got: (animalId)
    [⚙️ assert] a path parameter is required
    ✅ got: #t
  [🧪 test] Operation level parameters win over path level ones
    [⚙️ assert] the parameter is not duplicated
    ✅ got: 1
    ✅ got: from operation
  [🧪 test] Method, path, summary and tags are read
    ✅ got: post
    ✅ got: /animals
    ✅ got: Create an animal
    ✅ got: #f
ℹ️ info - ran 5 tasks in: 1 seconds, -974514 microseconds

running unit tests from file: yaml-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Anchors
  [🧪 test] An unknown alias is an error
    [⚙️ assert] *nope has no anchor
    ✅ success catching error: misc-error: (#f YAML: unknown alias ~S (nope) #f)
  [🧪 test] An alias repeats the anchored value
    [⚙️ assert] copy equals base
    ✅ got: ((shared . #t) (count . 2))
  [🧪 test] A merge key overlays an anchored mapping
    [⚙️ assert] the merged member is present
    ✅ got: #t
    [⚙️ assert] the explicit member wins
    ✅ got: 3
+----------------------------------------------+
[📑 suite] Documents
  [🧪 test] Document markers and directives are ignored
    ✅ got: ((a . 1))
  [🧪 test] A tab cannot indent a line
    [⚙️ assert] a tab raises instead of guessing
    ✅ success catching error: misc-error: (#f YAML: a tab cannot be used for indentation ~S (   b: 1) #f)
  [🧪 test] An empty document is null
    [⚙️ assert] nothing is null
    ✅ got: #t
  [🧪 test] The petstore fixture reads
    ✅ got: 3.0.3
    [⚙️ assert] components is an object
    ✅ got: #t
+----------------------------------------------+
[📑 suite] Collections
  [🧪 test] A flow mapping nests
    ✅ got: ((a . 1) (b . #(2 3)) (c (d . 4)))
  [🧪 test] Deeply nested mappings are read
    ✅ got: ((a (b (c . 1))))
  [🧪 test] A sequence of mappings is read whole
    [⚙️ assert] two items
    ✅ got: 2
    ✅ got: second
    ✅ got: #(3 4)
  [🧪 test] A flow sequence is a vector
    [⚙️ assert] every element has the right type
    ✅ got: #(1 2.5 #t null text)
  [🧪 test] A sequence may sit at the indentation of its key
    [⚙️ assert] - may be at the same column as k
    ✅ got: ((k . #(a b)))
+----------------------------------------------+
[📑 suite] Scalars
  [🧪 test] Numbers are numbers
    ✅ got: 42
    ✅ got: -7
    ✅ got: 3.5
    ✅ got: 1000.0
    ✅ got: 31
  [🧪 test] Version-like scalars stay strings
    [⚙️ assert] 3.0.3 is not a number
    ✅ got: 3.0.3
  [🧪 test] Quoted scalars keep their content
    [⚙️ assert] double quoted escapes
    ✅ got: a: colon, "quote" and 
 newline
    [⚙️ assert] a doubled quote is an escaped quote
    ✅ got: it's fine
  [🧪 test] A comment is not part of the value
    [⚙️ assert] a # starts a comment only after a space
    ✅ got: ((a . 1) (b . x#not-a-comment))
  [🧪 test] A key with no value is null
    [⚙️ assert] empty_value is json-null
    ✅ got: #t
  [🧪 test] Booleans are booleans
    ✅ got: #t
    ✅ got: #f
+----------------------------------------------+
[📑 suite] Block scalars
  [🧪 test] A folded block joins its lines with spaces
    [⚙️ assert] the strip chomping removes the trailing newline
    ✅ got: one two three
four
  [🧪 test] The indentation of the block is removed
    [⚙️ assert] relative indentation survives
    ✅ got: a
  b

  [🧪 test] A literal block keeps its line breaks
    [⚙️ assert] the clip chomping adds one newline
    ✅ got: first line
second line

ℹ️ info - ran 5 tasks in: 0 seconds, 25997 microseconds

running unit tests from file: reader-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Validation
  [🧪 test] 3.x is accepted
    ✅ got: #t
    ✅ got: #t
    ✅ got: #f
    ✅ got: #f
  [🧪 test] A document without an openapi member is refused
    ✅ success catching error: misc-error: (#f ~A (<string> has no 'openapi' member; not an OpenAPI document) #f)
  [🧪 test] An unknown major version is refused
    ✅ success catching error: misc-error: (#f ~A (<string> declares OpenAPI 4.0.0; only OpenAPI 3.x is supported) #f)
  [🧪 test] A Swagger 2.0 document is refused with its version
    [⚙️ assert] Swagger is not OpenAPI 3
    ✅ success catching error: misc-error: (#f ~A (test/fixtures/swagger2.yaml declares Swagger 2.0; only OpenAPI 3.x is supported) #f)
+----------------------------------------------+
[📑 suite] Format detection
  [🧪 test] Content decides when the name does not
    ✅ got: json
    ✅ got: yaml
  [🧪 test] An unknown extension falls back to YAML
    ✅ got: yaml
  [🧪 test] A file name decides
    ✅ got: json
    ✅ got: yaml
    ✅ got: yaml
+----------------------------------------------+
[📑 suite] Parsing
  [🧪 test] A string is read the same way
    ✅ got: 3.0.3
  [🧪 test] YAML and JSON versions of the same document agree
    ✅ got: 3.0.3
    ✅ got: object
    ✅ got: #(id label)
    ✅ got: #t
  [🧪 test] read-spec accepts a path and a document
    ✅ got: Mini
    ✅ got: Mini
ℹ️ info - ran 3 tasks in: 0 seconds, 22789 microseconds

running unit tests from file: integration-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Generated client from a whole file
  [🧪 test] A 2XX response is checked against its family
    [⚙️ assert] the search operation accepts every 2xx
    ✅ got: #t
  [🧪 test] An unset optional header is left out, not sent as #f
    ✅ got: #t
  [🧪 test] An exact response keeps its exact check
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
+----------------------------------------------+
[📑 suite] The whole tree, used
  [🧪 test] Records keep their data and the route table dispatches
    ✅ got: (web ((lang . en) (note . x)) ((source . web) (lang . en) (note . x)) web ((lang . en) (note . x)) (scheme scheme) ((width . 10) (unit . cm)) 12.34 (book ratings) must be a multiple of 0.01 (book counters) ((a . 1) (b . 2)) (book counters) ((a . 1) (b . two)) ((x . y)) ((title . rough) (pages . 3) (notes . later)) rough ((pages . 3) (notes . later)) Structure and Interpretation ((width . 10) (unit . cm)) web ((lang . en) (note . x)) 200 ((limit . 5) (x-request-id . #f)) ((book-id . 3f2504e0-4f89-11d3-9a0c-0305e82c3301)) Compilers 200)
  [🧪 test] The generated client talks to a server
    ✅ got: (200 (SICP) SICP 299 (SICP) 201 Compilers 500)
    ✅ got: secret
    ✅ got: limit=5
    ✅ got: #t
    ✅ got: secret
    ✅ got: {"title":"Compilers","price":9.99}
+----------------------------------------------+
[📑 suite] A whole specification is read
  [🧪 test] Every operation and schema is understood
    ✅ got: 5
    ✅ got: #t
+----------------------------------------------+
[📑 suite] Generated models from a whole file
  [🧪 test] uniqueItems is only checked when it is declared
    ✅ got: 1
    ✅ got: #t
    ✅ got: #f
  [🧪 test] A record that keeps undeclared members exports their accessor
    ✅ got: #t
    ✅ got: #t
  [🧪 test] A bare object becomes a map, not an empty record
    ✅ got: #t
    ✅ got: #f
  [🧪 test] An inexact multipleOf is generated as declared
    ✅ got: #t
    ✅ got: #t
  [🧪 test] A map is checked against its declared size
    ✅ got: #t
    ✅ got: #t
ℹ️ info - ran 4 tasks in: 5 seconds, -295854 microseconds

running unit tests from file: controllers-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Generated text
  [🧪 test] The route table holds one route per operation
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: 4
  [🧪 test] An operation decodes its parameters
    ✅ got: #t
    ✅ got: #t
  [🧪 test] A request body is decoded into the record
    ✅ got: #t
  [🧪 test] A path parameter becomes a capturing group
    [⚙️ assert] the name of the captured parameter is kept
    ✅ got: #t
  [🧪 test] The Artanis adapter registers one route per operation
    ✅ got: 4
    ✅ got: #t
    ✅ got: #t
    [⚙️ assert] each route is a handler
    ✅ got: #t
    [⚙️ assert] responses go through Artanis
    ✅ got: #t
    [⚙️ assert] the concrete path is rebuilt from the parameters
    ✅ got: #t
  [🧪 test] Handlers are looked up, not guessed
    ✅ got: #t
    ✅ got: #t
+----------------------------------------------+
[📑 suite] Generated dispatch
  [🧪 test] Handlers receive the decoded parameters and responses are built
    ✅ got: (200 ((limit . 10)) ((pet-id . 42)) Bella list-pets (GET /nope))
ℹ️ info - ran 2 tasks in: 1 seconds, 186279 microseconds

running unit tests from file: models-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Generated text
  [🧪 test] A record is a record, a constructor and a predicate
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
  [🧪 test] Composition is flattened into one record
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
  [🧪 test] The converters are generated and named after the schema
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
  [🧪 test] An absent optional member is left out
    ✅ got: #t
  [🧪 test] An object of only additionalProperties is a map
    ✅ got: #t
    ✅ got: #t
  [🧪 test] An enumeration becomes values and constants
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
  [🧪 test] A nullable member is written as null
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
  [🧪 test] A union is a predicate and a decoder that uses the discriminator
    ✅ got: #t
    ✅ got: #t
  [🧪 test] The docstring says where the file came from
    ✅ got: #t
    ✅ got: #t
  [🧪 test] The constructor validates what the specification declares
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
+----------------------------------------------+
[📑 suite] Generated records
  [🧪 test] A record serialises to jso and back
    ✅ got: (Mia #t #t #f Mia Mia)
  [🧪 test] A record is constructed, read and validated
    ✅ got: (cat Mia #t 9 #t #t)
  [🧪 test] A value outside the constraints raises
    ✅ got: ((dog name) Rex)
  [🧪 test] An enumeration is values, constants and a predicate
    ✅ got: (fresh #t (fish water))
  [🧪 test] A merge patch replaces and removes members
    ✅ got: (Tom #f)
  [🧪 test] A missing required member raises with the path of the field
    ✅ got: (((cat name) is required but is missing))
  [🧪 test] Named scalars, lists and maps validate through their predicates
    ✅ got: (#t #f #t #f #(a b) #t ())
  [🧪 test] A discriminated union decodes into the right record
    ✅ got: (#t Mia #t #t #t #f (Animal))
ℹ️ info - ran 2 tasks in: 30 seconds, -9740 microseconds

running unit tests from file: schema-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Shapes
  [🧪 test] A named scalar keeps its constraints
    ✅ got: #t
    ✅ got: email
    ✅ got: ^[^@]+@[^@]+\.[^@]+$
  [🧪 test] A string with a format is a scalar with that format
    ✅ got: #t
    ✅ got: date-time
  [🧪 test] A component array is a list of scalars
    ✅ got: #t
    ✅ got: string
  [🧪 test] An object of only additionalProperties is a map
    ✅ got: #t
    ✅ got: #t
  [🧪 test] A nullable member is nullable
    ✅ got: #t
  [🧪 test] An enumeration is an enumeration
    ✅ got: #t
    ✅ got: (fresh salt)
+----------------------------------------------+
[📑 suite] Constraints
  [🧪 test] Numeric constraints are read
    ✅ got: 0
    ✅ got: 200
  [🧪 test] Array constraints are read
    ✅ got: 1
    ✅ got: #t
  [🧪 test] String constraints are read
    ✅ got: 1
    ✅ got: 40
+----------------------------------------------+
[📑 suite] Registry
  [🧪 test] Component schemas keep their names
    ✅ got: Animal
  [🧪 test] An array of references is a list of records
    [⚙️ assert] it is a list
    ✅ got: #t
    [⚙️ assert] of records
    ✅ got: #t
    ✅ got: Animal
  [🧪 test] Uses of a reference are not given a second name
    [⚙️ assert] a $ref body is not a new record
    ✅ got: #f
  [🧪 test] A reference becomes a record shape
    [⚙️ assert] it is a record reference
    ✅ got: #t
    ✅ got: Owner
+----------------------------------------------+
[📑 suite] Composition
  [🧪 test] oneOf keeps its branches and discriminator
    ✅ got: #t
    ✅ got: kind
    ✅ got: 3
    ✅ got: ((cat . Cat) (dog . Dog) (fish . Fish))
  [🧪 test] The parent's required members stay required
    ✅ got: #t
  [🧪 test] allOf is flattened into one object
    ✅ got: #t
    ✅ got: (kind name born age weight nickname tags owner extra indoor lives)
    [⚙️ assert] the child's required member is required
    ✅ got: #t
ℹ️ info - ran 4 tasks in: 0 seconds, 25782 microseconds

running unit tests from file: runtime-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Authentication
  [🧪 test] A bearer token is sent as a bearer token
    ✅ got: ((Authorization . Bearer t))
  [🧪 test] The first satisfiable alternative wins
    ✅ got: ((Authorization . Bearer t))
  [🧪 test] A granted scope satisfies the alternative
    ✅ got: ((Authorization . Bearer t))
  [🧪 test] A public operation needs no credentials
    ✅ got: ()
    ✅ got: ()
  [🧪 test] A missing scope makes an alternative unsatisfiable
    [⚙️ assert] the token does not carry write
    ✅ success catching error: openapi-auth-error: (no credentials satisfy the security requirements of this operation)
  [🧪 test] Credentials that satisfy nothing raise
    [⚙️ assert] no credentials, secured operation
    ✅ success catching error: openapi-auth-error: (no credentials satisfy the security requirements of this operation)
  [🧪 test] Extra headers are always sent
    ✅ got: ((X-Trace . 1))
  [🧪 test] Basic authentication is base64 of user:password
    ✅ got: ((Authorization . Basic dTpw))
  [🧪 test] A query API key goes in the query
    ✅ got: ()
    ✅ got: ((api_key . s))
  [🧪 test] A cookie API key becomes a Cookie header
    ✅ got: ((Cookie . session=s))
  [🧪 test] An API key goes in the header it names
    ✅ got: ((X-API-Key . s))
    ✅ got: ()
+----------------------------------------------+
[📑 suite] Validation
  [🧪 test] valid? answers without raising
    ✅ got: #t
    ✅ got: #f
    [⚙️ assert] an unrelated error is not swallowed
    ✅ success catching error: wrong-type-arg: (car Wrong type argument in position 1 (expecting pair): ~S (()) (()))
  [🧪 test] A predicate is checked
    ✅ got: #t
    ✅ got: #t
  [🧪 test] Enumerations
    ✅ got: #t
    ✅ got: (s)
  [🧪 test] The wrong type is reported
    ✅ got: (pet age)
    ✅ got: (pet age)
  [🧪 test] Numeric ranges
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    [⚙️ assert] an inexact multiple is accepted within tolerance
    ✅ got: #t
    [⚙️ assert] a whole inexact multiple is accepted
    ✅ got: #t
    [⚙️ assert] an inexact non-multiple is still rejected
    ✅ got: #t
    [⚙️ assert] an exact rational multiple is accepted
    ✅ got: #t
  [🧪 test] String length and pattern
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
  [🧪 test] Formats
    ✅ got: #t
    ✅ got: #f
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #f
    ✅ got: #t
    [⚙️ assert] a format without a rule accepts anything
    ✅ got: #t
  [🧪 test] Collections
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: (l)
  [🧪 test] A missing required value is reported with its path
    ✅ got: ((pet name) is required but is missing)
+----------------------------------------------+
[📑 suite] HTTP values
  [🧪 test] A request is a value
    ✅ got: 10
    ✅ got: application/json
  [🧪 test] Headers are looked up without case
    ✅ got: application/json
    ✅ got: application/json
  [🧪 test] Path parameters are substituted
    ✅ got: /pets/a%20b
  [🧪 test] Query strings encode and decode
    ✅ got: a=1&c=x%20y
    ✅ got: ((a . 1) (c . x y) (d . /))
    ✅ got: ()
  [🧪 test] Responses are built with the status they mean
    ✅ got: 200
    ✅ got: 201
    ✅ got: 204
    ✅ got: #t
    ✅ got: 401
  [🧪 test] Setting a header replaces it
    [⚙️ assert] the name is stored as it was given
    ✅ got: ((ACCEPT . text/plain))
  [🧪 test] A status family stands for every code in it
    ✅ got: (200 201 202 299)
    ✅ got: 200
    [⚙️ assert] a 500 is outside the 2XX family
    ✅ success catching error: openapi-http-error: (500 ((status . 500) (message . boom)))
  [🧪 test] A status that was not declared is an error
    ✅ got: 200
    [⚙️ assert] 500 is not 200
    ✅ success catching error: openapi-http-error: (500 ((status . 500) (message . boom)))
ℹ️ info - ran 3 tasks in: 0 seconds, 46316 microseconds

running unit tests from file: naming-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Scheme entities
  [🧪 test] Records, predicates, constructors and accessors
    ✅ got: <pet>
    ✅ got: pet?
    ✅ got: make-pet
    ✅ got: pet-photo-urls
  [🧪 test] A module name is a list of symbols
    ✅ got: (petstore controllers artanis)
  [🧪 test] Enumeration constants carry the value
    ✅ got: pet-status-in-progress
+----------------------------------------------+
[📑 suite] Operations
  [🧪 test] A path becomes a slug
    ✅ got: pets-by-pet-id-photos
    ✅ got: root
  [🧪 test] Without an operationId, method and path decide
    ✅ got: get-pets-by-pet-id
    ✅ got: delete-pets-by-pet-id
  [🧪 test] The operationId wins when it exists
    ✅ got: list-pets
+----------------------------------------------+
[📑 suite] Safe identifiers
  [🧪 test] An empty name becomes something bindable
    ✅ got: unnamed
  [🧪 test] An ordinary name is only case-folded
    ✅ got: pet-photo-urls
  [🧪 test] A reserved word gains a suffix
    ✅ got: else-field
    ✅ got: quote-field
    ✅ got: lambda-field
  [🧪 test] An identifier never starts with a digit
    ✅ got: n-3d-model
+----------------------------------------------+
[📑 suite] Splitting words
  [🧪 test] camelCase and PascalCase split
    ✅ got: (pet photo urls)
    ✅ got: (list pets)
  [🧪 test] Separators split too
    ✅ got: (pet id)
    ✅ got: (pet id)
    ✅ got: (pets pet id)
  [🧪 test] Digits stay with their word
    ✅ got: (int64)
  [🧪 test] A run of capitals is one word
    [⚙️ assert] the last capital starts the next word
    ✅ got: (http response)
+----------------------------------------------+
[📑 suite] Case conversion
  [🧪 test] kebab, snake and Pascal
    ✅ got: pet-photo-urls
    ✅ got: pet_photo_urls
    ✅ got: PetPhotoUrls
    ✅ got: petPhotoUrls
    ✅ got: PET_PHOTO_URLS
ℹ️ info - ran 5 tasks in: 0 seconds, 20611 microseconds

running unit tests from file: client-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Generated text
  [🧪 test] An operation authenticates before it sends
    ✅ got: #t
    [⚙️ assert] the public operation asks for no credentials
    ✅ got: #t
  [🧪 test] The libcurl client uses guile-curl
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #f
  [🧪 test] A client is a record with a base URL and credentials
    ✅ got: #t
    ✅ got: #t
    [⚙️ assert] the first server of the specification is used
    ✅ got: #t
  [🧪 test] The plain Guile client uses (web client)
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
    ✅ got: #f
  [🧪 test] Every operation is a procedure
    [⚙️ assert] four operations, the constructor and the transport
    ✅ got: 6
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
  [🧪 test] The security schemes are a literal
    ✅ got: #t
    ✅ got: #t
    ✅ got: #t
+----------------------------------------------+
[📑 suite] Generated client against a server
  [🧪 test] The client talks to the server: query, credentials, JSON out and back
    ✅ got: (200 (Rex Bella) Mia 201 Cadet 204)
    [⚙️ assert] the server answered a GET /pets
    ✅ got: #t
    [⚙️ assert] the server answered a POST /pets
    ✅ got: #t
    ✅ got: secret
    ✅ got: limit=10
    ✅ got: {"name":"Cadet"}
  [🧪 test] An undeclared status raises instead of decoding
    ✅ got: (500)
ℹ️ info - ran 2 tasks in: 2 seconds, -89077 microseconds

running unit tests from file: code-spec.scm, entrypoint: spec


ℹ️ info - shuffled with seed 79562721 (replay with VERITAS_SEED=79562721)
+----------------------------------------------+
[📑 suite] Documents
  [🧪 test] A docstring keeps its lines
    ✅ got: ((define (f value)   "Check VALUE.  Returns #t."   value))
+----------------------------------------------+
[📑 suite] Data
  [🧪 test] A long literal stacks its elements under the quote
    ✅ got: '(("type" . "apiKeyHeader")
    ✅ got:   ("description" . "a long one"))
  [🧪 test] Consecutive forms are separated by a blank line
    ✅ got: ((list 1)  (list 2))
  [🧪 test] A comment belongs to the form below it
    ✅ got: ((list 1)  ;; Why b is 2 (list 2))
+----------------------------------------------+
[📑 suite] One line
  [🧪 test] A form that fits stays on one line
    ✅ got: (list 1 2 3)

  [🧪 test] An empty list is the empty list
    ✅ got: (list)

  [🧪 test] Quoted data prints with a quote
    ✅ got: '()

    [⚙️ assert] an association keeps its dot
    ✅ got: '(("a" . "b"))

  [🧪 test] A call that fits keeps its arguments together
    ✅ got: (list 1 2 3)

  [🧪 test] A keyword prints as a keyword
    ✅ got: (f #:key value)

  [🧪 test] Strings are literals, quotes and all
    ✅ got: (display "a \"quoted\" word")

+----------------------------------------------+
[📑 suite] Broken forms
  [🧪 test] A cond puts one clause per line
    ✅ got: ((cond   ((eq? kind 'cat) (jso->cat value))   (else (jso->dog value))))
  [🧪 test] A keyword argument starts a line and keeps its value
    [⚙️ assert] the keyword and its value share a line
    ✅ got: #t
  [🧪 test] A long argument list puts one argument per line
    ✅ got: (define* (make-pet #:key
    [⚙️ assert] an argument sits on a line of its own
    ✅ got: id
    [⚙️ assert] the signature is closed after its last argument
    ✅ got: #f)))
  [🧪 test] A let lines up its bindings
    ✅ got: ((let ((path (params->path "/pets" '()))       (response (client-send client 'GET path)))   (values path response)))
  [🧪 test] An if lines its branches up under the test
    ✅ got: ((if (eq? value #f)     '()     (list value)))
  [🧪 test] A module header puts every clause on its own line
    ✅ got: ((define-module (petstore models)   #:use-module (srfi srfi-1)   #:export (pet? make-pet)))
  [🧪 test] A definition indents its body
    ✅ got: ((define (pet-name value)   (jso-ref (pet->jso value) "name")))
    [⚙️ assert] a definition always breaks
    ✅ got: ((define empty   '()))
  [🧪 test] A long call wraps its arguments under the first one
    [⚙️ assert] the call starts the first line
    ✅ got: #t
    [⚙️ assert] no line passes the width
    ✅ got: #t
  [🧪 test] A record type names its constructor, predicate and fields
    ✅ got: ((define-record-type <pet>   (%make-pet id name tags)   pet?   (id pet-id)   (name pet-name)   (tags pet-tags)))
ℹ️ info - ran 4 tasks in: 0 seconds, 23602 microseconds

finished running tests
openapi-generator generate --input SPEC --output DIR
                          [options]

  --help (-h)                 Show this help and exit.
  --version (-v)              Show the version and exit.
  --input (-i) VALUE          The OpenAPI 3.x specification to read (.yaml or .json).
  --output (-o) VALUE         The directory to write the generated code to.
  --module (-m) VALUE         The root module name (default: the API title).
  --controllers (-c) VALUE    vanilla, artanis or none (default: vanilla).
  --http (-H) VALUE           guile, curl or none (default: guile).
  --no-models                 Generate no record module.
  --base-url VALUE            Override the first server URL of the specification.
  --self-contained            Copy the runtime modules next to the generated code.

Examples:
  openapi-generator generate -i petstore.yaml -o gen
  openapi-generator generate -i petstore.yaml -o gen -c artanis -H curl
openapi-generator: --input is required
;;; compiling ./test/veritas/unit/jso-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/jso-spec.scm.go
;;; compiling ./test/veritas/unit/spec-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/spec-spec.scm.go
;;; compiling ./test/veritas/unit/yaml-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/yaml-spec.scm.go
;;; compiling ./test/veritas/unit/reader-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/reader-spec.scm.go
;;; compiling ./test/veritas/unit/integration-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/integration-spec.scm.go
;;; compiling ./test/veritas/unit/controllers-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/controllers-spec.scm.go
;;; compiling ./test/veritas/unit/models-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/models-spec.scm.go
;;; compiling ./test/veritas/unit/schema-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/schema-spec.scm.go
;;; compiling ./test/veritas/unit/runtime-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/runtime-spec.scm.go
;;; compiling ./test/veritas/unit/naming-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/naming-spec.scm.go
;;; compiling ./test/veritas/unit/client-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/client-spec.scm.go
;;; compiling ./test/veritas/unit/code-spec.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/test/veritas/unit/code-spec.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /etc/byggsteg/job-clone/guile-openapi-generator/trunk/maak.scm
;;; compiled /tmp/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/guile-openapi-generator/trunk/maak.scm.go


--------------------------------------------------------------

Maak: the infinitely extensible command runner

Loading tasks from Maak file: /etc/byggsteg/job-clone/guile-openapi-generator/trunk/maak.scm

Executing Maak tasks: test

--------------------------------------------------------------

=> Running Maak task: test

  Run the project's Veritas test suites.
inspect the job's lambda expression
(lambda()
  `((task . ("maak-test"))
    (project . "guile-openapi-generator")
    (branch-name . "trunk")
    (clone-url . "https://codeberg.org/jjba23/guile-openapi-generator.git")
    (env . ((HOME . "/tmp")))))