Skip to content

Mammoth Cache 0.8.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 20:16
· 60 commits to main since this release
Immutable release. Only release title and notes can be modified.

Mammoth Cache 0.8.1

Release identity

Final tag: v0.8.1
Source commit: d3a99d2
Promoted candidate: v0.8.1-rc1
Candidate manifest SHA-256: e86650ea4291f82fc59cb05047e6b4af438e8d7c5535cc7eea25e2e6b3f555d4

Release notes

This patch reduces Mammoth's own work in the main and post steps: it makes fewer
filesystem calls, stages and indexes worker merges with less overhead, and an
aggregator downloads worker artifacts concurrently. Cache formats are unchanged.

Highlights

  • Download worker artifacts concurrently in the aggregator, up to four at a time,
    and merge them in selection order. After the first failed download no further
    download starts.
  • Do less of Mammoth's own filesystem work. The native walk observes each file
    once and lists and stats synchronously. Paths that the invocation created in its
    own staging are no longer re-checked against concurrent changes, following the
    new filesystem trust zones in the threat model. Worker merges stage files with
    synchronous calls, worker acceptance indexes the staging from what it recorded
    instead of walking it again, and disposable trees are retired with synchronous
    calls.
  • Plan an aggregator's worker install from the tree the base install just left
    instead of walking the whole cache root again. Directories restored intact from
    a trusted base are walked only when a worker writes into them.
  • Install a single-writer snapshot entry by entry when its partition root is
    present with the same mode. New, changed and stale entries are placed or deleted,
    and files with the same size, mode and mtime millisecond are kept, so an unchanged
    dependency-metadata tree is no longer backed up and replaced in every job. Worker
    snapshots are adopted from the installed staging by rename instead of being
    copied.
  • Use less CPU and memory for path validation, record encoding, TAR header parsing,
    partition owner lookup and install scratch reads.
  • Add filesystem trust zones and fail-safe interruption to the threat model.

Upgrade notes

  • No action-input or workflow changes are required. Cache formats are unchanged,
    and existing 0.8.0 cache generations can be reused.
  • Like aggregate partitions, a single-writer snapshot file that is rewritten with
    the same size and mode within the same millisecond is now kept as unchanged.
  • A native directory listing is read whole before the directory breadth limit is
    checked, so an oversized local directory briefly holds about 150 bytes per entry
    before it is rejected. Restored archives stay bounded while they are extracted.

Review v0.8.1-rc1 as the first release candidate and use v0.8.1 after final
promotion.

Release assets

  • buildish-mammoth-cache-0.8.1-github-action.zip
  • buildish-mammoth-cache-0.8.1-github-action.zip.asc
  • buildish-mammoth-cache-0.8.1-github-action.zip.sha256
  • buildish-mammoth-cache-0.8.1-github-action.zip.sha512
  • buildish-mammoth-cache-0.8.1-src.tar.gz
  • buildish-mammoth-cache-0.8.1-src.tar.gz.asc
  • buildish-mammoth-cache-0.8.1-src.tar.gz.sha256
  • buildish-mammoth-cache-0.8.1-src.tar.gz.sha512
  • materialized.bundle