Skip to main content

Mere Pkgd Harness

@jeremy/mere-pkgd-harnessv2026.07.19.1· 1mo agoMODELS
01README

Local integration-test harness for the mere <-> pkgd package-publish pipeline: builds both binaries, runs pkgd as a real background process against scratch directories, publishes a real signed test package to it over HTTP, and verifies the result — without touching the real /mere on the host.

02Release Notes

Fix false-positive startup: fail when pkgd never creates its socket, terminate the child, and only record a reachable instance.

03Models1
@jeremy/mere-pkgd-harnessv2026.07.19.1mere_pkgd_harness.ts

Global Arguments

ArgumentTypeDescription
mereRepoPathstringLocal git checkout of codeberg.org/merelinux/mere to build from
pkgdRepoPathstringLocal git checkout of codeberg.org/merelinux/pkgd to build from
scratchDirstringRoot scratch directory for this harness run — everything lives under here, nothing touches the real /mere
fn hash_source(url: string)
Download a source URL to a temp file and compute its blake3 hash via the mere binary
ArgumentTypeDescription
urlstringURL to download and hash
fn build()
Compile mere (zig build) and pkgd (go build) from their local checkouts
fn start()
Generate a throwaway signing key and start pkgd as a background process against fresh scratch directories
fn publish_test_package(recipePath: string)
Build a real signed test package via `mere dev build` and POST it to the running pkgd instance's /publish
ArgumentTypeDescription
recipePathstringPath to a recipe.kdl to build, e.g. a small recipe from the recipes checkout
fn verify_published(packageName: string)
Confirm a package landed in the published repo.db (queried directly, sidestepping any HTTP-layer caching)
ArgumentTypeDescription
packageNamestring
fn verify_properties(packageName: string)
Verify that a package's properties column in repo.db contains the expected recipe metadata (description, url, licenses, source_urls)
ArgumentTypeDescription
packageNamestring
fn stop()
Kill the running pkgd instance and remove all scratch directories

Resources

build(infinite)— Built mere and pkgd binary paths
instance(infinite)— A running pkgd test instance
publish-result(infinite)— Result of publishing one test package through pkgd
verify-result(infinite)— Result of verifying a package landed in the published repo.db
verify-properties-result(infinite)— Result of verifying a package's properties (metadata) in repo.db
hash-source-result(infinite)— Result of downloading a source URL and computing its blake3 hash
04Previous Versions1
2026.07.17.1
05Stats
A
100 / 100
Downloads
0
Archive size
12.6 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels