From 5d790da614987eebaeb008dcf21a3a9bb25c97a2 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Sun, 22 Nov 2026 23:41:54 +0300 Subject: [PATCH 1/2] chore: prepare 1.0.0-rc.1 Release-As: 1.0.0-rc.1 --- .goreleaser.yaml | 3 ++- CONTRIBUTING.md | 36 ++++++++++++++++++++++++++----- Makefile | 8 +++---- README.md | 43 ++++++++++++++++++++++++-------------- deploy/README.md | 5 ++++- release-please-config.json | 3 +++ test/e2e/README.md | 7 +++++-- 7 files changed, 75 insertions(+), 30 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ea5054f..d7149b5 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -57,7 +57,7 @@ dockers_v2: tags: - "{{ .Version }}" - "{{ .Tag }}" - - latest + - "{{ if not .Prerelease }}latest{{ end }}" platforms: - linux/amd64 - linux/arm64 @@ -87,6 +87,7 @@ changelog: release: draft: false + prerelease: auto # release-please already wrote the changelog body. mode: append footer: | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6422578..60ff5cb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,9 +10,9 @@ engineering and release discipline as files, aggregates them, encodes **pprof**, and pushes to Pyroscope. The PHP library and `tracewick-drain` remain the spool writers / reference drain. -> **Beta (`0.2.x`).** Capacity evidence (agent as reader) lives in +> **Release candidate (`1.0.0-rc.1`).** Capacity evidence (agent as reader) lives in > [`tracewick/benchmarks`](https://github.com/tracewick/benchmarks). Do not claim -> production / highload readiness. Operational env parity is in develop; socket +> production / highload readiness. Operational env parity is included; socket > hand-off remains v1.1+. Signed-release configuration is described below. ## Path to release @@ -125,9 +125,35 @@ The Release workflow must run from main, including manual recovery, so its exact certificate identity ends in `release.yml@refs/heads/main`. Only the publishing job has OIDC permission; no persistent signing key is required. Tool versions are pinned in the release and unsigned-packaging CI jobs; update them together. -See [verification and recovery](deploy/verify-release.md). Pin the next tag with -`release-as` in `release-please-config.json` when forcing a version (then remove -it after the release PR merges). Do not invent tags outside that flow. +See [verification and recovery](deploy/verify-release.md). Do not invent tags outside that flow. + +### Release candidates + +The 1.0 series uses `versioning: prerelease`, `prerelease-type: rc` and +`prerelease: true` in `release-please-config.json`. A parseable Conventional +Commit in the preparation branch selects the first candidate: + +```text +chore: prepare 1.0.0-rc.1 + +Release-As: 1.0.0-rc.1 +``` + +The maintainer merges that branch with a merge commit, then reviews and merges +the generated `chore: release 1.0.0-rc.1` PR. The bot creates `v1.0.0-rc.1`; +do not edit the manifest/changelog or create tags manually. GitHub's default +`Merge pull request #N` subject does not parse a Release-As footer. + +GoReleaser uses `prerelease: auto` to preserve the GitHub prerelease status. +Prerelease images publish only their versioned tags; `latest` remains stable. +Keep prerelease mode for subsequent candidates and update the documented version. +To select a version explicitly, add a new Release-As footer. For final 1.0.0, +switch `versioning` to `default`, set `prerelease: false`, remove `prerelease-type` +and use `Release-As: 1.0.0` on a Conventional Commit. Review the generated version +and prerelease status before merging. + +The E2E `make php-drain` fixture pins the published core `1.0.0-rc.1`, including +when refreshing an existing local cache. It does not change the wire contract. ## License diff --git a/Makefile b/Makefile index 73100db..e4db6bb 100644 --- a/Makefile +++ b/Makefile @@ -69,14 +69,12 @@ goreleaser-check: ## Validate .goreleaser.yaml (does not publish) @command -v goreleaser >/dev/null || $(GO) install github.com/goreleaser/goreleaser/v2@latest goreleaser check -php-drain: ## Install Packagist tracewick/tracewick for Go+PHP-drain e2e +php-drain: ## Install Packagist core 1.0.0-rc.1 for Go+PHP-drain e2e @command -v composer >/dev/null || (echo 'composer required for make php-drain' && exit 1) @command -v php >/dev/null || (echo 'php required for make php-drain' && exit 1) mkdir -p $(PHP_DRAIN_DIR) - @if [ ! -f $(PHP_DRAIN_DIR)/composer.json ]; then \ - printf '%s\n' '{"name":"tracewick/agent-e2e-drain","require":{"tracewick/tracewick":"^0.1"},"config":{"sort-packages":true}}' \ - > $(PHP_DRAIN_DIR)/composer.json; \ - fi + @printf '%s\n' '{"name":"tracewick/agent-e2e-drain","require":{"tracewick/tracewick":"1.0.0-rc.1"},"config":{"sort-packages":true}}' \ + > $(PHP_DRAIN_DIR)/composer.json cd $(PHP_DRAIN_DIR) && composer update --no-interaction --no-progress --prefer-dist --no-dev @test -x $(PHP_DRAIN_BIN) || test -f $(PHP_DRAIN_BIN) diff --git a/README.md b/README.md index c8036ce..0985171 100644 --- a/README.md +++ b/README.md @@ -14,21 +14,21 @@ PHP applications write **spool v2** files; this agent claims them, aggregates, encodes **pprof**, and pushes via the Pyroscope Push API. > [!WARNING] -> **Beta (`0.2.x`).** Capacity evidence for the default spool path (with this -> agent as reader) is published in -> [`tracewick/benchmarks`](https://github.com/tracewick/benchmarks). Flags, -> defaults, and ops behaviour are not frozen until 1.0.0 — pin a release and -> read the changelog before upgrading. Not a production / highload readiness -> claim. +> **Release candidate (`1.0.0-rc.1`).** Pin the candidate explicitly and read the +> changelog before upgrading from 0.2. Flags, defaults and operational behaviour +> may still need compatibility fixes during RC validation; the stable contract +> starts with final 1.0.0. Capacity evidence lives in +> [`tracewick/benchmarks`](https://github.com/tracewick/benchmarks) and describes +> its recorded versions and workloads. ## Status -| In beta | Later (RC / 1.0+) | +| In this candidate | Later | | --- | --- | | Spool claim → aggregate → pprof → Push → ack (`run` / `--once`) | | | Same claim protocol as PHP `tracewick-drain` (at-least-once) | Unix socket hand-off (v1.1+) | | Stand + Toxiproxy + live Querier + Go↔PHP-drain E2E | | -| Operational CLI/env settings (develop; not in published 0.2.1) | | +| Operational CLI/env settings (new since 0.2.1) | | | linux amd64/arm64 binaries + `ghcr.io/tracewick/agent` | | | Codecov / mutation / fuzz / `go tool pprof` CI gates | | | Soak / RPS / chaos / spool-pressure goldens (agent reader) | | @@ -73,6 +73,10 @@ Canonical cloud goldens use depth-48 stacks on an 8 vCPU Timeweb VPS with Full tables and pins: +- [72-hour RoadRunner + agent soak](https://github.com/tracewick/benchmarks/blob/main/reports/2026-11-22-soak-rr-agent-72h.md) + records agent `a15f0d3`; the [current-development campaign](https://github.com/tracewick/benchmarks/pull/11) + covers this candidate's runtime source `d464fac`, including recovery and real Symfony delivery. + The latter is a separate campaign, not another 72-hour run. - [soak FPM](https://github.com/tracewick/benchmarks/blob/main/reports/2026-11-07-soak-fpm-agent-depth48-cloud.md) · [Swoole](https://github.com/tracewick/benchmarks/blob/main/reports/2026-11-07-soak-swoole-agent-depth48-cloud.md) · [RoadRunner](https://github.com/tracewick/benchmarks/blob/main/reports/2026-11-08-soak-rr-agent-depth48-cloud.md) @@ -117,20 +121,26 @@ Wire format and delivery decisions live in Pin a release tag (see [Releases](https://github.com/tracewick/agent/releases)). Existing 0.2.x artifacts are **unsigned** — verify `checksums.txt` (and prefer an image digest for containers). +For this candidate, first [verify the signed checksums and matching archive/SBOM](deploy/verify-release.md). +The commands below become usable after the candidate's release workflow publishes its assets. ### Binary (linux amd64 / arm64) Archives ship the binary as `tracewick-agent`: ```bash -VER=0.2.0 +VER=1.0.0-rc.1 ARCH=amd64 # or arm64 -curl -fsSL -o agent.tgz \ - "https://github.com/tracewick/agent/releases/download/v${VER}/tracewick-agent_${VER}_linux_${ARCH}.tar.gz" +ARCHIVE="tracewick-agent_${VER}_linux_${ARCH}.tar.gz" +curl -fsSL -o "$ARCHIVE" \ + "https://github.com/tracewick/agent/releases/download/v${VER}/${ARCHIVE}" || exit 1 curl -fsSL -o checksums.txt \ - "https://github.com/tracewick/agent/releases/download/v${VER}/checksums.txt" -sha256sum -c --ignore-missing checksums.txt -tar -xzf agent.tgz tracewick-agent + "https://github.com/tracewick/agent/releases/download/v${VER}/checksums.txt" || exit 1 +# Authenticate checksums.txt with Cosign as linked above before continuing. +awk -v name="$ARCHIVE" '$2 == name {print; count++} END {if (count != 1) exit 1}' \ + checksums.txt > selected-checksum.txt || exit 1 +sha256sum --check selected-checksum.txt || exit 1 +tar -xzf "$ARCHIVE" tracewick-agent sudo install -m 0755 tracewick-agent /usr/local/bin/tracewick-agent tracewick-agent version ``` @@ -138,12 +148,13 @@ tracewick-agent version ### Container (GHCR) ```bash -docker pull ghcr.io/tracewick/agent:0.2.0 +docker pull ghcr.io/tracewick/agent:1.0.0-rc.1 # pin by digest in production when possible: # docker pull ghcr.io/tracewick/agent@sha256:… ``` Compose / Kubernetes examples (UID-compatible): [`deploy/`](deploy/). +RC images have versioned tags (`1.0.0-rc.1` and `v1.0.0-rc.1`); they do not update `latest`. ## Configure and run @@ -246,7 +257,7 @@ docker run --rm --user "$(id -u):$(id -g)" \ -e TRACEWICK_SPOOL_DIR=/var/spool/tracewick \ -e TRACEWICK_PYROSCOPE_URL=https://pyroscope.example \ -e TRACEWICK_PYROSCOPE_PASSWORD \ - ghcr.io/tracewick/agent:0.2.0 run --reader-id=sidecar-1 + ghcr.io/tracewick/agent:1.0.0-rc.1 run --reader-id=sidecar-1 ``` For a one-shot pass, append `--once`. Compose and Kubernetes manifests: diff --git a/deploy/README.md b/deploy/README.md index e12d3d2..74447b7 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -35,7 +35,10 @@ writes `/var/spool/tracewick`. | Source | Image | | --- | --- | | Local | `make docker-build` → `tracewick-agent:local` | -| Release | `ghcr.io/tracewick/agent:` (multi-arch amd64/arm64; e.g. `0.2.0`) | +| Release | `ghcr.io/tracewick/agent:` (multi-arch amd64/arm64; candidate `1.0.0-rc.1`) | + +Candidate images become available after publication. Prereleases do not move the +stable `latest` tag; pin the candidate version or its verified image digest. ```bash make docker-build diff --git a/release-please-config.json b/release-please-config.json index c2b7971..b2cb018 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -1,6 +1,9 @@ { "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", "release-type": "simple", + "versioning": "prerelease", + "prerelease-type": "rc", + "prerelease": true, "bump-minor-pre-major": true, "include-component-in-tag": false, "include-v-in-tag": true, diff --git a/test/e2e/README.md b/test/e2e/README.md index 8f6817b..f92a907 100644 --- a/test/e2e/README.md +++ b/test/e2e/README.md @@ -18,10 +18,12 @@ still runs (httptest). CI `e2e.yml` starts the stand and exports the env. ## Release posture -README marks **beta (`0.2.x`)**, not production readiness. Keep release cuts +README marks **release candidate (`1.0.0-rc.1`)**, not production readiness. Keep release cuts (GoReleaser), honest unsigned notes until cosign, and soak via [`tracewick/benchmarks`](https://github.com/tracewick/benchmarks). E2E here covers stand, Toxiproxy chaos, Querier live, and Go + PHP-drain coexistence. +`make php-drain` installs the published core `1.0.0-rc.1` for this candidate's +coexistence check; version numbers do not replace the spool v2 contract. ## Canon (parity with `tracewick/tracewick`) @@ -46,7 +48,8 @@ covers stand, Toxiproxy chaos, Querier live, and Go + PHP-drain coexistence. `make e2e` uses `-v` so lines prefixed `e2e:` show progress in CI. - Done: UID-mismatch (Docker volume, wrong UID vs matching `33`) — `TestUIDMismatchCannotClaimMatchingCan` (skips without docker). -- Next: benchmarks soak. Mutation MSI gate is `make mutation` (Checks step, not +- Load/soak evidence lives in benchmarks with its own source pins; it is not + produced by this E2E suite. Mutation MSI gate is `make mutation` (Checks step, not e2e). FakeHttp-class faults live under `internal/testhttp` + `internal/pyroscope` (unit). From 66a6d42585c14128f439d2265fc279f3a625ec79 Mon Sep 17 00:00:00 2001 From: "tracewick-release[bot]" <351706015+tracewick-release[bot]@users.noreply.github.com> Date: Sun, 22 Nov 2026 20:46:46 +0000 Subject: [PATCH 2/2] chore: release 1.0.0-rc.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index af55ef0..c39891b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.2.1" + ".": "1.0.0-rc.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 96d25b3..2f9d673 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.0-rc.1](https://github.com/tracewick/agent/compare/v0.2.1...v1.0.0-rc.1) (2026-11-22) + + +### Added + +* **config:** support operational settings from environment ([#59](https://github.com/tracewick/agent/issues/59)) ([a15f0d3](https://github.com/tracewick/agent/commit/a15f0d310ba6d5942e67b37d3c3c55dc1b3b8100)) + + +### Chores + +* prepare 1.0.0-rc.1 ([5d790da](https://github.com/tracewick/agent/commit/5d790da614987eebaeb008dcf21a3a9bb25c97a2)) + ## [0.2.1](https://github.com/tracewick/agent/compare/v0.2.0...v0.2.1) (2026-11-13)