Release & CI Runbook
How to triage and resolve failed CI checks, release-please PRs, and dependency PRs.
Quick Reference
| Signal | What It Means | First Action |
|---|---|---|
| CI ❌ on main | Release blocker | Read log, identify failing gate |
| Release PR ❌ | Version release blocked | Check CI status, fix the failure |
| Release PR ✅ | Can create a new release | Merge the PR |
| Dependency PR ❌ | Update blocked | Check if CI is already red on main |
| Dependency Dashboard shows pending approval | Major update needs review | Review changelog, approve or reject |
Required CI Gates
The following gates must pass on main, release PRs, and dependency PRs:
| Gate | Command | Priority |
|---|---|---|
| Format check | pnpm format:check | Must pass |
| TypeScript check | pnpm typecheck | Must pass |
| Extension typecheck | pnpm typecheck:extension | Must pass |
| Lint | pnpm lint | Must pass with zero warnings |
| Unit tests | pnpm test | Must pass |
| Build | pnpm build | Must pass |
| Extension build | pnpm build:extension | Must pass |
| Extension tests | pnpm test:extension:ci | Must pass |
| Extension verify | pnpm verify:extension | Must pass |
| Extension size | pnpm check:extension-size | Must pass |
| CodeQL | (CI only) | Must pass |
| Docker build | (CI only) | Must pass if release created |
Common Failure Modes
1. pnpm format:check fails
Symptoms: Prettier reports unformatted files.
Root cause: Usually one of:
- A
.jsonfile written byscripts/sync-versions.mjsduringpnpm builddoes not match Prettier style. - A contributor committed code without running
pnpm format.
Fix:
# Re-format everything
pnpm format
# Then verify the fix
pnpm format:checkIf scripts/sync-versions.mjs produced the unformatted output, check that it runs prettier --write on the files it modifies (it should, but if not, fix the script).
2. pnpm install --frozen-lockfile fails
Symptoms: Lockfile drift — pnpm-lock.yaml does not match package.json.
Root cause: Someone ran pnpm install (without --frozen-lockfile) and committed package.json changes but not lockfile changes, or vice versa.
Fix:
# Regenerate lockfile locally
pnpm install
# Commit the updated lockfile
git add pnpm-lock.yaml
git commit -m "chore(deps): update lockfile"3. Test failures
Symptoms: pnpm test reports failures.
Root cause: Code change broke a test; or a test relies on an external dependency that is unavailable.
Fix: Run locally and examine the failure. If it's an EasyEDA Pro bridge-dependent test and no bridge is available, check whether the test is properly guarded with a conditional skip. Do not delete or .skip failing tests — fix the code or add proper guards.
4. Release-please PR has no CI run
Symptoms: Release PR shows no CI check results.
Root cause: Release Please must use the dedicated RELEASE_PLEASE_TOKEN. Pull requests created with the default GITHUB_TOKEN do not trigger downstream CI, and a release run initiated by a restricted integration may not be able to create a GitHub Release.
The secret must be a fine-grained token limited to this repository with Contents, Pull requests, and Issues read/write access. It is used only by the Release Please action and GitHub Release asset upload step; npm publication continues to use OIDC Trusted Publishing.
Fix: Close and re-open the release PR to re-trigger CI. If that fails, push a trivial commit to the release PR branch.
5. Release PR has merge conflicts
Symptoms: Mergeable: CONFLICT or MergeStateStatus: DIRTY.
Root cause: The release PR's version bumps conflict with changes merged to main after the PR was created.
Fix:
# Checkout the release branch
gh pr checkout 3
# Rebase on latest main
git rebase main
# Force push (release-please will re-read the branch)
git push --force-with-leaseRelease candidate has stale live compatibility evidence
Symptoms: a release/ candidate PR fails quality (24) at Verify release compatibility evidence.
Action: do not merge the candidate. Run the required disposable-project live EasyEDA validation for the exact candidate, record commit-bound evidence, regenerate the compatibility matrix, and rerun the PR checks. Do not bypass the gate by renaming the branch or relying on publication-time checks.
Stable Release Please PR appears while main is prerelease
Symptoms: Release Please proposes a stable PR while package.json is still X.Y.Z-rc.N and no promotion commit has been reviewed.
Action: close the unexpected release PR and inspect the Resolve stable Release Please eligibility step. Ordinary prerelease main pushes intentionally keep the manager dormant. Stable generation resumes only when the latest main commit contains a matching Release-As: X.Y.Z; a mismatched target fails closed.
Dependency PRs: Dependabot vs Renovate
This repository is configured to use Renovate as the sole dependency version-update provider. Dependabot version-update configuration is intentionally absent to avoid duplicate PRs; GitHub's Dependabot alert/security-update features remain independent.
The repository config does not activate the hosted service by itself. For Mend-hosted Renovate, the Mend Renovate App must be installed for this repository and its repository job must run in Interactive mode. Treat the absence of both a Renovate-authored update PR and the Dependency Dashboard as an account-level provider setup incident before changing .github/renovate.json or enabling a second updater.
Renovate Behavior
| Update Type | Auto-merge? | Notes |
|---|---|---|
| devDependency patch/minor | ✅ Yes | Required CI must pass |
| Runtime dependencies | ❌ No | Maintainer review required |
| GitHub Actions / hooks | ❌ No | Critical automation path; maintainer review required |
| Major updates | ❌ No | Requires manual approval on the Dependency Dashboard |
| Lockfile maintenance | ✅ Yes | Runs weekly; required CI must pass |
Dependency Dashboard
A healthy hosted Renovate run creates an issue titled Dependency Dashboard. Find the current dashboard by title rather than hard-coding an issue number. Open it to:
- Approve major updates that need manual review
- See which updates are blocked by failing CI
- Check for vulnerability alerts
If that search returns no dashboard, verify the Mend Renovate App installation/repository selection and the repository job's Interactive mode in the Mend Developer Portal. Review the Renovate job log before changing repository policy. Do not re-enable Dependabot version updates as a workaround, because that would recreate competing update ownership.
Triaging a Failed Dependency PR
- Check if CI is already red on main. If so, fix main first — the dependency PR will pass after rebase.
- Check if the failure is pre-existing. E.g., a test that was already flaky. In that case, note it on the PR and do not block the dependency update.
- Check if the dependency introduced a breaking change. Look at the release notes or changelog. If it's a major version, it may need code changes in this repo.
- If the failure is caused by the update itself, you have two options:
- Fix the code to accommodate the breaking change, then merge.
- Close the PR and pin the old version with a comment explaining why.
Stable release gate failures
Stable publication does not use a time-based promotion delay. If a release gate fails, keep the exact audited source unchanged, fix the underlying policy/evidence problem, and rerun only when the current workflow still targets that same source. Do not create a substitute tag or move the release to a later commit to bypass a failed check.
If a compatibility-sensitive change landed after the validated candidate, record fresh commit-bound live evidence for the new exact source. Prepare another numbered prerelease only when following the optional prerelease channel. If an older workflow attempt predates a newly mandatory gate, use the current workflow definition from main and the documented missing stable release identity recovery path rather than replaying the older definition.
Manual Release Procedure
Normal stable releases are prepared by merging the Release Please PR and published only after the separate Publish Release workflow completes its pre-tag gates. Manual dispatch is reserved for numbered prereleases, missing stable release identity recovery, and the documented emergency stable path in the Release Policy.
Numbered prerelease
Merge a reviewed candidate PR whose version is
X.Y.Z-rc.Nand whose public issue/PR contains verification, live-validation, and rollback evidence.Create the annotated tag and a non-draft GitHub prerelease for the exact candidate commit.
Dispatch the release workflow:
bashTAG=easyeda-mcp-pro-vX.Y.Z-rc.N EVIDENCE=https://github.com/oaslananka/easyeda-mcp-pro/issues/NUMBER git tag -a "$TAG" -m "$TAG" git push origin "$TAG" gh release create "$TAG" --verify-tag --prerelease --generate-notes gh workflow run publish-release.yml --ref main \ -f tag_name="$TAG" \ -f release_channel=prerelease \ -f evidence_url="$EVIDENCE"Verify npm
next, GHCRnext, exact-version assets, SBOM, provenance, and attestations. Confirm npm/GHCRlatestdid not move and the MCP Registry was skipped.
Incomplete stable publication recovery
If npm accepted publication but the shared visibility budget expires, the release may be partially available. The pending stage (metadata, channel dist-tag or canonical tarball) is reported separately; a cached 404 is not evidence that publishing failed. Check exact version/source/integrity, intended dist-tag and actual canonical tarball independently before any retry. See solo-maintainer recovery. Do not republish an accepted but still-invisible version or claim full availability based only on npm metadata.
If npm and the immutable GitHub Release were successfully published but the MCP Registry rejects the just-published npm version with status: 404, use the current Publish Release workflow on main to recover the existing immutable tag. The publisher retries only the exact missing-version registry error (8 attempts, 15 seconds apart); authentication, package-ownership and other errors still fail immediately.
The recovery verifies that the rebuilt extension is byte-identical to the immutable GitHub Release extension and cryptographically verifies the already published extension and SBOM against the existing portable Sigstore bundle, the audited source commit and the release workflow signer. It does not clobber signed assets when newly generated provenance differs. It skips an already-correct npm dist-tag and resumes MCP Registry then GHCR and final published-release verification.
This is not the verification-only recovery below: the registry and/or GHCR must still be published. Confirm the stable tag, GitHub Release, npm identity and release source SHA first. Dispatch with an existing stable release evidence PR:
gh workflow run publish-release.yml --ref main \
-f tag_name=easyeda-mcp-pro-vX.Y.Z \
-f release_channel=stable \
-f evidence_url=https://github.com/oaslananka/easyeda-mcp-pro/pull/NUMBERNever create or move a tag to work around an incomplete publication, and never retry without confirming its signed assets and source identity.
Post-publication verification-only recovery
Use this path when npm, GitHub Release assets, and GHCR publication succeeded but the final Verify published release step failed because observation did not converge or an external read timed out. Do not rerun publish-release.yml, because that can overwrite release assets or rebuild exact container tags. Dispatch the read-only verifier instead:
TAG=easyeda-mcp-pro-vX.Y.Z-rc.N
gh workflow run verify-published-release.yml --ref main \
-f tag_name="$TAG" \
-f release_channel=prereleaseFor stable releases use release_channel=stable. The verification-only workflow has contents: read and packages: read permissions, rebuilds the deterministic package only inside its disposable runner to recover the expected extension identity, checks the immutable tag/source and published state, performs no npm/GitHub Release/GHCR/MCP Registry mutations, and uploads a 30-day published-release-verification-* report. Prerelease verification intentionally does not query MCP Registry; stable verification does.
Missing stable release identity recovery
Use this path only when a stable release commit passed review but the first publication attempt failed before creating both the immutable Git tag and GitHub Release. The recovery must use the exact audited release commit; it must not rebuild the same version from a later source state.
Confirm the requested stable tag and GitHub Release are both absent, then dispatch the current workflow definition from main only after every applicable gate is satisfied:
TAG=easyeda-mcp-pro-vX.Y.Z
SOURCE_COMMIT=<40-character-reviewed-release-commit>
EVIDENCE=https://github.com/oaslananka/easyeda-mcp-pro/issues/NUMBER
gh workflow run publish-release.yml --ref main \
-f tag_name="$TAG" \
-f release_channel=stable \
-f source_commit="$SOURCE_COMMIT" \
-f evidence_url="$EVIDENCE"The workflow confirms that the requested tag is absent, validates the source SHA and commit-bound compatibility evidence, checks out the immutable source, runs all quality gates, and creates the tag and GitHub Release before publishing any moving channel. Missing-tag recovery is intentionally restricted to stable releases; prerelease recovery still requires an existing annotated tag and GitHub prerelease.
Emergency stable dispatch
Use only when the Release Policy's Emergency patch criteria are met. The stable-format tag and non-prerelease GitHub Release must already exist, and the evidence URL must identify the incident and rollback target:
gh workflow run publish-release.yml --ref main \
-f tag_name=easyeda-mcp-pro-vX.Y.Z \
-f release_channel=stable \
-f evidence_url=https://github.com/oaslananka/easyeda-mcp-pro/issues/NUMBERThe Publish Release workflow rejects a channel/tag mismatch, package-version mismatch, draft release, incorrect GitHub prerelease classification, or evidence URL outside this repository. Emergency publication uses the same executable quality, compatibility, provenance, and registry gates as every other stable publication.
The Publish Release workflow must be dispatched from main, not from the immutable release tag. It first evaluates the current recovery and compatibility policy against the requested tag commit, then checks out the tag for reproducible build and publication. Running an older workflow definition from the tag can repeat the original failure and cannot use a recovery fix merged after the tag was created.
Updating mcp-publisher integrity evidence
The stable publication workflow reads config/mcp-publisher-integrity.json; do not update the publisher version only in workflow YAML. The policy pins the official release version, the official checksum-manifest SHA-256, the release-provided Sigstore bundle digest for reviewer traceability, and each supported Linux archive digest.
For a publisher upgrade:
Review the upstream
modelcontextprotocol/registryrelease and its source changes. Confirm the release contains the expected publisher archive, checksum manifest, and checksum Sigstore bundle.Query the official GitHub release metadata and record each GitHub release asset
digestfrom the API:bashVERSION=vX.Y.Z gh api "repos/modelcontextprotocol/registry/releases/tags/$VERSION" \ --jq '.assets[] | select(.name | test("mcp-publisher_linux_|checksums.txt")) | [.name, .digest] | @tsv'Download the official checksum manifest over HTTPS, verify its own SHA-256 against the API digest, and confirm its
mcp-publisher_linux_amd64.tar.gzandmcp-publisher_linux_arm64.tar.gzentries match the archive digests recorded in the policy.Update all related fields in
config/mcp-publisher-integrity.jsonin one reviewed commit. Unsupported operating-system or architecture entries must not be added unless the protected release runner and extraction policy are reviewed for that platform.Run the deterministic integrity tests and a live download/install smoke before merging:
bashpnpm vitest run tests/unit/repository/mcp-publisher-integrity.test.ts OS=Linux ARCH=x86_64 ENV_FILE="$(mktemp)" node scripts/install-mcp-publisher.mjs resolve \ --policy config/mcp-publisher-integrity.json \ --os "$OS" --arch "$ARCH" --github-env "$ENV_FILE" set -a; . "$ENV_FILE"; set +a curl --fail --location --proto '=https' --tlsv1.2 \ --output "$MCP_PUBLISHER_ASSET" "$MCP_PUBLISHER_ARCHIVE_URL" curl --fail --location --proto '=https' --tlsv1.2 \ --output "$MCP_PUBLISHER_CHECKSUMS_ASSET" "$MCP_PUBLISHER_CHECKSUMS_URL" node scripts/install-mcp-publisher.mjs install \ --policy config/mcp-publisher-integrity.json \ --os "$OS" --arch "$ARCH" \ --archive "$MCP_PUBLISHER_ASSET" \ --checksums "$MCP_PUBLISHER_CHECKSUMS_ASSET" \ --destination . ./mcp-publisher --version
The installer verifies the pinned checksum-manifest digest, the exact official manifest entry, and the downloaded archive digest before listing or extracting the archive. GitHub OIDC authentication remains in the later ./mcp-publisher login github-oidc publication step.
For the complete partial-publication, registry, credential, branch-protection, and ownership-transfer procedures, follow Solo-maintainer continuity and release recovery.
Verifying Release Safety
Before deciding a release is safe:
- [ ]
pnpm install --frozen-lockfilesucceeds - [ ]
pnpm format:checkpasses - [ ]
pnpm typecheckpasses - [ ]
pnpm typecheck:extensionpasses - [ ]
pnpm linthas 0 errors (warnings OK) - [ ]
pnpm testandpnpm test:coveragepass - [ ]
pnpm test:extension:cipasses - [ ]
pnpm buildproduces clean output - [ ]
pnpm build:extension,pnpm verify:extension, andpnpm check:extension-sizepass - [ ] No open security alerts for critical vulnerabilities
- [ ] All required status checks are passing on main
Monitoring
- CI status:
- Dependency Dashboard: find the Renovate-created issue by title; an empty result means hosted-provider setup must be verified
- Renovate provider: verify Mend Renovate App repository access, Interactive mode, and the latest job log
- CodeQL: Runs on every push and PR
- Socket.dev: Dependency vulnerability scanning on every PR
Release Artifact Verification
For every public release, verify:
npm view easyeda-mcp-pro version dist-tags time.modified --json
gh release view easyeda-mcp-pro-vX.Y.Z --json tagName,isDraft,isPrerelease,assets
gh release view easyeda-mcp-pro-vX.Y.Z-rc.N --json tagName,isDraft,isPrerelease,assetsExpected release assets:
easyeda-bridge-extension.eext— EasyEDA extension package; its GitHub asset SHA-256 and byte size must match the identity approved by the pre-publication release-extension gatesbom.json— CycloneDX SBOM attached to the release<tag>.provenance.sigstore.json— portable Sigstore provenance bundle emitted byactions/attest-build-provenance<tag>.intoto.jsonl— the same signed bundle serialized as the conventional one-line in-toto provenance asset
Expected workflow evidence:
- npm publish uses provenance when supported by npm/GitHub Actions
- GitHub release includes build provenance attestation plus matching
.provenance.sigstore.jsonand.intoto.jsonlassets - stable GHCR images include the exact version, minor tag, and
latest; prereleases include the exact version andnextonly pnpm verify:extensionreports marketplace metadata, documentation, logo, checksum, and phone-like-content checks- prerelease publication proves the rebuilt
.eextSHA-256 and size equal current live EasyEDA evidence; final published-release verification compares the uploaded GitHub asset to the same approved identity
If any asset is missing or the extension identity differs, do not promote the release as marketplace-ready. Preserve immutable evidence, record the incident, fix the reproducibility or verification defect, and cut a new numbered candidate rather than replacing an existing release artifact.
Live schematic transaction rollback evidence
Run this only with the disposable TestMcp / Schematic1 / P1 document focused and no user edit in progress. It exercises self-cleaning create/modify/delete rollback and fails unless the final primitive inventory, components, nets, and comparable ERC state equal the baseline.
EASYEDA_LIVE_WRITE_TESTS=true \
EASYEDA_EXPECTED_PROJECT=TestMcp \
EASYEDA_EXPECTED_SCHEMATIC=Schematic1 \
EASYEDA_EXPECTED_PAGE=P1 \
EASYEDA_TRANSACTION_SMOKE_REPORT_PATH=/tmp/easyeda-transaction-smoke.json \
pnpm smoke:schematic-transactionsThe final publication job runs Verify published release after GHCR publication and uploads reports/published-release.json. The report must pass before the version is announced.
Workflow-artifact retention is intentionally bounded: SBOM workflow artifact: 14 days; published-release verification artifact: 30 days. For investigation beyond those windows, use the immutable GitHub Release SBOM/provenance assets and the public release evidence instead of extending Actions storage indefinitely.
For first publication, new npm versions use Trusted Publishing without NPM_TOKEN; NPM_TOKEN is restricted to existing-version dist-tag recovery.
Untagged merged Release Please PR
Check whether the merged release PR is still marked as pending even though its immutable tag and published artifacts exist. The release manager reconciles the lifecycle only after proving the exact merged commit, stable GitHub Release, published npm version and required assets. The successful stable publisher reconciles pending release labels after final published-release verification; skipped or failed publication never clears pending state. The manager also retries reconciliation on the next ordinary main push.
If reconciliation fails, inspect identity and publication evidence instead of manually relabeling or repeating a publication mutation. The read-only Verify Published Release workflow is the recovery path when publication mutations all succeeded but final registry verification failed.