Skip to content

armgit / kiln

Public Imported from GitHub
0

Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.

ci: run the community exporter pass as its own job (#323)

Matthew Kissinger335a4ca1d0c8
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index de1a6fb5..e5b2a9a5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,7 +20,7 @@ env:
jobs:
checks:
- name: typecheck · lint · test
+ name: typecheck · lint · coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -69,11 +69,6 @@ jobs:
- name: Verify experimental exporter worker and cache isolation
run: node scripts/exporter-cli-check.mjs
- - name: Engine regressions with the community exporter selected
- env:
- KILN_GLTF_EXPORTER: three
- run: bun run test
-
- name: Upload coverage report
if: ${{ always() && hashFiles('coverage/lcov.info') != '' }}
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
@@ -83,6 +78,57 @@ jobs:
if-no-files-found: error
retention-days: 14
+ # Its own job rather than a second step in `checks`, where the two passes ran one after
+ # the other and made up 892 of that job's 933 seconds (medians over 25 runs in October
+ # and November 2026). Nothing here depends on the coverage pass having run first.
+ exporter-checks:
+ name: engine tests · community exporter
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+
+ - name: Setup Bun
+ uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
+ with:
+ bun-version: 1.4.2
+
+ - name: Setup Node
+ uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
+ with:
+ node-version: 22.23.3
+
+ - name: Setup npm
+ run: npm install --global [email protected]
+
+ - name: Install
+ run: bun install --frozen-lockfile
+
+ - name: Build compiled SDK for public-entrypoint checks
+ run: bun run build:sdk
+
+ - name: Restore pinned historical regression inputs
+ run: node scripts/example-archive.mjs --fetch
+
+ - name: Engine regressions with the community exporter selected
+ env:
+ KILN_GLTF_EXPORTER: three
+ run: bun run test
+
+ # Keeps main's required `typecheck · lint · test` context while the work behind it runs
+ # as two jobs, the same way `linux-package-gate` does. No protection setting changes.
+ checks-gate:
+ name: typecheck · lint · test
+ needs: [checks, exporter-checks]
+ if: always()
+ runs-on: ubuntu-latest
+ steps:
+ - name: Require the coverage and community exporter passes
+ env:
+ COVERAGE: ${{ needs.checks.result }}
+ EXPORTER: ${{ needs.exporter-checks.result }}
+ run: test "$COVERAGE" = success && test "$EXPORTER" = success
+
windows-checks:
name: typecheck · lint · test (Windows)
runs-on: windows-2022
@@ -111,8 +157,9 @@ jobs:
# wrong reason.
#
# Blocking also means a hang is a blocked merge rather than a slow report, so the
- # job gets a bound. The suite runs in about two minutes here; thirty minutes is room
- # for a cold runner, not for a deadlock.
+ # job gets a bound. The suite takes about nine minutes here (532 s median in late 2026,
+ # up from about two when this was written); thirty minutes is room for a cold runner,
+ # not for a deadlock.
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
diff --git a/scripts/prepare-npm-release.mjs b/scripts/prepare-npm-release.mjs
index fc08b6ec..ea414447 100644
--- a/scripts/prepare-npm-release.mjs
+++ b/scripts/prepare-npm-release.mjs
@@ -12,6 +12,8 @@ export const RELEASE_REPOSITORY = 'instruktlabs/kiln';
export const RELEASE_REPOSITORY_ID = 1278326592;
export const RELEASE_JOBS = [
'typecheck · lint · test',
+ 'typecheck · lint · coverage',
+ 'engine tests · community exporter',
'typecheck · lint · test (Windows)',
'render service tests',
'build portable Node package',
diff --git a/scripts/reliability.test.mjs b/scripts/reliability.test.mjs
index b5deb220..c49e7b48 100644
--- a/scripts/reliability.test.mjs
+++ b/scripts/reliability.test.mjs
@@ -184,6 +184,8 @@ describe('repository reliability contracts', () => {
'Node package \u00b7 macOS x64',
'render service tests',
'typecheck \u00b7 lint \u00b7 test',
+ 'typecheck \u00b7 lint \u00b7 coverage',
+ 'engine tests \u00b7 community exporter',
'typecheck \u00b7 lint \u00b7 test (Windows)',
];