Prepare v0.11.0 release notes and adoption guidance
This commit is contained in:
@@ -9,9 +9,8 @@ launcher described below.
|
||||
The [source-only example](../../examples/source-only/README.md) provides a
|
||||
profile, local launcher, and tag-verified Woodpecker workflow without requiring
|
||||
an application `go.mod`. Commit a root `.releasekit-version` containing one
|
||||
stable ReleaseKit module version. Select a published version implementing the
|
||||
profile and workflow; the example's current pin illustrates syntax and must be
|
||||
updated when the next release is available.
|
||||
stable ReleaseKit module version. The example selects v0.11.0, which supplies
|
||||
the source-only profile and workflow interfaces.
|
||||
|
||||
The maintained installer uses the same committed pin locally and in CI,
|
||||
installs the host executable in the ignored `.releasekit/tools` directory,
|
||||
@@ -30,7 +29,7 @@ go mod tidy
|
||||
```
|
||||
|
||||
Select a release that implements the API, profile, and workflow you are adopting.
|
||||
The [next-release migration draft](../roadmap/next-release-migration.md) covers
|
||||
The [v0.11.0 release note](../releases/v0.11.0.md) covers
|
||||
the new source selections, credential contexts, and rehearsal workflow.
|
||||
The vanity module path starts with v0.5.0. Versions through v0.4.2 declare the
|
||||
original module path and use their corresponding historical instructions.
|
||||
|
||||
112
docs/releases/v0.11.0.md
Normal file
112
docs/releases/v0.11.0.md
Normal file
@@ -0,0 +1,112 @@
|
||||
# ReleaseKit v0.11.0
|
||||
|
||||
ReleaseKit adds general source releases, calendar versions, configuration
|
||||
readiness checks, and an optional rehearsal of the actual Woodpecker delivery
|
||||
workflow. This release also separates local and CI delivery credentials and
|
||||
extends saved evidence to carry the selected source and version identity.
|
||||
The Go minimum remains 1.27.0; release builds and validation use Go 1.27.4.
|
||||
|
||||
## New capabilities
|
||||
|
||||
- Release repositories and source directories without an application `go.mod`,
|
||||
including configuration-only products. Select Go validation and builds
|
||||
independently from Go module publication. Go applications can publish source
|
||||
releases whose product version is independent of their module path major.
|
||||
- Choose stable SemVer, Gregorian date versions, or year-month versions.
|
||||
Calendar identifiers, optional prefixes, and source tag prefixes flow through
|
||||
candidate checks, publication, notes, version injection, artifact names,
|
||||
hosted delivery, and recovery. Go module publication retains Go's prefixed
|
||||
SemVer and module-major rules. ReleaseKit's own releases continue using SemVer.
|
||||
- Run `releasekit validate` before selecting a release version or writing a
|
||||
release note. It inspects selected configuration, source/build inputs,
|
||||
credentials, and read-only remote access. Operation selection and offline
|
||||
mode narrow its scope. It does not execute product checks, build binaries,
|
||||
download dependencies, or establish actual CI secret injection.
|
||||
- Run `releasekit test` to dispatch a temporary diagnostic tag through the
|
||||
configured Woodpecker workflow. The actual job delivers and reads back the
|
||||
page and any declared binary/checksum contents. Separate workflow, build,
|
||||
verification, and cleanup outcomes retain safe job diagnostics. Private
|
||||
attempt records support explicit `test-resume` and `test-cleanup` recovery.
|
||||
Cleanup waits for observable CI quiescence and removes owned diagnostic
|
||||
resources; CI history, notifications, and webhook effects remain.
|
||||
- Source-only launchers and CI bootstrap share a committed `.releasekit-version`
|
||||
pin and retain a host executable for later recovery. The root Go facade adds
|
||||
`SourceSpec`, `Validate`, `Rehearse`, `ResumeRehearsal`, `CleanupRehearsal`, and
|
||||
`DeliverRehearsal`, with facade-owned requests, results, and source evidence.
|
||||
|
||||
Read the [configuration reference](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/config.md),
|
||||
[readiness guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/consumers/readiness.md),
|
||||
and [rehearsal guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/consumers/rehearsal.md)
|
||||
for the supported settings, version grammars, and operational boundaries.
|
||||
|
||||
## Correctness and efficiency
|
||||
|
||||
Readiness shares operation-specific configuration checks with execution,
|
||||
preserves local required files when inspecting captured source, and supports
|
||||
Go's `gopkg.in` unstable-major paths. Go package patterns remain available to
|
||||
the builder and are reported as unresolved during readiness rather than
|
||||
treated as literal directories. Package-input inspection scopes committed
|
||||
metadata to the selected directory and scans working entries in bounded batches.
|
||||
|
||||
Rehearsal recovery distinguishes definite push rejection from uncertain writes,
|
||||
permits cleanup of a known matching page after its tag is already absent, and
|
||||
retains the explicit forge selection. Diagnostic CI delivery uses the public
|
||||
orchestration facade and ordinary delivery error classifications. Production
|
||||
tags sharing the diagnostic namespace prefix retain their production routing.
|
||||
CI pagination tolerates consistent overlaps, pipeline membership uses an index,
|
||||
and result parsing discards ordinary log fragments without retaining entire
|
||||
long lines.
|
||||
|
||||
## Compatibility and upgrade guidance
|
||||
|
||||
1. Upgrade each consuming Go module to v0.11.0 with
|
||||
`go get go.maximumdirect.net/releasekit@v0.11.0`, or register/upgrade its CLI
|
||||
with `go get -tool go.maximumdirect.net/releasekit/cmd/releasekit@v0.11.0`.
|
||||
Run `go mod tidy`, regenerate vendored dependencies when applicable, and
|
||||
commit the module changes. A standalone CLI can use
|
||||
`go install go.maximumdirect.net/releasekit/cmd/releasekit@v0.11.0`.
|
||||
2. Move `delivery.token_file` to `delivery.credentials.local.token_file` and
|
||||
`delivery.token_env` to
|
||||
`delivery.credentials.ci.token_environment_variable`. The former flat
|
||||
fields are rejected. Local delivery and rehearsal use the selected token
|
||||
file; `ci-deliver` uses the selected job environment variable. An empty CI
|
||||
declaration selects `RELEASEKIT_DELIVERY_TOKEN`. Keep existing secret and
|
||||
variable names by configuring them explicitly. Neither context falls back
|
||||
to the other; missing, unreadable, or blank selected credentials are errors.
|
||||
Go API callers continue supplying tokens explicitly.
|
||||
3. Existing profiles with all four selection objects (`source`, `go`,
|
||||
`publication`, and `version`) omitted or null retain Go-module publication
|
||||
and prefixed stable SemVer. Go API requests with `Source: nil` retain the
|
||||
`ModuleDir` shorthand. Any non-null profile selection object chooses the
|
||||
explicit model: declare `go: {}` for Go checks/builds and
|
||||
`publication.mode: "go-module"` for Go module publication. An explicit
|
||||
`source: {}` or zero `SourceSpec` selects a root source release with Go
|
||||
disabled. Update callbacks that handle source-only candidates to use source
|
||||
identity; their Go module identity is empty.
|
||||
4. Update copied workflows together with the selected tool. Source-only
|
||||
repositories can pin `v0.11.0` in `.releasekit-version`. Multi-product
|
||||
selector maps now have four columns: selector, production tag pattern, tool
|
||||
module directory, and profile path. The `-` tool-module value selects the
|
||||
installed pinned tool. Align production tag filters with the selected
|
||||
version format. To enable rehearsal, add diagnostic dispatch and matching
|
||||
selector/profile routing, declare CI delivery credentials, and configure
|
||||
the separate local Woodpecker token and exact repository/workflow/step.
|
||||
Native Git credentials and the local forge token need diagnostic deletion
|
||||
permissions. Rehearsal remains optional and does not change production
|
||||
source-publication completion.
|
||||
5. Rebuild retained artifacts before `deliver --assets`: build receipts now
|
||||
use schema 2 and older schemas are rejected. Newly saved publication records
|
||||
use format 3; versions 1 and 2 remain readable with their captured evidence.
|
||||
Older tools cannot read the new format. Continue selecting exact records
|
||||
for recovery; publication records and rehearsal records are separate.
|
||||
|
||||
The [adoption guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/consumers/adoption.md)
|
||||
and maintained examples cover tool registration, source-only installation, and
|
||||
coordinated workflow upgrades. The
|
||||
[receipt](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/integrations/build-receipts.md)
|
||||
and [publication record](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/integrations/publication-records.md)
|
||||
references describe the evidence formats.
|
||||
|
||||
[COPYRIGHT](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/COPYRIGHT) |
|
||||
[LICENSE](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/LICENSE) |
|
||||
[ATTRIBUTION](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.11.0/docs/oss/attribution.md)
|
||||
@@ -1,58 +0,0 @@
|
||||
# Next release migration draft
|
||||
|
||||
The next ReleaseKit release number is not yet assigned. This is migration
|
||||
preparation for that release, not a published release note. Select and publish
|
||||
a compatible ReleaseKit version before replacing the illustrative `v0.10.0`
|
||||
pins in source-only examples. Until then, exercise the current source with the
|
||||
local fixtures described in [development guidance](../development.md).
|
||||
|
||||
## Credentials and readiness
|
||||
|
||||
Move the former `delivery.token_file` to
|
||||
`delivery.credentials.local.token_file`, and move `delivery.token_env` to
|
||||
`delivery.credentials.ci.token_environment_variable`. Keep existing CI secret
|
||||
names and job environment variable names where possible. A CI declaration with
|
||||
no variable name defaults to `RELEASEKIT_DELIVERY_TOKEN`; it does not fall back
|
||||
to the local token file. Local `deliver` and `test` use the local selection,
|
||||
while `ci-deliver` uses the CI environment. `validate --context ci` explicitly
|
||||
selects CI credentials for readiness.
|
||||
|
||||
For a live rehearsal, configure a separate local Woodpecker API token, numeric
|
||||
repository ID, exact workflow and step, and selector in `rehearsal`. Grant the
|
||||
local forge and Git credentials the diagnostic deletion permissions they need;
|
||||
the CI secret still needs delivery write access. The [rehearsal guide](../consumers/rehearsal.md)
|
||||
describes the evidence boundary and retained CI history, notifications, and
|
||||
webhook effects.
|
||||
|
||||
## Source and version selection
|
||||
|
||||
Profiles omitting all of `source`, `go`, `publication`, and `version` retain
|
||||
legacy Go-module publication and prefixed stable SemVer. A non-null selection
|
||||
object selects the explicit model: declare `go: {}` to retain Go checks or
|
||||
builds, choose `publication.mode: "go-module"` only for module publication,
|
||||
and otherwise use general `source` publication. A source-only profile can use
|
||||
`source: {}` without an application `go.mod`. The [configuration reference](../config.md)
|
||||
owns defaults, physical directories, tag prefixes, and identifier grammars.
|
||||
|
||||
Source publication can select stable SemVer, Gregorian `date`, or `year-month`
|
||||
identifiers. Source tags use the selected physical source prefix by default;
|
||||
Go module publication retains declared path-major compatibility. Applications
|
||||
can release a product major or calendar identifier independently of the Go
|
||||
module path when using source publication. Update release-note paths and
|
||||
workflow tag filters to match the chosen format.
|
||||
|
||||
## Tools, workflows, and recovery
|
||||
|
||||
Commit the installed-tool `.releasekit-version` pin for a source-only product,
|
||||
or select a tool dependency in each Go module. Upgrade the tool and tagged CI
|
||||
workflow together. The maintained multi-product selector uses four columns:
|
||||
selector, production tag pattern, tool module directory, and profile path; `-`
|
||||
selects the installed pinned tool. Add the diagnostic tag filter and ensure its
|
||||
selector maps to the same committed profile as production delivery.
|
||||
|
||||
Regenerate old build receipts with the current `build` command before using
|
||||
`deliver --assets`; receipts bind source selection and artifact identity.
|
||||
Existing publication records remain explicit inputs to `reconcile` and do not
|
||||
become rehearsal records. Rehearsal recovery similarly requires the exact
|
||||
attempt record and supports explicit credential-file overrides. Neither recovery
|
||||
path selects an attempt automatically.
|
||||
Reference in New Issue
Block a user