Commit Graph
1087 Commits
Author SHA1 Message Date
Igor Šćekić db7d2f1193 Merge remote-tracking branch 'origin/main' into igor/kc-ci-publish-push
# Conflicts:
#	.github/workflows/publish.yml
#	.github/workflows/smoke-test.yml
2026-11-28 01:51:00 +01:00
Igor Šćekić 0226ec9111 ci: publish package managers from final releases only
- aur(), homebrew() and the command line refuse a pre-release version, because the package-managers job runs for final releases only.
- A recipe that carries a pre-release was edited by hand; it compares like any other version, so one ahead of the release this run publishes still fails with RecipeAheadError.
- RELEASING.md lists the three outcomes for a recipe that is ahead (older re-run: warn; latest release: fail; unreadable latest release: warn) and says the job publishes finals only.
2026-11-28 01:28:17 +01:00
Igor Šćekić 86e56f84f3 ci: keep AUR and Homebrew from moving backwards on an older re-run
- package-managers.ts reads the version the cloned recipe publishes (PKGBUILD `pkgver`/`_subver`, the Homebrew download URL) and only accepts it when it is a release version.
- A clone that already publishes a newer version is skipped with a warning; when the release being published is the latest GitHub release, the update fails instead, because only a re-run of an older release can legitimately find the recipe ahead.
- publish.yml gives the update steps the job's read-only token; RELEASING.md describes the skip.
2026-11-28 01:22:06 +01:00
Igor Šćekić 263f0a09ee ci: keep the bench waiver in one place and require a release candidate above the highest version
WAIVE_BENCH at the top of publish.yml skips smoke-cli and makes the smoke test record the exception; the smoke test runs after a skipped smoke-cli but not after a failure. A requested x.y.z-rc.n must have its x.y.z above the highest version, and the release listing keeps only the fields the decision reads.
2026-11-27 19:53:36 +01:00
Igor Šćekić 52bd0f4914 ci: decide the version in release-draft only and fetch the smoke test archive without installs
release-draft computes the version from origin's tags and every release, drafts included, and the version job is removed. release-undraft also checks sidecar and checksum file digests, smoke-cli hands the draft's Linux archive to a read-only smoke test, and the history fetches move before the jobs read keys.
2026-11-27 19:42:17 +01:00
Igor Šćekić 0224022889 ci: check the proposed version in a release-draft job and split the publish hand-over
The version job keeps read access and only proposes the version; release-draft checks it and creates the draft. release-undraft checks the stage evidence before any upload, publish-build hands over the tarballs as a separate artifact, and the release commit check also checks changelog link texts, commit ancestry and dependency package names.
2026-11-27 19:03:10 +01:00
Igor Šćekić 2cc0b19dff ci: tighten the release commit check and split the publish job
The release commit check limits changelog edits to one prepended block of changesets output and accepts any old version value. release-push writes the release commit from the checked tree, accepts an existing tag only at that commit, fsck-checks the bundle and retries a failed push before merging again. The draft release writes move to install-free jobs around a publish-build job, so publish keeps read access only. The JetBrains pin step only warns on failure.
2026-11-27 18:19:50 +01:00
Igor Šćekić 6f0516d682 ci: push the release commit from a release-keys job
A release-commit job without secrets writes the version commit and tag and uploads them as a git bundle. A release-push job in release-keys checks the bundle and pushes main and the tag with the maintainer app key from STS, merging when main moved. The publish job runs on the pushed tag with the job token, and the JetBrains pin pull request moves to a release-keys job.
2026-11-27 17:14:27 +01:00
Igor Šćekić 8ea5130725 ci: drop the unused Anaconda output of kilo-credentials
The ci-kilocode-release policy no longer grants KILOCODE_ANACONDA_API_KEY. The README and the test use live keys instead.
2026-11-27 16:47:54 +01:00
Igor Šćekić ee42c40e0b ci: harden the package-managers job
Compare the recipe manifest digest directly, validate the version first, bound ssh and HTTPS transfers, refuse to write through symlinks, restore a lost final newline on the AUR key, and update the release docs.
2026-11-27 16:33:51 +01:00
Igor Šćekić df335e4bf6 ci: update AUR and Homebrew from a release-keys job with STS credentials
The publish job no longer reads the AUR key. A package-managers job in the release-keys environment reads the AUR key and the maintainer app key from the ci-kilocode-release STS bundle and runs only script/kilocode/package-managers.ts. The maintainer app id comes from the repository variable.
2026-11-27 16:17:05 +01:00
kilo-maintainer[bot] c0b44ac0b6 release: v7.8.40 2026-11-27 09:19:21 +00:00
kilo-maintainer[bot] 1ce7b4f45d release: v7.8.38 2026-11-27 07:56:35 +00:00
Igor Šćekić 3dc6bec220 ci: run no package installs in the app-key jobs and validate nix hashes 2026-11-27 06:39:30 +01:00
Igor Šćekić bc0381809b style(ci): format the kilo-credentials test 2026-11-27 03:09:55 +01:00
Igor Šćekić 3a019ba5b2 Merge remote-tracking branch 'origin/main' into igor/kc-ci-kilo-credentials 2026-11-27 02:53:17 +01:00
Igor Šćekić 6420310717 docs(ci): state the AUR newline requirement and the STS outage timing 2026-11-27 02:53:15 +01:00
Igor Šćekić 013e2009f7 ci: retry kilo-credentials OIDC requests and drop the app key file 2026-11-27 02:45:43 +01:00
Igor Šćekić 4094489a69 ci: harden kilo-credentials retries, validation and key outputs 2026-11-27 02:26:42 +01:00
Igor Šćekić 1d9562b66f ci: block publication on enforced distribution evidence failures, harden re-run checks
With SBOM_ENFORCE the distribution evidence check stops before the release is published. The re-run comparison skips npm entries without a digest. The release commit check reuses a commit it already has, and fails when main carries the version without a tag or a release commit in the window.
2026-11-27 01:19:58 +01:00
Igor Šćekić 7c5ea6c3cb ci: bind published evidence reads to API digests, refuse already released versions
The published-release check hashes the manifests it downloads against the API digest and returns the accepted distribution manifest, which the re-run comparison reuses. Uploads stop before any delete once the release is no longer a draft. The version job stops when the tag or a release for the version exists, except for a re-run of the same workflow run.

