Release Tocharian AI
For maintainers. This page takes a new plugin version from main to a published GitHub release with one zip per supported Kibana version, and explains how to add zips for Kibana patches that come out later.
All release work runs in GitHub Actions on GitHub’s own machines. The workflows are in .github/workflows/.
Publish a new version
Section titled “Publish a new version”-
On a branch, bump the version in
kibana.json,package.jsonandcommon/index.ts, and add its entry toCHANGELOG.md. -
Merge the pull request into
main. The Checks and Release check workflows must pass. -
Tag the merge commit on
mainand push the tag:Terminal window git tag v1.0.0git push origin v1.0.0 -
Wait for the Release workflow. It builds and checks every Kibana version of
tools/tests/versions.json; this can take hours. -
Open the draft release on GitHub, check the files and the notes, and publish it.
The tag must be on main and must be v followed by the plugin version, or the workflow stops at once. Any version that fails to build or check stops the release: no draft is created.
Add a Kibana patch to a published release
Section titled “Add a Kibana patch to a published release”When Kibana releases a new patch of a supported minor, the current plugin version can get a zip for it without a new plugin version.
- In GitHub, open Actions → Release add → Run workflow.
- Under Use workflow from, choose the release’s tag, such as
v1.0.0. - Enter the Kibana version, such as
9.5.8, and run it. - When it has passed, add the version to
kibanaintools/tests/versions.jsononmain. If it is the newest patch of its minor, it also replaces the last patch of that minor infull.
The workflow builds the tag’s code in that Kibana version, runs the full check, uploads the zip to the release and updates SHA256SUMS and manifest.json. It works on a draft and on a published release, and refuses a version the release already has.
A new Kibana minor or major needs porting first: see Kibana versions and tools/tests/kibana_touchpoints.md.
Workflows
Section titled “Workflows”| Workflow | Runs on | What it does |
|---|---|---|
checks.yml (Checks) | Pull request, push to main, called by release.yml | Static checks (tools/ci/static_checks.py: versions agree, no private content, English only), the release check’s own tests, Python and shell syntax, shellcheck, actionlint |
release-check.yml (Release check) | Pull request and push to main (the primary version); by hand with primary, full, all or one version; called by release.yml and release-add.yml | Per Kibana version: build (type check, unit tests and the zip, in that version’s Kibana source), then stack (the zip on the official Kibana image: API checks, browser checks, Kibana log). all builds every version and runs the stack checks for the full ones. The job Release check result passes only when every job passed. |
release.yml (Release) | Tag v* | Checks the tag, runs checks.yml and release-check.yml with all, makes the release files (tools/ci/release_files.py) and creates one draft release with them. Tags v0.* become pre-releases. |
release-add.yml (Release add) | By hand, from a release tag, with one Kibana version | Runs release-check.yml for that version with the tag’s code, then adds the zip to the release and rewrites SHA256SUMS and manifest.json (release_files.py --add). One run per release at a time. |
kibana-watch.yml (Kibana watch) | Weekly (Mondays), by hand | Lists Kibana releases from the oldest supported version on that have no zip yet (tools/ci/kibana_watch.py), and opens or updates one issue, New Kibana versions without a plugin zip: new patches go through release-add.yml, new minors need porting. |
Rules the workflows keep, because pull requests can come from anyone:
- Only GitHub-hosted runners, never a self-hosted one.
pull_request, neverpull_request_target; a read-only token and no secrets.- Actions pinned to a commit.
- Only the jobs that create or change a release can write, and they run no code of the repository.
kibana-watch.ymlcan write issues only.
In the branch protection of main, require Static checks and Release check result.
versions.json
Section titled “versions.json”tools/tests/versions.json decides which Kibana versions a release has.
| Key | Content |
|---|---|
primary | The version that pull requests and pushes check. Must be in full. |
full | Versions that also get the stack checks: the first and the last patch of every minor, and primary. Must be in kibana. |
kibana | Every Kibana version a release has a zip for, sorted, without duplicates. |
static_checks.py checks these rules. Testing another version by hand needs no entry.
Release files
Section titled “Release files”| File | Content |
|---|---|
tocharianAi-<plugin version>-kibana-<Kibana version>.zip | The plugin for one Kibana version. Its kibana.json names that Kibana version and the plugin version, and it contains the browser code; release_files.py refuses a zip that does not. |
SHA256SUMS | One line per zip, in sha256sum format. Check a download with sha256sum -c SHA256SUMS --ignore-missing. |
manifest.json | What a download page needs, below. |
manifest.json:
| Field | Content |
|---|---|
plugin | Tocharian AI |
version, tag, commit | Plugin version, release tag, commit the release was built from |
checks | What full and build mean |
kibana[] | One entry per zip, sorted by Kibana version |
kibana[].kibana | Kibana version |
kibana[].file, url | File name and download URL |
kibana[].size, sha256 | Size in bytes and checksum |
kibana[].checks | full: type check, unit tests, build, API and browser checks on a running Kibana. build: type check, unit tests and build in that version’s Kibana source. Zips added with release-add.yml are always full. |
Run the checks before a release
Section titled “Run the checks before a release”The same release check runs outside GitHub with tools/tests/matrix.sh in a Kibana source tree, or with tools/tests/remote.sh <version> on another Linux machine over ssh (set its address in tools/tests/local.env). Testing and tools/tests/README.md describe the layers, what counts as a pass, and the checklist of items checked by hand.