Skip to content

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/.

  1. On a branch, bump the version in kibana.json, package.json and common/index.ts, and add its entry to CHANGELOG.md.

  2. Merge the pull request into main. The Checks and Release check workflows must pass.

  3. Tag the merge commit on main and push the tag:

    Terminal window
    git tag v1.0.0
    git push origin v1.0.0
  4. Wait for the Release workflow. It builds and checks every Kibana version of tools/tests/versions.json; this can take hours.

  5. 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.

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.

  1. In GitHub, open Actions → Release add → Run workflow.
  2. Under Use workflow from, choose the release’s tag, such as v1.0.0.
  3. Enter the Kibana version, such as 9.5.8, and run it.
  4. When it has passed, add the version to kibana in tools/tests/versions.json on main. If it is the newest patch of its minor, it also replaces the last patch of that minor in full.

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.

WorkflowRuns onWhat it does
checks.yml (Checks)Pull request, push to main, called by release.ymlStatic 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.ymlPer 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 versionRuns 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 handLists 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, never pull_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.yml can write issues only.

In the branch protection of main, require Static checks and Release check result.

tools/tests/versions.json decides which Kibana versions a release has.

KeyContent
primaryThe version that pull requests and pushes check. Must be in full.
fullVersions that also get the stack checks: the first and the last patch of every minor, and primary. Must be in kibana.
kibanaEvery 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.

FileContent
tocharianAi-<plugin version>-kibana-<Kibana version>.zipThe 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.
SHA256SUMSOne line per zip, in sha256sum format. Check a download with sha256sum -c SHA256SUMS --ignore-missing.
manifest.jsonWhat a download page needs, below.

manifest.json:

FieldContent
pluginTocharian AI
version, tag, commitPlugin version, release tag, commit the release was built from
checksWhat full and build mean
kibana[]One entry per zip, sorted by Kibana version
kibana[].kibanaKibana version
kibana[].file, urlFile name and download URL
kibana[].size, sha256Size in bytes and checksum
kibana[].checksfull: 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.

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.