The Atlas MikeAzureDev's documentation, bound to its code
140 documents
.claude/skills/mike-release/SKILL.md

name: mike-release description: Pilot the operator through publishing a new MikeOssAzure release to the Azure Marketplace end to end - preflight, git tag, ACR image build, package zip, Partner Center upload, preview testing, go-live, and post-release tasks. Use when the user says "new release", "publish to marketplace", "ship 1.0.x", "marketplace build", or wants to upgrade the published offer version.

Mike marketplace release pilot

Drive the operator through a full release. The canonical step list is updating-mktplc.md (repo root) — read it first; this skill adds the gotchas, the ordering guardrails, and the interactive pacing. Do NOT duplicate the runbook; follow it, and keep it updated if reality diverges.

Phase 0 — preflight (agent does)

  1. git status must be clean — az acr build ships the working tree, not a commit. Commit or revert strays before building.
  2. Decide the version with the user (bare numeric, e.g. 1.0.11).
  3. Confirm what ships: summarize commits since the last marketplace/* tag; ask the user if anything on main is not customer-ready.
  4. Tag: git tag -a marketplace/<ver> at HEAD. Move it (-f) if later commits land before the image build.
  5. Check for NEW migrations since the last release tag — if any, the upgrade docs (agent guide + walkthrough) must say "run db-migrate first" and list them.
  6. Check for NEW Key Vault secrets seeded by Bicep since last release — each one is a landmine for image-only upgraders unless the backend self-seeds it (see docs/issues/azure-migration/041-*). Surface this.

Phase 1 — image (agent does)

  • Local sanity: docker build -t mike-backend:local-sanity . — Docker Desktop may need starting first; verify the engine responds before trusting exit codes (a dead daemon + piped tail can fake exit 0).
  • ACR build: acrmikeoss lives in subscription fe572022-b691-47c5-b94c-1235bb37b69d (rg-mike-publisher), NOT the default sub. az account set to it first, restore after.
  • Run scripts/release-images.ps1 -Registry acrmikeoss -Version <ver> (add -SkipPostgrest if the pinned tag is already mirrored).
  • If az crashes with a cp1252 UnicodeEncodeError, the SERVER-SIDE build is usually still running — poll az acr task list-runs until terminal status; never blind-retry (wastes a run, races the live one).
  • CVE scan: if the script died before scanning, run docker scout cves acrmikeoss.azurecr.io/backend:<ver> manually. Policy: Critical blocks; High warns. An unfixable distro CVE with no exploitation path may be accepted — document the reasoning to the user and get their nod.

Phase 2 — package (agent does)

scripts/package-marketplace.ps1 -Version <ver> → all six gates green → dist/mike-marketplace-<ver>.zip. Verify the zip is flat (3 files) and grep-check any release-critical template change made it into marketplace/mainTemplate.json.

Phase 3 — Partner Center (user does; guide + wait)

Deep link: https://partner.microsoft.com/en-us/dashboard/commercial-marketplace/offers/9c5e2451-3441-4d93-bf65-d72155854568/overview

Guide one step at a time, wait for confirmation between steps:

  1. Plan overview → plan "Mike OSS Azure Trial" → plan-level Technical configuration (NOT the offer-level page of the same name — that one is metering identity; leave it empty). Set Version, remove old zip, upload new zip, Save draft. "Resource not found" on upload = stale session: hard-refresh and retry.
  2. Offer listing → Description → update the "What's new" section (there is no dedicated changelog field). Generate the text: upstream sync date + upstream features + Azure-edition changes + upgrade instruction. Verify feature claims against git history — never claim PRD-only work.
  3. Review and publish → Publish. Pipeline: automated validation → preview creation (hours) → STOPS for publisher signoff.

Phase 4 — test, go live, aftermath

  • Preview = the test listing (Preview audience page holds allowed sub IDs). Test a fresh install from the preview link before Go live.
  • Test the upgrade path separately — it never involves the marketplace: fresh install of the PREVIOUS version from the live listing, then the image-bump upgrade, then verify downloads/boot logs.
  • Go live → certification (≤2 business days) → public.
  • Post-release: update docs/upgrade-*-agent-guide.md for the new version pair; offer to generate the human walkthrough (mike-upgrade-walkthrough skill); remind that existing customers get nothing automatically — they upgrade via image bump (registry is anonymous-pull, available the moment the image is pushed, no need to wait for certification).