Plan source-only repository release support
This commit is contained in:
@@ -7,10 +7,10 @@ capture the requested direction and recommended design work. Recommendations
|
||||
remain proposals until adopted; the release number and exact API are unassigned.
|
||||
Explicit local and CI credential selection, setup-readiness validation, and an
|
||||
end-to-end Woodpecker delivery rehearsal are adopted as the planned direction.
|
||||
The release-purpose distinction, calendar formats, caller-selected identifiers,
|
||||
and application tag conventions in item 4 are also adopted. Implementation is
|
||||
pending; support for repositories without Go modules remains open. This document
|
||||
adds no implementation or release gates.
|
||||
The general source-release identity model, source-only repository support,
|
||||
calendar formats, caller-selected identifiers, and tag conventions in item 4
|
||||
are also adopted. Implementation is pending. This document adds no
|
||||
implementation or release gates.
|
||||
|
||||
The objectives are to make local hosted delivery straightforward, expose useful
|
||||
readiness diagnostics, rehearse the actual Woodpecker delivery workflow on demand,
|
||||
@@ -139,8 +139,10 @@ or through the rehearsal. Report that evidence as unverified when unavailable.
|
||||
|
||||
### Readiness scope
|
||||
|
||||
- Reuse profile parsing and operation-specific validation for module selection,
|
||||
build settings, delivery destination, and publication endpoint expectations.
|
||||
- Reuse profile parsing and operation-specific validation for source selection,
|
||||
applicable Go module and build settings, delivery destination, and publication
|
||||
endpoint expectations. Source-only profiles check their configured operations
|
||||
without requiring a Go module or generated binaries.
|
||||
- Check the selected local token file for availability, readability, and
|
||||
nonblank content, or check the selected CI variable inside the job. Identify
|
||||
the source and context without exposing secret contents.
|
||||
@@ -195,8 +197,9 @@ command name and flags remain to be selected.
|
||||
|
||||
### Rehearsal flow
|
||||
|
||||
1. Select an exact committed source revision and module/profile. Check the
|
||||
required local inputs and record the intended diagnostic resources before
|
||||
1. Select an exact committed source revision, source scope, and profile,
|
||||
including the Go module when applicable. Check required local inputs and
|
||||
record the intended diagnostic resources before
|
||||
the first write. Preserve the workstation's branch, index, and worktree.
|
||||
2. Create and push a uniquely named diagnostic tag, such as
|
||||
`releasekit-test/<unique-id>`, to the configured publication endpoint.
|
||||
@@ -206,7 +209,9 @@ command name and flags remain to be selected.
|
||||
3. Run the ordinary tool bootstrap, checkout verification, dependency
|
||||
preparation, configured builds, and artifact generation inside Woodpecker.
|
||||
Use the same profile, build targets, job image, secret mapping, and shared
|
||||
delivery implementation as production releases.
|
||||
delivery implementation as production releases. Source-only profiles use
|
||||
their maintained installed-tool path and page-only delivery; application
|
||||
dependency preparation and binary builds apply to profiles declaring them.
|
||||
4. Create a clearly marked temporary hosted page in the configured forge
|
||||
repository and upload the actual declared artifacts. ReleaseKit supplies a
|
||||
diagnostic identity and temporary note; consumers need no version bump or
|
||||
@@ -247,9 +252,9 @@ no workstation environment exports or credential-loading scripts.
|
||||
Add explicit diagnostic identity support to CI preparation, builds, delivery,
|
||||
and relevant evidence formats. Today's `ci-deliver` requires a module-derived
|
||||
stable semantic tag. Diagnostic tags need a supported path through those
|
||||
operations, including module selection and workflow dispatch. Keep the normal
|
||||
build and delivery mechanics shared; diagnostic mode supplies the temporary
|
||||
identity, note, and resource lifecycle.
|
||||
operations, including source selection, applicable module selection, and
|
||||
workflow dispatch. Keep the normal build and delivery mechanics shared;
|
||||
diagnostic mode supplies the temporary identity, note, and resource lifecycle.
|
||||
|
||||
Use unique attempt names and exact tag, commit, pipeline, and hosted-resource
|
||||
identities to scope verification and deletion. Observe uncertain remote writes
|
||||
@@ -274,15 +279,46 @@ routine publication gates. Ordinary source publication still completes at the
|
||||
successful production tag push; the rehearsal waits for CI because verifying
|
||||
that workflow is its purpose.
|
||||
|
||||
## 4. Support application and Go module release identities
|
||||
## 4. Support general source-release identity and Go module publication
|
||||
|
||||
Separate release purpose from version format. Preserve today's Go module
|
||||
release behavior for profiles that omit the new selection. Application
|
||||
releases can use SemVer or the selected calendar formats.
|
||||
Adopt a general source-release identity that supports configuration repositories,
|
||||
Go applications, and Go modules. A release identifies an exact committed source
|
||||
revision, selected source scope, version, full tag, and release note. Go module
|
||||
publication adds module-version and tag-derivation rules to that common model.
|
||||
Build capabilities are selected separately.
|
||||
|
||||
### Release purpose and Go distribution
|
||||
Include source-only repositories, such as YAML or JSON configuration
|
||||
repositories, in this release. Support tagging, publication, hosted release
|
||||
pages, readiness validation, recovery, and the actual Woodpecker delivery
|
||||
rehearsal through the shared workflow. This lets consumers replace repeated
|
||||
release scripts with a profile, a release note, and maintained tooling.
|
||||
|
||||
A Go module release retains semantic version validation, module-path major
|
||||
Preserve today's Go module release behavior for existing profiles that omit the
|
||||
new selection. General source releases, including application and configuration
|
||||
releases, can use SemVer or the selected calendar formats.
|
||||
|
||||
### Source selection and validation
|
||||
|
||||
Select source independently of a Go module. Source-only repositories default
|
||||
to the repository root; file-check inputs and release-note paths follow the
|
||||
selected source scope. Go applications retain a selected Go module for builds
|
||||
and validation. Define source-selection fields and their relationship to
|
||||
existing module selection in the implementation design.
|
||||
|
||||
Preserve common Git, committed-candidate, release-note, and publication checks.
|
||||
Run the standard Go suite for Go modules. Source-only repositories use
|
||||
applicable shared file checks, such as Markdown links, forbidden files, and
|
||||
file sizes, together with explicitly configured product checks. Their release
|
||||
workflow requires no placeholder `go.mod`.
|
||||
|
||||
YAML/JSON syntax or schema validation can use existing custom-check support.
|
||||
Additional shared configuration validators require separate evaluation.
|
||||
Arbitrary non-Go build orchestration and packaging remain separate scope
|
||||
decisions.
|
||||
|
||||
### Release identity and Go distribution
|
||||
|
||||
Go module publication retains semantic version validation, module-path major
|
||||
compatibility, and Go-specific tag derivation. These constraints also matter
|
||||
for executables distributed through versioned Go installation commands.
|
||||
For example, `v2026.12.3` denotes major version 2026, while `2026-12-05` is
|
||||
@@ -290,17 +326,10 @@ not a canonical Go module release version. See the
|
||||
[Go versions reference](https://go.dev/ref/mod#versions) and
|
||||
[major-version suffix rules](https://go.dev/ref/mod#major-version-suffixes).
|
||||
|
||||
An application release uses an application identifier while retaining a selected
|
||||
Go module for builds and validation when releasing a Go application. Its
|
||||
application tag makes no claim to publish a Go module version. One source
|
||||
revision can have separate, explicitly identified application and Go module
|
||||
releases. Coordinated publication of both identities requires a separate
|
||||
consumer need.
|
||||
|
||||
Support for repositories without Go modules remains an open scope decision.
|
||||
The Go application model described here establishes the agreed module-backed
|
||||
behavior; further discussion will determine the additional source, validation,
|
||||
build, and tool-selection conventions needed for other repositories.
|
||||
A general source-release tag identifies the source product without claiming to
|
||||
publish a Go module version. One source revision can have separate, explicitly
|
||||
identified source-product and Go module releases. Coordinated publication of
|
||||
both identities requires a separate consumer need.
|
||||
|
||||
### Version formats and selection
|
||||
|
||||
@@ -323,41 +352,60 @@ identifier throughout an attempt and its recovery. Automatic date selection,
|
||||
incrementing, ordering, configurable layouts, and custom public strategy
|
||||
interfaces require separate justification.
|
||||
|
||||
### Application tags and module scope
|
||||
### Source tags and module scope
|
||||
|
||||
Retain module-scoped builds and validation for Go applications. Default the
|
||||
application tag prefix to the selected module's repository-relative directory,
|
||||
with an explicit override for product naming:
|
||||
Retain module-scoped builds and validation for Go applications. General source
|
||||
tag prefixes follow the selected source directory relative to the repository,
|
||||
with an explicit override for product naming. Go applications use their
|
||||
selected module directory; source-only repositories default to the root.
|
||||
|
||||
| Selection | Application tag |
|
||||
| Selection | Source tag |
|
||||
| --- | --- |
|
||||
| Repository-root module | `2026-12-05` |
|
||||
| Module in `apps/editor` | `apps/editor/2026-12-05` |
|
||||
| Repository-root configuration source or Go application | `2026-12-05` |
|
||||
| Go application module in `apps/editor` | `apps/editor/2026-12-05` |
|
||||
| Explicit product prefix `editor` | `editor/2026-12-05` |
|
||||
|
||||
Application tag derivation uses the selected physical directory by default,
|
||||
including a physical `/vN` directory when present. Go module releases retain
|
||||
Go's major-version directory and tag-prefix rules. The application version
|
||||
does not determine the selected module's import-path major version.
|
||||
General source tag derivation uses the selected physical directory by default,
|
||||
including a physical `/vN` directory when present. Go module publication retains
|
||||
Go's major-version directory and tag-prefix rules. The source-product version
|
||||
does not determine a selected module's import-path major version.
|
||||
|
||||
Resolve release purpose, version format, selected identifier, module selection,
|
||||
and complete tag identity once. Carry that identity through CLI and API
|
||||
validation, builds, publication, hosted delivery, and recovery. Preserve the
|
||||
identifier in notes, injected runtime versions, artifact names, receipts, and
|
||||
Resolve release purpose, version format, selected identifier, source selection,
|
||||
applicable module identity, and complete tag identity once. Carry that identity
|
||||
through CLI and API validation, builds, publication, hosted delivery, and
|
||||
recovery. Preserve the identifier in notes, injected runtime versions, artifact names, receipts, and
|
||||
saved evidence. Validate complete refs with Git's rules and review consumers
|
||||
of the identity for filename and numeric-triple assumptions.
|
||||
|
||||
### Tool selection and complete workflow support
|
||||
|
||||
Provide an explicit ReleaseKit version selection and maintained installed-tool
|
||||
examples for local and Woodpecker use in repositories without `go.mod`. Build
|
||||
on the documented separately installed-tool path. Consumers supply the version
|
||||
selection; ReleaseKit owns reusable installation and invocation guidance.
|
||||
Module-backed consumers retain the module-selected tool workflow.
|
||||
|
||||
Source-only profiles publish their committed configuration and release note
|
||||
under an immutable tag, then deliver the hosted page through the maintained
|
||||
Woodpecker workflow. Readiness checks cover their profile, source, credentials,
|
||||
and selected remote operations. The rehearsal exercises the actual tag event,
|
||||
CI tool invocation, credential injection, hosted-page content verification,
|
||||
and cleanup. Report that these profiles declare no generated artifacts.
|
||||
Use the same local-file and CI-secret selection as other consumers.
|
||||
|
||||
### Implementation and adoption
|
||||
|
||||
Extend identity handling across all supported operations, including the
|
||||
Woodpecker rehearsal, CI tag dispatch, selected-tool bootstrap, note matching,
|
||||
and stored evidence. Keep existing SemVer integrations simple and document
|
||||
migration where public or stored contracts change. Record the release-purpose
|
||||
and module-identity decision in an ADR; finalize exact format grammars and
|
||||
configuration fields through the implementation design.
|
||||
Extend identity and source selection across all supported CLI and API operations,
|
||||
including candidate checks, publication, hosted delivery, recovery, readiness,
|
||||
and the Woodpecker rehearsal. Update CI tag dispatch, tool bootstrap, note
|
||||
matching, and stored evidence for both module-backed and source-only profiles.
|
||||
Keep existing SemVer integrations simple and document migration where public
|
||||
or stored contracts change. Record the general source-release and Go module
|
||||
identity decision in an ADR; finalize format grammars and configuration fields
|
||||
through the implementation design.
|
||||
|
||||
ReleaseKit's own release policy continues to select SemVer. Consumer support
|
||||
for application formats leaves that policy unchanged.
|
||||
for other source-product formats leaves that policy unchanged.
|
||||
|
||||
## Work outline and regression coverage
|
||||
|
||||
@@ -371,8 +419,11 @@ for application formats leaves that policy unchanged.
|
||||
CI build and delivery path. Implement rehearsal coordination, exact-run
|
||||
observation, generated-artifact verification, diagnostic deletion, and
|
||||
recovery. Provide maintained workflow and persistent-credential examples.
|
||||
4. Extend version identity and carry it through publication, builds, delivery,
|
||||
stored formats, and launchers. Update affected schema versions when their
|
||||
4. Implement general source selection and release identity, with Go module
|
||||
publication rules and optional build capabilities. Carry them through
|
||||
validation, publication, delivery, recovery, readiness, rehearsals, stored
|
||||
formats, and launchers. Provide versioned installed-tool examples for
|
||||
source-only repositories. Update affected schema versions when their
|
||||
interpretation changes and document consumer migration.
|
||||
5. Update canonical references, maintained examples, adoption guidance, and next
|
||||
release notes. Review the assembled implementation and run appropriate
|
||||
@@ -393,11 +444,15 @@ and cleanup failures. Exercise exact pipeline correlation, missing or skipped
|
||||
delivery jobs, build failures, missing or mismatched artifacts, and cleanup
|
||||
while CI is active or its status is unknown. Verify that rehearsal and
|
||||
production paths share configured builds and delivery mechanics. Cover
|
||||
version/date boundaries, revision and leading-prefix conventions, application
|
||||
versus module tag derivation, physical major-version directories, and explicit
|
||||
application prefix overrides. Verify identity consistency across operations
|
||||
and stored formats, including the rehearsal. Use temporary Git remotes and
|
||||
local HTTP fixtures for Woodpecker and forge behavior in the default suite. Live rehearsals stay explicitly opt-in.
|
||||
version/date boundaries, revision and leading-prefix conventions, general source
|
||||
versus Go module tag derivation, physical major-version directories, and explicit
|
||||
product prefix overrides. Cover a YAML/JSON-only repository with no `go.mod`
|
||||
through candidate validation, publication, hosted-page delivery, readiness,
|
||||
recovery, and the rehearsal. Verify source-scoped file checks, installed-tool
|
||||
version selection, and page-only behavior without Go tests or binary builds.
|
||||
Verify identity consistency across operations and stored formats, including
|
||||
the rehearsal. Use temporary Git remotes and local HTTP fixtures for Woodpecker and forge behavior in the default suite.
|
||||
Live rehearsals stay explicitly opt-in.
|
||||
This outline has no pilot releases or intermediate external review gates.
|
||||
|
||||
## Open Decisions
|
||||
@@ -424,21 +479,22 @@ interfaces.
|
||||
### Rehearsal interface and recovery
|
||||
|
||||
The end-to-end Woodpecker scope in item 3 is decided. Finalize the command
|
||||
syntax, diagnostic tag/module mapping, Woodpecker connection and credential-file
|
||||
settings, and attempt-record format. Define how callers resume observation and
|
||||
cleanup, how interruption and observation timeouts are reported, and how the
|
||||
syntax, diagnostic tag/source mapping and applicable module selection,
|
||||
Woodpecker connection and credential-file settings, and attempt-record format.
|
||||
Define how callers resume observation and cleanup, how interruption and observation timeouts are reported, and how the
|
||||
coordinator obtains build evidence for remote artifact verification. Keep these
|
||||
mechanics in ReleaseKit and its maintained workflow.
|
||||
|
||||
### Versioning interfaces and repositories without Go modules
|
||||
### Source selection and versioning interfaces
|
||||
|
||||
Item 4 settles the release-purpose distinction, supported calendar formats,
|
||||
caller-supplied identifiers, and application tag-prefix defaults and overrides.
|
||||
Finalize configuration fields and exact format grammars, including padding
|
||||
and numeric revision rules, while preserving those selected conventions.
|
||||
Item 4 settles the general source-release identity, source-only repository
|
||||
support, Go module publication rules, supported calendar formats, caller-supplied
|
||||
identifiers, and tag-prefix defaults and overrides. Finalize source-selection
|
||||
and release-purpose fields, their relationship to existing module configuration,
|
||||
installed-tool version selection, and exact format grammars, including padding
|
||||
and numeric revision rules. Preserve the selected conventions across CLI, API,
|
||||
and stored evidence.
|
||||
|
||||
Support for repositories without Go modules remains undecided. Discuss whether
|
||||
this release includes source-only or externally built non-Go applications and,
|
||||
if so, their source selection, validation, build ownership, and ReleaseKit tool
|
||||
bootstrap. Keeping this release focused on Go applications and modules remains
|
||||
an alternative for discussion, rather than an adopted scope limit.
|
||||
Source-only tagging, publication, hosted pages, readiness, recovery, and the
|
||||
Woodpecker rehearsal are included in this release. Arbitrary non-Go builds,
|
||||
packaging, and additional YAML/JSON validators remain separate scope decisions.
|
||||
|
||||
Reference in New Issue
Block a user