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. Mar 18, 2018
    • Ludovic Courtès's avatar
      base: Catch errors in the 'process-build-log' handler. · 2096ebe6
      Ludovic Courtès authored
      Previously, when an exception was raised from
      'handle-build-event' (e.g., a "database is locked" error), we'd throw,
      thereby leaving PORT open and we'd never read from it again.  Thus, the
      corresponding 'guix-daemon' process would eventually get stuck in a
      'write' call to that socket, and its build processes would stall.
      
      * src/cuirass/base.scm (exception-reporter): New procedure.
      (spawn-builds): Use it.
      2096ebe6
  2. Mar 02, 2018
  3. Mar 01, 2018
  4. Feb 27, 2018
  5. Feb 20, 2018
  6. Feb 15, 2018
  7. Feb 14, 2018
  8. Feb 10, 2018
  9. Feb 09, 2018
    • Ludovic Courtès's avatar
      utils: 'non-blocking' forwards exceptions to the calling fiber. · ef3801b3
      Ludovic Courtès authored
      * src/cuirass/utils.scm (%non-blocking): Forward exceptions to the
      calling fiber.
      ef3801b3
    • Ludovic Courtès's avatar
      database: Use argument binding in 'db-get-builds' queries. · 8c7c9392
      Ludovic Courtès authored
      That makes it safe from SQL injection.
      
      * src/cuirass/database.scm (db-get-builds): Rewrite to use question
      marks in SQL queries and binding through '%sqlite-exec'.
      * tests/database.scm ("database")["db-get-builds"]: Exercise 'WHERE'
      clauses.
      8c7c9392
    • Ludovic Courtès's avatar
      database: Handle binding directly in 'sqlite-exec'. · b0c39b31
      Ludovic Courtès authored
      The new macro automatically takes care of inserting question marks in
      the SQL queries, which in turn guarantees that there are always as many
      question marks and arguments.
      
      * src/cuirass/database.scm (sqlite-exec): Rename to...
      (%sqlite-exec): ... this.
      (sqlite-exec/bind, sqlite-exec): New macros.
      (assq-refs): Remove.
      (db-add-specification): Use the new 'sqlite-exec' form.
      (db-get-specifications): Correctly deal with REV or TAG being #f.
      (db-add-derivation, db-get-derivation, db-add-evaluation)
      (db-add-build, db-update-build-status!, db-get-outputs)
      (db-get-build, db-get-stamp, db-add-stamp): Adjust to the new
      'sqlite-exec' form.
      b0c39b31
  10. Feb 08, 2018
  11. Feb 06, 2018
  12. Jan 31, 2018
  13. Jan 30, 2018
Loading