Every npm tarball and image in the distribution evidence must carry its digest before the release is published; failed npm descriptions keep the tarball digest. A missing tag on an existing release commit on main is recreated instead of committing again. Sidecars without a recorded digest fail the check.
2026-11-27 00:56:10 +01:00
Igor Šćekić d76c72032a ci: address the release by id, publish npm after the release, make the publish job re-runnable
Every release request uses the draft id the version job got from the create call. The CLI publish packs and describes the npm tarballs, pushes the images, uploads the distribution evidence, checks the complete draft and publishes it, then publishes the packed tarballs, AUR and Homebrew.

A re-run skips the release commit and tag when they are on main, removes distribution evidence a failed run left on the draft, and after the release was published uploads nothing, checks the published assets and requires each npm tarball to match the published evidence. upload-cli enforces a sidecar and an attestation subject per archive under SBOM_ENFORCE.
2026-11-27 00:28:50 +01:00
Igor Šćekić 84d660e9b3 ci: describe and attest the signed Windows zips, upload every release asset before publishing
sign-cli-windows packages the signed Windows zips and records their digests; sbom-cli-windows writes new SBOM sidecars, manifest entries and checksum lines for them; upload-cli uploads the CLI set once and emits the attestation subjects, with the signed digests for the Windows zips.

