Repository navigation
ci: PR-based, per-crate releases - #566
Merged
Merged
Conversation
JP-Ellis
force-pushed
the
ci/release-plz
branch
from
October 17, 2026 01:27
f5793ba to
d20a331
Compare
JP-Ellis
marked this pull request as ready for review
October 17, 2026 03:27
5 tasks
JP-Ellis
added a commit
to pactflow/pact-cypress-adapter
that referenced
this pull request
Oct 19, 2026
The old process ran `commit-and-tag-version` from a manual dispatch. It pushed the bump straight to main with a PAT. A `workflow_run` hook then published with a long-lived NPM_TOKEN and created no GitHub release. release.yml replaces both workflows with four jobs: - prepare (push to main) runs `scripts/release.mts prepare`. git-cliff proposes the next version from conventional commits. The script writes it to package.json, prepends a CHANGELOG.md section, and force-pushes release/pact-cypress-adapter behind a draft PR. - dry-run (release PR marked ready) runs `release.mts check`. It fails when the version is already tagged or CHANGELOG.md has no section for it. It then builds and runs check:pack. - tag (release PR merged) tags the merge commit with the version from its package.json. - publish (v* tag) builds, publishes to npm through OIDC trusted publishing in the `npm` environment, and creates the GitHub release from the version's CHANGELOG.md section. The files on the release branch are the release. Once the branch has a commit from anyone but the bot, prepare stops regenerating it and leaves a one-time comment. Hand edits to the version or changelog therefore survive later pushes to main. Closing the PR gets a fresh one. prepare does nothing while package.json's version is untagged. Merging the release PR pushes to main while the tag job is still running. In that window git-cliff measures from the previous tag. With a hand-edited version, it would open a second release PR for a version nobody chose. prepare and tag push with the PACTFLOW_CI_BOT App token. Pushes made with GITHUB_TOKEN start no workflows, so the release PR would get no CI and the tag would never publish. publish skips a version npm already has, so the job can be re-run after a failed GitHub release step. The script and git-cliff config follow pactflow/pact-msw-adapter. The pause on manual edits follows pact-foundation/pact-reference#566. CHANGELOG.md takes git-cliff's header. With the old standard-version header, `git cliff --prepend` wrote a second header above the file. `release.mts notes` also stops at standard-version's `### [x.y.z]` patch headings, so old sections extract cleanly. .versionrc and the commit-and-tag-version dependency are gone. RELEASING.md describes the process and the one-time setup. Assisted-by: Claude Code:claude-opus-5-5
Release tooling now treats a version as released when its tag exists. The pre-bumped versions (one patch ahead of each tag) would be tagged and released on the first run. Release PRs now carry each bump. Re-resolving the lockfile after the reset moves a few Windows-only dependencies from windows-sys 0.61 to 0.60, within their declared ranges. Assisted-by: Claude Code:claude-opus-5-5
A version requirement in a [patch.crates-io] entry has to match the local crate. Release PRs bump pact_matching, so the requirement would break `cargo update` on every minor or major bump. The path alone is enough, as it already is for pact_models. Assisted-by: Claude Code:claude-opus-5-5
release-plz computes each crate's next version and changelog from the conventional commits since its last crates.io release. It runs in registry mode: git_only mode opens the git repository at the Cargo workspace directory, and fails with the workspace in rust/. Tagging, publishing and GitHub releases stay with the workflows. New changelog sections go above the existing entries, under a `# Changelog` header that replaces the old git-log instructions. changelog-section.sh extracts one version's notes for release PR bodies and GitHub releases. It stops at the next section heading, including the single-`#` headings of entries written before release-plz. mise pins release-plz, cargo-semver-checks and dist. Assisted-by: Claude Code:claude-opus-5-5
A crate's published manifest requires its siblings at the versions in its Cargo.toml. If such a version has no tag, that sibling has not been released, and publishing would fail after the artifacts were built. The check names the sibling to release first. It runs on draft release PRs too, since it only reads cargo metadata and tags. Assisted-by: Claude Code:claude-opus-5-5
release-plz supports only a single release PR, so crates could not ship independently. A matrix now runs `release-plz update -p <crate>` and keeps a draft `release/<crate>` PR. Once someone pushes to that PR, the bot leaves it alone, so manual edits to versions or changelogs survive until merge. On every push to master, tag-releases.sh tags each crate whose version has no tag yet. A crate's version only moves when its release PR merges, so a missing tag marks a merged release. Each tag goes out in its own push with the bot App's token, so the release workflow starts. The check reads tags, not crates.io. Between the tag and the publish, the registry lags master, and a registry-based check would tag twice. Assisted-by: Claude Code:claude-opus-5-5
The tag workflow calls this after every artifact has built, because a crates.io publish cannot be undone. A version already on crates.io is skipped, so a re-run after a later failure succeeds. Forks can set PUBLISH_DRY_RUN to rehearse a release. `--locked` builds the packaged crate against the workspace lockfile, so the published crate is verified with the dependency versions CI tested. Assisted-by: Claude Code:claude-opus-5-5
dist builds pact_ffi (shared and static libraries plus generated headers) and pact_verifier_cli on native runners for all eight targets, replacing the cross/QEMU release scripts. The pinned toolchain from rust-toolchain.toml builds every target; dist adds each target to it. On a tag push, dist builds everything first, then publishes the crate, then creates the GitHub release. Ready release PRs for these two crates run the same build as a gate. Other PRs, and tags of library-only crates, never do. Two settings keep the artifacts as they were: - pact_ffi's musl builds link the C runtime dynamically, because rustc drops a cdylib on a crt-static target. dist forces +crt-static through RUSTFLAGS, so build-setup.yml overrides it with CARGO_ENCODED_RUSTFLAGS. - Windows builds link the MSVC runtime dynamically (msvc-crt-static = false), as releases always have. dist reads `repository` to find the GitHub repo and can't parse the blob URLs, so both crates now name the repository root. The headers need nightly cbindgen in the global-artifacts job, which build-setup steps don't reach. That job carries a marked hand edit installing cbindgen from a prebuilt binary; build-headers.sh installs a minimal nightly when missing. Assisted-by: Claude Code:claude-opus-5-5
Downstream installers download `libpact_ffi-v<version>/<legacy name>` and `pact-verifier-<os>-<arch>.gz`. The job repackages dist's archives, with no rebuild, into those names. For pact_ffi it publishes them under a `libpact_ffi-v<version>` tag and release, which never becomes "latest". It self-disables on 2027-06-30. dist's Windows archives hold the DLL and the static library but not the DLL's import library (`pact_ffi.dll.lib`). import-lib.sh rebuilds it from the DLL's export table with llvm-dlltool, marking exports outside the executable section as DATA. Against the 0.5.11 release DLLs, the rebuilt libraries define the same symbols as rustc's, for x86_64 and aarch64. legacy-artifacts.test.sh runs the script against archives in dist's layout through a stub `gh`, and checks the names it produces against the asset lists of libpact_ffi-v0.5.11 and pact_verifier_cli-v1.3.5. Assisted-by: Claude Code:claude-opus-5-5
The image was built and pushed by hand. It now builds for amd64 and arm64 from the release's static musl archives, and is pushed to Docker Hub and GHCR as `<version>` and `latest`. The per-architecture tags (`-amd64`, `-arm64v8`) are replaced by one multi-platform manifest. Assisted-by: Claude Code:claude-opus-5-5
dist only builds crates with artifacts. Tags for pact_models, pact_matching, pact_consumer and pact_verifier publish the crate, then create a GitHub release from the changelog section. Assisted-by: Claude Code:claude-opus-5-5
Releases now go through per-crate release PRs, tag-triggered dist builds and trusted publishing; RELEASING.md describes the flow. The Conan recipes are removed. Their remote (pactfoundation.jfrog.io) is deactivated, and the recipe version had not advanced past 0.0.4 since 2021. pact_verifier's own release scripts go too: they packaged a shared library that no release has shipped in years. The crates.io ownership steps in CONTRIBUTING.md are gone, since trusted publishing releases without a personal token. Assisted-by: Claude Code:claude-opus-5-5
The Release PR workflow shares one concurrency group, and GitHub drops a pending run when a newer one queues. The run that catches up then starts at a later commit, and tagging HEAD would put the release tag past the release PR's merge. tag-releases.sh now tags the most recent commit on master's first-parent line whose diff wrote the crate's current `version` line: the release PR's squash commit or merge commit. Assisted-by: Claude Code:claude-opus-5-5
Three gaps between the tags and the registry: - A version on crates.io without a tag means a migration tag was never pushed, or a manual publish. tag-releases.sh used to tag it, on whatever commit last set the version, and start a release of a version that already exists. For pact_ffi 0.5.11 that release would overwrite the real libpact_ffi-v0.5.11 legacy assets. It now warns and skips. - Between a release tag and its publish, a full release build, release PRs regenerated against a registry that lacks the new version. The prepare job now waits for the publish. - release-deps checked only that sibling requirements name tagged versions. A crate using a sibling's unreleased code passed, and failed only at `cargo publish`, after its tag. Ready release PRs now run `cargo package`, which builds against the released siblings. crate-published.sh holds the sparse-index lookup that publish-crate.yml used inline; CRATES_INDEX_URL points the tests at a local index. Assisted-by: Claude Code:claude-opus-5-5
dist's default Linux runners changed what the libraries link against: - A musl cdylib linked on a glibc host needs glibc's libc.so.6, so pact_ffi's musl `.so` would not load on Alpine. The musl targets now build in cross-rs's musl toolchain images, which built every musl release so far, on x64 runners. GitHub has no Alpine Node for its arm64 runners, so an Alpine container there could not run checkout. - Ubuntu 22.04 and 24.04 runners raise the glibc floor to 2.34 or more. The gnu targets now build in manylinux_2_28 (AlmaLinux 8): glibc 2.28, the oldest among supported major distributions (RHEL 8 and its rebuilds). The 0.5.11 libraries needed 2.18; distributions older than RHEL 8 are out of support. check-linkage.sh asserts both: musl libraries link musl and the CLI is static, and gnu artifacts need glibc 2.28 at most. legacy-artifacts.sh runs it before packaging, so a mislinked library never reaches the names downstream installers download. Also in the dist config: - aarch64-pc-windows-msvc stays on a Windows runner with MSVC; dist would otherwise cross-compile it with cargo-xwin. - The GitHub release is created after the crates.io publish (github-release = "announce"), so a failed publish leaves no release. - The generated workflow pins its actions by commit. - No step installs protoc: pact-plugin-driver compiles its protobufs only when PACT_PLUGIN_BUILD_PROTOBUFS is set. Assisted-by: Claude Code:claude-opus-5-5
…e-pr runs The musl CRT override was job-wide and keyed on the tag. dist compiles every dist crate in a job, so a pact_verifier_cli job built pact_ffi without the override, and a release gate PR could not get both crates right. With precise-builds each crate gets its own cargo invocation, and dist-cargo.sh, the cargo dist runs in musl jobs, applies the dynamic CRT to pact_ffi's alone. dist-cargo.sh also turns the `cargo zigbuild` that dist picks for aarch64-musl in an x86_64 container back into `cargo build`, so the cross-rs image's musl toolchain links it. dist would otherwise try to pip-install cargo-zigbuild, which the Ubuntu-based image cannot, and zig would replace the toolchain the image exists to provide. release-pr.yml loses its manual trigger. Every case it served already recovers on its own: failed runs re-run, closed release PRs return on the next master push, and missing tags are created then too. Run on another branch, it would have tagged that branch's versions and started a release. Assisted-by: Claude Code:claude-opus-5-5
With LEGACY_ARCHIVES pointing at a directory of dist archives, such as a downloaded release gate run, legacy-artifacts.sh reads them there in place of a release. The same run checks every Linux library's linkage, rebuilds the Windows import libraries and produces the legacy names, all before anything is tagged. Assisted-by: Claude Code:claude-opus-5-5
Assisted-by: Claude Code:claude-opus-5-5
Without a tag, dist plans every dist crate at once. With pr-run-mode "upload" it then needs one coherent announcement, and pact_ffi and pact_verifier_cli never share a version, so the gate failed at `dist plan`. The plan job now derives `<crate>-v<version>` from the release PR's branch and the crate's manifest, and plans and builds that tag. Nothing publishes: a pull request still skips host and every later job. Assisted-by: Claude Code:claude-opus-5-5
dist's installer unpacks a .tar.xz, and the cross-rs musl images ship no xz, so both musl jobs failed at "Install dist". The musl setup step now installs xz-utils when it is missing. Assisted-by: Claude Code:claude-opus-5-5
dist runs an extra-artifacts build command from the package's directory, so the repository-relative `rust/pact_ffi/build-headers.sh` did not exist there and the global artifacts job failed. A local `dist build --artifacts=global` now produces pact.h and pact-cpp.h. Assisted-by: Claude Code:claude-opus-5-5
mise-action's cache key includes a hash of `install_args`, and a restore matches only the exact key. Each job with its own tool list had its own cache entry, and the release workflows, which never save, could never hit one. With no `install_args`, every job on a platform shares the key that master's Test jobs save. A full install also includes mise's `rust` tool, which the `cargo:` backend requires. The global artifacts job listed cbindgen without it, and `mise install` failed with "requires configured install dependency 'rust@1.99.1'" before the header build ran. mise installs can hang indefinitely, so each mise-action step now times out after 3 minutes. A cold install of all nine tools takes seconds. Assisted-by: Claude Code:claude-opus-5-5
Each push to master regenerates every ready dist release PR, and each push to a release PR starts another eight-target gate build. Without a concurrency group these builds pile up; the older ones only report on a commit that is no longer the PR's head. Pull request runs now share a group per PR and cancel in progress. Tag pushes get a group per tag and never cancel, so a release build always runs to completion. Assisted-by: Claude Code:claude-opus-5-5
`build:` and `ci:` commits matched no parser, so release changelogs listed them under "Other". They now get their own "Build and CI" section, between Documentation and Testing. Assisted-by: Claude Code:claude-opus-5-5
release-plz writes each release as a `## [<version>]` section under the `# Changelog` title, while the older entries used `# <version> - <title>`. The old headings now sit at the same level, so each changelog has one outline. Only the heading lines change. The matching heading level also makes release-plz leave a blank line between a new section and the previous release's heading. changelog-section.sh no longer needs to treat a single `#` as a section boundary, so it now ends a section only at a `##` heading. Assisted-by: Claude Code:claude-opus-5-5
JP-Ellis
force-pushed
the
ci/release-plz
branch
from
October 19, 2026 06:09
30eeeda to
d749730
Compare
The shell tests under .github/scripts/tests exercised only the release tooling, and no workflow ran them. Tests in this repository cover the Pact libraries. The two lists of pre-dist asset names stay, moved to .github/scripts/: RELEASING.md's gate check diffs a build's legacy names against them. crate-published.sh loses its CRATES_INDEX_URL override, which only the tests used. Assisted-by: Claude Code:claude-opus-5-5
The groovy scripts let one maintainer run a whole release locally. The workflows now run every step, and RELEASING.md gave only "re-run the failed jobs" as recovery. It now covers each step by hand, with the credentials each one needs: - re-running failed jobs; - releasing again after a release that can never succeed. The Release PR workflow skips a crate whose tagged version is missing from crates.io, and deleting the tag would only get it re-tagged, so the fix ships as the next version through a hand-made release PR; - tagging, publishing to crates.io with an owner's token, and creating a library crate's GitHub release; - publishing the legacy asset names and the container image, through their workflows or locally. Assisted-by: Claude Code:claude-opus-5-5
import-lib.sh and check-linkage.sh run only while legacy-artifacts.sh builds the pre-dist asset names. Rename them legacy-import-lib.sh and legacy-check-linkage.sh, so every file that goes with the legacy assets shares one prefix. Each script now says it can be deleted once neither pact_ffi nor pact_verifier_cli publishes legacy names. The workflow header says to delete every .github/scripts/legacy-* file. Deleting legacy-check-linkage.sh also drops the glibc 2.28 floor check and the musl linkage check on dist's own archives. Keeping either means moving it into the release gate before the legacy files go. Assisted-by: Claude Code:claude-opus-5-5
The sparse index needs its own path scheme, a per-name prefix directory, plus a jq filter over one JSON line per version. The API answers 200 or 404 for /crates/<name>/<version> directly. crates.io requires a User-Agent, so the script sends one. Assisted-by: Claude Code:claude-opus-5-5
crate-published.sh had shrunk to a single curl to the crates.io API. Its three callers now run that curl directly: the publish skip, the release PR's in-flight check, and tag-releases.sh's guard. Any failure, a 404 or a network error, still counts as "not published". Assisted-by: Claude Code:claude-opus-5-5
legacy-artifacts.sh names every asset it writes, and fails when an input is missing, so its output can change only when the script does. The lists repeated those names for a manual diff in RELEASING.md, and only caught a broken edit to the script. The names distributed before dist remain visible on the old releases. Assisted-by: Claude Code:claude-opus-5-5
legacy-artifacts.sh now holds CUTOFF, the one copy of the date. From that date it writes nothing, and the upload step already does nothing for an empty output, so the workflow's date step and the four step conditions it fed are gone. The libpact_ffi release notes read the date from the script. The script also lists everything to delete after the cut-off. Every other legacy file, and RELEASING.md, points to that list and repeats neither the date nor the list. The manual trigger stays, described as recovery: it runs the scripts from master, so a fix to them reaches a release whose own run failed. A re-run would use the tagged commit's scripts. The legacy tag's commit comes from the commits API, which resolves an annotated tag in one call. Assisted-by: Claude Code:claude-opus-5-5
cargo package resolves a crate's workspace siblings on crates.io, and ignores the workspace's path and [patch] overrides. A requirement on an unreleased sibling version fails before any build, even with --no-verify: requiring pact_models ~1.3.99 fails in about two seconds with "failed to select a version". That check is exact where release-deps.sh inferred releases from tags, so the script goes. The --no-verify check runs on drafts too, as release-deps.sh did. The full verify build still runs once the PR is ready. The checkout no longer needs tags. Assisted-by: Claude Code:claude-opus-5-5
dist runs publish-containers.yml after every dist release, pact_ffi's
included. The Resolve version step wrote an empty version for those, and
six step conditions checked it. A reusable workflow's job condition can
read its inputs, so one condition on the job now skips it unless the
plan's tag is a pact_verifier_cli release. The `|| '{}'` keeps fromJson
off an empty plan on a manual run.
Assisted-by: Claude Code:claude-opus-5-5
Four steps repeated the same two-part condition: no manual edits and no release still being published. A gate step now sets `proceed` once, and the four steps check only that. Assisted-by: Claude Code:claude-opus-5-5
The legacy tag is created through the refs API, and any failure there is ignored so that a re-run passes when the tag already exists. If the call failed for another reason, `gh release create` made the tag itself at the default branch's HEAD. Passing the release commit as the target puts the tag on the right commit either way. Assisted-by: Claude Code:claude-opus-5-5
Branch protection can't require the eight-target build jobs directly. On non-release PRs, plan is skipped, so the matrix never expands and the per-target checks never report. A failing target skips build-global-artifacts, and a skipped required check counts as passing. `Release gate complete` runs on every run and fails when a build job failed or was cancelled, as `CI complete` does in test.yml. It is a hand edit to the dist-generated workflow. Assisted-by: Claude Code:claude-opus-5-5
dist's announce job creates the release and uploads its archives in one command. If the upload fails partway, the release exists with assets missing. Re-running the job then fails on release creation, and the legacy and container jobs never start. Document the manual upload, after which the existing legacy and container recovery steps apply. Assisted-by: Claude Code:claude-opus-5-5
The image only packages a prebuilt musl binary, but its RUN steps ran on the target platform, so the arm64 image needed QEMU. The fetch stage now runs on the build platform and still picks the binary from TARGETARCH. The final stage copies the CA bundle from it instead of running apk. With no RUN step on the target platform, buildx needs no emulator. Assisted-by: Claude Code:claude-opus-5-5
The custom runners and job permissions were single-line inline tables, hundreds of characters wide. Each runner and its container now get their own table, and each job's permissions their own line. dist generates a byte-identical release.yml from the new layout. Assisted-by: Claude Code:claude-opus-5-5
Each hand edit to the dist-generated release workflow has to be re-applied after every `dist generate`. Two had alternatives: - The concurrency group only cancelled a superseded gate build when a ready release PR was pushed to again, which is rare. The builds now run to completion. - build-headers.sh installs cbindgen when it is missing, at the version mise.toml pins, so the global build job no longer needs mise. dist runs the script there, where the build-setup steps never reach. The remaining hand edits cover what dist has no setting for: the release gate's trigger and filter, the tag filter, the PR's tag and the gate sentinel. Assisted-by: Claude Code:claude-opus-5-5
The linkage checks ran only in the legacy job, after the release was published, and before a merge only through a documented manual check. A mislinked library was caught after publishing, or not at all once the legacy names stop. dist's `global-artifacts-jobs` hook runs check-artifacts.yml after the per-target builds, on release gates and tag builds alike. `host` waits for it, so a failure publishes nothing, and the gate sentinel includes it. The hook needs no hand edit. check-linkage.sh, renamed from legacy-check-linkage.sh because it now outlives the legacy names, checks every shared object and executable in dist's Linux archives. The glibc floor moves with it. The legacy script drops its own linkage calls, and RELEASING.md drops the manual check. The Windows import library is still rebuilt only in the legacy job. Assisted-by: Claude Code:claude-opus-5-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Replace the per-crate
release.groovyscripts, run locally by named people, with a PR-based flow:master.Crates release independently. Downstream FFI installers keep their URLs and asset names until 2027-06-30.
How it works
release-pr.ymlruns on every push tomaster.preparerunsrelease-plz update -p <crate>for each crate and keeps a draftrelease/<crate>PR.tagjob runstag-releases.sh, which tags each crate whose version has no tag.release.ymlis generated by dist, with hand edits markedhand edit. Forpact_ffiandpact_verifier_cliit runs:publish-crate.yml)legacy-artifacts.yml)pact-verifierimage (publish-containers.yml)release-crate.yml: publish, then a GitHub release.pact_ffiorpact_verifier_clirelease PR ready runs the same eight-target build, without publishing.check-linkage.sh). Publishing waits for it.release-depsrunscargo package --no-verify, which fails in seconds when the crate requires a sibling version that isn't on crates.io yet.cargo packagebuilds the crate against its released siblings.RELEASING.mddescribes the flow for maintainers.Downstream consumers of the FFI
Warning
pact_ffireleases move to dist's release tag and asset names. Installers that download the library must switch before the legacy names stop on 2027-06-30. Until then, each release publishes both, so nothing breaks yet.libpact_ffi-v<version>pact_ffi-v<version>libpact_ffi-<os>-<arch>[-musl].{so,a,dylib}.gzpact_ffi-<target>.tar.xz, e.g.pact_ffi-x86_64-unknown-linux-musl.tar.xz, with the files underpact_ffi-<target>/pact_ffi-windows-<arch>.{dll,dll.lib,lib}.gzpact_ffi-<target>.zip, e.g.pact_ffi-aarch64-pc-windows-msvc.zip, withpact_ffi.dlland the staticpact_ffi.libat its rootpact.h,pact-cpp.hpact_ffi-v<version>release<asset>.sha256<archive>.sha256, plussha256.sumfor the releaseTo switch, an installer:
releases/download/pact_ffi-v<version>/instead oflibpact_ffi-v<version>/;<arch>-unknown-linux-musl;The new Windows archives have no import library,
pact_ffi.dll.lib. Until the cut-off, the legacy assets carry one rebuilt from the DLL. Known consumers that build legacy URLs: pact-python and pact-js.Artifacts
manylinux_2_28, a glibc 2.28 floor. That is the oldest glibc among supported major distributions: the RHEL 8 family has 2.28, RHEL 9 and Amazon Linux 2023 2.34, Ubuntu 22.04 2.35, Debian 12 2.36. 0.5.11 needed 2.18; the distributions between 2.18 and 2.28 are all out of support.pact_ffi's.solinked against musl, and the CLI static.pact_ffi.dll.lib.legacy-import-lib.shrebuilds it from the DLL's export table. Against the 0.5.11 DLLs, the rebuilt libraries define the same symbols as rustc's.libpact_ffi-v0.5.11andpact_verifier_cli-v1.3.5. The cut-off date lives inCUTOFFinlegacy-artifacts.sh, which also lists the files to delete after it. Forpact_ffithey go to alibpact_ffi-v<version>release, which never becomes "latest".pact-plugin-driverandpact_mock_server, as 0.5.11 and 1.3.5 did. The crates.io crates resolve the released versions.<version>andlatest. The per-architecture tags<version>-amd64and<version>-arm64v8are no longer pushed.Before merge
GLIBC_2.28; musl needs musl'slibc.soandlibgcc_s.so.1, like 0.5.11; every build used rustc 1.99.1. Later gate builds on this PR also passed, headers included: runs 39197358238 and 39199209045.pact_verifier_cliis first built by its own release PR's gate.cargo package --locked,release-plz updateand atag-releases.shdry run for all six crates, and all passed (run 39199209036). The dry run tagged nothing. Proposed versions:pact_models1.3.17,pact_matching2.1.0,pact_consumer1.4.11,pact_verifier2.0.0,pact_verifier_cli1.4.0,pact_ffi0.5.12.pact_verifieris a major bump becauseVerificationInteractionResultgained public fields.masterafter ci: consolidate and speed up CI #564.Maintainer setup
crates.io trusted publishers. For each of the six crates, add one with repository
pact-foundation/pact-referenceand environmentcrates-io.release.ymlforpact_ffiandpact_verifier_cli.release-crate.ymlforpact_models,pact_matching,pact_consumerandpact_verifier.crates-ioenvironment. Create it.Bot App. Install
PACT_FOUNDATION_BOTon this repository, with contents and pull-request write access.Branch protection. Allow the bot to push
release/*branches and tags. RequireCI completeandRelease gate complete.Container registries.
DOCKER_HUB_USERNAMEandDOCKER_HUB_TOKENavailable to this repository.ghcr.io/pact-foundation/pact-verifierpackage.Migration tags. Push them before merging:
Without them, the first
tagrun would find these versions untagged.tag-releases.shrefuses to tag a version already on crates.io, but the changelog compare links and the in-flight publish check need the tags.First release
pact_ffi, live: steps and recovery
The first release is the rehearsal, so check each step before taking the next.
master.tagcreates no tags.prepareopens draftrelease/<crate>PRs for crates with changes.release/pact_ffi.test.ymlruns, includingrelease-depsandcargo package, and so does the eight-target release gate.release/pact_ffi.tagjob pushespact_ffi-v<version>.crates.io lists
pact_ffi <version>.Release
pact_ffi-v<version>has eight archives, with.sha256files, pluspact.handpact-cpp.h.Release
libpact_ffi-v<version>is not marked latest, and its asset names match those oflibpact_ffi-v0.5.11:A downstream installer can fetch the new version. pact-python and pact-js build
releases/download/libpact_ffi-v<version>/<name>.If a step fails
master.tagjobmaster. The script tags the release merge commit either way.Re-run failed jobs only. A full re-run of the release workflow fails at release creation once the release exists.