1. 25 May, 2022 3 commits
    • Ludovic Courtès's avatar
      evaluate: Create just as many threads as needed. · 578488b5
      Ludovic Courtès authored
      When using 'par-for-each', we'd spawn the whole thread pool of (ice-9
      futures), with one thread per core.  Using 'n-par-for-each' allows us to
      spawn just as many threads as needed.
      
      * src/cuirass/scripts/evaluate.scm (cuirass-evaluate): Use
      'n-par-for-each' instead of 'par-for-each'.
      578488b5
    • Ludovic Courtès's avatar
      evaluate: Fork inferior processes before creating threads. · 0e61131d
      Ludovic Courtès authored
      Fixes <https://issues.guix.gnu.org/55441>.
      
      Regression introduced by Guix commit
      bd86bbd300474204878e927f6cd3f0defa1662a5, where 'open-inferior' switched
      from 'open-pipe*' to 'primitive-fork', thereby introducing a window
      before 'execl' where the child process could get stuck on a mutex or
      similar.
      
      * src/cuirass/scripts/evaluate.scm (inferior-evaluation): Remove
      'profile' argument and replace it by 'inferior'.  Remove 'open-inferior'
      and 'close-inferior' calls.
      (cuirass-evaluate): Call 'open-inferior' upfront.  Adjust 'par-for-each'
      call accordingly.
      0e61131d
    • Ludovic Courtès's avatar
      evaluate: Remove unnecessary module imports. · eb84229c
      Ludovic Courtès authored
      * src/cuirass/scripts/evaluate.scm: Remove unnecessary module imports.
      Use #:autoload and #:select.
      eb84229c
  2. 16 May, 2022 1 commit
  3. 26 Apr, 2022 2 commits
  4. 20 Jan, 2022 1 commit
  5. 19 Jan, 2022 3 commits
  6. 09 Jan, 2022 4 commits
  7. 28 Dec, 2021 1 commit
  8. 17 Dec, 2021 7 commits
  9. 14 Dec, 2021 2 commits
  10. 07 Dec, 2021 1 commit
  11. 06 Dec, 2021 8 commits
  12. 03 Dec, 2021 1 commit
    • Mathieu Othacehe's avatar
      remote-server: Fix fetch worker crash. · df8837ce
      Mathieu Othacehe authored
      The fetch workers could crash when trying to register gc-roots for a
      derivation that has already been garbage collected.
      
      2021-12-03T03:36:46 fetching '/gnu/store/kx2ci2h5fif7j4rv6xcfn2gqk0fjjwqy-mtm-1.2.1.drv' from http://10.0.0.7:5558
      In ice-9/eval.scm:
          619:8  7 (_ #(#(#<directory (cuirass scripts remote-server) ?> ?)))
          619:8  6 (_ #(#(#(#(#(#(#<directory (cuirass scr?> ?)) ?) ?) ?) ?))
          619:8  5 (_ #(#(#(#(#(#(#(#(#(#(#(?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
      In cuirass/base.scm:
         192:15  4 (register-gc-roots "/gnu/store/kx2ci2h5fif7j4rv6xcfn2g?" ?)
      In guix/derivations.scm:
         549:17  3 (derivation-path->output-paths "/gnu/store/kx2ci2h5fif7?")
      In ice-9/ports.scm:
         450:11  2 (call-with-input-file "/gnu/store/kx2ci2h5fif7j4rv6xcf?" ?)
      In unknown file:
                 1 (open-file "/gnu/store/kx2ci2h5fif7j4rv6xcfn2gqk0fjjwq?" ?)
      In ice-9/boot-9.scm:
        1685:16  0 (raise-exception _ #:continuable? _)
      ice-9/boot-9.scm:1685:16: In procedure raise-exception:
      In procedure open-file: No such file or directory: "/gnu/store/kx2ci2h5fif7j4rv6xcfn2gqk0fjjwqy-mtm-1.2.1.drv"
      
      Do not try to register the derivation outputs in that case.
      
      * src/cuirass/scripts/remote-server.scm (run-fetch): Check if the derivation
      still exists before trying to register its outputs.
      df8837ce
  13. 02 Dec, 2021 3 commits
  14. 01 Dec, 2021 3 commits