The publish job uploads the VS Code packages before its draft check, and the CLI publish script uploads the distribution evidence, checks the complete draft and only then publishes the release, before AUR and Homebrew.
2026-11-26 23:48:29 +01:00
Igor Šćekić 7bb69ae0ae ci(publish): write Windows step outputs with LF line ends
The pwsh steps of sign-cli-windows append their outputs with LF only, and the consumers of the signed zip digest list accept CRLF line ends.
2026-11-26 21:20:37 +01:00
Igor Šćekić e1ead115ae ci(publish): check release assets against recorded digests before publishing
sign-cli-windows records the digest of each signed zip it uploads and gives the checksum file their digests. Before un-drafting, publish downloads the draft and compares every asset with the build manifest, the signed zip digests and the rewritten checksum file. The conda build takes its digests from the checked manifest and the signed zip digests and compares the release download with them. attest-cli checks the SBOM digest the manifest records, and the QEMU, BuildKit and Alpine images are pinned by digest.
2026-11-26 21:04:45 +01:00
Igor Šćekić d319f41c15 Merge remote-tracking branch 'origin/main' into igor/kc-ci-publish-digests 2026-11-26 20:34:19 +01:00
kilo-maintainer[bot] 832b440cae release: v7.8.36 2026-11-26 18:33:03 +00:00
Marius fad35d7296 fix(ci): isolate v1 CLI builds from draft release uploads (#16609)
* fix(ci): isolate v1 CLI builds from draft release uploads

* fix(ci): verify the release manifest before package publishing
2026-11-26 18:14:14 +00:00
Igor Šćekić e50c9f628d ci(test): make the Zig download tolerate slow and failing mirrors
- Try the fastest sources from Zig's community mirror list before the origin, drop the mirror that returns 502.
- Allow up to 300 seconds per source and abandon one only below 50 KB/s for 30 seconds; walk the list twice before failing.
- Give the sandbox setup step 15 minutes now that the archive is downloaded on every run.
- Cover the second pass in the tests and shorten the stall wait there.
2026-11-26 18:31:50 +01:00
Igor Šćekić 848d0fc6cb ci: keep the test jobs off every Turbo cache and download Zig without the shared cache
- unit and httpapi run turbo with TURBO_CACHE=local:w, so every task executes and turbo neither reads nor writes the remote cache.
- setup-linux-sandbox always downloads the Zig archive and verifies its digest; it no longer restores or saves it through the shared cache.
- The sandbox tests now check that an archive already on disk is never reused.
2026-11-26 18:05:39 +01:00
Igor Šćekić c138263373 ci(beta): disable the beta sync workflow
- origin has no beta or dev branch, so the sync cannot succeed; keep the split build/publish version under .github/workflows/disabled/ for a later revival.
- The disabled file notes that re-enabling it puts pull request code on main's cache scope.
- publish fails the push when the build reported an update but the handoff did not download.
- Remove beta.yml from the workflow allowlist.
2026-11-26 17:46:52 +01:00
Igor Šćekić 18a8e5ee92 ci(beta): split the beta sync into a read-only build job and a publish job
- build merges and validates the beta pull requests with a read-only token, then hands over a bundle of the beta branch and the failure comments as an artifact.
- publish runs no pull request code: it verifies the bundle against main, pushes beta with a lease on the ref build saw, and posts the comments from a fixed template.
- Comments are posted only for open beta pull requests and known failure reasons.
2026-11-26 17:28:34 +01:00
Igor Šćekić c48cd3ebac Merge branch 'igor/kc-ci-step3' into igor/kc-ci-step5a 2026-11-26 12:03:20 +01:00
Igor Šćekić 9ca3122dd0 Merge remote-tracking branch 'origin/main' into igor/kc-ci-step3
# Conflicts:
#	.github/workflows/auto-docs.yml
#	REVIEW.md
2026-11-26 12:03:11 +01:00
Joshua Lambert 7c6bc7ae7b chore(ci): move v1 workflows to Blacksmith and retire screenshot CI (#16580) 2026-11-26 11:56:11 +01:00
Igor Šćekić b24ca76254 Merge branch 'igor/kc-ci-step3' into igor/kc-ci-step5a 2026-11-26 02:18:55 +01:00
Igor Šćekić b91725cb41 ci(community): run the issue sweep after the digest and warn at its page limit
The issue pass now runs after the digest and Slack post, and a failure in it is a warning. It warns when it stops at its ten-page limit with issues left.
2026-11-26 02:08:42 +01:00
Igor Šćekić 3a867e7d30 ci(jetbrains): keep the release tree out of the validator's working directory
Both publish workflows check the release PR with the job token before checking out its files, run the validator from the main checkout with --dir release, and build the validated commit instead of re-reading the tag. The validator reads the release tree only through git -C and file paths under --dir. Run titles and the publish concurrency group use the PR number as passed, and the release watcher trims and checks the number it matches.
2026-11-26 02:08:40 +01:00
Igor Šćekić 778e958c84 ci(jetbrains): validate releases with the scripts on main
The publish job runs setup and validation from the main checkout and checks the release PR merge commit out separately. The validator now requires a positive integer PR number, a PR into main, and a merge commit and tag commit that are both on main. publish-jetbrains-bundled runs only from main, and the publish run title uses the normalized PR number.
2026-11-26 01:57:51 +01:00
Igor Šćekić 884e88a732 ci(community): correct labels on open issues in the sweep
The sweep now also removes the community labels from open community issues whose author is a maintainer, such as a private org member labeled by the label job. Tests drive the label and issue paths against a stubbed GitHub API.
2026-11-26 01:57:50 +01:00
Igor Šćekić acdd9bc58a ci(community): label from public data with the job token only
The label job now classifies authors from author_association (OWNER, MEMBER, COLLABORATOR) and .github/community-maintainers.json, and no longer reads COMMUNITY_TRIAGE_MEMBER_TOKEN. The sweep keeps the org membership lookup and removes community labels from PRs by private org members on its next run.
2026-11-26 01:39:18 +01:00
Igor Šćekić 01ebd81a90 ci: remove the disabled auto-docs workflow
The workflow has been disabled and is no longer used. Drop it from the workflow allowlist.
2026-11-26 01:37:25 +01:00
Igor Šćekić 03f253584a ci: drop unused secret pass-through and dead workflows
- version job: remove the Kilo CLI install and gateway env that script/version.ts never reads
- smoke-test: declare its secrets under workflow_call and have publish.yml pass them explicitly; scope the gateway env to the eval steps and skip persisting checkout credentials
- Windows signing: pass the Key Vault URI and certificate name through step env
- remove generate.yml (its trigger branch does not exist) and the uncalled check-org-member.yml; update the workflow allowlist, upstream skip list and docs
2026-11-26 01:32:58 +01:00
Igor Šćekić 93ff096f76 fix(ci): bind JetBrains publish runs to the release PR merge commit (#16403)
* fix(ci): bind JetBrains publish runs to the release PR merge commit

* fix(ci): assert the checked-out tree is the release merge commit
2026-11-21 23:39:50 +01:00
kilo-maintainer[bot] 2aa002cc0a release: v7.8.32 2026-11-20 14:45:01 +00:00
kilo-maintainer[bot] 47910faac5 release: v7.8.31 2026-11-19 20:08:57 +00:00
kilo-maintainer[bot] f81d6f0b2e release: v7.8.30 2026-11-16 22:12:47 +00:00
brunoagatao e12a212d0f feat(ci): post to Slack when upstream has a v2 release that v2 lacks
watch-opencode-releases.yml follows upstream's "latest" release, which is the
v1 line, so it never fires for a v2 release. Add a scheduled workflow that asks
the sync tooling on the v2 branch (script/upstream/list-versions.ts --json)
which releases v2 lacks and posts to the V2_SYNC_SLACK_WEBHOOK webhook: once
when a release appears, then every 7 days while v2 is still behind.

It lives on main because scheduled workflows run only from the default branch.
2026-11-16 13:14:27 +01:00
kirillk d1ab595223 fix(ci): retry Bun runtime downloads
Windows runners intermittently abort the Bun download at the 120s
timeout, failing required unit jobs in the setup step. Retry the
download up to three times; integrity failures still fail immediately
without retrying.
2026-11-09 14:59:29 -05:00
kilo-maintainer[bot] 58072bd696 release: v7.8.28 2026-11-07 16:49:34 +00:00