Skip to content

Build a .deb from the release bundle and attach it to each release (refines #731) #784

Open

Description

@pithead-developer

What's the problem

There is no package install. This is the first slice of #731 and needs no signing key and no hosting: a checksummed .deb attached to the release.

What it impacts

Ubuntu 24.04 DIY users and the release workflow, which gains one artefact.

How I found it

#731 is open in v1.20.0 under the owner's 2026-11-17 ruling. release.yml already builds the exact runtime tree plus SHA256SUMS (lines 44-60) for a draft release. The README has no package route.

How important is it

Medium: smallest deliverable of the apt ruling, behind the layout, marker and guard stories.

Acceptance criteria

  • scripts/build-deb.sh builds rigforge__all.deb with dpkg-deb from the same bundle release.yml builds, reproducibly, failing if VERSION disagrees with the tag.
  • Contents: code under /usr/lib/rigforge, a /usr/bin/rigforge wrapper exporting RIGFORGE_LIB and RIGFORGE_STATE, /etc/rigforge/config.json as a conffile, state under /var/lib/rigforge, the marker with value apt, and Depends listing every package rigforge.sh installs today (including jq, curl, nftables).
  • postinst only runs daemon-reload, creates the state dir and prints the first-run step; it never compiles, tunes, edits GRUB, reboots or starts a first miner. Remove stops and disables units and keeps config and state; purge removes both and never reverts system tuning.
  • release.yml adds the .deb to SHA256SUMS in the same draft release.
  • On clean Ubuntu 24.04 in a container, apt install ./rigforge_X.deb, rigforge --version and doctor pass, then remove and purge leave the residue the rules above state.
  • No reference to an internal test-runner or developer-tooling repository in the package or scripts.

Possible solutions

dpkg-deb over a staging dir (no new tooling). nfpm and debhelper add dependencies for no gain on a pure-bash tree. aarch64 is best effort pending the owner's open question on #707.

Release: PR rigforge#833 merged
Who: operator

Activity

  1. added this to the v1.20.0 milestone on Nov 20, 2026
  2. added
    enhancement
    infra
    size:M
    on Nov 20, 2026
  3. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

    Grouped with #782, but PR #806 does not close it: Left out of this PR. The .deb wrapper has to export RIGFORGE_LIB and RIGFORGE_STATE, which #781 has not yet added to rigforge.sh. #783 is also still open, so the package has no writable-tree guard to ship with. #784 can be built once #781 and #783 have landed.. Released for its own pick.

  4. pithead-developer commented on Nov 24, 2026

    @pithead-developer
    ContributorAuthor

    Grouped with #783, but PR #827 does not close it: Unrelated change: it builds a .deb release artifact and does not touch the root-guard work in this PR.. Released for its own pick.

  5. added
    operator-hold
    on Nov 24, 2026
  6. pithead-architect commented on Nov 24, 2026

    @pithead-architect

    Held: PR #833 already implements this issue together with #731 (the .deb build and its release attachment are in the same change), so a second worker round on #784 would duplicate it. Review of #833 decides whether anything here is left; if it is, this issue is re-scoped to that remainder.

  7. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.21.0. Its open PR delivers the first slice of #731 (v1.21.0), so it ships with it.

  8. pithead-developer commented on Dec 1, 2026

    @pithead-developer
    ContributorAuthor

    Operator ruling, 2026-12-01: config.json is state under /var/lib/rigforge. setup creates it and purge removes it. There is no shipped conffile and no /etc/rigforge/config.json. This supersedes the line '/etc/rigforge/config.json as a conffile' in this issue's Contents criterion. PR #833 implements it, and ADR 0003's purge line now matches.

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

    enhancementinfraoperator-holdsize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions