Commit Graph

705 Commits

Author SHA1 Message Date
Mathieu Othacehe b645f4eb0c
Add remote building tests. 2021-03-22 18:29:07 +01:00
Mathieu Othacehe 34ab5c9912
Remove ui test. 2021-03-22 18:29:06 +01:00
Mathieu Othacehe 9b5a5e9876
Update TODO file. 2021-03-22 18:29:06 +01:00
Mathieu Othacehe e844ca92e8
Add a NEWS file. 2021-03-22 18:29:06 +01:00
Mathieu Othacehe e4a218afb2
Update documentation. 2021-03-22 18:29:06 +01:00
Mathieu Othacehe 43d29317d9
Use a single Cuirass binary. 2021-03-22 18:29:06 +01:00
Mathieu Othacehe cb1b713e0a
Delete temporary mail file. 2021-03-22 18:29:06 +01:00
Mathieu Othacehe ae15aefa55
Update README. 2021-03-22 18:28:59 +01:00
Mathieu Othacehe dadb093eb7
Update documentation. 2021-03-21 16:17:13 +01:00
Mathieu Othacehe 9fbf6991fa
Add build parameter edition field. 2021-03-21 15:52:49 +01:00
Mathieu Othacehe 9d8fe4ca8a
Use notifications and outputs from the existing specification. 2021-03-20 17:46:11 +01:00
Mathieu Othacehe 8f9b791e5b
Fix tests. 2021-03-20 17:18:21 +01:00
Mathieu Othacehe 890dc9172f
Add Guile module check.
* configure.ac: Add Guile module check.
2021-03-20 16:59:46 +01:00
Mathieu Othacehe 2eda35bf68
Remove send events binary.
This is superseeded by the notification system.
2021-03-14 20:48:25 +01:00
Mathieu Othacehe a89ca34dc1
Document channels build type.
* doc/cuirass.texi (Specification): Document the channels build type.
2021-03-14 19:58:00 +01:00
Mathieu Othacehe c89c33d3b0
Add channels build type support.
* src/cuirass/specification.scm (%build-types): Add 'channels support.
2021-03-14 19:44:52 +01:00
Mathieu Othacehe 6a3174ddbb
Fix specification creation. 2021-03-12 18:35:08 +01:00
Mathieu Othacehe 7b18a15bfe
Only start the notification thread in the main program. 2021-03-12 17:33:38 +01:00
Mathieu Othacehe 659e7479e5
Fix workers status page. 2021-03-12 17:33:29 +01:00
Mathieu Othacehe 6438742f99
Improve worker status page queries. 2021-03-12 17:07:52 +01:00
Mathieu Othacehe 8379c803dc
Add form validation. 2021-03-12 10:53:05 +01:00
Mathieu Othacehe 5c9003b41d
Fix build products creation. 2021-03-12 08:35:56 +01:00
Mathieu Othacehe b24d55e368
Add specification creation and edition pages. 2021-03-11 19:31:35 +01:00
Mathieu Othacehe 82b8f825d8
Turn db-add-specification into db-add-or-update-specification. 2021-03-11 19:30:58 +01:00
Mathieu Othacehe bd8af796d8
Add build types list. 2021-03-11 17:37:47 +01:00
Mathieu Othacehe 69778d1bcd
Fix notification thread start. 2021-03-11 17:37:13 +01:00
Mathieu Othacehe e3c95014e3
database: Limit notifications to new failures and new successes. 2021-03-11 17:36:24 +01:00
Mathieu Othacehe aabeced62a
Send notifications in a separate thread. 2021-03-11 10:27:13 +01:00
Mathieu Othacehe e598f89445
Remove events support. 2021-03-11 10:26:36 +01:00
Mathieu Othacehe 2841bf3ba0
Remove admin section.
* src/cuirass/http.scm (url-handler): Remove admin section.
* src/cuirass/templates.scm (specifications-table): Remove optional admin
argument.
2021-03-11 08:10:51 +01:00
Mathieu Othacehe 88f3cf65e0
Fix evaluation.
* bin/evaluate.in: Fix it.
2021-03-10 19:24:34 +01:00
Mathieu Othacehe 5f830da3e3
specification: Ignore channel introduction.
* src/cuirass/specification.scm (sexp->channel): Ignore channel introduction.
2021-03-10 16:37:33 +01:00
Mathieu Othacehe 9e3e9b691c
Use our own sexp->channel procedure.
The Guix version of sexp->channel doesn't support the branch field.

