Record ReleaseKit workflow test remediation
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# Configured startup review remediation
|
||||
# Review remediation
|
||||
|
||||
Reviewed all ten implementation stages against committed baseline
|
||||
`f04b6097b879bfa96cf188858988141c81933c77` and the agreed feature roadmap.
|
||||
|
||||
Also reviewed all seven ReleaseKit adoption stages against
|
||||
`c893e1086a8ebf649b37723c7ddf9a8035f74c8d`. Item 1 retains the completed
|
||||
configured-startup finding; item 2 is the outstanding ReleaseKit finding.
|
||||
|
||||
## 1. Make the pure-loader regression test detect accidental bootstrap
|
||||
|
||||
Status: completed. Priority: P2. Implementation stages: 2 and 6.
|
||||
@@ -42,3 +46,52 @@ Validation: the focused test passes against current production code and fails
|
||||
when an accidental bootstrap call is temporarily inserted via a scratch overlay.
|
||||
Keep this as a small behavioral test rather than adding a permanent mutation-test
|
||||
framework or retesting ConfigKit's complete secrets policy.
|
||||
|
||||
## 2. Allow literal environment values in workflow inspection tests
|
||||
|
||||
Status: pending. Priority: P2. Implementation stage: 4.
|
||||
|
||||
Location: [doccheck_test.go](../../internal/doccheck/doccheck_test.go#L311),
|
||||
`woodpeckerStep.Environment` and `TestReleaseWorkflowDelivery`.
|
||||
|
||||
The new test-only workflow model decodes every environment value into a struct
|
||||
containing `from_secret`. Woodpecker also supports ordinary literal environment
|
||||
values, as documented in its
|
||||
[environment reference](https://woodpecker-ci.org/docs/usage/environment).
|
||||
Consequently, adding a valid setting such as
|
||||
`GOCACHE: /tmp/narratio-go-cache` makes both
|
||||
`TestWoodpeckerWorkflowDependencies` and `TestReleaseWorkflowDelivery` fail during
|
||||
YAML decoding. This affects all workflows inspected by the shared helper, not
|
||||
just the required release-token mapping. Before this change, unrelated
|
||||
environment fields were ignored.
|
||||
|
||||
Reproduced in a disposable clone by adding only that literal under the release
|
||||
step's `environment`. Both tests fail with `cannot unmarshal !!str ... into
|
||||
struct { FromSecret string ... }`; the same focused tests pass on the unchanged
|
||||
candidate. No production or workflow files in Narratio were changed by this
|
||||
diagnostic.
|
||||
|
||||
This unintentionally strengthens the CI configuration contract: every inspected
|
||||
environment value must now have an object shape compatible with a secret
|
||||
reference, even though only the `RELEASEKIT_GITEA_TOKEN` mapping requires
|
||||
inspection. The current checked-in workflow works, but normal CI configuration
|
||||
changes would unnecessarily block the default suite and native release
|
||||
validation.
|
||||
|
||||
Required change: retain environment values in a form that accepts native literal
|
||||
and secret-reference values, such as YAML nodes or a small generic mapping.
|
||||
Inspect the required token's `from_secret` separately. Keep general dependency
|
||||
checks independent of unrelated environment contents; a general Woodpecker
|
||||
schema or validator is unnecessary.
|
||||
|
||||
Validation: add focused coverage for mapping-shaped and sequence-shaped steps
|
||||
containing both a literal value and a secret reference. Ordinary literal values
|
||||
must decode successfully, while an incorrect required release-token mapping
|
||||
must still fail its specific wiring assertion. Run `go test ./internal/doccheck`.
|
||||
|
||||
The review otherwise found the dependency, version accessor, profile, launcher,
|
||||
native delivery template, removals, policy, and runbook aligned with the target.
|
||||
The full race-enabled suite, vet, build, and tidy-diff checks passed. Native
|
||||
ReleaseKit built all three declared binaries at the reviewed commit with Go
|
||||
1.27.4 and passed its injected-version smoke check. No source tag, upstream push,
|
||||
or live hosted delivery was attempted.
|
||||
|
||||
Reference in New Issue
Block a user