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 02, 2018
  2. Mar 01, 2018
  3. Feb 27, 2018
  4. Feb 20, 2018
  5. Feb 15, 2018
  6. Feb 14, 2018
  7. Feb 10, 2018
  8. 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
  9. Feb 08, 2018
  10. Feb 06, 2018
  11. Jan 31, 2018
  12. Jan 30, 2018
    • Ludovic Courtès's avatar
      examples: Add 'random-jobs'. · eb9521d1
      Ludovic Courtès authored
      * examples/random-jobs.scm, examples/random.scm: New files.
      * Makefile.am (nobase_dist_pkgdata_DATA): Add them.
      eb9521d1
    • Ludovic Courtès's avatar
      base: Make build log processing non-blocking. · e0588239
      Ludovic Courtès authored
      We used to have 'build-derivations' write to the custom binary port
      returned by 'build-event-output-port'.  However, custom binary ports
      constitute continuation barriers, thereby preventing fibers from being
      suspended.
      
      To make build log processing non-blocking, we therefore invert this
      inversion of control and use a suspendable I/O procedure,
      'read-line/non-blocking', when reading the build log.
      
      * src/cuirass/base.scm (read-line/non-blocking, process-build-log)
      (build-derivations&): New procedures.
      (%newline, build-event-output-port): Remove.
      (spawn-builds): Use 'build-derivations&' instead of 'build-derivations'
      with 'build-event-output-port'.
      e0588239
Loading