* src/cuirass/specification.scm (sexp->channel): New procedure.
* src/cuirass/database.scm (db-get-specifications): Use it.
2021-03-10 16:30:28 +01:00
Mathieu Othacehe 94a7f870a7
Fix evaluation.
* bin/evaluate.in: Fix it.
2021-03-10 16:00:33 +01:00
Mathieu Othacehe c8051f3b68
evaluate: Use cached-channel-instance.
* bin/evaluate.in (checkouts->channel-instances): Remove it.
(instances->cached-profile*): Rename it into ...
(channels->cached-profile): ... this procedure.
(main): Adapt it.
2021-03-10 13:57:12 +01:00
Mathieu Othacehe 826e2df45e
specification: channel->sexp: Add introduction support.
* src/cuirass/specification.scm (channel->sexp): Add channel introduction
support.
2021-03-10 13:48:03 +01:00
Mathieu Othacehe fc582f5b0e
specification: Use a default build-output path.
* src/cuirass/specification.scm (<build-output>): Set a default path to "".
2021-03-10 10:02:26 +01:00
Mathieu Othacehe 463f5cd0f1
Reset database.
* src/sql/upgrade-2.sql: Remove it.
* src/sql/upgrade-3.sql: Remove it.
* src/sql/upgrade-4.sql: Remove it.
* src/sql/upgrade-5.sql: Remove it.
* Makefile.am (dist_sql_DATA): Adapt it.
2021-03-10 08:53:39 +01:00
Mathieu Othacehe 14e1335732
logging: Remove build warnings.
* src/cuirass/logging.scm (log-message): Turn into a procedure.
2021-03-10 08:33:16 +01:00
Mathieu Othacehe 1d0bfd796e
Update README.
* README: Update it.
2021-03-10 07:48:24 +01:00
Mathieu Othacehe 50b423c2cd
Use EphemeralPG for the tests.
* README: Update dependencies.
* tests/common.scm (pg-tmp): New procedure.
(test-init-db!): Use it.
* tests/database.scm ("db-close"): Do not drop database content.
* tests/http.scm: Ditto.
* tests/metrics.scm: Ditto.
2021-03-10 07:46:17 +01:00
Mathieu Othacehe d9588c0ed8
Fix admin specification creation.
* src/cuirass/http.scm (url-handler): Fix admin specification creation.
2021-03-09 19:21:27 +01:00
Mathieu Othacehe eb060c990f
sql: Cascade deletion.
* src/schema.sql: Cascade Evaluations, Checkouts and Builds deletion.
2021-03-09 19:13:44 +01:00
Mathieu Othacehe d521ec7bbf
Improve action button text.
* src/cuirass/templates.scm (evaluation-info-table): Improve action button text.
2021-03-09 19:05:32 +01:00
Mathieu Othacehe 21426073c1
Fix action list display.
* src/cuirass/templates.scm (evaluation-info-table): Fix action list display.
2021-03-09 19:01:29 +01:00
Mathieu Othacehe 6c5da97d46
Add evaluation retry & cancel support.
* src/cuirass/http.scm (url-handler): Add "/admin/evaluation/<id>/cancel" and
"admin/evaluation/<id>/retry" routes.
* src/cuirass/templates.scm (evaluation-info-table): Add "Cancel pending
builds" and "Retry" buttons.
2021-03-09 18:57:07 +01:00
Mathieu Othacehe d116dc36c3
database: Add db-cancel-pending-builds!.
* src/cuirass/database.scm (db-cancel-pending-builds!): New procedure.
* tests/database.scm ("db-cancel-pending-builds!"): New test.
2021-03-09 18:45:47 +01:00
Mathieu Othacehe 70394149af
database: Add db-retry-evaluation!.
* src/cuirass/database.scm (db-retry-evaluation!): New procedure.
* tests/database.scm ("db-retry-evaluation"): New test.
2021-03-09 18:31:18 +01:00
Mathieu Othacehe 1bdb2143af
README: Add database creation command.
* README: Explain how to create the test database.
2021-03-09 18:18:05 +01:00
Mathieu Othacehe dded4f56d5
Update the README.
* README: Update it.
* examples/hello.scm: New file.
2021-03-09 18:14:46 +01:00