2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/guix-cuirass.git synced 2023-12-14 06:03:04 +01:00
Commit graph

527 commits

Author SHA1 Message Date
Mathieu Othacehe
ff3f25d287
http: Rename respond-gzipped-file.
* src/cuirass/http (respond-gzipped-file): Rename it to ...
(respond-compressed-file): ... this new procedure. Add support for bzip2
compressed files.
(url-handler): Adapt it.
2021-03-26 13:57:39 +01:00
Mathieu Othacehe
d5724217d9
base: Record the log file.
* src/cuirass/base.scm (handle-build-event): Add a store argument and use it
to record the log file.
(spawn-builds): Adapt it.
2021-03-26 13:56:47 +01:00
Mathieu Othacehe
a6e7d85610
base: Remove unused argument.
* src/cuirass/base.scm (set-build-successful!): Remove log argument.
2021-03-26 13:55:37 +01:00
Vincent Legoll
eb5786a2ea
css: Set the search box z-index.
* src/static/css/cuirass.css (#search): Set z-index to 1.
2021-03-26 09:06:38 +01:00
Mathieu Othacehe
f5a2eeae18
Fix single checkout update.
When a new evaluation is triggered by a single channel update, the
matching specification can have other channels that are not updated. In that
case, "db-get-checkouts" will only return the checkout corresponding to the
channel update.

This cause "channel-instances->profile" to fail this way:

In guix/channels.scm:
   911:32  3 (channel-instances->derivation _)
   871:36  2 (channel-instances->manifest (#<<channel-instance> cha?>))
    759:6  1 (channel-instance-derivations (#<<channel-instance> ch?>))
In ice-9/boot-9.scm:
  1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
ERROR:
  1. &message: "'guix' channel is lacking"
  2. &fix-hint: "Make sure your list of channels\ncontains one channel named @code{guix} providing the core of Guix."
  3. &error-location: #<<location> file: "guix/channels.scm" line: 557 column: 18>

Introduce a db-get-latest-checkout procedure that returns the last checkout of
a given channel. Use it to request the checkouts of all the channels before
creating the profile.

* src/cuirass/database.scm (db-get-latest-checkout): New procedure.
* tests/database.scm ("db-get-latest-checkout"): New test.
* src/cuirass/scripts/evaluate.scm (latest-checkouts): New procedure.
(cuirass-evaluate): Use it.
2021-03-25 17:42:09 +01:00
Mathieu Othacehe
c3a9e9c79f
Add pagination button on evaluation page. 2021-03-25 11:48:42 +01:00
Mathieu Othacehe
1ed9360108
Add table order buttons. 2021-03-25 10:31:38 +01:00
Mathieu Othacehe
6a46e6bf65
remote: Do not compress substitutes. 2021-03-23 16:57:39 +01:00
Mathieu Othacehe
48f630f9f7
Add builds per machine metric table. 2021-03-23 09:54:07 +01:00
Mathieu Othacehe
f6008378be
Add builds count per machine metric. 2021-03-22 19:40:31 +01:00
Mathieu Othacehe
2efa062a4a
Update copyrights. 2021-03-22 18:31:41 +01:00
Mathieu Othacehe
b645f4eb0c
Add remote building tests. 2021-03-22 18:29:07 +01:00
Mathieu Othacehe
43d29317d9
Use a single Cuirass binary. 2021-03-22 18:29:06 +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
2eda35bf68
Remove send events binary.
This is superseeded by the notification system.
2021-03-14 20:48:25 +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
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
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
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
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
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
2bd6e80482
Update the Web API documentation.
* doc/cuirass.texi (Web API): Update it.
* src/cuirass/http.scm (build->hydra-build): Update it accordingly.
2021-03-09 17:02:04 +01:00
Mathieu Othacehe
265b134527
Save the default database.
* src/cuirass/database.scm (db-open): Save the default database in the
%package-database parameter.
2021-03-09 11:52:33 +01:00
Mathieu Othacehe
df39aa4821
Update documentation.
* doc/cuirass.texi: Update it.
2021-03-09 11:23:44 +01:00
Mathieu Othacehe
370ff7d8cd
Use default database parameters.
* src/cuirass/parameters.scm (%cuirass-database, %cuirass-host): New
parameters.
* src/cuirass/database.scm (db-open): Use them.
2021-03-09 07:37:29 +01:00
Mathieu Othacehe
37de70546b
Reset build timestamps on restart.
* src/cuirass/database.scm (db-restart-build!, db-restart-evaluation!): Reset
starttime and stoptime field.
2021-03-08 07:51:06 +01:00
Mathieu Othacehe
325edf2ffa
Rewrite evaluation. 2021-03-05 09:08:15 +01:00
Mathieu Othacehe
f5287dc11e
Add with-transaction.
* src/cuirass/database.scm (with-transaction): New macro.
2021-03-03 08:39:02 +01:00
Mathieu Othacehe
a5346d615e
remote: Enable core dump generation.
* src/cuirass/remote-server.scm (remote-server): Enable core dump generation.
2021-02-26 14:47:53 +01:00