You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
EXTRA_IMAGES gives crunchtools/trentina trentina-l2-model, the L2 model
image a training round publishes through ci.yml (crunchtools/trentina#954,
a1793).
Two fleet jobs, assets and pages, for release packages and the signed
dnf/apt site (a1796, #263). assets rebuilds each [[tool.sdlc.assets]]
stage of a merged release on digest-pinned build roots and attaches the
files with a SHA256SUMS to its Release, using the job's own contents: write token and no stored secret. pages runs where the tree has [tool.sdlc.pages]: it signs the products' release assets and pushes the
site to gh-pages with the GPG key from the pages-signing environment
alone, then requests the Pages build. examples/ci.yml gains both jobs;
re-copy it. The image gains gnupg2, rpm-sign and createrepo_c, and sdlc_jobs/_debrepo.py writes the apt index. The design is
"Release assets and the package site" in docs/marketplace-free-ci.md.
Fixed
A scripts/local-release.sh build's provenance no longer claims the GitHub
Actions workflow buildType and .github/workflows/ci.yml (#285, a1904). It
carries https://crunchtools.com/sdlc/buildtypes/local-release/v1, with
externalParameters naming the built repository's ref and scripts/local-release.sh in crunchtools/sdlc at the commit it ran from. #286 first gave it a mutable blob/main URI and placed the script in the
built repository; promote's predicate() now takes the build type and
parameters from its caller, as scripts/provenance.py's does.
A redirect no longer carries the job's token to another host (#278). Both
HTTP clients, Tools.http and the GitHub client, open through _github.SafeRedirect. It follows an https redirect, carries only Accept,
Accept-Language, User-Agent and X-GitHub-Api-Version when the host changes,
and refuses a hop to plain http, which comes back as the 3xx it answered. A release
download, which 302s to a githubusercontent host, still works.
A release cut by scripts/hotfix.sh carries SLSA v1 provenance again (#275,
a1888). hotfix.sh stamps the build record scripts/local-release.sh gives a
fleet build: itself as the builder, pinned to the commit it releases, an
attempt unique to the run and no run id. scripts/provenance.py trusts that
record only from the sign step of the same run, under a build type of its
own (https://crunchtools.com/sdlc/buildtypes/hotfix/v1, naming the script
at its commit) rather than the Actions workflow's, and hotfix.sh builds from a
clean worktree of the commit, so no ignored file (a stale __pycache__)
ships under it. With every release path now recording a build, self.sh's
sign reads the record before it signs anything and refuses a digest with
none, in or out of Actions; only a rollback to 0.18.0 or older, from before
sdlc attested its own releases, still goes without.
The lane memory budget now keeps a quarter of MemTotal (never under 512 MB)
for the kernel, podman and the page cache, as it already did for a cgroup
ceiling (a1809, crunchtools/gha-runner#71). A 16G runner VM gave four lanes
3.9G each: every --memory held, but together they filled the VM, and
trentina#955's check thrashed at its ceiling for 38 minutes. Those four lanes
now take turns; three still run side by side. A 32G laptop's four lanes get
5.8G each instead of 8G.
Constitution R4 reads a Deprecated bullet's wrapped continuation lines, so an
end release named on a later line no longer fails (#269). It also takes
"renamed in X" and "retired in X" as naming the end release, and no longer
reads a continuation line that opens with -- or **bold** as a new bullet.
claude-supervisor's 2.0.0 CHANGELOG, which hit the first two, now passes.
sdlc's own releases carry an SPDX SBOM and SLSA v1 provenance attestation
again, under sdlc's key (#266). They stopped at 0.15.9, when releases moved
from container.yml to ci.yml's sign step, which signed and never
attested. scripts/self.sh's sign now scans each digest with syft (pinned,
without the key), writes provenance from its build labels with scripts/provenance.py, and attests and verifies both before any tag
moves; sdlc-bootstrap gets the same build labels and attestations. Fleet
images were never affected: sdlc image promote attests them. syft runs
read-only with no registry login. A rollback attests its digest's SBOM, if
it lacks one, before :<major> moves to it.
verify_release (pypi, assets) reads a dynamic version from [tool.hatch.version].path, as write already does, so a repo like
ashigaru is no longer refused at test 7.
Removed
.github/workflows/container.yml (a1790). ci.yml's test, image and sign already build, test, sign and publish every release; scripts/self.sh
now also runs tests/test_mirror_parent.sh and shellchecks mirror-parent.sh,
the one test only container.yml ran. :main and the python-sdlc mirror,
which only container.yml moved, stay at 0.15.8 and are no longer published.
Changed
bin/sdlc-bootstrap refuses SDLC_IMAGE=main with exit 2 and says why: :main stopped at 0.15.8, and running it would gate on a frozen image that
still verifies under the fleet key. Use latest, a release, a digest, or a
local build through a clone's bin/sdlc. examples/pre-commit-floating.yaml
no longer suggests it; re-copy it. scripts/provenance.py now trusts a build
record from ci.yml, and the README says sdlc's own releases are signed but
not attested since 0.15.9 (#266).
Documentation
docs/marketplace-free-ci.md records spike #103's open items re-run on
crunchtools/ci-spike (a1792): review-comment re-triage, the pypi
environment's default-branch policy, a tag push starting no job, and an App
release end to end, each with its run.
Security
The fleet ci.yml (and sdlc's own) give the ai job CLAUDE_CODE_OAUTH_TOKEN
only for this repository's own pull requests and for issues opened by an
owner, member or collaborator (#215, a1650). A fork's pull_request_target
or an outsider's issue now runs triage with no Claude token, so text an
outsider wrote never reaches a model that holds one. Re-copy examples/ci.yml.