viewing logs

job succeeded

veritas

time taken
126 seconds
started at
Thu Jul 31 20:03:35 2025
updated at
Thu Jul 31 20:05:41 2025
log uuid
c80a1fdc-7195-42a1-b835-24f279c51e3b
inspect the job's lambda expression
(lambda()
  `((task . ("make-test" "pull-and-deploy"))
    (project . "veritas")
    (branch-name . "trunk")
    (clone-url . "https://codeberg.org/jjba23/veritas.git")))

starting new job...

-> running command: cd /etc/byggsteg/job-clone/veritas/trunk && uname -a
Linux wolk-jjba 6.15.5-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux

-> running command: cd /etc/byggsteg/job-clone/veritas/trunk && git pull
Already up to date.

-> running command: cd /etc/byggsteg/job-clone/veritas/trunk && git log --name-status HEAD^..HEAD
commit bff4b850ef62279023b5f76c919c4f03e780653b
Merge: 08f734f 6235ec7
Author: Josep Bigorra (Joe) <jjbigorra@gmail.com>
Date:   Thu Jul 31 20:03:01 2025 +0200

    Merge pull request 'Adding before-all and after-all, json reporter, stability improved' (#5) from before-and-after-all into trunk
    
    Reviewed-on: https://codeberg.org/jjba23/veritas/pulls/5

commit 6235ec7bf0484dec205943ea23ed476917704353
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Wed Jul 30 08:52:48 2025 +0200

    ??????? chore: Adjust advanced suite to showcase more

M	test/veritas/unit/introduction.scm

commit 07e2915f3c0b78d830f9cf803e6173f01ac98607
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Wed Jul 30 08:47:44 2025 +0200

    ??????? chore: Change by default to emoji-reporter

M	Makefile

commit 625995d4cfc06fd11e5277ccb51cbcf5de012c4f
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Wed Jul 30 08:47:05 2025 +0200

    ??? feature: Added JSON reporter

M	Makefile
M	src/veritas/reporter.scm
M	src/veritas/runner.scm
M	test/veritas/unit/introduction.scm

commit 4fca84653f6230edfd39d00cc51d6771b52818cf
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Wed Jul 30 08:29:07 2025 +0200

    ??? feature: Implement before, after, update docs

M	docs/api-documentation.org
M	src/veritas/veritas.scm
M	test/veritas/unit/introduction.scm

commit 920011b18fb9fc2ce1361b2dbc0ed0d81b84f729
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Wed Jul 30 07:27:00 2025 +0200

    ???? work-in-progress: Fix before-all and after-all, now onto before and after
    per test

M	src/veritas/prelude.scm
M	src/veritas/veritas.scm
M	test/veritas/unit/introduction.scm

commit 2afe7cefb11e6d063c8be59f29791b552018a4ed
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Tue Jul 29 23:29:08 2025 +0200

    ???? work-in-progress: Adding before-all and after-all

M	src/veritas/prelude.scm
M	src/veritas/veritas.scm
M	test/veritas/unit/introduction.scm

-> running command: cd /etc/byggsteg/job-clone/veritas/trunk && make test
make[1]: Entering directory '/etc/byggsteg/job-clone/veritas/trunk'

[INFO] 2025-07-31 20:05:32+02:00 - formatting all Scheme files
find . -maxdepth 8 -name "*.scm" -type f -exec guix style -f {} \;
VERITAS_REPORTER="emoji-reporter" \
VERITAS_RUN_BENCHMARKS=true \
VERITAS_TEST_TYPE=unit \
	guix shell -m manifest.scm -- \
	guile --fresh-auto-compile -L ./src \
	-L ./test \
	-c '((@ (veritas runner) run-tests))'

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

found unit tests: (numeric.scm introduction.scm more/lists.scm simple.scm)


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


+----------------------------------------------+
[? suite] Basic Suite
  [? test] Basic Numeric Tests
    [?? assert] checks if addition works
    ? pass - expect: 4, got: 4
    ? pass - expect: 0, got: 0
    ? pass - expect: 1, got: 1
    ? pass - expect: 1, got: 1
+----------------------------------------------+
[? suite] Predicate Tests
  [? test] Even Number Checks
    [?? assert] 1 should not be even
    ? pass - expect: #f, got: #f
    [?? assert] 4 should be even
    ? pass - expect: #t, got: #t
    [?? assert] 7 should not be even
    ? pass - expect: #f, got: #f
    [?? assert] 0 should be even
    ? pass - expect: #t, got: #t
?? info - ran 2 tasks in: 0 seconds, 3549 microseconds
? debug - assertion-results: (#t #t #t #t #t #t #t #t)

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


+----------------------------------------------+
[? suite] Getting Started with Assertions
  [? test] Basic String and Predicate Tests
    [?? assert] Greeting should contain the provided name
    ? pass - expect: #t, got: #t
    [?? assert] String comparison should be case-sensitive
    ? pass - expect: #f, got: #f
    [?? assert] 10 should be greater than 5
    ? pass - expect: #t, got: #t
    [?? assert] Greeting should be personalized
    ? pass - expect: Hello, Veritas!, got: Hello, Veritas!
+----------------------------------------------+
[? benchmark]
Computation of the factorial of 10000


[? run #0]
%     cumulative   self             
time   seconds     seconds  procedure
100.00      0.31      0.31  override/fibers/events-impl.scm:80:0:pump-epoll-guardian
  0.00    764.24      0.00  veritas/unit/introduction.scm:146:0:factorial
  0.00      0.31      0.00  %after-gc-thunk
  0.00      0.31      0.00  veritas/veritas.scm:217:93
  0.00      0.31      0.00  anon #x3bd750c0
---
Sample count: 12
Total time: 0.314124745 seconds (0.288150563 seconds in GC)

[? run #1]
%     cumulative   self             
time   seconds     seconds  procedure
100.00      0.33      0.33  override/fibers/events-impl.scm:80:0:pump-epoll-guardian
  0.00    953.82      0.00  veritas/unit/introduction.scm:146:0:factorial
  0.00      0.33      0.00  %after-gc-thunk
  0.00      0.33      0.00  veritas/veritas.scm:217:93
  0.00      0.33      0.00  anon #x3bd750c0
---
Sample count: 13
Total time: 0.334295405 seconds (0.3074441 seconds in GC)

+----------------------------------------------+
[? suite] Advanced Veritas Features
?? info - TRANSIRE RUBICONEM
?? info - ALEA IACTA EST
  [? test] A test with a complex computation block
?? info - before test runs
?? info - after test runs
    [?? assert] Complex computation inside an assertion
    ? pass - expect: 144, got: 144
+----------------------------------------------+
[? suite] Error and Exception Handling
  [? test] Summing a list with non-numeric elements
    [?? assert] Should fail when list contains non-numbers
    ? pass - success catching error: wrong-type-arg: (+ Wrong type argument in position ~A: ~S (2 a) (a))
  [? test] Valid summation should not throw an error
    [?? assert] Should not fail with a valid list of numbers
    ? pass - success running without errors
+----------------------------------------------+
[? suite] Testing Logic and List Operations
  [? test] List Summation
    [?? assert] Sum of an empty list should be 0
    ? pass - expect: 0, got: 0
    [?? assert] Sum of elements 1 through 5 should be 15
    ? pass - expect: 15, got: 15
  [? test] Number Classification Logic
    [?? assert] 99 should be classified as positive
    ? pass - expect: positive, got: positive
    [?? assert] -1 should be classified as negative
    ? pass - expect: negative, got: negative
    [?? assert] 0 should be classified as zero
    ? pass - expect: zero, got: zero
?? info - ran 5 tasks in: 1 seconds, -657366 microseconds
+----------------------------------------------+
[? suite] Advanced Veritas Features
?? info - TRANSIRE RUBICONEM
?? info - ALEA IACTA EST
  [? test] A test with a complex computation block
?? info - before test runs
?? info - after test runs
    [?? assert] Complex computation inside an assertion
    ? pass - expect: 144, got: 144
+----------------------------------------------+
[? suite] Getting Started with Assertions
  [? test] Basic String and Predicate Tests
    [?? assert] Greeting should be personalized
    ? pass - expect: Hello, Veritas!, got: Hello, Veritas!
    [?? assert] 10 should be greater than 5
    ? pass - expect: #t, got: #t
    [?? assert] String comparison should be case-sensitive
    ? pass - expect: #f, got: #f
    [?? assert] Greeting should contain the provided name
    ? pass - expect: #t, got: #t
+----------------------------------------------+
[? suite] Error and Exception Handling
  [? test] Summing a list with non-numeric elements
    [?? assert] Should fail when list contains non-numbers
    ? pass - success catching error: wrong-type-arg: (+ Wrong type argument in position ~A: ~S (2 a) (a))
  [? test] Valid summation should not throw an error
    [?? assert] Should not fail with a valid list of numbers
    ? pass - success running without errors
+----------------------------------------------+
[? suite] Testing Logic and List Operations
  [? test] List Summation
    [?? assert] Sum of elements 1 through 5 should be 15
    ? pass - expect: 15, got: 15
    [?? assert] Sum of an empty list should be 0
    ? pass - expect: 0, got: 0
  [? test] Number Classification Logic
    [?? assert] 99 should be classified as positive
    ? pass - expect: positive, got: positive
    [?? assert] -1 should be classified as negative
    ? pass - expect: negative, got: negative
    [?? assert] 0 should be classified as zero
    ? pass - expect: zero, got: zero
+----------------------------------------------+
[? benchmark]
Computation of the factorial of 10000


[? run #0]
%     cumulative   self             
time   seconds     seconds  procedure
 80.00      0.17      0.13  override/fibers/events-impl.scm:80:0:pump-epoll-guardian
 20.00      0.03      0.03  fibers/scheduler.scm:360:0:yield-current-task
  0.00   1024.91      0.00  veritas/unit/introduction.scm:146:0:factorial
  0.00      0.20      0.00  anon #x3bd750c0
  0.00      0.17      0.00  %after-gc-thunk
  0.00      0.17      0.00  veritas/veritas.scm:217:93
---
Sample count: 5
Total time: 0.168090091 seconds (0.159457415 seconds in GC)
%     cumulative   self             
time   seconds     seconds  procedure
 60.00      0.36      0.23  override/fibers/events-impl.scm:80:0:pump-epoll-guardian
 33.33      0.13      0.13  fibers/scheduler.scm:360:0:yield-current-task
  6.67   1257.53      0.03  veritas/unit/introduction.scm:146:0:factorial
  0.00      0.49      0.00  anon #x3bd750c0
  0.00      0.38      0.00  veritas/veritas.scm:217:93
  0.00      0.36      0.00  %after-gc-thunk
---
Sample count: 15
Total time: 0.383713384 seconds (0.20972363 seconds in GC)

[? run #1]
No samples recorded.
%     cumulative   self             
time   seconds     seconds  procedure
 75.00      0.08      0.08  fibers/scheduler.scm:360:0:yield-current-task
 25.00      0.08      0.03  override/fibers/events-impl.scm:80:0:pump-epoll-guardian
  0.00    613.77      0.00  veritas/unit/introduction.scm:146:0:factorial
  0.00      0.15      0.00  anon #x3bd750c0
  0.00      0.10      0.00  veritas/veritas.scm:217:93
  0.00      0.08      0.00  %after-gc-thunk
---
Sample count: 4
Total time: 0.102542873 seconds (0.099258111 seconds in GC)
%     cumulative   self             
time   seconds     seconds  procedure
 85.71      0.30      0.30  fibers/scheduler.scm:360:0:yield-current-task
 14.29      0.33      0.05  override/fibers/events-impl.scm:80:0:pump-epoll-guardian
  0.00   1113.69      0.00  veritas/unit/introduction.scm:146:0:factorial
  0.00      0.63      0.00  anon #x3bd750c0
  0.00      0.35      0.00  veritas/veritas.scm:217:93
  0.00      0.33      0.00  %after-gc-thunk
---
Sample count: 14
Total time: 0.350870633 seconds (0.238324617 seconds in GC)

?? info - ran 5 tasks in: 0 seconds, 354108 microseconds

running unit tests from file: more/lists.scm, entrypoint: spec


+----------------------------------------------+
[? suite] List Manipulation Tests
  [? test] Get First Element
    [?? assert] First element of a number list
    ? pass - expect: 1, got: 1
    [?? assert] First element of an empty list should be #f
    ? pass - expect: #f, got: #f
    [?? assert] First element of a symbol list
    ? pass - expect: a, got: a
  [? test] List Concatenation
    [?? assert] Concatenate non-empty list with empty
    ? pass - expect: (x y), got: (x y)
    [?? assert] Concatenate two non-empty lists
    ? pass - expect: (1 2 3 4 5), got: (1 2 3 4 5)
    [?? assert] Concatenate empty list with non-empty
    ? pass - expect: (a b), got: (a b)
    [?? assert] Concatenate two empty lists
    ? pass - expect: (), got: ()
  [? test] List Length
    [?? assert] Length of list with 3 elements
    ? pass - expect: 3, got: 3
    [?? assert] Length of list with one element
    ? pass - expect: 1, got: 1
    [?? assert] Length of empty list
    ? pass - expect: 0, got: 0
?? info - ran 1 tasks in: 0 seconds, 3101 microseconds

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


+----------------------------------------------+
[? suite] Basic Suite
  [? test] Check that function calls work
    ? pass - expect: 42, got: 42
  [? test] some test without suite
    ? pass - expect: 1, got: 1
+----------------------------------------------+
[? suite] Predicate Tests
  [? test] List Predicates
    [?? assert] Empty list should be null
    ? pass - expect: #t, got: #t
    [?? assert] Empty list should not be a pair
    ? pass - expect: #f, got: #f
    [?? assert] Non-empty list should not be null
    ? pass - expect: #f, got: #f
    [?? assert] Pair should be a pair
    ? pass - expect: #t, got: #t
+----------------------------------------------+
[? suite] Complex Data Structure Tests
  [? test] Vector Operations
    [?? assert] Vector ref at index 0
    ? pass - expect: 1, got: 1
    [?? assert] Vector ref at index 1
    ? pass - expect: 2, got: 2
    [?? assert] Vector length
    ? pass - expect: 3, got: 3
  [? test] Association List Lookups
    [?? assert] Lookup 'age' in alist
    ? pass - expect: 30, got: 30
    [?? assert] Lookup 'name' in alist
    ? pass - expect: Alice, got: Alice
    [?? assert] Lookup non-existent key should be #f
    ? pass - expect: #f, got: #f
+----------------------------------------------+
[? suite] str
  [? test] String Operation Tests
    ? pass - expect: hello world, got: hello world
    ? pass - expect: #f, got: #f
    ? pass - expect: #t, got: #t
+----------------------------------------------+
[? suite] Error Handling Tests
  [? test] Division by Zero Error
    [?? assert] Should signal error on division by zero
    ? pass - success catching error: misc-error: (#f Division by zero () #f)
  [? test] No Error on Valid Division
    [?? assert] Valid division result
    ? pass - expect: 5, got: 5
    [?? assert] Should not signal error on valid division
    ? pass - success running without errors
?? info - ran 6 tasks in: 0 seconds, 4914 microseconds

finished running tests
make[1]: Leaving directory '/etc/byggsteg/job-clone/veritas/trunk'

-> running command: cd /etc/byggsteg/job-clone/veritas/trunk && sudo make deploy
guix shell -m manifest.scm -- emacs -Q --batch \
	--eval '(progn (find-file "/etc/byggsteg/job-clone/veritas/trunk/docs/api-documentation.org")(org-html-export-to-html)(message "finished publishing Veritas API documentation"))'
mkdir -pv "/srv/http/jointhefreeworld.org"/manuals/veritas-api-documentation
rm -rfv "/srv/http/jointhefreeworld.org"/manuals/veritas-api-documentation/index.html
'/srv/http/jointhefreeworld.org/manuals/veritas-api-documentation/index.html' is verwijderd
mv -v docs/api-documentation.html "/srv/http/jointhefreeworld.org"/manuals/veritas-api-documentation/index.html
hernoemd 'docs/api-documentation.html' -> '/srv/http/jointhefreeworld.org/manuals/veritas-api-documentation/index.html'