feat(epic3): deliver the accepted Epic 3 scope through Story 3.17
CI / Rust Checks (pull_request) Failing after 13m41s
CI / UI Checks (pull_request) Skipped
CI / Frontend E2E (pull_request) Skipped
CI / Community Image Smoke (pull_request) Skipped
CI / Deploy (pull_request) Skipped
Community Release / release (push) Failing after 13m33s
CI / Rust Checks (pull_request) Failing after 13m41s
CI / UI Checks (pull_request) Skipped
CI / Frontend E2E (pull_request) Skipped
CI / Community Image Smoke (pull_request) Skipped
CI / Deploy (pull_request) Skipped
Community Release / release (push) Failing after 13m33s
Recovery delivery of the accumulated, TL-accepted Epic 3 work that had never been
committed to Git (stories 3.6-3.17, see the crank board). Story 3.18 is not accepted
yet and is deliberately excluded: its logging surface, its capability registration,
its oracle projections and its tests are not part of this tree.
Accepted scope
- 3.6 typed static Resource Drafts; 3.7 publication and exact binding of static
Resource Versions; 3.8 MCP discovery/read and revocation of static Resources;
- 3.9 Resource import/export in API and UI plus TLS dependency maintenance;
3.10 REST-backed Resource templates; 3.11 shared REST read runtime and the MCP
revision/capability foundation;
- 3.12 parameterised Prompt Drafts with preview; 3.13 Prompt publication and exact
version binding to Agents; 3.14 MCP prompts; 3.15 Prompt import/export;
- 3.16 composite Prompts with published Resources (dependency content scan plus
dynamic read through the accepted 3.11 runtime, admin preview and MCP prompts/get);
- 3.17 bounded MCP completion suggestions from typed published schemas and the
resources/list admission fix for bound template publications.
Accepted evidence being reused (unchanged code paths)
- 3.16 candidate: core 7, admin-api 22, registry 4, mcp-server 4, UI 6; one final
`just verify` run 1651 passed / 0 failed / 2 ignored.
- 3.17 candidate: full run 1672 passed / 0 failed / 2 ignored, QA targeted reruns and
a real MCP Inspector 2.12.0 client smoke.
Delivery engineering in this commit
- CI: one event per change (feature branches are gated by their pull request, push
runs only on main), story events run the changed packages, the full workspace suite
stays the feature/release gate; no cache/sharding without a measured runner check.
- Release: the packaged archives, checksums and SBOM are now uploaded to the Gitea
release entry of the tag instead of dying with the runner workspace.
Not included on purpose: Story 3.18 work, build caches, runtime databases, local
credentials and scratch evidence.
Refs: crank kanban t_e39d7263; baseline 1b6db09bd1.
This commit is contained in:
1 parent
1b6db09bd1
commit
54ce770682
357 files changed
+117394
-5115
No files matched your search
+53
-2
@@ -5,7 +5,6 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- "feat/**"
|
||||
|
||||
env:
|
||||
CARGO_BUILD_JOBS: "2"
|
||||
@@ -139,7 +138,59 @@ jobs:
|
||||
- name: Run clippy
|
||||
run: cargo clippy --workspace --all-targets --all-features --jobs "$CARGO_BUILD_JOBS" -- -D warnings
|
||||
|
||||
- name: Run tests
|
||||
# One event per change: a feature branch is gated by its pull request, so the push event runs
|
||||
# only on `main` (see `on:` above). No cache and no parallel test shards are configured on
|
||||
# purpose: both need a measured runner/isolation check first (team validation policy), and the
|
||||
# workspace suites already isolate shared databases per test process.
|
||||
#
|
||||
# Story events (`pull_request`) run only the packages the diff touches; the full workspace
|
||||
# suite stays the feature/release gate and runs on `main`.
|
||||
- name: Run story tests (affected packages)
|
||||
if: ${{ gitea.event_name == 'pull_request' }}
|
||||
run: |
|
||||
set -eu
|
||||
base="$(git merge-base HEAD origin/main 2>/dev/null || true)"
|
||||
if [ -z "$base" ]; then
|
||||
git fetch --no-tags origin main
|
||||
base="$(git merge-base HEAD FETCH_HEAD)"
|
||||
fi
|
||||
changed="$(git diff --name-only "$base" HEAD)"
|
||||
packages=""
|
||||
workspace=""
|
||||
for path in $changed; do
|
||||
case "$path" in
|
||||
Cargo.toml|Cargo.lock|rust-toolchain.toml|justfile|vendor/*|crates/Cargo.toml|apps/Cargo.toml)
|
||||
workspace="yes"
|
||||
;;
|
||||
crates/*/*)
|
||||
packages="$packages $(printf '%s' "$path" | cut -d/ -f2)"
|
||||
;;
|
||||
apps/admin-api/*)
|
||||
packages="$packages admin-api"
|
||||
;;
|
||||
apps/mcp-server/*)
|
||||
packages="$packages mcp-server"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if [ -n "$workspace" ]; then
|
||||
echo "shared build input changed: running the whole workspace"
|
||||
cargo test --workspace --all-targets --jobs "$CARGO_BUILD_JOBS" -- --test-threads=1
|
||||
exit 0
|
||||
fi
|
||||
selected=""
|
||||
for package in $(printf '%s\n' $packages | sort -u); do
|
||||
selected="$selected -p $package"
|
||||
done
|
||||
if [ -z "$selected" ]; then
|
||||
echo "no Rust package changed in this diff; the static checks above are the story gate"
|
||||
exit 0
|
||||
fi
|
||||
echo "story packages:$selected"
|
||||
cargo test $selected --all-targets --jobs "$CARGO_BUILD_JOBS" -- --test-threads=1
|
||||
|
||||
- name: Run full workspace tests (feature/release gate)
|
||||
if: ${{ gitea.event_name != 'pull_request' }}
|
||||
run: cargo test --workspace --all-targets --jobs "$CARGO_BUILD_JOBS" -- --test-threads=1
|
||||
|
||||
ui:
|
||||
|
||||
@@ -243,3 +243,51 @@ jobs:
|
||||
- name: Show release bundle summary
|
||||
run: |
|
||||
ls -lh dist
|
||||
|
||||
- name: Write release notes
|
||||
run: |
|
||||
set -eu
|
||||
tag="${{ gitea.ref_name }}"
|
||||
{
|
||||
echo "## Crank Community ${tag}"
|
||||
echo
|
||||
echo "Source commit: \`$(git rev-parse HEAD)\`"
|
||||
echo
|
||||
echo "### Changes"
|
||||
echo
|
||||
git log --oneline -25 | sed 's/^/- /'
|
||||
echo
|
||||
echo "### Artifacts and checksums"
|
||||
echo
|
||||
echo '```'
|
||||
cat "dist/crank-community-${tag}-checksums.txt"
|
||||
echo '```'
|
||||
} > dist/RELEASE-NOTES.md
|
||||
cat dist/RELEASE-NOTES.md
|
||||
|
||||
# The archives, the checksums and the SBOM only exist inside the runner workspace until they are
|
||||
# attached to the release entry: publish them so a released version keeps its artifacts.
|
||||
- name: Publish artifacts to the Gitea release
|
||||
env:
|
||||
RELEASE_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
FALLBACK_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
set -eu
|
||||
tag="${{ gitea.ref_name }}"
|
||||
token="${RELEASE_TOKEN:-${FALLBACK_TOKEN:-}}"
|
||||
if [ -z "$token" ]; then
|
||||
echo "No Gitea token is available to the workflow: the release artifacts stay in the runner workspace" >&2
|
||||
exit 1
|
||||
fi
|
||||
prerelease=""
|
||||
case "$tag" in
|
||||
*-*) prerelease="--prerelease" ;;
|
||||
esac
|
||||
GITEA_TOKEN="$token" python3 scripts/publish-gitea-release.py \
|
||||
--api "${{ gitea.server_url }}/api/v1" \
|
||||
--repo "${{ gitea.repository }}" \
|
||||
--tag "$tag" \
|
||||
--title "Crank Community ${tag}" \
|
||||
--notes-file dist/RELEASE-NOTES.md \
|
||||
--dist dist \
|
||||
$prerelease
|
||||
Reference in new issue
Block a user