Skip to content
Snippets Groups Projects
This project is mirrored from https://git.savannah.gnu.org/git/guix/guix-cuirass.git/. Pull mirroring updated .
  1. Apr 09, 2021
  2. Mar 10, 2021
    • Mathieu Othacehe's avatar
      Reset database. · 463f5cd0
      Mathieu Othacehe authored
      * 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.
      Unverified
      463f5cd0
  3. Feb 21, 2021
    • Mathieu Othacehe's avatar
      Add notifications support. · 4495e085
      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.
      Unverified
      4495e085
  4. Jan 11, 2021
  5. Jan 16, 2020
    • Christopher Baines's avatar
      Support publishing build events · 12def48b
      Christopher Baines authored
      Add a table to store events, which have a type and a JSON blob. These can be
      used to record changes, this commit inserts events when new builds are
      created, and when the status of builds change.
      
      The EventsOutbox table is then used to track when events have been sent
      out. This is done through the new cuirass-send-events script.
      
      * Makefile.am (bin_SCRIPTS): Add bin/cuirass-send-events.
      .gitignore: Add bin/cuirass-send-events.
      (dist_pkgmodule_DATA): Add src/cuirass/send-events.scm.
      (dist_sql_DATA): Add src/sql/upgrade-5.sql.
      (EXTRA_DIST): bin/cuirass-send-events.in.
      (bin/cuirass-send-events): New rule.
      * bin/cuirass-send-events.in: New file.
      * src/cuirass/send-events.scm: New file.
      * src/sql/upgrade-5.sql: New file.
      * src/cuirass/database.scm (changes-count): New procedure.
      (db-update-build-status!): Call db-add-event after updating the build status.
      (db-add-event): New procedure.
      (db-add-build): Insert an event when a new build is inserted.
      (db-delete-events-with-ids-<=-to): New procedure.
      * src/schema.sql (Events): New table.
      12def48b
Loading