mjdi

Search documentation

Search the mjdi v0.10.0 documentation

mjdi docsv0.10.0latest

Release and CI checklist (P0-01/P0-02/P0-07 integration)

The practical gate every mjdi release passes. The workflows under

Source: mjdi/docs/release-checklist.md

The practical gate every mjdi release passes. The workflows under .github/workflows/ run the same steps on every push; a release tag runs them again plus the packaging steps.

The release gate

scripts/release_gate.sh runs the complete gate locally:

  1. Toolchain — mojo --version matches release/manifest.json's target_compiler (name, version, build).
  2. Metadata — scripts/validate_metadata.py passes (P0-01), including --tag equality when validating a release tag.
  3. Inventory — scripts/test_inventory.py --check passes (P0-07): the authoritative suite counts are current.
  4. Diagnostics — scripts/gen_diagnostics.py --check (P0-06): the catalog, its pinned IDs, and the builder sources agree.
  5. API reference — scripts/gen_api_reference.py --check: the generated reference matches the library surface.
  6. Suite — scripts/run_tests.sh (the full authoritative inventory, P0-07) on the verified platform.
  7. Coverage — both API-surface gates at ≥ 95%.
  8. Graph fixtures — scripts/export_graph_fixtures.sh + git diff --exit-code (no unexpected generated-file drift).
  9. Website — bun run lint && bun run format:check && bun run build from website/ (the docs build and link set).

CI jobs (.github/workflows/ci.yml)

JobPlatformsRuns
testslinux-x64 (required release gate), linux-arm64, macos-arm64 (ci-verified tier)full inventory + coverage + drift gates + metadata validation + experiments
benchmarkslinux-x64the benchmark suite (measurements, not tests)
websitelinux-x64lint, format check, build, static Pages export
metadatalinux-x64validate_metadata.py (fast-fail on drift, P0-01)

The release workflow (.github/workflows/release.yml)

On a v* tag (or by hand from the Actions tab on a branch: a dry run that publishes nothing):

  1. verify: validate_metadata.py --tag "$GITHUB_REF_NAME" — the tag must equal v<manifest version> (P0-01) — and the full suite.
  2. build: scripts/build_mojoc.py precompiles mjdi.mojoc (the file name is the import name; never add the version to it), runs an example using only that file with no source tree on the import path, and writes the tarball and checksums.
  3. smoke: the same file is downloaded and smoke-tested on linux-x64, linux-arm64 and macos-arm64 (a .mojoc is tied to the compiler version but not to an architecture).
  4. publish (tags only): make_release.py --include ... builds the source zip and SBOM and one SHA256SUMS covering all assets; sha256sum -c must pass; the changelog section plus install instructions and the checksums become the release notes; gh release create attaches mjdi.mojoc, the tarball, the zip, the SBOM and SHA256SUMS.

ci.yml also runs the precompile step on every push, because mojo precompile parses every module while mojo run -I . compiles only what a test uses.

Manual pre-tag checklist

  • release/manifest.json updated (version, title, date, doc_versions)
  • python3 scripts/release_update_docs.py run; CHANGELOG body written
  • llms.txt / llms-full.txt regenerated
  • python3 scripts/test_inventory.py re-run if the suite changed
  • python3 scripts/validate_metadata.py green
  • scripts/release_gate.sh green on the verified platform
  • docs updated (the P0 pages, acceptance-criteria.md, known-limitations.md)
  • compatibility impact classified (see docs/migration-notes.md)

Never report as passing what did not run

If a step could not run (missing tool, unavailable runner), the report says NOT RUN with the reason — the release classifies as "feature-complete but requiring additional validation" until the step executes. See docs/compiler-compatibility.md for the platform-tier rules and tests/INVENTORY.md for the executed/unavailable policy.