~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The Release pull follows main by itself

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:release/in-a-workflow

The Release <version> pull now keeps itself up to date: on each push to main, a new release-pull workflow runs deploy/release.sh as the owner, and tags each release as it lands. A pull with no change file now says Changeset: none in its body instead of in a commit message.

Changeset: none

Claude Opus 5.5

What changes

release-pull workflow (.knotless/workflows/release-pull.yml). On each push to main, it runs deploy/release.sh, which:

  • tags v<version> on the release that last landed;
  • force-pushes release/next with main's change files cut into a release;
  • opens the Release <version> pull, or updates the open one.

It runs as chadtmiller.com, with RELEASE_PASSWORD, the app password release.yml already takes and the docs deploy uses. knope 0.23.2 comes from its GitHub release binary (x86_64 musl), checked against a pinned sha256 and cached in /opt/knope. superseded: finish runs one at a time, in the order main moved. just release still runs the same script from your machine, and --dry-run is unchanged.

Changeset: none moves to the pull's body. harness/changes.sh reads the pull record KNOTLESS_RUN_PULL names from its author's PDS. It resolves a did:plc through plc.directory, or a did:web through its did.json, and installs jq if the image has none. It no longer reads commit messages. If the body is edited after check ran, the check has to run again, and the failure message prints the knotless run rerun … --workflow check line for that. It reads the author's PDS rather than the appview because the appview can lag on a pull made moments ago, and a run starts right then.

Docs. AGENTS.md (the CI list, Versioning), docs/development.md (Releasing), .knotless/pull.md, the headers of release.sh, release.yml and knope.toml, the Justfile's release comment, and the Release pull's own opening line.

Why

Both used to be manual because the repository was private: a run couldn't read a pull's body, and an app password couldn't write the repository. Neither holds now that it's public (Nothing says the repository is private any more).

How it was checked

  • harness/changes.sh locally, in a worktree at a commit that changes crates/group-host/src and adds no change file. Against a pull whose body lacks the line, it fails with the rerun hint. Against this pull, whose body has the line, it passes. At a commit that adds a change file, it passes on that without reading the body.
  • knope's tarball: the sha256 was computed from the downloaded file, and the tarball holds knope-x86_64-unknown-linux-musl/knope.
  • From knotless's source: git-remote-knotless logs in through the same session::ensure as the CLI, which uses KNOTLESS_PASSWORD. So the push in release.sh takes the app password.

Shortcomings

  • release-pull can only run on main, where the secret is given, so its first real run is the push that lands this. That run does nothing: v0.3.0 is tagged and main has no change files. The push and the pull it opens are first exercised by the next pull that lands a change file. If that fails, it shows as a red release-pull on main, and just release still works by hand.
  • The workflow commits as "Chad Miller chadtmiller15@gmail.com", the identity on the Release commits so far, written into the workflow.
Approved

This pull adds a release-pull workflow that runs deploy/release.sh on each push to main. It also moves Changeset: none from commit messages to the pull body, which harness/changes.sh now reads from the author's PDS. I read every changed file and found nothing that blocks the merge. The docs match the new behaviour.

One thing to confirm: harness/changes.sh uses $KNOTLESS_RUN_REPO in the failure message. Nothing else in the repository sets or reads that variable; the other variables the script uses (KNOTLESS_RUN_PULL, KNOTLESS_RUN_BASE) are already used elsewhere. The script runs under set -eu, so if the runner doesn't provide it, the message dies with "unbound variable" before the rerun hint prints. The check still fails, but the hint is lost. Using ${KNOTLESS_RUN_REPO:-chadtmiller.com/group-host} would remove the doubt.

One drawback you already describe: the check now reads the body when it runs, so editing the body means rerunning check by hand.

harness/changes.shline 54
echo "what people use is changed, in:"
printf "%s\n" "$changed" | sed 's/^/ /'
echo "but no change file was added under .changeset/. Add one, as \`knope document-change\` writes one (AGENTS.md, Versioning), or, if no one running or using the host sees the change, say \`Changeset: none\` on a line of the pull's body, then run this check again: knotless run rerun knotless://$KNOTLESS_RUN_REPO --pull $KNOTLESS_RUN_PULL --workflow check"
review.knotless.dev

KNOTLESS_RUN_REPO isn't used anywhere else in the repo. Under set -u, if the runner doesn't set it, this line aborts before the rerun hint prints. Consider ${KNOTLESS_RUN_REPO:-chadtmiller.com/group-host}, or confirm the runner sets it.

Merged as 4a8b317