This project is mirrored from https://git.savannah.gnu.org/git/guix/guix-cuirass.git/.
Pull mirroring updated .
- Apr 21, 2021
-
-
Mathieu Othacehe authored
-
- Apr 20, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-get-build-percentages): Fix it.
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-get-jobs-history): Bind limit parameter.
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-get-previous-eval, db-get-next-eval): New procedures. * tests/database.scm ("db-get-previous-eval", "db-get-next-eval"): New tests.
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-get-jobs-history): New procedure. * src/cuirass/http.scm (jobs-history->json-object): New procedure. (url-handler): New "/api/jobs/history" route. * tests/database.scm ("db-get-jobs-history"): New test.
-
- Apr 15, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-get-build-percentages): Return 0 if no previous build was found.
-
- Apr 14, 2021
-
-
Mathieu Othacehe authored
-
- Apr 09, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-get-evaluations-absolute-summary): New procedure. * src/cuirass/http.scm (url-handler): Pass the evaluation absolute summary to "evaluation-info-table". * src/cuirass/templates.scm (evaluation-info-table): Adapt it. * src/static/css/cuirass.css (job-abs): New section. * tests/database.scm ("db-get-evaluations-absolute-summary"): New test.
-
- Apr 08, 2021
-
-
Mathieu Othacehe authored
* src/sql/upgrade-4.sql: New file. * Makefile.am (dist_sql_DATA): Add it. * src/schema.sql (Specifications)[period]: New field. * src/cuirass/base.scm (process-specs): Honor the specification period. * src/cuirass/database.scm (db-get-time-since-previous-build): Rename it into ... (db-get-time-since-previous-eval): ... this new procedure. * src/cuirass/specification.scm (<specification>)[period]: New field. (specification->sexp, sexp->specification): Adapt accordingly. * src/cuirass/templates.scm (specification-edit): Ditto. * tests/database.scm ("db-get-time-since-previous-build"): Remame it into ... ("db-get-time-since-previous-eval"): ... this new procedure.
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-get-specifications-summary): Return the latest evaluation. * src/cuirass/templates.scm (specifications-table): Add a monitor and a toggle button.
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-get-specifications-summary): New procedure. * tests/database.scm ("db-get-specifications-summary"): New test. * src/cuirass/templates.scm (specifications-table): Add a summary argument. * src/cuirass/http.scm (url-handler): Adapt it.
-
Mathieu Othacehe authored
Join Build and Jobs tables using the build id instead of the build derivation to speed queries. * src/sql/upgrade-3.sql: New file. * Makefile.am (dist_sql_DATA): Add it. * src/schema.sql (Jobs)[derivation]: Replace it by ... [build]: this new column. * src/cuirass/database.scm (db-add-job, db-get-jobs): Adapt them.
-
- Apr 07, 2021
-
-
Mathieu Othacehe authored
Different derivations may result in a same build output. If a job registers a derivation D2 with the output O1, Cuirass may already have processed another derivation D1 with the same O1 output. In that case, the new job must point to the D1 derivation and not the D2 derivation, for which no build will be triggered. * src/cuirass/database.scm (db-add-job): Fix it. * tests/database.scm ("db-register-builds same-outputs", "db-get-jobs same-outputs"): New tests.
-
- Apr 06, 2021
-
-
Mathieu Othacehe authored
Each evaluation registration produces a list of new jobs. Until now, only the jobs which build outputs were not stored in the "Outputs" table were added to the "Builds" table. It means that Cuirass looses track of the job list associated to a given evaluation. This is problematic to provide the overall build status of an evaluation or to find the evaluation providing the best build coverage. Add a new "Jobs" table that stores the job list of each evaluation. Also add a new "/api/jobs" API to consult it. * src/sql/upgrade-2.sql: New file. * Makefile.am (dist_sql_DATA): Add it. * src/schema.sql (Jobs): New table. * src/cuirass/database.scm (db-add-job, db-get-jobs): New procedures. (db-register-builds): Call db-add-job. * src/cuirass/http.scm (url-handler): New "/api/jobs" route. * tests/database.scm ("db-get-jobs", "db-get-jobs names"): New tests. * doc/cuirass.texi (Web API, Database): Document it.
-
- Mar 26, 2021
-
-
Mathieu Othacehe authored
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.
-
- Mar 23, 2021
-
-
Mathieu Othacehe authored
-
- Mar 13, 2021
-
-
Mathieu Othacehe authored
-
Mathieu Othacehe authored
-
- Mar 12, 2021
-
-
Mathieu Othacehe authored
-
Mathieu Othacehe authored
-
- Mar 11, 2021
-
-
Mathieu Othacehe authored
-
Mathieu Othacehe authored
-
- Mar 10, 2021
-
-
Mathieu Othacehe authored
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.
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-cancel-pending-builds!): New procedure. * tests/database.scm ("db-cancel-pending-builds!"): New test.
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-retry-evaluation!): New procedure. * tests/database.scm ("db-retry-evaluation"): New test.
-
- Mar 09, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-open): Save the default database in the %package-database parameter.
-
Mathieu Othacehe authored
* src/cuirass/parameters.scm (%cuirass-database, %cuirass-host): New parameters. * src/cuirass/database.scm (db-open): Use them.
-
- Mar 08, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-restart-build!, db-restart-evaluation!): Reset starttime and stoptime field.
-
- Mar 05, 2021
-
-
Mathieu Othacehe authored
-
- Mar 03, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (with-transaction): New macro.
-
- Feb 25, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-add-build-product): Ignore duplicated BuildProducts.
-
- Feb 24, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-remove-unresponsive-workers): Restart the builds that are started on unresponsive workers. * tests/database.scm ("db-remove-unresponsive-workers"): Test it.
-
- Feb 22, 2021
-
-
Mathieu Othacehe authored
* src/schema.sql: Reorder fields. * src/cuirass/database.scm (db-get-specifications): Ditto.
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-add-specification): Make notifications field optional.
-
- Feb 21, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/mail.scm: New file. * src/cuirass/notification.scm: New file. * src/sql/upgrade-5.sql: New file. * Makefile.am (dist_pkgmodule_DATA, dist_sql_DATA): Add them. * src/schema.sql (Specifications)[notifications]: New field. * bin/cuirass.in: Wrap inside the "with-notification" macro. * src/cuirass/remote-server.scm (remote-server): Ditto. * src/cuirass/database.scm (db-add-specification): Add notifications field. (db-get-specifications): Ditto. (db-update-build-status!): Send notifications. * tests/mail.sh: New file. * tests/database.scm (mu-debug, tmp-mail): New variables. (mailer): New procedure. (example-spec): Add an email notification. ("mail-notification"): New test case.
-
- Feb 18, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-restart-evaluation!): New procedure. * tests/database.scm (db-restart-evaluation!): New test.
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-restart-build!): New procedure. * tests/database.scm (db-restart-build!): New test.
-
- Feb 14, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-register-builds): Remove commentary.
-
- Feb 11, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-get-build-percentage): Consider both successful and failing builds.
-
- Feb 08, 2021
-
-
Mathieu Othacehe authored
* src/cuirass/database.scm (db-get-worker, db-get-workers): Return last-seen field as integer.
-