Skip to content

Release & CI Runbook ​

How to triage and resolve failed CI checks, release-please PRs, and dependency PRs.

Quick Reference ​

SignalWhat It MeansFirst Action
CI ❌ on mainRelease blockerRead log, identify failing gate
Release PR ❌Version release blockedCheck CI status, fix the failure
Release PR ✅Can create a new releaseMerge the PR
Dependency PR ❌Update blockedCheck if CI is already red on main
Dependency Dashboard shows pending approvalMajor update needs reviewReview changelog, approve or reject

Required CI Gates ​

The following gates must pass on main, release PRs, and dependency PRs:

GateCommandPriority
Format checkpnpm format:checkMust pass
TypeScript checkpnpm typecheckMust pass
Extension typecheckpnpm typecheck:extensionMust pass
Lintpnpm lintMust pass with zero warnings
Unit testspnpm testMust pass
Buildpnpm buildMust pass
Extension buildpnpm build:extensionMust pass
Extension testspnpm test:extension:ciMust pass
Extension verifypnpm verify:extensionMust pass
Extension sizepnpm check:extension-sizeMust 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 .json file written by scripts/sync-versions.mjs during pnpm build does not match Prettier style.
  • A contributor committed code without running pnpm format.

Fix:

bash
# Re-format everything
pnpm format

# Then verify the fix
pnpm format:check

If 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:

bash
# 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:

bash
# 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-lease

Release 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 TypeAuto-merge?Notes
devDependency patch/minor✅ YesRequired CI must pass
Runtime dependencies❌ NoMaintainer review required
GitHub Actions / hooks❌ NoCritical automation path; maintainer review required
Major updates❌ NoRequires manual approval on the Dependency Dashboard
Lockfile maintenance✅ YesRuns 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 ​

  1. Check if CI is already red on main. If so, fix main first — the dependency PR will pass after rebase.
  2. 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.
  3. 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.
  4. 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 ​

  1. Merge a reviewed candidate PR whose version is X.Y.Z-rc.N and whose public issue/PR contains verification, live-validation, and rollback evidence.

  2. Create the annotated tag and a non-draft GitHub prerelease for the exact candidate commit.

  3. Dispatch the release workflow:

    bash
    TAG=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"
  4. Verify npm next, GHCR next, exact-version assets, SBOM, provenance, and attestations. Confirm npm/GHCR latest did 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:

bash
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/NUMBER

Never 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:

bash
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=prerelease

For 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:

bash
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:

bash
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/NUMBER

The 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:

  1. Review the upstream modelcontextprotocol/registry release and its source changes. Confirm the release contains the expected publisher archive, checksum manifest, and checksum Sigstore bundle.

  2. Query the official GitHub release metadata and record each GitHub release asset digest from the API:

    bash
    VERSION=vX.Y.Z
    gh api "repos/modelcontextprotocol/registry/releases/tags/$VERSION" \
      --jq '.assets[] | select(.name | test("mcp-publisher_linux_|checksums.txt")) | [.name, .digest] | @tsv'
  3. Download the official checksum manifest over HTTPS, verify its own SHA-256 against the API digest, and confirm its mcp-publisher_linux_amd64.tar.gz and mcp-publisher_linux_arm64.tar.gz entries match the archive digests recorded in the policy.

  4. Update all related fields in config/mcp-publisher-integrity.json in 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.

  5. Run the deterministic integrity tests and a live download/install smoke before merging:

    bash
    pnpm 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-lockfile succeeds
  • [ ] pnpm format:check passes
  • [ ] pnpm typecheck passes
  • [ ] pnpm typecheck:extension passes
  • [ ] pnpm lint has 0 errors (warnings OK)
  • [ ] pnpm test and pnpm test:coverage pass
  • [ ] pnpm test:extension:ci passes
  • [ ] pnpm build produces clean output
  • [ ] pnpm build:extension, pnpm verify:extension, and pnpm check:extension-size pass
  • [ ] No open security alerts for critical vulnerabilities
  • [ ] All required status checks are passing on main

Monitoring ​

  • CI status: CI
  • 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:

bash
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,assets

Expected 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 gate
  • sbom.json — CycloneDX SBOM attached to the release
  • <tag>.provenance.sigstore.json — portable Sigstore provenance bundle emitted by actions/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.json and .intoto.jsonl assets
  • stable GHCR images include the exact version, minor tag, and latest; prereleases include the exact version and next only
  • pnpm verify:extension reports marketplace metadata, documentation, logo, checksum, and phone-like-content checks
  • prerelease publication proves the rebuilt .eext SHA-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.

bash
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-transactions

The 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.

Open source under AGPL-3.0-only. Review the safety contract before enabling writes.