Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dockers_v2:
tags:
- "{{ .Version }}"
- "{{ .Tag }}"
- latest
- "{{ if not .Prerelease }}latest{{ end }}"
platforms:
- linux/amd64
- linux/arm64
Expand Down Expand Up @@ -87,6 +87,7 @@ changelog:

release:
draft: false
prerelease: auto
# release-please already wrote the changelog body.
mode: append
footer: |
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.2.1"
".": "1.0.0-rc.1"
}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
36 changes: 31 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
43 changes: 27 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) | |
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -117,33 +121,40 @@ 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
```

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

Expand Down Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ writes `/var/spool/tracewick`.
| Source | Image |
| --- | --- |
| Local | `make docker-build` → `tracewick-agent:local` |
| Release | `ghcr.io/tracewick/agent:<version>` (multi-arch amd64/arm64; e.g. `0.2.0`) |
| Release | `ghcr.io/tracewick/agent:<version>` (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
Expand Down
3 changes: 3 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
7 changes: 5 additions & 2 deletions test/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)

Expand All @@ -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).

Expand Down
Loading