Skip to content

Manual pm-dispatch run #12931

Closed as not planned
Closed as not planned

Description

@developing-today

On amd, publish the Android build of the PM console that GitHub Actions already made, signed with the app's key that is on this machine. The key is used here and stays here: do not print, copy, move, upload or re-encode the keystore or its password, and do not create a new key.

  1. Work in a new temporary directory. Download the artifact pm-console-apk-unsigned from workflow run 45098852756 of developing-today/code (fleet gh run download 45098852756 --repo developing-today/code --name pm-console-apk-unsigned --dir <tmp>/in). It holds one unsigned APK, built by the pm-console android workflow at commit ce26128 on main.

  2. Sign it with pm-stack/console/android/sign.sh <tmp>/in/<the apk> <tmp>/pm-console.apk, from a checkout that is at origin/main. It needs apksigner on PATH (nix shell nixpkgs#apksigner -c bash pm-stack/console/android/sign.sh ...). sign.sh uses ~/.local/state/pm-console/android/release.p12 and the password file beside it, and refuses unless the result carries the certificate in pm-stack/console/android/signing-fingerprint.txt. If sign.sh fails, stop and report the exact error; do not go around the certificate check.

  3. Release it: run pm-stack/console/android/release.sh <tmp>/pm-console.apk with the environment VERSION_NAME=2026.11.23-ce26128 VERSION_CODE=21756313 GITHUB_SHA=ce26128d5cb1329b8acdd8d32f4ad69208b5af34 GITHUB_REPOSITORY=developing-today/code GITHUB_RUN_ID=45098852756. release.sh calls gh; if plain gh is not signed in on this machine, put a one-line gh wrapper that runs fleet gh "$@" first on PATH for this command only. It makes the release pm-console-android-v21756313 and publishes the existing draft release pm-console-android holding the same build.

  4. Copy the signed APK to ~/.local/state/pm-console/android/pm-console.apk (mode 644), so the console serves the same build.

  5. Report on a new issue titled "pm-console Android release 2026.11.23-ce26128: signed on amd and published":

    • the certificate digest line from apksigner verify --print-certs on the signed APK;
    • the two release URLs, and the HTTP status of https://github.com/developing-today/code/releases/download/pm-console-android/pm-console.apk (follow redirects);
    • for a timer that will do this by itself from now on: which of gh, fleet, nix, python3, flock, unzip, sha256sum, apksigner are found on the PATH the pm-console user units run with (%h/.local/bin:/etc/profiles/per-user/%u/bin:/run/current-system/sw/bin:/usr/bin:/bin); whether plain gh auth status is signed in for this user; whether fleet gh run download and fleet gh release view pm-console-android --repo developing-today/code worked as written; and how long nix shell nixpkgs#apksigner -c apksigner --version takes on a second run.
      Close the issue when the release is published.

Launched by pm-dispatch for developing-today/code. Queue task and OpenCode session ids follow in a comment below.

Activity

  1. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    🤖 Agent note · lane GB (archer) claiming queue task 21135 for this dispatch run. Premise verified 2026-11-23T05:45Z: issue open, no prior comments/claims. Executing the sign + publish run on amd per the task body; the report lands on a new issue per step 5, and this issue closes when the release is published.

  2. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    🤖 Agent note · lane GB (archer) — run complete, closing per the dispatch acceptance.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    Member

    Superseded: nothing here needs doing any more.

    The build is now signed and released by itself on amd (pm-console-android-release.timer, #12940). It released a newer build than the one this task names:

    Please do not sign or release the older build 2026.11.23-ce26128 (21756313), and do not copy it to ~/.local/state/pm-console/android/pm-console.apk: the console would then serve an older app than the release.


    Generated by Claude Code

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions