Skip to content

Embed the build, test and read set as one zstd tarball #1570

Closed

Description

@seeker89

Today relish embeds src/ only, each file compressed separately (3.9 MB), with no Cargo.toml, Cargo.lock, build.rs or ebpf/, so it can't be rebuilt.

  • build.rs writes $OUT_DIR/source.tar.zst from an explicit allowlist: src/, ebpf/, brioche/dist/, docs/manual/, examples/, tests/, Cargo.toml, Cargo.lock, build.rs, Makefile, .config/, the design docs, book, whitepaper, roadmap, release log, testing and releasing docs (measured: 4.7 MB at zstd -19, under 1% of the binary). Level 19 for release, 3 for debug; measure warm-build cost and fall back to reading the checkout in debug if it hurts.
  • Record RELIABURGER_SOURCE_DIGEST and RELIABURGER_SOURCE_DIRTY; release builds must be clean; the digest goes in candidate.json.
  • relish source reads the tarball; SourceAssets goes.
  • A CI job extracts the bundle from the built relish into an empty directory and runs cargo build --locked --bins there.
  • A test fails if the bundle passes 6 MB.

Plan: https://github.com/reliaburger/reliaburger/blob/main/docs/plans/2026-11-04-plan-0.2.7.md; research docs/plans/2026-11-04-research-agent-friendly.md, "relish agent source".

Activity

  1. added this to the 0.2.7 milestone on Nov 4, 2026
  2. seeker89 commented on Nov 4, 2026

    @seeker89
    ContributorAuthor

    Laptop session: working on this from 4 November, on a 0-2-7/ branch as a draft PR that merges after 0.2.6 is tagged. The Studio session owns 0.2.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions