Skip to content
Snippets Groups Projects
  • Yaroslav Dynnikov's avatar
    ffe18d93
    fix(ci): concurrent cache access · ffe18d93
    Yaroslav Dynnikov authored
    Saving cache isn't instantaneous. Usually it takes about a minute.
    If another job tries to restore cache at the same time, it fails
    with the error "tar: Unexpected EOF in archive".
    
    Now tar writes to a different filename with a random suffix, and then
    renames it atomically.
    ffe18d93
    History
    fix(ci): concurrent cache access
    Yaroslav Dynnikov authored
    Saving cache isn't instantaneous. Usually it takes about a minute.
    If another job tries to restore cache at the same time, it fails
    with the error "tar: Unexpected EOF in archive".
    
    Now tar writes to a different filename with a random suffix, and then
    renames it atomically.