Skip to content

Commits on Source 3

  • Tiago Gomes's avatar
    elementjob: stop calculating cache size · f4fe6b6a
    Tiago Gomes authored
    Calculating the cache size on the child_process_data() is racy, as this
    runs in the main process which does not obtain exclusive access to the
    cache resource.
    
    This calculation also seems unnecessary, as it will triggered when
    BuildQueue.done() is called.
    f4fe6b6a
  • Tiago Gomes's avatar
    cascache: move tmp directory one level up · 75ee55f3
    Tiago Gomes authored
    The tmp directory is filled when adding an artifact with temporary
    files. This causes problems on calculate_cache_size() because we could
    try to a attemp to do a stat() on a temporary file that meanwhile has
    been reaped.
    
    Handle this by not considering the tmp directory when calculating the
    cache size.
    75ee55f3
  • Tiago Gomes's avatar
    WIP Add end-to-end tests · 8de0181a
    Tiago Gomes authored
    TODO:
    * Uncomment when clausule.
    * Remove debug information.
    8de0181a
Loading